Nikon DTM Series Руководство по интерфейсу связи - Страница 5
Просмотреть онлайн или скачать pdf Руководство по интерфейсу связи для Аксессуары для фотоаппаратов Nikon DTM Series. Nikon DTM Series 34 страницы.
Nikon Communication Interface Manual
4. Electrical Characteristics
a) Synchronous Method
b) Communication Method : Full Duplex
c) Signal logic
d) Signal level
d) Baud rate
e) Stop bit
f) Data length
g) Parity
5. Nikon Communication commands
5-1. Protocol
"Protocol" is a set of rules applied to the communication in order to receive/send data securely.
It is independent from contents of receiving/sending data.
<Basic Protocol>
+0
+1
SOH
Sender
(01h)
code
Header
Code
- SOH (01h): Header; Start of the communication
- Sender/Receiver codes:
Ex.) When sending data from an external device to the instrument, the code
becomes 'CT'. If outputting data from instrument to an external device, it is
'TC'.
- Contents:
<Command/Data Protocol>
SOH
Sender
code
(01h)
STX (02h): Start of the command or data string
ETX (03h): End of the command or data string
* ASCII characters should be used in "Command/Data string"
<Control-code (ACK/NAK) Protocol>
SOH
Sender
(01h)
code
ACK = 06h: Permission of communication or success in transmission.
NAK = 15h: Failure in transmission (= request for re-send)
* ACK/NAK control-code doesn't need STX and ETX.
: ASYNC
: Negative True (1: ≦0.8V, 0: 2.4V≧)
: ±9V, standard
: 1200/2400/4800/9600/19200/38400
: 1 or 2 bit
: 7 or 8 bit
: None/even/odd
+2
+3
Receiver
STX
Command or
code
(02h)
data character
Contents
T: Instrument (Total Station)
R: Data Recorder
C: Other external device
Receiver
STX
Command/
Data string
code
(02h)
Receiver
ACK or
code
NAK
P5/34
---
+n
+n+1
ETX
BCC
(03h)
Chk
ETX
EOT
BCC
(03h)
(04h)
EOT
CR
BCC
(04h)
(0dh)
Confidential
+n+2
+n+3
+n+4
EOT
CR
LF
(04h)
(0dh)
(0ah)
Trailer
CR
LF
(0dh)
(0ah)
LF
(0ah)