Axetris AG
LGD Compact Operating & Integration Instructions; Rev. D
27/46
The data transfer is based on packets constituted of a multiple of 8 Bytes. The general
Command
structure
for data transmission to the device is given in Table 7 and an example is given in Table 8.
Table 7 General
Command
structure for data transmission to the device
Byte
Value
Description
1
“{“
Start of the packet
2
{ P C M I S V}
Command ID
3
0x08
Size of the packet LSB (least significant bit)
4
0x00
Size of the packet MSB (most significant bit)
5
0xXX
Extended command and parameter
0x00
Additional zeros to reach multiple of 8
n -1
Check sum
Check sum (sum from 1 to n-1= 0)
n
“}”
End of the packet
Table 8 Example of a
Command
to transmit data to the device (Ping user calibration)
Command in Hex
7B 50
08 00 10 00
1D
7D
Command in ASCII
{ P
. .
. .
.
}
Description
Start of packet {
Command (P = ping)
Packet size (here 8 bytes)
Extended command and Parameter (here 10)
Additional zeros to reach multiple of 8
Checksum
End of packet }
Analog to the
Command
structure, the
Response
packets have the same general format and are given in
Table 9, with an example in Table 10.
Table 9 General structure of the device
Response
Byte
Value
Description
1
“{“
Start of the packet
2
{S P C M I V}
Command ID
3-4
N=Size of the packet
Size of the packet (in bytes)
5
Error status Flags
[E W x x x x x x] Bit
0
: Error Flag; Bit
1
: Warning Flag.
6
Error status Code
See Annex A and B
Data
Additional zeros to reach multiple of 8
n - 1
Check sum
Check sum (sum from 1 to n-1 = 0)
n
“}”
End of the packet
Table 10 Example of a
Response
from the device (Ping user calibration)