- Silex Technology Embedded Intelligent Module Developer's Reference Guide

Silex
Using the SX-560
Part Number 140-00192-100
Once you are connected in console mode, you can send any of the console commands listed in Chapter
6. Be sure to terminate each console command with a carriage return (ASCII 13) or linefeed (ASCII 10)
character.
When you are finished using the console, you can return to the normal port operation by sending the
command EXIT followed by a return or linefeed character.
AT Commands
The SX-560 allows you to control Serial Port 1 and/or Serial Port 2 using standard AT modem
commands. This allows you, for instance, to initiate connections and to switch between console mode
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, Email Alerts, 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 and/or as an Email message.
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 or Email alerts for that port (you
can use the SNMP traps and Email filters on a different port and on the GPIOs).