Communications Protocol; Communications Format; Packet Format; Header Format - Panasonic GP-MH310 series Technical Manual

Hd color camera module
Table of Contents

Advertisement

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

 
 
Message
Message
Header
0
1
Header
Format
1
0/1
0/1
Bit 7
Bit 6
Bit 5
(MSB)
・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

1
1
1
Bit 7
Bit 6
Bit 5
(MSB)
・Bit 0-7: Fixed [1]

Message Format

0
0/1
0/1
Bit 7
Bit 6
Bit 5
(MSB)
・ Bit 0-6:Refer to the various commands (0-127)
・Bit 7: Fixed [0]
Message
...
Checksum
2
0
0
0
0
Bit 4
Bit 3
Bit 2
Bit 1
1
1
1
1
Bit 4
Bit 3
Bit 2
Bit 1
0/1
0/1
0/1
0/1
Bit 4
Bit 3
Bit 2
Bit 1

Checksum Format

0
0/1
Bit 7
Bit 6
(MSB)
・Bit 0-6: Take the value which makes the sum of
・Bit 7: Fixed [0]
・Checksum:   A dd  up   v alues   f rom   t he   h eader   t o   t he  
last   b it  just   b efore  the  Checksum,  and  take   t wo's  
complement   and  assign  Bit7   a s   [

Response Command Format

Terminator
(0xFF)
1
Bit 7
Bit 6
(MSB)
0
・ Bit 0-3: ACK(Ah) / NACK(Bh) / ERR(Ch)
Bit 0
(LSB)
・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.
1
Bit 0
(LSB)
0/1
Bit 0
(LSB)
−7−
0/1
0/1
0/1
Bit 5
Bit 4
Bit 3
lower 7 bits from header to the checksum to
0.
1
1
1
0/1
Bit 5
Bit 4
Bit 3
0/1
0/1
0/1
Bit 2
Bit 1
Bit 0
(LSB)
0].  
0/1
0/1
0/1
Bit 2
Bit 1
Bit 0
(LSB)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents