Silex technology SX-560 manual Gpio TCP Monitor Commands, SET Gpio MON EN DIS, Show Gpio MON

Page 64

Table 25 E-GPIO TCP Monitor Commands

The E-GPIO TCP monitor allows a computer system to access the SX-560 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-560, 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.

Page 58

Silex

Part Number 140-00192-100

Advanced Configuration

Image 64
Contents SX-560 Embedded Intelligent Module Trademarks Contents 101 Figures Silex Part Number Contents About This Reference Guide Safety PrecautionsEmissions 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 DaughtercardMonitoring Module Status OEM InterfaceStatus Monitors Function State StatusElectrical Characteristics OEM Interface Signal Descriptions Pin TypeDCD RXDTXD DTRDB-9 RS-232 Signal Type Logical Serial Port 1 Signal Descriptions Pin Input/OutputRTS CTSGPIO3 Tspics GPIO4 DTR0GPIO5 DSR0 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 Chapter Configuring the SX-560 Basic Configuration RequirementsTCP/IP Settings 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 ExitLinux Programmability Chapter Using the SX-560 with Your ApplicationCustomizing the SX-560 User Interface Power Configuration SET DefaultSerial Port Emulator InitRaw TCP connection Telnet ipaddress portnumberECable Mode RFC 2217 Remote Modem Control SupportConsole Mode Switching Print Server ModeSET Port S1 Constr ++++ Snmp Traps, Email Alerts, and Gpio Status AT CommandsSET Port S1 Filter AT Interfacing the SX-560 to the OEM Device SX-560 Evaluation Daughtercard Schematics SX-560 Evaluation Daughtercard Schematics Reseti Spics TXD1 Spiclk CTS1 GroundIicsdc TXD2 Iicsda RXD2 CPIO2, GPIO3SX-560 Power Requirements Signal Pin Type DescriptionUSB+ USBInstalling the SX-560 Antenna ConnectorsAntenna Connector Types Parameter Description Retaining Bracket OptionalRegulatory Approval Requirements General Purpose I/O InterfaceGpio Interface Pin Drive High/Low DescriptionChapter Advanced Configuration Factory Default SettingsFactory Default Settings Parameter Description CTS/RTSModifying TCP/IP Settings Parameter Description Settings Default SettingParameter Setting Change Password WindowTCP/IP Configuration Settings Parameter DNSSnmp Commands Configuring SnmpCommand 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 Gpio Transmit Commands Description Gpio Data CommandsTrig # Email String Gpio #1 is Gpio #2 is Trig # Email String Your email text msg here Gpio #2 isShow Gpio Data Gpio TCP Monitor Commands SET Gpio MON EN DISShow Gpio MON SET Gpio PortGPIO=00abLF 5 4 3 2 1 Port Monitor Alert Commands Description Index # Monitor StringIndex # Xmit String Xmit string Index # Xmit String Trigger string was seenSetting up Email Alerts and Snmp Traps Using AT Modem CommandsStandard AT Commands Supported AT Commands Parameter DescriptionExtended AT Commands Parameter Description Parameter Command DescriptionAT#Cset nw ssid silex#Csave Response Codes Using ExtendView for Bulk ConfigurationResponse Codes Numeric Code Description Silex Product Specifications ChapterTCP Port Connections SdioTCP Port Connections Port Destination DeviceAppendix a Advanced Security Configuration PSKEAP Ttls Leap Peap TLS FastEncryption Mode Wireless Authentication TypeKey Selection WEP Key ValuePassword Authentication ProtocolAuthentication Certificate Private Key TLS Wireless Security OnlySilex Part Number Advanced Security Configuration Wireless and Network Security Commands Appendix B Console CommandsNetwork Commands TLS Fast WPA-PSK SET NW RTS SET NW ID SET NW PWSET NW Inap PAPMSCHAPV2 SET NW Wpagroup Enable DisableSET NW Realm SET NW Reset Port CommandsPort Commands Description Server Information Commands Server Information Commands DescriptionCL Port S1 JOB SET Port S1 Size 7SH Serial Serial server Firmware Ver .19 Boot Ver 16Mbit FlashSerial number is Service Commands Service Commands DescriptionSET Servi service name FRM SET Servi service name FRSSET Servi service name IP ENable DIsable SET Servi service name NAme NewnameSnmp Commands Description Snmp CommandsSET Snmp Getcomm String Commands String CommandsEnter LANGUAGE= POSTSCRIPT\0ATCP/IP Commands TCP/IP CommandsSET IP FTP SET IP HttpSET IP LPD Auto Dhcp StaticSET IP TELnet ENable DIsable SET IP TimeoutSET IP TCP SET IP TftpSH IP AutoXxxxxxS1A 9100 XxxxxxS1B 3001 Bit# Hex Value Trigger ConditionPower Configuration Commands Power ConfigurationSET Power power-level SH PowerMiscellaneous Commands Help CommandsMiscellaneous 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 Appendix G Silex Contact Information Silex Technology America, IncSilex Technology Europe GmbH Silex Technology Beijing, IncSilex Part Number Silex Contact Information Part Number 140-00192-100 Revision C-2 Silex Technology America, Inc