Sutron Corporation X-Link Operations & Maintenance Manual, Rev 1.63 5/24/2016 pg. 176
The datetime value in the response message is the datetime of the returned
record and, therefore, may be different from the datetime in the GetLog
command statement.
The data to the end of the file can be read by leaving datetime at the desired
starting point and incrementing recordID until the status indicates record not
found. The [numbytes,data] represents an additional record of data if there is
room in the message.
Example:
command:
GL,data,02/07/2007 15:50:00,80,0
reply:
GLR,0,0,38,02/07/2007,15:51:00,VBAT,13.16,Volts,G
37,10/07/2003,15:51:10,A,10.89,5.2,-25.4
command:
GL,data,02/07/2007 15:50:00,80,2
reply:
GLR,0,2,37,02/07/2007,15:54:00,C,10.89,5.2,-25.4,0
The GLR response will contain as many log records as can fit into the response.
The numbytes value in the GLR response does not include the comma preceding
the data, and refers to the number of data bytes from the log that are being
returned, not the number of packet bytes used to store the response (which
would be twice the data bytes when ASCII protocol is selected).
18.4.2.
Get File Command
The Get File command is very similar to the get log command. While X-Link has
no actual file system, it does provide access to several virtual files.
The format of the Get File command:
GF,filename,startpos,numbytes
Filename may only be one of the following:
curdata.txt
sensors.txt
status.txt
setup.txt
flash disk.txt
startpos indicates the zero based byte position in the file from which to start the
download. When first issuing the GF command, this value should be 0. Once a
reply is recieved from X-Link, this number should increment by the number of
bytes returned by X-Link.
numbytes indicates how many bytes should be returned. * should be used to
have X-Link decide how many bytes to return. 255 is the maximum value