Command 65h, GETAPPFILE (Application file request)
A specific application file can be downloaded from the receiver by sending the Command Packet 65h. If the request is valid, a copy of the application file is downloaded to the remote device in Report Packet 64h.
The receiver can store multiple application files (including a default application file, containing the factory default parameter settings) in the application file directory. Each application file is assigned a number to give the file a unique identity within the directory. The application file containing the factory default values is assigned a system file index code of zero (0).
The following table shows the packet structure. All data in the packet flows from the data collector to the receiver. For more information, see Command 64h, APPFILE (Application file record).
Byte |
Item |
Type |
Value |
Notes |
---|---|---|---|---|
0 |
STX |
1 (Char) |
02h |
Start transmission |
1 |
STATUS |
1 (Char) |
See Receiver status byte. |
Receiver status indicator. |
2 |
PACKET TYPE |
1 (Char) |
65h |
Command Packet Type |
3 |
LENGTH |
1 (Char) |
Data byte count. |
|
4–5 |
SYSTEM FILE INDEX |
2 (Short) |
0–n |
Unique number (ID code) assigned to each of the application files stored in the application file directory. |
6 |
CHECKSUM |
1 (Char) |
Checksum value. |
|
7 |
ETX |
1 (Char) |
03h |
End transmission |