Lantronix 900-618 manual Gpio Interface, Configurable Pins, Features

Page 62

9. GPIO Interface

Configurable Pins

The xPico has eight pins (CP1-8) that you can configure for General Purpose I/O (GPIO).

Note: You can also configure the pins for serial port control lines, such as hardware control, modem control (CTS, RTS, DTR, and DCD), and diagnostic outputs to LED, using DeviceInstaller.

You can use these GPIO pins to control devices such as relays, servers, lights, monitor switches, sensors, and even processes such as data transfer.

You can set the functions for the eight pins independently and in any combination. The initial directions (input/output) and active levels (active low or high) at boot up can also be configured through 77FE, for example, by using DeviceInstaller.

This chapter describes how the directions, active levels, and states can be dynamically controlled and probed through special port 77F0.

The configurable pins default configuration is:

Function: General Purpose Input

Active Level: Active Low

Features

TCP and UDP can be used.

The protocol supports up to 32 GPIO for future products.

Function configuration can be retrieved.

Input or output selection can be retrieved and controlled.

Active low or high selection can be retrieved and controlled.

Active or inactive selection can be retrieved and controlled.

77F0 can be disabled.

Every change of state (active/inactive) requires a command over TCP or UDP, and thus is not very fast. If you use this port for data transfer, the throughput is low, usually up to 1 Kbps.

xPico User Guide

62

Image 62
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 FiguresChapter Summary Using This GuidePurpose and Audience Additional Documentation XPico Integration GuideApplications IntroductionCapabilities Addresses and Port Numbers Configuration MethodsProtocol Support Hardware AddressPort Numbers Product Information LabelIP Address To install DeviceInstaller Using DeviceInstallerInstalling DeviceInstaller Assigning an IP AddressSelect Assign a specific IP address and click Next Accessing the xPico Using DeviceInstallerTo view the units current settings NameComments Dhcp Device NameGroup Device FamilyPins Firmware UpgradeableSupports Configurable Supports Http SetupConfiguration Using Web Manager Accessing Web-Manager Using DeviceInstallerNetwork Configuration Web-Manager Login WindowSelect Obtain IP address automatically Network ModeTo assign an IP address automatically Select Use the following IP configuration Static IP Address ConfigurationEthernet Configuration To assign an IP address manuallyTo configure the xPico’s device server settings Auto NegotiateAdvanced Host List ConfigurationServer Configuration To configure the xPico’s host list Channel 1 and 2 ConfigurationRetry Settings Host InformationTo configure the channel’s serial settings Serial SettingsPort Settings ChannelPack Control Flush Input Buffer Serial to NetworkFlush Output Buffer Network to Serial Connection Settings TCPTo configure a channel’s TCP settings At Time of DisconnectTCP Connection Settings Endpoint Configuration Connect Mode Passive ConnectionConnect Mode Active Connection Connect ProtocolTo configure a channel’s UDP settings Connection Settings UDPDisconnect Mode Use Broadcast Datagram ModeDatagram Type Device Address TableTo configure the xPico’s Configurable Pins Configurable Pin SettingsConfigurable Pin Functions Serial Channel 1 Status LED Apply SettingsApply Defaults Serial Channel 2 Status LEDTelnet Connection Configuration via Telnet or Serial Port Setup ModeAccessing Setup Mode Serial Port Connection To establish a Telnet connectionExiting Setup Mode To exit setup modeBootP/DHCP/AutoIP Options Setup Mode Server ConfigurationServer Configuration Option IP AddressNetmask Number of Bits for Host Part Change Telnet/Web-Manager PasswordSet Gateway IP Address Set DNS Server IP AddressDhcp Name Baudrate Setup Mode Channel ConfigurationChannel 1 Option 1 or Channel 2 Option RS232 Interface Mode Settings Interface ModeInterface Mode Options FlowFlow Control Options Connect ModePort Number Reserved Port NumbersIncoming Connection Connect Mode OptionsIncoming Connection ResponseResponse Active StartupManual Connection Manual Connection Address ExampleTo enable the hostlist Hostlist OptionDirected UDP Modem ModeDatagram Type Modem Mode Commands Numeric ResponseAuto Increment Source Port Send the Escape Sequence +++ in Modem ModeShow IP addr after Ring Disconnect Mode Options Remote IP AddressFlush Mode Buffer Flushing Pack ControlSend Characters Packing IntervalTrailing Characters Send Characters DisConnTime Inactivity TimeoutChannel Port Password Telnet Terminal TypeTCP Keepalive time in seconds Setup Mode Advanced SettingsExpert Settings Option CPU Performance ARP Cache timeout in secondsDisable Monitor Mode at bootup Http Port NumberEnable alternate MAC Security Settings OptionTCP Re-Transmission Timeout Ethernet Connection TypeSnmp Community Name Disable SnmpDisable Telnet Setup Disable Web Server Disable Tftp Firmware UpgradeDisable Port 77FE Hex Disable Web Setup Enable Encryption To configure AES encryption on the xPicoDisable Port 77F0 Hex Default Settings OptionEnable Enhanced Password Channel 1 and Channel 2 Configuration DefaultsHostlist retry timeout Expert Settings DefaultsSecurity Settings Defaults Start character for serial channelGpio Interface Configurable PinsFeatures Control Protocol CommandsByte 0 Command Types GuidelinesCommand 12h, Get Active Levels Command 10h, Get FunctionsCommand 11h, Get Directions Command 13h, Get Current StatesCommand 1Bh, Set States Command 19h, Set DirectionsCommand 1Ah, Set Active Levels Command detailsResponse details Obtaining Firmware Reloading Firmware Firmware UpgradesUsing Tftp Graphical User Interface To download new firmware from a computerUsing Tftp Command Line Interface Tftp WindowTo recover firmware Entering Monitor Mode Using the Network Port Monitor ModeEntering Monitor Mode Using the Serial Port Monitor Mode CommandsS0, S1,...,Se, Sf Monitor Mode CommandsG0, G1, ....,Ge, Gf ExampleCommand Response Codes Response MeaningTroubleshooting Problems and Error MessagesCaps Lock is not on Lock onTroubleshooting Technical Support Europe, Middle East, and Africa Technical SupportTechnical Support US Conversion Table Binary to Hexadecimal ConversionsConverting Binary to Hexadecimal Scientific CalculatorBinary to Hexadecimal Conversions Compliance RoHS Notice