SP-20000M-PMCL / SP-20000C-PMCL
- 88 -
Appendix 1
Short ASCII Command Communication Protocol
This chapter described the communication control protocol based on the short ASCII command as the
reference.
1 Communication setting
Baud Rate
9600
Data Length
8bit
Start Bit
1bit
Stop Bit
1bit
Parity
Non
Xon/Xoff Control
Non
2 Protocol
(
Short
ASCII Command
)
2.1 Transmit the setting command to camera
NN is any kind of command.
NN=[Param.]<CR><LF>
e.g.
Send to camera: GA=0 <CR><LF>
Camera response:
COMPLETE<CR><LF>
When camera receives a valid command, camera will return 'COMPLETE'.
If camera receives an improper command, camera will return one of the following:
e.g.
Send to camera: GAX=0 <CR><LF>
Camera response:
01 Unknown Command!!<CR><LF>
e.g.
Send to camera: GA=1000 <CR><LF>
Camera response:
02 Bad Parameters!!<CR><LF>
2.2 Transmit the request command to camera
The status of camera's settings can be queried by transmitting NN?<CR><LF>, where NN is any valid
command.
The camera will return the current setting data.
e.g.
Send to camera: GA? <CR><LF>
Camera response:
GA=0<CR><LF>
2.3 Switching baud rate between PC and camera
Camera always starts up with 9600 bps. This can be switched to higher baud rates after
communication has been established. When switching to other baud rates the procedure is as
follows.
e.g. Change baud rate to 115200 bps
1. Confirm baud rates camera supported
Send to camera: SBDRT? <CR><LF>
Camera response:
SBDRT=31(0x1F)<CR><LF>