Lantronix 900-618 manual Command 10h, Get Functions, Command 11h, Get Directions, Send

Page 64

9: GPIO Interface

Command 10h, Get Functions

Send:

No parameters

Response:

1 parameter

Bytes 1-4: Functions

Bit X 1 means general purpose I/O available to the user.

0 means dedicated function (e.g., serial flow control, diagnostics) for configurable pin X.

Command 11h, Get Directions

Send:

No parameters

Response:

1 parameter

Bytes 1-4: Directions

Bit X 1 means GPIO X is an output. 0 means it is an input.

Command 12h, Get Active Levels

Send:

No parameters

Response:

1 parameter

Bytes 1-4: Active levels

Bit X 1 means GPIO X is active low (0V when active, 3.3V when inactive). 0 means it is active high (3.3V when active, 0V when inactive).

Command 13h, Get Current States

Send:

No parameters

Response:

1parameter Bytes 1-4: States

Bit X 1 means GPIO X is active 0 means it is inactive.

xPico User Guide

64

Image 64
Contents User Guide Lantronix Corporate Headquarters Technical Support Sales OfficesDisclaimer Table of Contents Configuration via Telnet or Serial Port Setup Mode Setup Mode Advanced Settings Gpio Interface List of Tables List of FiguresPurpose and Audience Using This GuideChapter Summary Additional Documentation XPico Integration GuideCapabilities IntroductionApplications Configuration Methods Protocol SupportAddresses and Port Numbers Hardware AddressIP Address Product Information LabelPort Numbers Using DeviceInstaller Installing DeviceInstallerTo install DeviceInstaller Assigning an IP AddressAccessing the xPico Using DeviceInstaller To view the units current settingsSelect Assign a specific IP address and click Next NameDhcp Device Name GroupComments Device FamilyFirmware Upgradeable Supports ConfigurablePins Supports Http SetupConfiguration Using Web Manager Accessing Web-Manager Using DeviceInstallerNetwork Configuration Web-Manager Login WindowTo assign an IP address automatically Network ModeSelect Obtain IP address automatically Static IP Address Configuration Ethernet ConfigurationSelect Use the following IP configuration To assign an IP address manuallyTo configure the xPico’s device server settings Auto NegotiateServer Configuration Host List ConfigurationAdvanced Channel 1 and 2 Configuration Retry SettingsTo configure the xPico’s host list Host InformationSerial Settings Port SettingsTo configure the channel’s serial settings ChannelPack Control Flush Input Buffer Serial to NetworkConnection Settings TCP To configure a channel’s TCP settingsFlush Output Buffer Network to Serial At Time of DisconnectTCP Connection Settings Connect Mode Passive Connection Connect Mode Active ConnectionEndpoint Configuration Connect ProtocolDisconnect Mode Connection Settings UDPTo configure a channel’s UDP settings Datagram Mode Datagram TypeUse Broadcast Device Address TableConfigurable Pin Functions Configurable Pin SettingsTo configure the xPico’s Configurable Pins Apply Settings Apply DefaultsSerial Channel 1 Status LED Serial Channel 2 Status LEDAccessing Setup Mode Configuration via Telnet or Serial Port Setup ModeTelnet Connection Serial Port Connection To establish a Telnet connectionExiting Setup Mode To exit setup modeSetup Mode Server Configuration Server Configuration OptionBootP/DHCP/AutoIP Options IP AddressChange Telnet/Web-Manager Password Set Gateway IP AddressNetmask Number of Bits for Host Part Set DNS Server IP AddressDhcp Name Channel 1 Option 1 or Channel 2 Option Setup Mode Channel ConfigurationBaudrate Interface Mode Interface Mode OptionsRS232 Interface Mode Settings FlowConnect Mode Port NumberFlow Control Options Reserved Port NumbersConnect Mode Options Incoming ConnectionIncoming Connection ResponseResponse Active StartupManual Connection Manual Connection Address ExampleTo enable the hostlist Hostlist OptionDatagram Type Modem ModeDirected UDP Modem Mode Commands Numeric ResponseShow IP addr after Ring Send the Escape Sequence +++ in Modem ModeAuto Increment Source Port Disconnect Mode Options Remote IP AddressFlush Mode Buffer Flushing Pack ControlTrailing Characters Packing IntervalSend Characters DisConnTime Inactivity Timeout Channel Port PasswordSend Characters Telnet Terminal TypeExpert Settings Option Setup Mode Advanced SettingsTCP Keepalive time in seconds ARP Cache timeout in seconds Disable Monitor Mode at bootupCPU Performance Http Port NumberSecurity Settings Option TCP Re-Transmission TimeoutEnable alternate MAC Ethernet Connection TypeDisable Telnet Setup Disable SnmpSnmp Community Name Disable Tftp Firmware Upgrade Disable Port 77FE HexDisable Web Server Disable Web SetupEnable Encryption To configure AES encryption on the xPicoDefault Settings Option Enable Enhanced PasswordDisable Port 77F0 Hex Channel 1 and Channel 2 Configuration DefaultsExpert Settings Defaults Security Settings DefaultsHostlist retry timeout Start character for serial channelFeatures Configurable PinsGpio Interface Commands Byte 0 Command TypesControl Protocol GuidelinesCommand 10h, Get Functions Command 11h, Get DirectionsCommand 12h, Get Active Levels Command 13h, Get Current StatesCommand 19h, Set Directions Command 1Ah, Set Active LevelsCommand 1Bh, Set States Command detailsResponse details Firmware Upgrades Using Tftp Graphical User InterfaceObtaining Firmware Reloading Firmware To download new firmware from a computerUsing Tftp Command Line Interface Tftp WindowTo recover firmware Monitor Mode Entering Monitor Mode Using the Serial PortEntering Monitor Mode Using the Network Port Monitor Mode CommandsMonitor Mode Commands G0, G1, ....,Ge, GfS0, S1,...,Se, Sf ExampleCommand Response Codes Response MeaningTroubleshooting Problems and Error MessagesCaps Lock is not on Lock onTroubleshooting Technical Support US Technical SupportTechnical Support Europe, Middle East, and Africa Binary to Hexadecimal Conversions Converting Binary to HexadecimalConversion Table Scientific CalculatorBinary to Hexadecimal Conversions Compliance RoHS Notice