WiPort™ User Guide Part Number 900-332 Revision F November 2005
Copyright and Trademark © 2005, Lantronix. All rights reserved. No part of the contents of this book may be transmitted or reproduced in any form or by any means without the written permission of Lantronix. Printed in the United States of America. WiPort, with its patent-pending technology, is a trademark of Lantronix. Ethernet is a trademark of XEROX Corporation. UNIX is a registered trademark of The Open Group.
Disclaimer and Revisions This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications.
Contents Copyright and Trademark _________________________________________________2 Contacts ______________________________________________________________2 Disclaimer and Revisions _________________________________________________3 1: Using This Guide 8 Purpose and Audience ___________________________________________________8 Chapter Summary _______________________________________________________8 Additional Documentation _________________________________________________9 2: Introduction 10 Capabilit
Contents Server Configuration ____________________________________________________37 Set the IP Address __________________________________________________________37 Set the Gateway IP Address___________________________________________________37 Set the Netmask ____________________________________________________________37 Change Telnet Configuration Password __________________________________________38 DHCP Name _______________________________________________________________38 Channel 1 and Channel 2 Confi
Contents SMTP Port Number__________________________________________________________59 MTU Size _________________________________________________________________59 Alternate MAC Address ______________________________________________________59 Ethernet Connection Type ____________________________________________________59 Security Settings _______________________________________________________59 Disable SNMP______________________________________________________________60 SNMP Community Name ________________
Contents Technical Support ______________________________________________________77 WiPort™ User Guide 7
1: Using This Guide Purpose and Audience This guide provides the information needed to configure, use and update the WiPortTM and is intended for software developers and system integrators who are embedding the WiPort in their designs. This User Guide covers WiPort Device Server versions WP2001000-01, WP2002000-01, WP2004000-01 (WiPort-485), and WP2001000G-02 (WiPort-G). Note: For the WiPort model WP2001000M-02, additional information can be found in the Modbus Protocol User Guide located at www.lantronix.
Using This Guide Additional Documentation The following guides are available on the product CD and the Lantronix web site (www.lantronix.com) WiPort Development Kit Quick Start Guide Briefly explains the basics to get the WiPort up and running. WiPort Integration Guide Provides information about the WiPort hardware and integrating the WiPort into another product.
2: Introduction WiPort is a wireless embedded device server that provides a network-enabling solution based on the IEEE 802.11b wireless standard. WiPort allows Original Equipment Manufacturers (OEMs) to add wireless connectivity to their products by incorporating it onto a circuit board. The WiPort functions independently of a PC, providing a fully integrated solution that combines a processor, memory, 802.11b, 802.11g transceiver, and dual high-speed serial ports into a single compact module.
Introduction Remote sensing CNC controllers Data collection devices Telecommunications equipment Data display devices Security alarms and access control devices Time clocks and terminals Protocol Support The WiPort device server uses the TCP/IP protocol stack for network communications. Other supported protocols include: ARP, UDP, TCP, ICMP, Telnet, TFTP, AutoIP, DHCP, HTTP, and SNMP for network communications and management. TCP, UDP, and Telnet for connections to the serial port.
Introduction IP Address Every device connected to an IP network must have a unique IP address. This address is used to reference the specific unit. The WiPort is automatically assigned an IP address on DHCP-enabled networks as it is DHCP-enabled by default. Port Numbers Every TCP connection and every UDP datagram is defined by a destination IP address and a port number. For example, a Telnet application commonly uses port number 23. A port number is similar to an extension on a phone system.
3: Using DeviceInstaller This chapter covers the steps for viewing the WiPort device server’s properties and device details. Accessing WiPort using DeviceInstaller Note: Make note of the MAC address. It is needed to locate the WiPort using DeviceInstaller. For more information on the hardware address, see Hardware Address on page 11. Follow the instructions on the product CD to install and run DeviceInstaller. 1. Click Start Programs Lantronix DeviceInstaller DeviceInstaller. 2.
Using DeviceInstaller Firmware Version Non-configurable field. Displays the firmware currently installed on the WiPort. Online Status Non-configurable field. Displays the WiPort’s status as online, offline, unreachable (the WiPort is on a different subnet), or busy (the WiPort is currently performing a task). Telnet Port Non-configurable field. Displays the WiPort’s port for telnet sessions. WebPort Non-configurable field. Displays the WiPort’s port for WebManager configuration.
Using DeviceInstaller Supports 920K Baudrate Non-configurable field. WiPort supports baud rates up to 920K. Supports Wired Ethernet Non-configurable field. WiPort supports wired Ethernet. Supports HTTP Setup Non-configurable field. WiPort supports HTTP setup. Supports 230K Baudrate Non-configurable field. WiPort supports a baud rate of 230K. Supports Email Triggers Non-configurable field. WiPort supports email triggers. Supports GPIO Communication Non-configurable field.
4: Configuration Using Web-Manager This chapter describes how to configure the WiPort using Web-Manager, Lantronix’s browser-based configuration tool. The unit’s configuration is stored in nonvolatile memory and is retained without power. The unit performs a reset after the configuration is changed and stored. Accessing WiPort Web-Manager using DeviceInstaller Note: Make note of the MAC address. It is needed to locate the WiPort using DeviceInstaller.
Configuration Using Web-Manager Figure 4-1. Web-Manager The main menu is displayed in the left side of the Web-Manager window. Note: Alternatively, access the WiPort’s Web-Manager if it is connected to the network by entering its IP address in a web browser. Network Configuration The unit’s network values display upon selecting Network from the main menu. The following sections describe the configurable parameters within the Network configuration menu.
Configuration Using Web-Manager Figure 4-2. Network Settings Automatic IP Address Configuration To automatically assign an IP address and its network configuration: 1. Click Network from the main menu. 2. Select Obtain IP address automatically. 3. Enter the following (as necessary): BOOTP Select Enable to permit the Bootstrap Protocol (BOOTP). The BOOTP server automatically assigns the IP address from a pool of addresses. DHCP Select Enable to permit Dynamic Host Configuration Protocol (DHCP).
Configuration Using Web-Manager Static IP Address Configuration To manually assign an IP address and its network configuration: 1. Click Network from the main menu. 2. Select Use the following IP configuration. 3. Enter the following (as necessary): IP Address If DHCP is not used to assign IP addresses, enter it manually. The IP address must be set to a unique value in the network. Subnet Mask A subnet mask defines the number of bits taken from the IP address that are assigned for the host part.
Configuration Using Web-Manager To configure the WiPort’s device server settings: 1. Click Server from the main menu. 2. Configure or modify the following fields: Server Configuration Telnet Password Enter the password required for Telnet access. Retype Password Re-enter the password required for Telnet access. Advanced ARP Cache Timeout When the unit communicates with another device on the network, it adds an entry into its ARP table.
Configuration Using Web-Manager Figure 4-4. Hostlist Settings 2. Enter or modify the following fields from the Hostlist Settings window: Retry Settings Retry Counter Enter the value for the number of times the WiPort should attempt to retry connecting to the host list. Retry Timeout Enter the duration (in seconds) the WiPort should abandon attempting a connection to the host list. Host Information Host Address Enter or modify the host’s IP address. Port Enter the target port number.
Configuration Using Web-Manager disables communication through the serial port. Port Settings Protocol Select the protocol type from the pull down menu for the selected channel. RS-422/485 4-wire and RS-485 2-wire options are available on the WiPort-485 only. Flow Control Flow control manages data flow between devices in a network to ensure it is processed efficiently. Too much data arriving before a device is prepared to manage it causes lost or retransmitted data.
Configuration Using Web-Manager With Passive Connect Select Yes to clear the input buffer with a connection initiated from the network to the device. At Time of Disconnect Select Yes to clear the input buffer when the network connection to or from the device is disconnected. Flush Output Buffer (Network to Serial) With Active Connect Select Yes to clear the output buffer with a connection that is initiated from the device to the network.
Configuration Using Web-Manager Figure 4-6. TCP Connection Settings Connect Mode: Passive Connection Accept Incoming Select Yes to accept incoming connections. Password Required Determines whether a password is required for an incoming passive connection. Field is not available when a password is set for Telnet mode. Password If Password Required was set to Yes, enter the password for passive connections. Connect Mode: Active Connection Active Connect Select None to disable Active Connect.
Configuration Using Web-Manager receives a specific start character from the serial port. The default start character is carriage return. Manual Connection: Attempts to connect when directed by a command string received from the serial port. Auto Start: Automatically connects to the remote IP address and port after booting up. Start Character If Active Connect is set to With Start Character, enter the start character in this field.
Configuration Using Web-Manager None for no LED output. Disconnect Mode On Mdm_Ctrl_In Drop Set to Yes for the network connection to or from the serial port to drop when modem_control_in transitions from a high state to a low state. Hard Disconnect When set to Yes, the TCP connection closes even if the remote site does not acknowledge the disconnect request. With EOT Choose Yes to drop the connection when Ctrl-D or Hex 04 is detected.
Configuration Using Web-Manager Figure 4-7. UDP Connection Settings Datagram Mode Datagram Type Configures remote IP or network broadcast address and the remote port. Enter 01 for directed or broadcast UDP. Accept Incoming Select Yes to accept incoming UDP datagrams. Endpoint Configuration Local Port Enter the local port number. Remote Port Enter the port number of the remote device. Remote Host Enter the IP address of the remote device.
Configuration Using Web-Manager a trigger. Each trigger is independent of the others. Each condition within an individual trigger must be met before the unit will send the Email. To configure the WiPort’s email settings: 1. From the main menu, select Email to open the Email Settings window. Figure 4-8. Email Settings 2. Configure the following fields: Server IP Address Enter the IP address of the mail server. Domain Name Enter the Email server’s domain name.
Configuration Using Web-Manager Figure 4-9. Email Trigger Settings 2. Configure the following fields: Conditions Configurable Pins Select the condition from the pull down menu for the configurable pins. Repeat for each Trigger Input field. Enable Serial Trigger Input When selected, specified serial communications count as a trigger input. Channel Select the channel prompting the trigger. Data Size Select the data size prompting the trigger.
Configuration Using Web-Manager 1. Select WLAN from the main menu to open the WLAN Settings window. Figure 4-10.
Configuration Using Web-Manager 2. Enter or modify the following fields: Network Interface Use the pull down menu to select a WLAN interface or an Ethernet interface. Note: Fields on this page are not modifiable when Ethernet is selected. Wireless Network Configuration Network Name Enter the name of the wireless network (SSID). The WiPort connects to this wireless network. Network Type Select Infrastructure or Ad-Hoc. Channel Configurable only when Network Type is set to Ad-Hoc.
Configuration Using Web-Manager string if Passphrase is selected as the Key Type. Passphrase input is not the same as ASCII input Advanced Settings Data Rate WiPort permits the control of the data transmission rate. Click the Auto check box to allow the WiPort to automatically set the data rate (or leave unchecked to manually set the transmission rate). The default rate is 11 Mbps. If the Auto check box is selected, choose the data rate from the drop down menu. This is the WiPort’s maximum data rate.
Configuration Using Web-Manager Figure 4-11. Configurable Pins Settings 2. Configure or modify the following fields for each pin: Function From the pull down menu, select the purpose of the specified pin. See Configurable Pin Functions for a description of each available function. Active Level Select the signal active level (Low or High). Direction Select whether the pin inputs or outputs.
Configuration Using Web-Manager system default during bootup. Used when network access is impossible on account of improper configuration. RS-485 Select out Selects between RS-232 and RS-485 line drivers. Applies to WiPort-485 only. RS-485 2 Wire out Selects 2-wire line drivers. Usable as a half/full duplex selector. Applies to WiPort-485 only. RS-422/485 4 Wire out Selects 4-wire line drivers. Applies to WiPort-485 only.
5: Configuration via Serial Mode or Telnet Port Configure the unit so that it can communicate on a network with your serial device. As an alternative to Web-Manager, the WiPort unit is configurable using a terminal program to access the serial port locally. Using this terminal program to respond to prompts is referred to as the Setup Mode. A Telnet connection may also be used to configure the unit over the network. The unit’s configuration is stored in nonvolatile memory and is retained without power.
Configuration via Serial Mode or Telnet Port Figure 5-2. Setup Menu Options Change Setup: 0 Server 1 Channel 1 2 Channel 2 3 Email 4 WLAN 5 Expert 6 Security 7 Defaults 8 Exit without save 9 Save and exit Your choice ? 5. Select an option on the menu by entering the number of the option in the Your choice ? field and pressing Enter. View the current configuration by pressing Enter from the Change Setup menu. To enter a value for a parameter, type the value and press Enter.
Configuration via Serial Mode or Telnet Port 6 7 8 9 Security Defaults Exit without save Save and exit Your choice ? 5. Select an option on the menu by entering the number of the option in the Your choice ? field and pressing Enter. View the current configuration by pressing Enter from the Change Setup menu. To enter a value for a parameter, type the value and press Enter. To confirm a current value, press Enter (without inputted parameters). 6.
Configuration via Serial Mode or Telnet Port Table 5-1. Standard IP Network Netmasks Representing Host Bits Network Class Host Bits Netmask A 24 255.0.0.0 B 16 255.255.0.0 C 8 255.255.255.0 Change Telnet Configuration Password Setting the Telnet configuration password prevents unauthorized access to the setup menu via a Telnet connection to port 9999 or via web pages. The password must have 4 characters.
Configuration via Serial Mode or Telnet Port Options Bit BootP 2 For example, if the third octet is 0.0.5.0, the AutoIP and BootP options are disabled; only DHCP is enabled. (The value 5 results from adding the binary equivalents of 0 and 2.) This is the most common setting when using DHCP. Channel 1 and Channel 2 Configuration Select option 1 Channel 1 or 2 Channel 2 from the Change Setup menu to define how the serial port responds to network and serial communications.
Configuration via Serial Mode or Telnet Port I/F Mode Option 7 6 5 4 3 2 1 0 RS-422/485 4-wire 0 1 RS-485 2-wire(2) 1 1 (2) 7 Bit 1 0 8 Bit 1 1 No Parity 0 0 Even Parity 1 1 Odd Parity 0 1 1 stop bit 0 1 2 stop bits(1) 1 1 (1) 2 stop bits are implemented by the software. This might influence performance. (2) On WP2004000-01 (WiPort-485) only.
Configuration via Serial Mode or Telnet Port Flow Control Option XON/XOFF pass characters to host Hex 05 Port Number The Port No setting represents the source port number in TCP connections. It is the number that identifies the channel for remote initiating connections. The port number functions as the TCP/UDP source port number for outgoing packets. Packets sent to the unit with this port number are received to this channel.
Configuration via Serial Mode or Telnet Port Table 5-6. Reserved Port Numbers Port Numbers Reserved for 1 – 1024 Reserved 9999 Telnet setup 14000-14009 Reserved for Redirector 30704 Reserved (77F0h) 30718 Reserved (77FEh) Note: It is recommended to not use the reserved port numbers for this setting as incorrect operation may result. Use Port 0 for the outgoing local port to change with each connection. The port range is 50,000 to 59,999.
Configuration via Serial Mode or Telnet Port Connect Mode Option 7 6 5 4 3 2 1 0 Manual connection 0 1 0 0 Autostart 0 1 0 1 1 1 0 0 Hostlist d) 0 0 1 0 Datagram Type Directed UDP e) Modem Mode No Echo 0 0 1 1 Data Echo & Modem Response (Numeric) 0 1 1 1 1 Data Echo & Modem Response (Verbose) 0 1 1 1 0 Modem Response Only (Numeric) 0 0 1 1 1 1 Modem Response Only (Verbose) 0 0 1 1 1 0 a) Incoming Connection Never Accept Incoming Rejects all ext
Configuration via Serial Mode or Telnet Port Manual Connection Attempts to connect when directed by a command string received from the serial port. The first character of the command string must be a C (ASCII 0x43), and the last character must be either a carriage return (ASCII 0x0D) or a line feed (0x0A). No blanks or space characters may be in the command string.
Configuration via Serial Mode or Telnet Port If this option is set to True, the device server scrolls through the host list until it connects to the first available device listed in the host list table. Once it connects, the unit stops further attempts. If this connection fails, the unit continues to scroll through the table until it is able to connect to the next available IP address in the host list. Hostlist supports a minimum of 1 and a maximum of 12 entries.
Configuration via Serial Mode or Telnet Port 4. For Retrycounter, enter the number of times the Lantronix unit should try to make a good network connection to a hostlist entry that it has successfully ARPed. The range is 1-15, with the default set to 3. 5. For Retrytimeout, enter the number of seconds the unit should wait before failing an attempted connection. The time is stored as units of milliseconds in the range of 1-65535. The default is 250.
Configuration via Serial Mode or Telnet Port Table 5-9. Modem Mode Messages Message Meaning Full Verbose OK Command was executed without error. CONNECT A network connection has been established. NO CARRIER A network connection has been closed. RING n.n.n.n. A remote device, having IP address n.n.n.n, is connecting to this device.
Configuration via Serial Mode or Telnet Port If this sequence is not followed, the unit remains in data transfer mode. Table 5-10. Modem Mode Commands Modem Mode Command Function ATDTx.x.x.x,pppp or ATDTx.x.x.x/pppp Makes a connection to an IP address (x.x.x.x) and a remote port number (pppp). ATDTx.x.x.x Makes a connection to an IP address (x.x.x.x) and the remote port number defined within the unit. ATD0.0.0.0 Forces the unit into Monitor Mode.
Configuration via Serial Mode or Telnet Port Remote IP Address : ( 0) ( 0) ( 0) ( 0)_ Note: This option is not displayed when Hostlist is enabled from the ConnectMode prompt (see Error! Reference source not found. on page 42 for more information). Remote Port You must set the remote TCP port number for the unit to make outgoing connections. This parameter defines the port number on the target host to which a connection is attempted.
Configuration via Serial Mode or Telnet Port Flush Mode The FlushMode (buffer flushing) parameter controls line handling and network buffers with connection startup and disconnect. FlushMode ( 0) ? _ Select between two different packing algorithms (the current configuration is displayed within the parentheses). Available Flush Mode options are: Table 5-12.
Configuration via Serial Mode or Telnet Port Option 7 6 5 4 3 2 Interval: 5sec 1 0 1 1 Trailing Characters None 0 0 One 0 1 Two 1 0 Send Characters 2-Byte Send Character Sequence Send Immediately After Send chars 1 1 Packing Interval: Packing Interval defines how long the unit should wait before sending accumulated characters. This wait period is between successive network segments containing data. For alternate packing, the default interval is 12 ms.
Configuration via Serial Mode or Telnet Port characters on the serial line (for example, ETX, EOT). Setting the first SendChar to 00 disables the recognition of the characters. Alternatively, the unit can interpret two characters as a sequence (see Pack Control on page 50).
Configuration via Serial Mode or Telnet Port Telnet Terminal Type This parameter displays only if the terminal type option is enabled in Disconnect Mode. If this option is enabled, use the terminal name for the Telnet terminal type. Enter only one name. If the terminal type option is enabled, the unit also reacts to the EOR (end of record) and binary options, which can be used for applications such as terminal emulation to UNIX hosts.
Configuration via Serial Mode or Telnet Port Serial trigger input: disabled Channel: 2 Match: 00 Trigger input1: X Trigger input2: X Trigger input3: X Message : Priority: L Min. notification interval: 1 s Re-notification interval : 0 s Server (0.0.0.0) ? ( 0) _ Mail Server Enter the IP address of the mail server. Enter each 3-digit section and press Enter between each section inputted. The current value is displayed in parentheses. Mail Server (0.0.0.
Configuration via Serial Mode or Telnet Port Set the configurable pins to A = Active, I = Inactive, or X = Don’t Care. Active can mean Active Low or Active High. If the configurable pins are all set to X (Don’t Care), then they are disabled. If both the serial sequence and the configurable pins are disabled, the trigger is disabled. To change the configurable pins’ settings, send setup records to Port 77FE. The Message is the subject line of the trigger event Email to the specified recipient(s).
Configuration via Serial Mode or Telnet Port Network name (LTRX_IBSS) ? _ Adhoc Network Channel When Adhoc is selected in the Topology parameter and the WiPort cannot find the specified network, it creates one with that name by transmitting a beacon on the selected channel. Channel (11) ? _ Only channels allowed in the country for which the WiPort is designated can be selected. The country is shown in the settings overview. Security The WiPort features WEP and WPA to secure all wireless communication.
Configuration via Serial Mode or Telnet Port This firmware version allows only Pre-Shared Keys (PSK) for authentication and encryption. Group encryption 1=WEP64, 2=WEP128, 3=TKIP (1) ? Display current key (N) ? Change key (N) ? Key type 0=hex, 1=passphrase (1) ? Enter key: () ? Select the Group encryption type to 1 (WEP64), 2 (WEP128), or 3 (TKIP). The group encryption for all wireless devices communicating with the same access point must be equal to receive broadcast and multicast messages.
Configuration via Serial Mode or Telnet Port This allows the software to turn off the radio when expecting not to receive or transmit soon. This feature reduces the power consumption by up to 170 mA. Enabling power management increases the response time, because the radio needs to start up again. The radio regularly starts to synchronize and check for incoming messages. Note: This option is not available when the Topology is set to Adhoc.
Configuration via Serial Mode or Telnet Port Disable Monitor Mode Disables entry into Monitor Mode via the 'yyy' or 'xx1' key sequence at startup. This command prevents the unit from entering Monitor Mode by interpreting the stream of characters that are received during the device server's initialization at startup. The default is N (No). Disable Monitor Mode @ bootup (N) ? _ HTTP Port Number This option allows the configuration of the web server port number. The valid range is 1-65535.
Configuration via Serial Mode or Telnet Port Disable SNMP For security purposes, disable SNMP (if required) on the WiPort unit. The current setting is displayed in parentheses. Disable SNMP (N) ? _ SNMP Community Name The SNMP Community Name is a required field for NMS to read or write to a device. Enter a string of 1 to 13 characters. SNMP Community Name (public): _ The default entry is public. The current value is displayed in parentheses.
Configuration via Serial Mode or Telnet Port Enable Encryption Enable Encryption (Y) ? _ Key length in bits (256): _ Change Key (N) ? _ Enter Key: _ The Enable Encryption option displays if the WiPort model features AES encryption. It enables AES encryption for tunneling only. Valid options for the Key length in bits are 128, 192 and 256 bits Select Change Key to modify the current AES encryption key. The default is (N) No.
Configuration via Serial Mode or Telnet Port Hostlist Retry Counter 3 Hostlist Retry Timeout 250 (msec) Send Character 0x0D (CR) All other parameters 0 Channel 2 Configuration Baudrate 9600 I/F Mode 4C (1 stop bit, no parity, 8 bit, RS-232C, no flow control) Port No 10002 Connect Mode C0 (always accept incoming connection; no active connection startup) Hostlist Retry Counter 3 Hostlist Retry Timeout 250 (msec) Send Character 0x0D (CR) All other parameters 0 WLAN Settings Enable WLAN
Configuration via Serial Mode or Telnet Port HTTP Port Number 80 SMTP Port Number 25 MTU Size 1400 Enable Alternate MAC N (No) ( for OEM use only) Ethernet Connection Type 0 (auto negotiate) Security Settings Disable SNMP (N) No SNMP Community Name public Disable Telnet Setup (N) No Disable TFTP Firmware Update (N) No Disable Port 77FEh (N) No Disable Web Server (N) No Disable Web Setup (N) No Disable ECHO ports (Y) Yes Enable Encryption (N) No Enable Enhanced password (N) No
6: Configurable Pins The WiPort has eleven pins configurable for General Purpose I/O (GPIO). Use these GPIO pins to control devices such as relays, servers, lights, monitor switches, sensors, and even processes such as data transfer. Defaults Settings: Function: general purpose input/output Direction: input Active Level: low Set the functions for the three pins independently and in any combination.
Configurable Pins Every command consists of nine bytes: one command type of one byte and two parameters of four bytes each. Byte Command 0 Pin Number Parameter 1 2 3 1 0 7 8 15 16 4 23 24 Parameter 2 6 7 5 31 0 7 8 15 16 8 23 24 31 On some commands, one or all parameters are ignored. For UDP, command type and parameters need to be in the same datagram.
Configurable Pins 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).
Configurable Pins 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 active type for that GPIO will not change. Bytes 5-8: New Active Levels Bit X 1 means GPIO X will become active low. 0 means it will become active high. Response: 1 parameter Bytes 1-4: Updated active levels Command 1Bh, Set States Send: 2 parameters Bytes 1-4: Mask Bit X 1 means the state for GPIO X will be updated with the value in the second parameter.
Configurable Pins 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.
7: Monitor Mode Monitor Mode is a command-line interface used for diagnostic purposes. There are two ways to enter Monitor Mode: locally via the serial port or remotely via the network. Entering Monitor Mode via the Serial Port To enter Monitor Mode locally: 6. Follow the same steps used for setting the serial configuration parameters (see Serial Port Access on page 36). 7. Instead of typing three x keys, however: a) Type zzz to enter Monitor Mode with network connections.
Monitor Mode Command Command Name Function PI x.x.x.x Ping Pings unit with IP address x.x.x.x to check device status. AT ARP Table Shows the unit’s ARP table entries. TT TCP Connection Table Shows all incoming and outgoing TCP connections. NC Network Connection Shows the unit’s current IP address. RS Reset Resets the unit. QU Quit Exits diagnostics mode. G0, G1, ....,Ge, Gf Get configuration from memory page Gets a memory page of configuration information from the device. S0, S1,...
8: Updating Firmware This chapter explains how to obtain and update the unit’s firmware. Obtaining Firmware Obtain the most up-to-date firmware and release notes for the unit from the Lantronix web site (www.lantronix.com) or by using anonymous FTP (ftp.lantronix.com/pub). Reloading Firmware There are several ways to update the unit's internal operational code (*.ROM and *.FWX): via DeviceInstaller (the preferred way), via TFTP, or via the serial port.
Updating Firmware Using TFTP: Command Line Interface To download new firmware from a computer, enter the following from a TFTP command line interface: tftp –i put The following examples demonstrate the TFTP command sequence to download the .rom file, the .fwx file, and the .cob file: tftp –i 192.168.1.111 put wpt540.rom W1 tftp –i 192.168.1.111 put H2_FW_200.fwx FWX1 tftp –i 192.168.1.111 put wpt_wm110.
9: Troubleshooting This chapter discusses how you can diagnose and fix errors quickly without having to contact a dealer or Lantronix. The WiPort’s diagnostic LEDs indicate the unit’s status. It helps to connect a terminal to the serial port while diagnosing an error to view summary messages that may be displayed. When troubleshooting, always ensure that the physical connections (power cable, network cable, and serial cable) are secure.
Troubleshooting Problems and Error Messages Problem/Message Reason Solution When you issue the ARP –S command in Windows, The ARP entry addition failed: 5 message displays. Your currently logged-in user does not have the right to use this command on this PC. Have someone from your IT department log you in with sufficient rights. When you attempt to assign an IP address to the unit by the ARP method and Telnet to the device server through port 1, the connection fails.
Troubleshooting Problem/Message Reason Solution You did not choose the correct subnet mask. The device server is not communicating with the serial device it is attached to. The most likely reason is the wrong serial settings were chosen. The serial settings for the serial device and the device server must match. The default serial settings for the device server are RS-232, 9600 baud, 8 character bits, no parity, 1 stop bit, no flow control.
Troubleshooting Problem/Message Reason Solution When connecting to the WebManager within the device server, the No Connection With The Device Server message displays. Your computer is not able to connect to port 30718 (77FEh) on the device server. Make sure that port 30718 (77FEh) is not blocked with any router that you are using on the network. Also, make sure that port 77FEh is not disabled within the Security settings of the device server.
Troubleshooting Technical Support If you are experiencing an error that is not described in this chapter, or if you are unable to fix the error, you may: To check our online knowledge base or send a question to Technical Support, go to http://www.lantronix.com/support. Email us at support@lantronix.com. Call us at: (800) 422-7044 Domestic (949) 453-7198 International (949) 450-7226 Fax Our phone lines are open from 6:00AM - 5:30 PM Pacific Time Monday through Friday excluding holidays.