Silex technology SX-560 manual AT Commands, Snmp Traps, Email Alerts, and Gpio Status

Page 42

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.

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).

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.

Page 36

Silex

Part Number 140-00192-100

Using the SX-560

Image 42
Contents SX-560 Embedded Intelligent Module Trademarks Contents 101 Figures Silex Part Number Contents Safety Precautions About This Reference GuideEmissions Disclaimer Silex Introduction SX-560 top and bottom viewSilex Part Number Introduction Chapter Installing the Evaluation Daughtercard Installing SX-560 Module in Evaluation DaughtercardSilex Part Number Installing the Evaluation Daughtercard Verify Development Kit Contents Installing the SX-560 Module SX-560 Module Inserted in DaughtercardStatus Monitors Monitoring Module StatusOEM Interface Function State StatusElectrical Characteristics OEM Interface Signal Descriptions Pin TypeTXD DCDRXD DTRRTS DB-9 RS-232 Signal TypeLogical Serial Port 1 Signal Descriptions Pin Input/Output CTSGPIO5 DSR0 GPIO3 TspicsGPIO4 DTR0 GPIO6 DCD026-Pin I/O Header Signal Selectable LED and Gpio Descriptions USB Host Port and Ethernet Port LCD Interface UART0TXD, UART0RTS UART1TXD, UART1RTS UART2TXDSilex Part Number Installing the Evaluation Daughtercard TCP/IP Settings Chapter Configuring the SX-560Basic Configuration Requirements Wireless Configuration SettingsInitial Wireless Setup Configuration MethodsConfiguring the SX-560 Silex Part Number Silex Configuring the SX-560 Silex Part Number Silex Using the SX-560 Configuring the SX-560 Silex Part Number Using a Web Browser to Configure the SX-560 Configuring the SX-560 Silex Part Number Using the Internal Command Console to Configure the SX-560 AD-HOC Space Init ExitChapter Using the SX-560 with Your Application Linux ProgrammabilityCustomizing the SX-560 User Interface Serial Port Emulator Power ConfigurationSET Default InitRaw TCP connection Telnet ipaddress portnumberECable Mode RFC 2217 Remote Modem Control SupportPrint Server Mode Console Mode SwitchingSET Port S1 Constr ++++ AT Commands Snmp Traps, Email Alerts, and Gpio StatusSET Port S1 Filter AT Interfacing the SX-560 to the OEM Device SX-560 Evaluation Daughtercard Schematics SX-560 Evaluation Daughtercard Schematics Iicsdc TXD2 Iicsda RXD2 ResetiSpics TXD1 Spiclk CTS1 Ground CPIO2, GPIO3USB+ SX-560 Power RequirementsSignal Pin Type Description USBInstalling the SX-560 Antenna ConnectorsAntenna Connector Types Parameter Description Retaining Bracket OptionalGpio Interface Pin Regulatory Approval RequirementsGeneral Purpose I/O Interface Drive High/Low DescriptionFactory Default Settings Parameter Description Chapter Advanced ConfigurationFactory Default Settings CTS/RTSModifying TCP/IP Settings Parameter Description Settings Default SettingParameter Setting Change Password WindowTCP/IP Configuration Settings Parameter DNSConfiguring Snmp Snmp CommandsCommand Description Configuring the General Purpose I/O Gpio Lines Snmp ConfigurationGpio General Commands Description Show Gpio DIRSET Gpio Special EN DIS Show Gpio SpecialShow Gpio Specm Gpio Trigger Commands Description DISShow Gpio Trigm Trig # Email String Gpio #1 is Gpio #2 is Gpio Transmit Commands DescriptionGpio Data Commands Trig # Email String Your email text msg here Gpio #2 isShow Gpio Data Show Gpio MON Gpio TCP Monitor CommandsSET Gpio MON EN DIS SET Gpio PortGPIO=00abLF 5 4 3 2 1 Index # Xmit String Xmit string Port Monitor Alert Commands DescriptionIndex # Monitor String Index # Xmit String Trigger string was seenSetting up Email Alerts and Snmp Traps Using AT Modem CommandsStandard AT Commands Supported AT Commands Parameter DescriptionParameter Command Description Extended AT Commands Parameter DescriptionAT#Cset nw ssid silex#Csave Using ExtendView for Bulk Configuration Response CodesResponse Codes Numeric Code Description Silex Product Specifications ChapterTCP Port Connections TCP Port ConnectionsSdio Port Destination DeviceEAP Appendix a Advanced Security ConfigurationPSK Ttls Leap Peap TLS FastKey Selection Encryption ModeWireless Authentication Type WEP Key ValueAuthentication Certificate PasswordAuthentication Protocol Private Key TLS Wireless Security OnlySilex Part Number Advanced Security Configuration Appendix B Console Commands Wireless and Network Security CommandsNetwork Commands TLS Fast WPA-PSK SET NW RTS SET NW ID SET NW PWSET NW Wpagroup Enable Disable SET NW Inap PAPMSCHAPV2SET NW Realm Port Commands SET NW ResetPort Commands Description CL Port S1 JOB Server Information CommandsServer Information Commands Description SET Port S1 Size 7Serial server Firmware Ver .19 Boot Ver 16Mbit Flash SH SerialSerial number is Service Commands Service Commands DescriptionSET Servi service name IP ENable DIsable SET Servi service name FRMSET Servi service name FRS SET Servi service name NAme NewnameSnmp Commands Snmp Commands DescriptionSET Snmp Getcomm Enter LANGUAGE= String CommandsString Commands POSTSCRIPT\0ATCP/IP Commands TCP/IP CommandsSET IP LPD SET IP FTPSET IP Http Auto Dhcp StaticSET IP TCP SET IP TELnet ENable DIsableSET IP Timeout SET IP TftpXxxxxxS1A 9100 XxxxxxS1B 3001 SH IPAuto Bit# Hex Value Trigger ConditionSET Power power-level Power Configuration CommandsPower Configuration SH PowerMiscellaneous Commands Miscellaneous CommandsHelp Commands SaveAntenna Cable Drawings and Specifications Appendix C Engineering DrawingsAntenna Drawings and Specifications Electrical Performance Parameter ValueElectrical Specifications Parameter Value VswrSilex Part Number Engineering Drawings Appendix D Firmware Update Procedures Tftp -iipaddress put filename accessSilex Part Number Firmware Update Procedures Appendix E Using the Silex Virtual Link USB Software Silex Part Number SVL USB Firmware Appendix F GNU/Linux Open Source and Programming Silex Part Number GNU/Linux Programming Silex Technology Europe GmbH Appendix G Silex Contact InformationSilex Technology America, Inc Silex Technology Beijing, IncSilex Part Number Silex Contact Information Part Number 140-00192-100 Revision C-2 Silex Technology America, Inc