Lantronix 900-332 manual Command 11h, Get Directions, Command 12h, Get Active Levels

Page 69

Configurable Pins

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.

Command 19h, Set Directions

Send:

2parameters Bytes 1-4: Mask

Bit X 1 means the direction for GPIO X will be updated with the value in the second parameter.

0 means the direction for that GPIO will not change.

Bytes 5-8: New Directions

Bit X 1 means GPIO X will become an output.

0 means it will become an input.

Response:

1 parameter

WiPort™ User Guide

6-3

Image 69
Contents WiPort User Guide Page Lantronix Corporate Headquarters Technical SupportSales Offices Disclaimer and Revisions Contents Accessing Setup Mode ContentsWlan Settings5-19 Expert Settings5-20Exit Configuration Mode Factory DefaultsGpio Pins Control ProtocolPage Purpose and Audience Using This GuideChapter Summary Remaining chapters in this guide includeAdditional Documentation Using This GuideCapabilities IntroductionApplications Configuration MethodsProtocol Support IntroductionHardware Address Addresses and Port NumbersIP Address Port NumbersPage Configuration using DeviceInstaller Accessing WiPort using DeviceInstallerServer Configuration Wlan Configuration Host List Configuration OEM Pin ConfigurationConfiguration Using DeviceInstaller Channel 1 and Channel 2 Configuration Serial Settings Common I/F Mode SettingUDP Datagram Mode Passive ConnectionActive Connection Disconnection ConnectionBuffer Flushing Packing Email ConfigurationUnit Name TriggersPage Accessing WiPort using Web-Manager Configuration using Web-ManagerConfiguration Using Web-Manager Network ConfigurationStatic IP Address Configuration Automatic IP Address ConfigurationClick the OK button when finished Select Obtain IP address automaticallyDefault Gateway Select Use the following IP configurationIP Address Subnet MaskAdvanced Server ConfigurationSerial Settings Retry SettingsHost Information Disable Serial Port Port SettingsAvailable fields, enter the following information ChannelPack Control Connection Settings TCPFlush Input Buffer Serial to Network Flush Output Buffer Network to SerialConnect Mode Passive Connection Connect Mode Active ConnectionConnect Protocol Endpoint Configuration Disconnect ModeCommon Options Datagram Mode Connection Settings UDPConfigure the following fields Change Address TableMail Server IP Address Enable Serial Trigger Configurable PinsRecipients ConditionsMessage Properties Ad Hoc Settings Wireless Network SecurityEnter or modify the following fields Configure or modify the following fields for each pin Advanced SettingsUpdating Settings Page Configuration via Serial Mode or Telnet Port Accessing Setup ModeTelnet Access Serial Port Access Configuration Via Serial Mode or Telnet PortClick OK. The following information displays Set the Gateway IP Address Set the IP AddressSet the Netmask Change Telnet Configuration PasswordDhcp Name Network Class Host Bits NetmaskFollowing table displays available I/F Mode options Interface ModeMode Option Interface Mode OptionsFlow Common I/F Mode Setting Binary HexPort Number Flow Control OptionEnter Connect Mode options in hexadecimal notation Connect ModeConnect Mode Option Port Numbers Reserved forResponse Incoming ConnectionManual Connection Manual Connection Address ExampleAutostart Automatic Connection Hostlist Example HostlistModem Mode Datagram TypeMessage Meaning Modem Mode Command Modem Mode CommandsFunction Modem Mode Function Command Remote IP AddressRemote Port Disconnect Mode Option Flush Mode10. Disconnect Mode Options 11. Flush Mode OptionsOption Channel Port Password DisConnTime Inactivity TimeoutSendChar 1 and SendChar2 Telnet Terminal TypeMail Server Domain Name Unit NameRecipient TriggerEnable Wlan Wlan SettingsEnable Ad Hoc Network Creation Find Network NameSecurity Settings Expert SettingsDisable Telnet Setup Disable SnmpDisable Tftp Firmware Upgrade Disable Port 77FE HexFactory Defaults Channel 1 Configuration Channel 2 ConfigurationWlan Settings Expert Settings Exit Configuration ModeSecurity Settings Email SettingsGpio Pins Configurable PinsFeatures Control ProtocolConfigurable Pins CommandsByte 0 Command Types Command 10h, Get FunctionsCommand 12h, Get Active Levels Command 11h, Get DirectionsCommand 13h, Get Current States Command 19h, Set DirectionsCommand 1Bh, Set States Command 1Ah, Set Active LevelsCommand details Examples1Bh = response to command 1Bh 03h, 00h, 00h, 00h = Page Entering Monitor Mode via the Serial Port Monitor ModeEntering Monitor Mode via the Network Port To enter Monitor Mode locallyFollowing commands are available in Monitor Mode Monitor Mode CommandsCommand Command Name Function Monitoring the NetworkUpdating Firmware Using Tftp Graphical User InterfaceObtaining Firmware Reloading Firmware ROM File FWX FileUsing Tftp Command Line Interface Recovering the Firmware Using the Serial PortTroubleshooting Troubleshooting Problems and Error MessagesProblem/Message Reason Solution Caps Lock is not on Please try againDevice Server message General DeviceInstaller SettingsTechnical Support Europe, Middle East, and Africa Technical Support