110
Appendix B Bi-directional communication
The total station controlled by external computer can sent the
information about angle and distance. The settings of communication
and protocol as follow:
● Baud rate: 2400~115200 available
● Data length: 8
●Stop bits: 0
●Parity bits: none
●protocol:
●Code: STX
(
02
),
CR
(
13
),
X_ON(17)
,
X_OFF(19)
The angle ans diatance data are transferred by a form of fixed
length of 7 byte. The unit of angle is ― ° ′ ″ ‖, and the distance unit
is ―mm‖;
Command frame list(―
+
‖ means connection)
1. Check communication
Ask: STX+T+C+CR
Respond:
X_ON
2 Set the horizontal angle
Ask: STX+S+A+CR
Respond: X_ON
―HHHHHHH‖ indicates azimuth angle. Example: 120°43′55″
can be explained ―1204355‖
3. Read angle data
Ask: STX+R+A +CR
Respond: STX+R+A+CR
―HHHHHHH‖ is azimuth angle
―VVVVVVV‖ is vertical angle
4. Read distance and angle data
Ask: STX+R+D +CR
Respond:
STX+R+D+CR
―HHHHHHH‖ is azimuth angle
―VVVVVVV‖ is vertical angle
―DDDDDDD‖ is slop distance
5. Start measuring
Ask: STX+D+S+CR
Respond: X_ON
6. Stop measuring
Ask: STX+D+T+CR
Respond: X_O