User Manual

MCP1 Remote Control Protocol Specifications V1.0.0
9
3. Command Specifications
3.3.3. External control protocol run mode setting
2-4) Result and change notification character encoding setting
Command Option 1 Option 2 Description
scpmode encoding ascii ASCII encoding mode (default setting)
utf8 UTF-8 encoding mode
Response
Response string Description
OK scpmode encoding ascii ASCII encoding mode change complete
OK scpmode encoding utf8 UTF-8 encoding mode change complete
Example: Command: scpmode encoding utf8
Response: OK scpmode encoding utf8
Meaning: Change the result and change notification encoding mode to UTF-8.
The encoding mode was changed to UTF-8.
2-5) Keepalive activation setting
Command Option 1 Option 2 Description
scpmode keepalive (interval) Maximum interval for a client to send some kind of message,
including heart beats (default setting = disabled)
Details: (interval) = Timeout value (msec) * Timeout value should be more than 1000.
* The actual timeout value will be increased by 1 second.
Response
Response string Description
OK scpmode keepalive xxxx Keepalive activated notification
Details: xxxx = The specified timeout value (msec)
Example: Command: scpmode keepalive 2000
Response: OK scpmode keepalive 2000
Meaning: Set the timeout value to 2000 msec (2 seconds).
The timeout value was set to 2000 msec (2 seconds).
Note: When unexpected disconnection happens, remote controller can’t finish communication with closing process.
In such case, device has to keep status “connected” and remote controller can’t establish new connection after
that.
In order to prevent the situation above, device watches keepalive command if connection with remote controller is
still alive. If device doesn’t receive keepalive command within timeout value which is set by this command, device
terminates connection by itself.
After the Keepalive activation command has been activated, the Remote controller must send any command or
LF(0x0A) code as a heart beat to the device within the timeout value.