User manual
Automation Protocol Extended Status Commands
Miranda Technologies Ltd Page 145
Serial Protocol XN
This command sets the protocol for the specified serial port number. It is
closely related to the XC command which sets the baud rate of a given serial
port.
CMD Param_1 Param_2
XN %1x: Port number %1x: Protocol
The following protocols are supported:
0: Automation (server to any client)
1: Presmaster (server to Presmaster client)
2: Easysound (client of Easysound Standalone server)
3: Intuition (client of Intuition clip-on server)
4: Sage ENDEC Model 1822
5: TFT EAS 911T
The following protocols are supported by LGK-3901 and DSK-3901:
0: Automation (server to any client)
3: Intuition (client of Intuition clip-on server)
4: Sage ENDEC Model 1822
5: TFT EAS 911T
Example:
void SetSerialProtocol(int Port, int Protocol)
{
remote_send(“XN%1x%1x”, Port, Protocol);
}
The command XN alternatively responds with the current protocol for the
serial port specified.
CMD Param_1
XN %1x: Port number
Example:
void GetSerialProtocol(int Port)
{
remote_send(“XN%1x”, Port);
}