Lantronix 900-332 manual Configurable Pins, Gpio Pins, Control Protocol, Features, Guidelines

Page 67

6: Configurable Pins

This chapter includes the following topics:

Topic

GPIO Pins

Control Protocol

Examples

Page

6-1

6-1

6-4

GPIO Pins

The WiPort has eleven pins configurable for General Purpose I/O (GPIO).

Note: In addition, configure these pins for serial port control lines, such as CTS, RTS, modem_control_in, and DCD, and diagnostic outputs to LED, using DeviceInstaller.

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

Set the functions for the three pins independently and in any combination. The initial directions (input/output) and active levels (low or high active) 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.

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 1Kbps.

Control Protocol

The GPIO control protocol is a simple, proprietary protocol, which is described below.

Guidelines

The GPIO control protocol is described from the PC side. Send means from PC to WiPort. Response comes from WiPort to PC.

WiPort™ User Guide

6-1

Image 67
Contents WiPort User Guide Page Technical Support Lantronix Corporate HeadquartersSales Offices Disclaimer and Revisions Contents Expert Settings5-20 ContentsAccessing Setup Mode Wlan Settings5-19Control Protocol Factory DefaultsExit Configuration Mode Gpio PinsPage Remaining chapters in this guide include Using This GuidePurpose and Audience Chapter SummaryAdditional Documentation Using This GuideCapabilities IntroductionIntroduction Configuration MethodsApplications Protocol SupportPort Numbers Addresses and Port NumbersHardware Address IP AddressPage Accessing WiPort using DeviceInstaller Configuration using DeviceInstallerServer Configuration Wlan Configuration OEM Pin Configuration Host List ConfigurationConfiguration Using DeviceInstaller Channel 1 and Channel 2 Configuration Passive Connection Common I/F Mode SettingSerial Settings UDP Datagram ModeActive Connection Connection DisconnectionBuffer Flushing Packing Email ConfigurationUnit Name TriggersPage Accessing WiPort using Web-Manager Configuration using Web-ManagerConfiguration Using Web-Manager Network ConfigurationSelect Obtain IP address automatically Automatic IP Address ConfigurationStatic IP Address Configuration Click the OK button when finishedSubnet Mask Select Use the following IP configurationDefault Gateway IP AddressAdvanced Server ConfigurationRetry Settings Serial SettingsHost Information Channel Port SettingsDisable Serial Port Available fields, enter the following informationFlush Output Buffer Network to Serial Connection Settings TCPPack Control Flush Input Buffer Serial to NetworkConnect Mode Active Connection Connect Mode Passive ConnectionConnect Protocol Disconnect Mode Endpoint ConfigurationCommon Options Datagram Mode Connection Settings UDPChange Address Table Configure the following fieldsMail Server IP Address Conditions Configurable PinsEnable Serial Trigger RecipientsMessage Properties Wireless Network Security Ad Hoc SettingsEnter or modify the following fields Configure or modify the following fields for each pin Advanced SettingsUpdating Settings Page Accessing Setup Mode Configuration via Serial Mode or Telnet PortTelnet Access Configuration Via Serial Mode or Telnet Port Serial Port AccessClick OK. The following information displays Set the Gateway IP Address Set the IP AddressNetwork Class Host Bits Netmask Change Telnet Configuration PasswordSet the Netmask Dhcp NameInterface Mode Options Interface ModeFollowing table displays available I/F Mode options Mode OptionFlow Control Option Common I/F Mode Setting Binary HexFlow Port NumberPort Numbers Reserved for Connect ModeEnter Connect Mode options in hexadecimal notation Connect Mode OptionResponse Incoming ConnectionManual Connection Address Example Manual ConnectionAutostart Automatic Connection Hostlist Example HostlistDatagram Type Modem ModeMessage Meaning Modem Mode Commands Modem Mode CommandFunction Remote IP Address Modem Mode Function CommandRemote Port 11. Flush Mode Options Flush ModeDisconnect Mode Option 10. Disconnect Mode OptionsOption Telnet Terminal Type DisConnTime Inactivity TimeoutChannel Port Password SendChar 1 and SendChar2Mail Server Trigger Unit NameDomain Name RecipientFind Network Name Wlan SettingsEnable Wlan Enable Ad Hoc Network CreationSecurity Settings Expert SettingsDisable Port 77FE Hex Disable SnmpDisable Telnet Setup Disable Tftp Firmware UpgradeFactory Defaults Channel 2 Configuration Channel 1 ConfigurationWlan Settings Email Settings Exit Configuration ModeExpert Settings Security SettingsControl Protocol Configurable PinsGpio Pins FeaturesCommand 10h, Get Functions CommandsConfigurable Pins Byte 0 Command TypesCommand 19h, Set Directions Command 11h, Get DirectionsCommand 12h, Get Active Levels Command 13h, Get Current StatesExamples Command 1Ah, Set Active LevelsCommand 1Bh, Set States Command details1Bh = response to command 1Bh 03h, 00h, 00h, 00h = Page To enter Monitor Mode locally Monitor ModeEntering Monitor Mode via the Serial Port Entering Monitor Mode via the Network PortMonitoring the Network Monitor Mode CommandsFollowing commands are available in Monitor Mode Command Command Name FunctionROM File FWX File Using Tftp Graphical User InterfaceUpdating Firmware Obtaining Firmware Reloading FirmwareRecovering the Firmware Using the Serial Port Using Tftp Command Line InterfaceTroubleshooting Problems and Error Messages TroubleshootingProblem/Message Reason Solution Caps Lock is not on Please try againDevice Server message General DeviceInstaller SettingsTechnical Support Europe, Middle East, and Africa Technical Support