Silex technology SX-560 manual Gpio Trigger Commands Description, Dis

Page 60

Table 22 GPIO Trigger Commands

 

Command

 

Description

 

 

 

 

 

 

SET GPIO TRIGger [1 0 DIS] <gpio-num>

Sets a single control bit. The setting only takes

 

 

 

effect if the GPIO signal is not selected for a special

 

 

 

function operation and is configured to be an input.

 

 

 

The parameter after the TRIG keyword controls the

 

 

 

operation as follows:

 

 

 

Enable trigger if the specified GPIO signal

 

 

 

transitions from a 0 to a 1.

 

 

 

1

Enable trigger if the specified GPIO

 

 

 

 

transitions from a 1 to a 0

 

 

 

0

Enable trigger if the specified GPIO

 

 

 

 

transitions from a 0 to a 1

 

 

 

DIS

Disable all triggers for the specified GPIO

 

 

 

 

signal.

 

 

 

<gpio-num> must be in the range 1-8.

 

 

 

NOTE: Setting a trigger condition resets all

 

 

 

undefined trigger strings for triggers that are

 

 

 

enabled to the default string value.

 

 

 

NOTE: The trigger configuration is not changed by

 

 

 

a configuration reset to default.

 

 

 

 

 

 

SHOW GPIO TRIGger

Shows current GPIO trigger conditions. Note that a

 

 

 

GPIO may be enabled for two trigger conditions,

 

 

 

one for a 0 to 1 transition, and one for a 1 to 0

 

 

 

transition. If a GPIO is set for its special function,

 

 

 

no trigger is possible on that pin.

 

 

 

 

 

 

 

Example:

 

 

 

 

Local> set gpio trig 1 1

 

 

 

 

Local> set gpio trig 0 2

 

 

 

 

Local> show gpio trig

 

 

 

 

GPIO Trigger Conditions

 

 

 

 

-----------------------

 

 

 

 

trig if GPIO #1 is 1 <Trig #1>

 

 

 

trig if GPIO #2 is 0 <Trig #2>

 

 

 

GPIO #2 is set for OUTPUT

 

 

 

 

GPIO #3 is set for OUTPUT

 

 

 

 

 

 

 

 

 

 

 

 

 

Page 54

Silex

Part Number 140-00192-100

Advanced Configuration

Image 60
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 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 ExitChapter Using the SX-560 with Your Application Linux ProgrammabilityCustomizing the SX-560 User Interface Power Configuration SET DefaultSerial Port Emulator 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 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 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 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 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 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 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 Server Information Commands Server Information Commands DescriptionCL Port S1 JOB 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 FRM SET Servi service name FRSSET Servi service name IP ENable DIsable SET Servi service name NAme NewnameSnmp Commands Snmp Commands DescriptionSET 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