Modifications

Sauter à la navigation Sauter à la recherche
Ligne 168 : Ligne 168 :     
We propose the following format:
 
We propose the following format:
  <nowiki>:data1|data2|data3|data4;/r/n</nowiki>
+
  <nowiki>:data1,data2,data3,data4;</nowiki>
    
where:
 
where:
 
* ''':''' is the begin of data stream
 
* ''':''' is the begin of data stream
 
* ''';''' is the end of data stream
 
* ''';''' is the end of data stream
* '''/r/n''' are optional carriage return + line feed characters.<br />This will would make the messages user friendly when the the messages are viewed in a console or terminal.
+
* ''',''' is the separator between data items (like CSV format).
* '''|''' is the separator between data items.
+
* '''datax''' are the string representation of the various data. The characters ;:, are forbidden in this area.
* '''datax''' are the string representation of the various data. The characters ;:| are forbidden in this area.
      
we would also recommend to use:
 
we would also recommend to use:
* '''packetnum''' as data1. packetnum is a simple variable increment of one unit after each transmission. This would allow the receiver to detect lost message (since it would exist holes in the numbering of received messages).
+
* '''counter''' as data1. packetnum is a simple variable increment of one unit after each transmission. This would allow the receiver to detect lost message (since it would exist holes in the numbering of received messages).
 
* '''timing_info''' as data2. This would help to create timing chart or time base data analysis. We suggest to use the Arduino's {{fname|millis()}} function which count the number of milliseconds since the last microcontroler reset.  
 
* '''timing_info''' as data2. This would help to create timing chart or time base data analysis. We suggest to use the Arduino's {{fname|millis()}} function which count the number of milliseconds since the last microcontroler reset.  
  
29 917

modifications

Menu de navigation