The text of a manual · part 3 of 16
CoBox-FL/CoBox-FL-IAP User Guide: Getting Started
Pages 27 to 38 of 135, from CoBox-FL/CoBox-FL-IAP User Guide
The original document is the PDF (1.7 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Lantronix CoBox-FL
Page 27
Getting Started
2. Getting Started This section describes all the procedures for configuring your unit. For a short version, see the Quick Start Guide. Go to the Lantronix web site for the latest firmware and release notes. CoBox-FL comes with Standard Tunnel Protocol and the CoBox-FL-IAP comes with the IAP Standard Tunnel Protocol. Both versions are similar but cannot be interchanged. Standard Tunneling is a serial communications protocol used by most Lantronix Device Servers. It can be configured to Ethernet-enable most serial devices such as barcode scanners, weigh scales, operator panels, data access devices, alpha numeric displays, and thousands of intelligent serial devices. For CoBox-FL-IAP users, see Industrial Automation Protocols on page 1-3 Loading industrial protocols to a CoBox-FL-IAP, such as IAP Modbus Bridge, may remove the web pages and change the configure dialogs. See the user manuals on individual protocols for protocol specific settings and configuration dialogs. Protocol manuals are found on the software CD. This section describes the setup and configuration dialogs for the Standard Tunnel Protocol. Note: The following information is based on the condition that a CoBox-FL is loaded with Standard Tunnel Protocol. The CoBox-FL-IAP with IAP Standard Tunnel Protocol may have different options available.
2.1 Addresses and Port Number 2.1.1 Ethernet (MAC) Address The Ethernet address is also referred to as the hardware address or the MAC address. The first three bytes of the Ethernet Address are fixed and read 00-20-4A, identifying the unit as a Lantronix product. The fourth, fifth, and sixth bytes are unique numbers assigned to each unit. 00-20-4A-21-18-17 or 00:20:4A:21:18:17
2.1.2 Internet Protocol (IP) Address Every device connected to an IP network must have a unique IP address. This address is used to reference the specific unit.
CoBox-FL User Guide
2-1
Page 28
Getting Started
2.1.3 Port Number 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 PBX system. The unit 's serial channel (port) can be associated with a specific TCP/UDP port number. Port number 9999 is reserved for access to the unit's Setup (configuration) Mode window.
2.2 Physically Connecting the Unit The following diagram shows a typical hardware configuration for the CoBox-FL. Use one of the cables described in Serial Interface Cable on page 1-8 to connect a PC COM port to the CoBox-FL. Ethernet
RS-232
9-30V AC/DC 10 BASE- T
10 BAS E-FL Rx Tx
Tx GL
Rx Co
Ethernet 9-30V AC/DC
Figure 3 – CoBox-FL Connected to Serial Device and Network 1. Connect a serial device to your unit. See Serial Interface Cable on page 1-8 for more information about cable and connector specifications. 2. Connect an Ethernet cable to one of the Ethernet ports. 3. Supply power to your unit using a 9-30V AC/DC source. Note: The required input voltage is 9-30V AC/DC (3 W maximum). 4. Supply power to the serial device. Note: Connecting a device to an active Ethernet network can disrupt communications on the network. Make sure the device is configured for your application before connecting to an active network.
2-2
CoBox-FL User Guide
Page 29
Getting Started
2.3 Methods of Assigning the IP Address The unit's IP address must be configured before a network connection is available. You have the following options for assigning an IP to your unit: Method
Description
DHCP
A DHCP server automatically assigns the IP address and network settings. See DHCP on page 2-4. You manually assign the IP address using a graphical user interface (GUI) on a PC attached to a network. See DeviceInstaller on page 2-5. You manually assign the IP address and other network settings at a command prompt using a UNIX or Windows-based system. Only one person at a time can be logged into the configuration port (port 9999). This eliminates the possibility of several people simultaneously attempting to configure the unit. See ARP and Telnet on page 2-11. This automatic method is appropriate when you have a small group of hosts rather than a large network. This method allows the hosts to negotiate with each other and assign addresses, in effect creating a small network. See AutoIP on page 2-4. You initially configure the unit through a serial connection. See Serial Port Login on page 2-12.
DeviceInstaller (Recommended) ARP and Telnet
AutoIP
Serial Port Login
These methods are described in the remaining sections of this chapter. Note: In most installations, a fixed IP address is desirable. The systems administrator generally provides the IP address. Obtain the following information before starting to set up your unit: IP Address: ___ ___ ___ ___ Subnet Mask: ___ ___ ___ ___ Gateway: ___ ___ ___ ___
CoBox-FL User Guide
2-3
Page 30
Getting Started
2.3.1 DHCP The unit ships with a default IP address of 0.0.0.0, which automatically enables DHCP. Provided a DHCP server exists on the network, it will assign the unit an IP address, gateway address, and subnet mask when the unit boots up. The CoBox-FL has acquired an IP address if the red LED stops flashing and the green GL LED is on continuously. (If no DHCP server exists, the unit responds with a diagnostic error: the red Diagnostic LED blinks continuously, and the green GL LED blinks five times. This blinking only continues for about 5 seconds.) You can use the DeviceInstaller software to search the network for the IP your unit has been assigned by the DHCP server and add it to the managed list. See Add the Unit to the Manage List later in this chapter. Note: This DHCP address will not appear in the unit’s standard configuration screens. You can determine your unit’s DHCP-assigned IP address from the DHCP server, or in Monitor Mode. When you enter Monitor Mode from the serial port with network connection enabled and issue the NC (Network Communication) command, you will see the unit’s IP configuration.
2.3.2 AutoIP The unit ships with a default IP address of 0.0.0.0, which automatically enables Auto IP within the unit. AutoIP is an alternative to DHCP that allows hosts to automatically obtain an IP address in smaller networks that may not have a DHCP server. A range of IP addresses (from 169.254.0.1 to 169.254.255.254) has been explicitly reserved for AutoIP-enabled devices. The range of Auto IP addresses is not to be used over the Internet. If your unit cannot find a DHCP server, and you have not manually assigned an IP address to it, the unit automatically selects an address from the AutoIP reserved range. Then, your unit sends out a (ARP) request to other nodes on the same network to see whether the selected address is being used. • •
If the selected address is not in use, then the unit uses it for local subnet communication. If another device is using the selected IP address, the unit selects another address from the AutoIP range and reboots itself. After reboot, the unit sends out another ARP request to see if the selected address is in use, and so on.
AutoIP is not intended to replace DHCP. The unit will continue to look for a DHCP server on the network. If a DHCP server is found, the unit will switch to the DHCP server-provided address and reboot. Note: If a DHCP server is found, but it denies the request for an IP address, the unit does not attach to the network, but waits and retries. AutoIP can be disabled by setting the unit’s IP address to 0.0.1.0. This setting enables DHCP but disables AutoIP.
2-4
CoBox-FL User Guide
Page 31
Getting Started
2.4 DeviceInstaller You can manually assign the IP address using DeviceInstaller software, which is found on the product CD. If you want to use a serial connection instead of an Ethernet connection to configure the device, go to Serial Port Login on page 2-12.
2.4.1 Install DeviceInstaller Software 1. Insert the product CD into your CD-ROM drive. The CD will automatically start and display the main window. If the CD does not launch automatically: a) Click the Start button on the Task Bar and select Run. b) Enter your CD drive letter, colon, backslash, deviceinstaller.exe (e.g., E:\deviceinstaller.exe).
Figure 4 – CD Main Window 2. Click the Device Installer button. The installation wizard window displays. 3. Respond to the installation wizard prompts. (When prompted to select an installation type, select Typical.)
CoBox-FL User Guide
2-5
Page 32
Getting Started
2.4.2 Assign IP Address and Network Class Click the Start button on the Task Bar and select Programs \Device Installer \Device Installer. The Device Installer window displays.
Figure 5 - DeviceInstaller Window 1. Click the IP icon
. The Assign IP Address window displays.
Figure 6 - Assign IP Address Window 2. In the Enter the Hardware or Ethernet Address field, enter the Ethernet address (MAC address), which is listed on the label on the side of the unit.
2-6
CoBox-FL User Guide
Page 33
Getting Started
3. In the Enter IP Address to assign field, enter the unit’s IP address in XXX.XXX.XXX.XXX format. 4. In the PC Network Class section, select the class (subnet mask). (Most users select Class C). 5. Click the Set IP Address button. (IP is assigned, pinged, and tested) 6. Confirm that the “Assign IP successful” message displays and click OK. 7. Click the Back button to return to the DeviceInstaller window.
2.4.3 Test the IP Address 1. Click the Ping icon
. The Ping Device window displays.
Figure 7 - Ping Device Window 2. Confirm that “Reply received” messages display in the window, indicating that the IP address has been entered successfully. Note: If you do not receive “Reply received” messages, make sure the unit is properly attached to the network and that the IP address assigned is valid for the particular network segment you are working with. If you are not sure, check with your systems administrator. 3. Click the Back button to return to the Device Installer window.
CoBox-FL User Guide
2-7
Page 34
Getting Started
2.4.4 Add the Unit to the Manage List Now add the unit to the list of similar Lantronix devices on the network so that you can manage and configure it. 1. Click the Search the network for devices displays.
icon. The Search Network window
Figure 8 - Search Network Window 2. 3. 4. 5.
2-8
Select the PC Network Class. Class C is the default. Click the Start Search button. A list of all active units displays. Click the Save button. A confirmation message displays. Click OK.
CoBox-FL User Guide
Page 35
Getting Started
6. Click the Back button to return to the DeviceInstaller window. The DeviceInstaller window now lists all of the devices in the group, including the unit you are setting up. The hardware address and firmware release number for the unit display.
Figure 9 - Devices in a Group Now you can manage (configure) the unit so that it works with the serial device on the network.
CoBox-FL User Guide
2-9
Page 36
Getting Started
2.4.5 Opening a Configuration Window 1. Click the Manage icon
. The Device Management window displays.
Figure 10 - Device Management Window 2. Do one of the following: Note: To assign Expert settings and Security settings, you must use the Setup Mode window in a Telnet session. •
To configure the unit via a Web browser, click the Web Configuration icon The Lantronix Web-Manager window displays in your browser. For Web Configuration, see Web Manager Page on page 3-4.
.
•
To configure the unit via a Telnet session, click the Telnet to Device icon . The Setup Mode window displays. For Telnet Configuration, see Using a Telnet Connection on page 3-10 3. Continue with the appropriate configuration procedure described in the next chapter. Note: The Get Configuration icon on the Device Management window allows you to save a configuration locally on your computer as a file. The Set Configuration icon sends a saved file to the unit. To Get Configuration information see Get Configuration on page 3-26. To Set Configuration of a specific device see Set Configuration on page 3-27.
2-10
CoBox-FL User Guide
Page 37
Getting Started
2.5 ARP and Telnet The unit’s IP address must be configured before a network connection is available. You are able to ARP an address into a CoBox/UDS device even if there is already an address in the unit. If the unit has no IP address, you can use Address Resolution Protocol (ARP) method from UNIX and Windows-based systems to assign a temporary IP address. If you want to initially configure the unit through the network, follow these steps: 1. On a UNIX or Windows-based host, create an entry in the host's ARP table using the intended IP address and the hardware address of the unit, which is found on the product label on the bottom of the unit. Some UNIX hosts use colons “:” between hardware octets, and some use dashes “-“. All Windows hosts use dashes. arp -s 191.12.3.77 00:20:4a:xx:xx:xx
Note: For the ARP command to work on Windows 95, the ARP table on the PC must have at least one IP address defined other than its own. 2. If you are using Windows 95, type ARP -A at the DOS command prompt to verify that there is at least one entry in the ARP table. If the local machine is the only entry, ping another IP address on your network to build a new entry in the ARP table; the IP address must be a host other than the machine on which you are working. Once there is at least one additional entry in the ARP table, use the following command to ARP an IP address to the unit: arp -s 191.12.3.77 00-20-4a-xx-xx-xx
3. Open a Telnet connection to port 1. The connection will fail quickly, but the unit will temporarily change its IP address to the one designated in this step. telnet 191.12.3.77 1
4. Finally, open a Telnet connection to port 9999, and press Enter within three seconds to go into Setup Mode. If you wait longer than three seconds, the unit will reboot and you will need to perform step 3 again. telnet 191.12.3.77 9999
5. Set all required parameters Note: The IP address you just set is temporary and will revert to the default value when the unit 's power is reset unless you log into the unit and store the changes permanently. Refer to the chapter on configuration for instructions on permanently configuring the IP address.
CoBox-FL User Guide
2-11
Page 38
Getting Started
2.6 Serial Port Login If you want to initially configure the unit through a serial connection, follow these steps: 1. Connect a console terminal or PC running a terminal emulation program to your unit's serial port. The default serial port settings are 9600 baud, 8 bits, no parity, 1 stop bit, no flow control. 2. To enter Setup Mode, cycle the unit's power (power off and back on). After power-up, the self-test begins and the red Diagnostic LED starts blinking. You have one second to enter three lowercase x characters. Note: The easiest way to enter Setup Mode is to hold down the x key at the terminal (or emulation) while powering up the unit. 3. At this point, the screen display is the same as when you use a Telnet connection. To continue with a serial port login, go to Using a Telnet Connection on page 3-10.
2-12
CoBox-FL User Guide