4. Comms command data format
(1) Send data and read command (master to slave)
(a)Command data are converted into ASCII code and transmitted.
(b)Comms byte quantity is 18.
(c)Comms data format (transmission sequence).
| S T X |
| Text data |
| E T X | S U M | ||
| 1 byte |
| 14 byte |
| 1 byte | 2 byte | ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
| 18 byte |
|
|
| |
|
|
|
|
| ||||
・STX (start code) | : Code indicating start of text. |
| ||||||
|
|
| 1 byte (02H) |
|
| |||
・Text data | : Transmit / receive data. |
|
| |||||
|
|
| 14 byte (ASCII code) |
|
| |||
・ETX (end code) | : Code indicating end of text. |
|
| |||||
|
|
| 1 byte (03H) |
|
| |||
・SUM | : XOR result (FFH), of adding STX, Text data, and ETX. | |||||||
|
|
| 2 byte (ASCII code) |
|
|
(d) Text data format details (transmission sequence).
| Status | ID No. | Area address |
| Relative No. | Data | ||
| 2 byte | 2 byte |
| 2 byte |
| 2 byte | 2 byte x 3 | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
| 14 byte |
|
|
| |
|
|
|
|
|
| |||
・Status | : Transmission data status. |
|
| |||||
|
| 2 byte (ASCII code) |
|
| ||||
|
| Used for EEPROM write (0: write absent, 1: write present). | ||||||
・ID No. | : Camera peculiar ID. |
|
| |||||
|
| |||||||
|
| 2 byte (ASCII code) |
|
| ||||
・Area address | : Classification of Send data (01H) and Read command (81H). | |||||||
|
| 2 byte (ASCII code) |
|
| ||||
・Relative No. | : Sets number (0 to 255) for each adjustment item. | |||||||
|
| 2 byte (ASCII code) |
|
| ||||
・Data (note) | : Sets data to be transmitted. |
|
| |||||
|
| 2 byte x 3 (ASCII code) |
|
|
12