Lantronix 900-332 manual 1Bh = response to command 1Bh 03h, 00h, 00h, 00h =

Page 71

Configurable Pins

bits 2 to 8 and 10 are 0 configured for a special function and are unavailable for control or monitoring by the user.

Example 2: PC sends command 1Bh to change the current states of GPIO 0 and 1 (assuming they are configured as outputs).

PC -> WiPort: 1Bh, 01h, 00h, 02h, 00h, 01h, 00h, 00h, 00h

WiPort -> PC: 1Bh, 03h, 00h, 00h, 00h

Command details:

1Bh = command 1Bh

01h, 00h, 00h, 00h = the mask that determines which GPIOs will be changed.

Bit 0 and 9 are 1 GPIO0 and GPIO9 will be changed. bit 1 is 0 GPIO1 will remain the same.

01h, 00h, 00h, 00h = the new states

bit 0 is 1 GPIO0 will become 1.

bit 1 is ignored since it is masked out. bit 0 is 0 GPIO9 will become 0..

Response details:

1Bh = response to command 1Bh 03h, 00h, 00h, 00h =

bit 0 is 1 GPIO0 = 1 bit 1 is 1 GPIO1 = 1 bit 9 is 0 GPIO9 = 0

WiPort™ User Guide

6-5

Image 71
Contents WiPort User Guide Page Sales Offices Lantronix Corporate HeadquartersTechnical Support 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 Server Configuration Configuration using DeviceInstallerAccessing WiPort using DeviceInstaller Wlan Configuration Configuration Using DeviceInstaller Host List ConfigurationOEM Pin Configuration Channel 1 and Channel 2 Configuration Passive Connection Common I/F Mode SettingSerial Settings UDP Datagram ModeActive Connection Buffer Flushing DisconnectionConnection 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 ConfigurationHost Information Serial SettingsRetry Settings 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 Protocol Connect Mode Passive ConnectionConnect Mode Active Connection Common Options Endpoint ConfigurationDisconnect Mode Datagram Mode Connection Settings UDPMail Server IP Address Configure the following fieldsChange Address Table Conditions Configurable PinsEnable Serial Trigger RecipientsMessage Properties Enter or modify the following fields Ad Hoc SettingsWireless Network Security Configure or modify the following fields for each pin Advanced SettingsUpdating Settings Page Telnet Access Configuration via Serial Mode or Telnet PortAccessing Setup Mode Click OK. The following information displays Serial Port AccessConfiguration Via Serial Mode or Telnet Port 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 ConnectionAutostart Automatic Connection Manual ConnectionManual Connection Address Example Hostlist Example HostlistMessage Meaning Modem ModeDatagram Type Function Modem Mode CommandModem Mode Commands Remote Port Modem Mode Function CommandRemote IP Address 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 Wlan Settings Channel 1 ConfigurationChannel 2 Configuration 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 FirmwareTroubleshooting Using Tftp Command Line InterfaceRecovering the Firmware Using the Serial Port Problem/Message Reason Solution TroubleshootingProblems and Error Messages Caps Lock is not on Please try againDevice Server message General DeviceInstaller SettingsTechnical Support Europe, Middle East, and Africa Technical Support