XLINK 500/100 Operations & Maintenance Manual page # 177
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.5.2.
Get File Command
The Get File command is very similar to the get log command.
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 received from the
station, this number should increment by the number of bytes returned by the station.
numbytes indicates how many bytes should be returned. * should be used to have the station
decide how many bytes to return. 255 is the maximum value accepted by the station. If the
value provided is too small, the command may fail. To be safe, use 128, 255, or, best of all, *.
The station will reply to the GF command like so:
GFR,status,totalbytes,start,numbytes,data
status will have one of the following values:
Value Description
0
Ok.
1
File not found.
2
Get beyond file end.
6
Record not found.
7
Command format error
totalbytes will be set to the byte size of the whole file. It is not the number of bytes returned in
this retry! The master station should issue repeated GetFile commands until it has received
totalbytes amount of data. Retries are the responsibility of the master station. If totalbytes