Product specifications
36
and data mode by sending the appropriate commands. This capability is similar to the console mode
switching described in the previous section, but has the following advantages;
Your device can initiate a network connection
Operation is compatible with software that uses the AT command set
The drawback, however, is that there is a slight delay when switching from data mode to AT command
mode.
To use the AT commands, you must first enable this capability using the I/O Port Settings internal web
page for the desired port (S1 for Serial Port 1 and S2 for Serial Port 2). Change the Port Filter setting to
AT in order to enable AT mode on that port and press the Submit button to save the change. You must
restart the SX-560 to make the change take effect.
You can also use the console to enable the AT capabilities. For example, the command
SET PORT S1 FILTER AT
enables AT capabilities on Serial Port 1.
The AT commands are described in detail in Chapter 6.
SNMP Traps and GPIO Status
The SX-560 allows the user to define various alert conditions based on the state of the GPIOs or on data
received by the serial port. For example, you could cause an alert to occur if the signal on GPIO 3 goes
low, or if a certain user-defined string of characters is received on the serial port. When an alert occurs, it
can be sent as an SNMP trap.
The SX-560 also allows the user to set the GPIOs or read the state of the GPIO pins via console
commands (console commands can issued through the Serial Port 3 console port, via the console mode
switch feature described earlier in this chapter, via the AT#C command described in Chapter 6, or
through TELNET). In addition, you can use the SX-560 E-GPIO capability to send the state of the GPIO
pins to a remote computer through TCP/IP messages at a user-defined time interval.
Details on using these capabilities can be found in Chapter 6.
NOTE: If you use the AT commands on one of the ports, you cannot use SNMP traps for that port (you can use the
SNMP traps on a different port and on the GPIOs).