SBL2e Dual Serial-to-Ethernet User's Manual
Page 16
Network Functions:
X
If the TCP client application, such as telnet, sends an 'X', the connection with the
GPIO Network Server will be terminated.
Example:
"X\n" , returns "0, Closing\r\n"
Character Echo:
Echos characters back to TCP client. Default is echo off.
E
Enable echo
e
Disable echo
Example:
"E\n" , returns "0, Echo on\r\n"
Firmware Version :
V
Query firmware version
Example:
"V\n" , returns "0, Firmware Version: SBL2e 1.3 8/5/2009\r\n"
Command and Query Return Strings:
Each command and query will return an integer value followed by a ',' and optional text to provide
details on the response.
Any successful command will return: "0, OK\r\n".
Any command error will return a negative number, followed by an explanation of the error.
For example, sending the command "abcd\n" returns: "-3, Syntax Error\r\n".
Any readback/query response will be the value of the readback followed by the status. For
example, sending "P07?\n" could return "2034, OK\n". The 2034 is the decimal number of
counts.
Any readback/query that generates an error will return a negative number instead of the
readback value.
Error Codes:
-1
Pin not in GPIO mode
-2
Invalid pin number
-3
Command syntax error
Note: At this time the I2C functions are not supported.
electronic components distributor