0
0/1
0/1
0/1
0/1
0/1
0/1
0/1
Header
Message
0
Message
1
Message
2
…
Checksum
Terminator
(0xFF)
1
1
1
1
0/1
0/1
0/1
0/1
1
0/1
0/1
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0/1
0/1
0/1
0/1
0/1
0/1
0/1
Communications Protocol
[1] Communications Format
The communication unit is a 4 (min)-24 (max) byte
packet.
Communications Speed:
2400, 4800, 9600, 19200, 38400
38400 bps
・
Data Length: 8 bit
・
Start Bit:
1 bit
・
Stop Bit:
1 bit
・
Parity: None
・
Flow Control: None
⁃
Packet Format
⁃
Checksum Format
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
(MSB)
(LSB)
・
Bit 0-6: Take the value which makes the sum of
lower 7 bits from header to the checksum to
0.
・
Bit 7: Fixed [0]
・
Checksum: Add up values from the header to the
last bit just before the Checksum, and take two's
complement and assign Bit7 as [0].
⁃
Response Command Format
⁃
Header
Format
Bit 7
(MSB)
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
(LSB)
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
・
Bit 0-3: ACK(Ah) / NACK(Bh) / ERR(Ch)
(MSB)
(LSB)
・
Bit 0-2: Fixed [0]
・
Bit 3: Fixed [0]
・
Bit 4: Fixed [0]
・
Bit 5: Query commands [0], settings command [1]
・
Bit 6: Settings/query [0], response to query [1]
⁃
Terminator Format
・
Bit 4-7: Fixed [1]
・
ACK: This is the response when the process of the
received command is correctly completed after
receiving the data in the correct format.
・
NACK: This is the response when data is received in an
incorrect format.
・
ERR: Although the data is received in the correct format,
this is the response when the process regarding
the received command is incorrect or cannot be
conducted.
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
(MSB)
(LSB)
・
Bit 0-7: Fixed [1]
⁃
Message Format
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
(MSB)
(LSB)
・
Bit 0-6:Refer to the various commands (0-127)
・
Bit 7: Fixed [0]
−
7
−
Содержание GP-MH310 series
Страница 36: ... 34 ...
Страница 38: ...Change history 2011 1 18 the issue of ver 1 10 36 ...
Страница 43: ......