beautypg.com

Silex technology Embedded Intelligent Module SX-560 User Manual

Page 65

background image

Advanced Configuration

Silex

Page 59

Part Number 140-00192-100

GPIO set message format

This message may be optionally sent by the
remote computer when an E-GPIO connection is
active. This message allows the remote
computer to set the state for any GPIO pins
configured as outputs. This is equivalent to the
SET GPIO DATA command.

The message is in the format:

GPIO=00ab

Where ab are 2 hex digits representing the state
of the GPIO pins. Since there are only 8 GPIO
pins on the SX-560, the first two digits should
always be 0. Any other message sent to the E-
GPIO connection is ignored. If the message is
formatted incorrectly, it is ignored.

Example:

Local> set gpio mon en

Local> set gpio addr 192.168.1.100

Local> set gpio port 9999

Local> set gpio poll 100

Local> sh gpio mon

E-GPIO mode Enabled
E-Cable destination 192.168.1.100
Poll interval 100 milliseconds
Not connected

Table 26 GPIO SNMP Management

The GPIO pins can also be managed via SNMP. The available MIB items are described in this section.
The GPIO related MIB items are in the Silex private MIB, and the GPIO tree is at
gpio=enterprises.1240.2.3.4.9.

GPIO bit mask

Integer

read-only

gpio.1


This is an integer representing a bit mask indicating what GPIO pins are available. There is a 1 for
each GPIO pin that is present. For the SX-560, this value is 255 (xFF), indicating 8 GPIO pins.