Table 26 E-GPIO TCP Monitor Commands
The E-GPIO TCP monitor allows a computer system to access the SX-550 GPIO pin values. If
enabled, this monitor will attempt to make a TCP connection to the remote computer specified.
Once connected, the monitor will periodically send the state of the GPIO pins to the remote
computer. This monitor is configured via the console with the following commands:
Command
Description
SET GPIO MON [EN | DIS]
Enables or disables the E-GPIO monitor
SHOW GPIO MON
Shows the current state of the GPIO monitor.
SET GPIO ADDR <ip address>
Sets the IP address of the remote computer for E-
GIO connection
SET GPIO PORT
Sets the TCP port on the remote computer for E-
GPIO connection.
SET GPIO POLL <period>
Sets E-GPIO poll period. When not connected,
this controls how often the E-GPIO monitor
attempts to make a connection to the remote
computer. When connected, this indicates how
often the E-GPIO monitor will send the GPIO
state to the remote computer.
<period> is the time interval in milliseconds. Note
that this interval will be rounded to the system
clock resolution (10msec). A value less than a
single clock period will result in the default value
of 5000 (5 seconds) being used.
GPIO status message format
The periodic message sent by the E-GPIO
monitor is a simple text string in the following
format:
GPIO=00ab<LF>
Where
ab
are 2 hex digits representing the state
of the GPIO pins. Since there are only 8 GPIO
pins on the SX-550, the first two digits are always
0. The message is sent every n milliseconds,
where n is the poll period set by the SET GPIO
POLL command.
Part Number 40183-101
Silex SX-550 Developer's Guide
Page 65
Summary of Contents for SX-550
Page 1: ...SX 550 Embedded Intelligent Module Developer s Reference Guide Revision L...
Page 3: ......
Page 10: ...Part Number 40183 101 Silex SX 550 Developer s Guide Page 2...
Page 26: ...Part Number 40183 101 Silex SX 550 Developer s Guide Page 18...
Page 40: ...Part Number 40183 101 Silex SX 550 Developer s Guide Page 32...
Page 111: ...Part Number 40183 101 Silex SX 550 Developer s Guide Page 103...
Page 118: ...Part Number 40183 101 Silex SX 550 Developer s Guide Page 110...