MT series remote control intelligent turntable user guide
Copyright reserved by Shenzhen ComXim Technology Co., Ltd. 2017
16
·Heartbeat mechanism: terminal equipment for the < - > communication link between the terminal equipment
and detection. Through the device and the terminal mutual communication link detection (heartbeat) bytes,
to inform the other side of the connection status. This feature can be turned on or off by "CT+HEARTBEAT
(onOff);" command.
·Error code: terminal equipment - > when the device receives an error command, to inform the terminal error
code form.
Below through a few examples of the Secondary development of the command usage:
Example 1: terminal to send a legitimate command to the device, the terminal receives the command and
execution.
//This case involves the CT command, CR report, EVENT event.
· To send "CT+TRUNSINGLE - terminal equipment (0,30); command;
· The equipment after receipt of order to report back to the "CR+OK;" to the terminal, and execute the
command, which left (clockwise) 30.
· The equipment executed action turn left (30 degrees), to the terminal sends EVENT event
"CR+EVENT=TB_END end;" and inform the terminal device performs an action completed.
Example 2: terminal to send an illegal command to the device, the terminal receives the command to return the
error code.
// this case involves the CT command error code.
· To send "CT+TRUNSINGLE - terminal equipment (ABC, 30);" command, the first parameter (ABC number)
illegal;
· The equipment after receiving the command, the feedback error code "CR+ERR=71;", namely first CT
commands (=71-70) parameters of non numeric error.
Example 3: device and terminal heartbeat mechanism test.
/ / this case involves the heartbeat mechanism.
· terminal and the device is connected properly and equipment intervals 1s to terminal sends a byte of #,
terminal also intervals 1s sent to the device a a # bytes.
· The terminal stop sending "#" bytes.
· Equipment for some time (3S) did not receive "#" a byte, and did not receive the order a CT, then enter the
heart lost state, then every interval 1s send string ### inform terminal heartbeat lost.
· Every 1s to re - terminal equipment sends a "#" byte.
· Equipment received "#" byte, or received a CT command and exit heartbeat lost state and subsequent device
every interval 1s to terminal sends a # bytes.
Be careful:
· Equipment received CT command equivalent to receive heartbeat byte "#", namely equipment for some
time (3S) not received "#" bytes, and did not receive the order a CT, then enter the heart lost; equipment
received "#" a byte, or received a CT command, out of the heart lost state.
· Terminal can also through similar mechanisms, such as a period of time (3S) did not receive "#" bytes of