Author |
Topic |
|
Tim
USA
2 Posts |
Posted - 01/21/2014 : 21:13:31
|
I have two questions about the Request History command.
First I understand the data is returned as bytes, but what is the format of these bytes?
Second, How do I know when the end of the available history has been reached? |
|
Reply #1
ZLM
1261 Posts |
Posted - 01/21/2014 : 22:47:05
|
The data is stored in the internal flash chip. So, after valid data byte, the unused blank bytes are in FF values.
The raw data should in binary format. Data include date time stamp,data type then the data.
|
|
|
Reply #2
Tim
USA
2 Posts |
Posted - 01/28/2014 : 10:00:37
|
quote: Originally posted by ZLM
The data is stored in the internal flash chip. So, after valid data byte, the unused blank bytes are in FF values.
The raw data should in binary format. Data include date time stamp,data type then the data.
Thank you for your reply.
Could you be more specific on the date time stamp and data type? |
|
|
Reply #3
ZLM
1261 Posts |
Posted - 01/28/2014 : 20:49:24
|
Here is an example of a binary data file opened by a binary file editor:
23.73 KB
The data 55 AA 00 three bytes indicate a timestamp started. A timestamp total 12 bytes long. The last three bytes 55 AA 01 indicated a Every Second data type data started. 55 AA 02 indicated a Every Minute data type data started. 55 AA 03 indicated a Every Hour data type data started. 55 AA 00 indicated data save feature is off.
In this data file, the first date and time data are: 0D 0A 12 08 2F 34.convert those to decimal format: 13 10 18 08 47. So, the date and time is: 2013-10-18 08:47. It is in 24H time format
If no timestamp at frount of 55 AA 01, then this indicate current data is double byte data. 55 AA 02 indicate a location data started.
|
|
|
|
Topic |
|
|
|