NetPort User Guide Version: v1.
Contents Contents..............................................................................................................................................2 1 Introduction ..................................................................................................................................3 2 What's in the Box .........................................................................................................................4 3 Connecting NetPort.........................................
1 Introduction This User Guide provides a familiarisation tool to allow you to get your NetPort connected and get your RS232 equipment on the network as quickly as possible. It will take you step by step through hardware setup and configuration and help you verify that everything is working. What this document will help you achieve: 1) Familiarise you with NetPort & the contents of the kits. 2) Connect NetPort to the LAN. 3) Install Device Installer from the CDROM and use it to detect your NetPort.
2 What's in the Box AMC Part Number AMC-232LAN01 AMC-232LAN01-DVK AMC-232LAN01-DVK/E AMC-232LAN01-DVK/U Comments NetPort bulk version Complete DTE kit Complete DTE kit Complete DTE kit Type DTE AMC-232LAN02 AMC-232LAN02-DVK AMC-232LAN02-DVK/E AMC-232LAN02-DVK/U NetPort bulk version Complete DCE kit Complete DCE kit Complete DCE kit DCE AMC-232LAN03 AMC-232LAN03-DVK AMC-232LAN03-DVK/E AMC-232LAN03-DVK/U NetPort encrypted bulk version Complete DTE encrypted kit Complete DTE encrypted kit Complete DTE e
Custom versions of NetPort The above list is not exhaustive and customisation of NetPort to suit customer’s requirements is available. Minimum order quantities for customisation will apply. 3 Connecting NetPort To get started, you must connect the NetPort to your network. Follow the steps below: Note: This procedure assumes that the PC is connected to the network.
4 Configuring NetPort The next sections will help you to carry out the following: • Identify the NetPort on your LAN • Allocate an IP address to your NetPort • Set up a ‘serial tunnel’ from the network to the NetPort • Change settings in NetPort to make it compatible with your serial equipment.
Deciding the best routes to getting connected Power up NetPort on your LAN Do you want to run NetPort with a FIXED IP addresss? No Yes (this means the IP could change over time) Do you know the temporary IP address that NetPort is currently on? No No Can you run Device Installer on a PC on the LAN to detect NetPort? Use Monitor Mode to establish NetPort's IP Address Can you access the RS232 Port and connect to a PC or Terminal? Yes Yes Yes Access to a web browser? No No Yes RS232 DEVICE W
What you need to know before you start IP Address Your NetPort must have a unique IP address on your network. The system administrator generally provides the IP address, subnet mask, and gateway or they will opt for it to be allocated by the DHCP Server dynamically each time it is powered up – consequently it can change. The IP address must be within a valid range, unique to your network, and in the same subnet as your PC, check with your IT administrator for appropriate addresses.
4.1 Install DeviceInstaller 1. Install DeviceInstaller from the CD-ROM. If the CD does not launch automatically browse the ‘Device Installer’ folder and run the setup.EXE file 2. Respond to the installation wizard prompts. You may be prompted to install .NET frameworks to bring your Windows installation up to date to be able to run DeviceInstaller. These are provided on the CDROM but your PC may choose to (or already done so) download from Microsoft.
4.3 Assign IP Manually There are 2 ways to achieve this depending on whether or not you have successfully detected NetPort using Device Installer. 4.3.1 If the NetPort is shown in DeviceInstaller: 1. Select the NetPort to be modified 2. Click the Assign IP icon. 3. Select Assign a specific IP address and click Next. 4. Enter the IP address. The Subnet mask displays automatically based on the IP address; if desired, you may change it.
5. Click the Assign button and wait several seconds until a confirmation message displays. Click Finish. 6.
4.3.2 If the NetPort is NOT shown in DeviceInstaller: 1) Click on Assign IP 2) When prompted, enter the hardware address in the format 00-204a-XX-XX-XX, where the XXs are unique numbers assigned to each individual product. Click Next.
4) Enter the IP address. The Subnet mask displays automatically based on the IP address; if desired, you may change it. On a local network, you can leave the Default gateway blank (all zeros). Click Next. 5) Click the Assign button and wait several seconds until a confirmation message displays. Click Finish.
6) You should see NetPort shown similar to this: 4.4 Changing NetPort’s Serial Parameters to connect to your Equipment To do this you can use: • Web Config (via any webrowser) • Telnet (ASCII menus over the network) • RS232 port using an application such as HyperTerminal. 4.4.1 Via Web Interface 4.4.2 Open a browser on a computer on a compatible Subnet as the NetPort. Enter the IP Address of the NetPort into the browser and press ENTER.
Within 5 seconds a Java-based applet will upload into the browser and look like this:
Change the relevant settings for your needs. Here are some of the most commonly used parameters: In the Server Properties page: IP Address: The unique address that the NetPort resides at. Over type this field to fix the IP Address – this may mean that it is incompatible with other LAN’s that it is subsequently connected to. Leave as 0.0.0.0 for DHCP (dynamically allocated by the DHCP Server on your LAN) but be aware that the IP Address could change over time as the DHCP Server refreshes this.
Select None for simple 3 wire UART connection where flow control is not necessary Local Port This is the TCP/IP Port that NetPort uses for the data in & out of the RS232 port. In most cases set this to 10001 for a standard connection. (older units may be factory set to 10001) Incoming Connection Select Connect with DTR if you want an incoming connection only to be permitted when DTR is asserted by your RS232 equipment.
Command Line example In any event, you must specify Port 9999 as the destination port to be able to enter the configuration menus. Telnetting to port 10001 will result in you connecting to the RS232 port of NetPort and not the config menus. Once Telnet has established a link: You will need to press ENTER within 3 seconds or NetPort will time out and close the session. Once the session has begun NetPort will scroll through all of its config in an ASCII format and then offer an ASCII menu.
and hexadecimal masks. In Summary: To change IP address, Gateway, Subnet and DHCP name (where applicable) use Menu 0 To change the serial settings (baud rate handshaking etc) use Menu 1 To change the Local Port, Remote IP address & Remote Port use Menu 1 To enable or disable telnet, HTTP, SNMP, TFTP & passwords use Menu 6 To restore factory default settings (except IP address/subnet/Gateway) use Menu 7 Tip: Press ENTER to move through the menu fields without changing them.
9600bps, No parity, 8 bit data, 1 stop bit, no handshaking 3. Once the Application is running, power up the NetPort and hold down the ‘x’ key on the PC until you receive the following prompt: Note: If the CAPS lock is enabled on your keyboard NetPort will not respond. Turn off CAPS Lock, turn off power to NetPort and repeat the above. 4. You will need to press ENTER within 3 seconds or NetPort will time out and close the session. 5.
To restore factory default settings (except IP address/subnet/Gateway) use Menu 7 Tip: Press ENTER to move through the menu fields without changing them.
• • Run HyperTerminal from the Accessories\Communications menu. Select TCP/IP (Winsock) mode from the pull-down menu. • Enter the IP Address of your NetPort and 10001 for the port number: If HyperTerminal does not successfully connect, check that you have entered the IP address and Port number correctly. Additionally, check that the NetPort settings match the baud rate and port number you have entered in HyperTerminal. 5.
the same inside NetPort. To do this you can use: • Telnet (ASCII menus over the network) • Web Config (via any webrowser) • RS232 port using an application such as HyperTerminal. Note: At the time of going to press, NetPort is factory set to Local Port = 14001 and will need changing by the user to 10001. See section: 4.
6 Appendix A – Setup Mode Parameters The following is the raw breakdown of the Setup Mode Parameters that apply to NetPort. You can enter Setup Mode using the following procedures locally or remotely: • Use a Telnet connection to configure the unit over the network. • Use a terminal/emulation program to access the serial port locally. • The unit’s configuration is stored in nonvolatile memory and is retained without power. You can change the configuration at any time.
Setup Menu Options 4. Select an option on the menu by entering the number of the option in the Your choice? field and pressing Enter. 5. To enter a value for a parameter, type the value and press Enter, or to confirm a current value, just press Enter. 6. When you are finished, save the new configurations (option 9). The unit reboots. Using the Serial Port To initially configure the unit through a serial connection: 1.
6.2 Server Configuration (Network Configuration) The unit’s basic network parameters display when you select Server configuration (option 0). The IP Address, Set Gateway IP Address, and Netmask fields display the current values. Server Configuration Parameters 6.2.1 IP Address The IP address must be set to a unique value in your network.
Set Gateway IP Address The gateway address, or router, allows communication to other LAN segments. The gateway address should be the IP address of the router connected to the same LAN segment as the unit. The gateway address must be within the local network. The default is N (No), meaning the gateway address has not been set. To set the gateway address, type Y and enter the address.
Default Serial Port Settings are: 6.3.1 Baudrate The unit and attached serial device, such as a modem, must agree on a speed or baud rate to use for the serial connection. Valid baud rates are 300, 600, 1200, 2400, 4800, 9600 (default), 19200, 38400, 57600, 115200, and 230400 bits per second. In standard Clock Mode. The unit also supports high-performance baud rates of 460800, and 921600 bits per second (see Expert Settings to configure High Performance Mode to attain these speeds).
Flow Control Options Port Number The setting represents the source port number in TCP connections. It is the number that identifies the channel for remote initiating connections. The default setting for Port 1 is 10001. The range is 1-65535, except for the following reserved port numbers: Reserved Port Numbers Warning: We recommend that you not use the reserved port numbers for this setting as incorrect operation may result. The port number functions as the TCP/UDP source port number for outgoing packets.
Connect Mode Options Incoming Connection
Response Manual Connection Address Example
Autostart (Automatic Connection) To enable the hostlist: 1) 2) 3) 4) 5) 6) Enter a Connect Mode of 0x20 (2X), where X is any digit. The menu shows you A list of current entries already defined in the product. To delete, modify, or add an entry, select Yes. If you enter an IP address of 0.0.0.0, that entry and all others after it are deleted. After completing the hostlist, repeat the previous step if necessary to edit the hostlist again.
Modem Mode In Modem (Emulation) Mode, the unit presents a modem interface to the attached serial device. It accepts AT-style modem commands, and handles the modem signals correctly. Normally, there is a modem connected to a local PC and a modem connected to a remote machine. A user must dial from the local PC to the remote machine, accumulating phone charges for each connection. Modem Mode allows you to replace modems with NetPorts, and to use an Ethernet connection instead of a phone call.
Note: The unit recognizes these AT commands as single commands such as ATE0 or ATV1; it does not recognize compound commands such as ATE0V. Remote IP Address This is the destination IP address used with an outgoing connection. 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.
DisConnMode This setting determines the conditions under which the unit will cause a network connection to terminate. Note: In DisConnMode (Disconnect Mode), DTR drop either drops the connection or is ignored. Disconnect Mode Options Flush Mode (Buffer Flushing) Using this parameter, you can control line handling and network buffers with connection startup and disconnect. You can also select between two different packing algorithms.
Pack Control Two firmware-selectable packing algorithms define how and when packets are sent to the network. The standard algorithm is optimized for applications in which the unit is used in a local environment, allowing for very small delays for single characters, while keeping the packet count low. The alternate packing algorithm minimizes the packet count on the network and is especially useful in applications in a routed Wide Area Network (WAN).
Telnet Terminal Type This parameter displays only if you enabled the terminal type option in Disconnect Mode. If this option is enabled, you can 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 like terminal emulation to IBM hosts.
Trigger Setup A trigger event can occur when the unit receives two bytes of a specified sequence on the serial port, or because of a specified combination of conditions on the configurable pins. If the serial sequence is set to 00,00, the trigger is disabled. At the Serial Sequence prompt, enter the ASCII Hex value. Example: A two byte sequence of 12 would be 0x31, 0x32. If the configurable pins are all set to X (Don’t Care), then they are disabled.
Monitor Mode at Bootup This option allows you to disable all entries into Monitor Mode during startup, except for the ‘xxx’ sequence. This prevents entry via ‘yyy’, ‘zzz’, ‘xx1’, and ‘yy1’ key sequences (only during the bootup sequence). The default for Monitor Mode at Bootup is enabled. See Appendix B Using Monitor Mode for more info on Monitor Mode HTTP Port Number This option allows the configuration of the web server port number. The valid range is 165535. The default HTTP port number is 80.
Disable Telnet Setup Note: If you choose to disable this option, keep in mind that disabling both Telnet Setup and Port 77FE will prevent users from accessing any setup menu from the network. This setting defaults to the N (No) option. The Y (Yes) option disables access to Setup Mode by Telnet (port 9999). It only allows access locally via the web pages and the serial port of the unit. Disable TFTP Firmware Upgrade This setting defaults to the N (No) option.
Generally, one of two situations applies. • Encrypted NetPort-to-NetPort communication (and in the future, NetPort communication to other Lantronix device servers) is supported without extra effort. • The NetPort uses standard AES encryption protocols. To communicate successfully, products and applications on the peer side must use the same protocols and the same shared key as the NetPort.
I/O (GPIO). You may want to disable this capability for security purposes. The default setting is the N (No) option, which enables GPIO control. The Y (Yes) option disables the GPIO control interface. Note: As these pins are presented through n RS232 line driver IC it is not possible to change the ‘direction’ of these pins on standard variants of NetPort. 6.7 Factory Defaults Select 7 to reset the unit’s Channel 1 configuration, e-mail settings, and expert settings to the factory default settings.
7 Appendix B - Using Monitor Mode Monitor Mode is a command-line interface used for diagnostic purposes that allows the user to interrogate the NetPort and perform some low-level network tests, in some cases adding intelligence to the serial equipment to verify network & DHCP status. There are two ways to enter Monitor Mode: locally via the serial port or remotely via the network. 7.1.1 Via the Serial Port To initially configure the unit through a serial connection: 1.
A 0> prompt indicates that you have successfully entered Monitor Mode and looks like this: Monitor Mode (Telnet) You can perform the following actions, observe upper-case where shown. VS x.x.x.x Version Queries software header record (16 bytes) of unit with IP address x.x.x.x. 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.
Here are typical names for those files. Check www.alphamicro.net/netport or the CDROM for the latest versions and release notes. Firmware Files 8.1.1 Using TFTP To download new firmware from a computer: 1. Click on Start\Run and type cmd and press ENTER to begin a DOS shell 2. To transfer the *.ROM runtime code type: TFTP –i PUT xxxxx.ROM X2 3. To transfer a COB (webpage) file type: TFTP –i PUT xxxxx.COB WEB6 4.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 7 8 9 a b c d e f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f 00000111 00001000 00001001 00001010 00001011 00001100 00001101 00001110 00001111 00010000 00010001 00010010 00010011 00010100 00010101 00010110 00010111 00011000 00011001 00011010