The text of a manual · part 5 of 16
CoBox-FL/CoBox-FL-IAP User Guide: Configuring the Unit, pages 49 to 58
Pages 49 to 58 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 49
Configure
*** basic parameters Hardware: Ethernet Autodetect IP addr – 0.0.0.0/DHCP/BOOTP/AutoIP, no gateway set DHCP device name : not set ***************** Security ***************** SNMP is enabled (not IAP firmware) SNMP Community Name: (not IAP firmware) Telnet Setup is enabled TFPT Download is enabled Port 77Feh is enabled Web Server is enabled Enhanced password is disabled ***************** Channel 1 ***************** Baudrate 9600, I/F Mode 4C, Flow 00 Port 10001 Remote IP Adr: --- none ---, Port 00000 Connect Mode : C0 Disconn Mode: 00 Flush Mode : 00 ****************** Expert ******************* TCP Keepalive : 0s (not IAP firmware) Change Setup
:0 Server configuration 1 Channel 1 configuration 5 Expert settings (not IAP firmware) 6 Security 7 Factory defaults 8 Exit without save 9 Save and exit Your choice ?
Figure 13 - Setup Mode Window
CoBox-FL User Guide
3-11
Page 50
Configure
3.4.2 Using the Serial Port If you want to initially configure the unit through a serial connection, follow these steps: 8. 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. 9. 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 (xxx). 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. 10. 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.
3.5 Server Configuration (Network Configuration) These are the unit’s basic network parameters. The following parameters are displayed when you select Server configuration. IP Address : (000) .(000) .(000) .(000) Set Gateway IP Address (N) Netmask: Number of Bits for Host Part (0=default) Change telnet config password (N)
(00)
3.5.1 IP Address The IP address must be set to a unique value in your network. See Methods of Assigning the IP Address on page 2-3 for more information about IP addressing.
3.5.2 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.
3-12
CoBox-FL User Guide
Page 51
Configure
3.5.3 Netmask: Number of Bits for Host Part A netmask defines the number of bits taken from the IP address that are assigned for the host section. Note: Class A: 24 bits; Class B: 16 bits; Class C: 8 bits. The unit prompts for the number of host bits to be entered, then calculates the netmask, which is displayed in standard decimal-dot notation when the saved parameters are displayed (for example, 255.255.255.0). Table 4 - Standard IP Network Netmasks Network Class
Host Bits
Netmask
A
24
255.0.0.0
B
16
255.255.0.0
C
8
255.255.255.0
Table 5 - Netmask Examples Netmask
Host Bits
255.255.255.252
2
255.255.255.248
3
255.255.255.240
4
255.255.255.224
5
255.255.255.192
6
255.255.255.128
7
255.255.255.0
8
255.255.254.0
9
255.255.252.0
10
255.255.248.0
11
...
...
255.128.0.0
23
255.0.0.0
24
CoBox-FL User Guide
3-13
Page 52
Configure
3.5.4 Change Telnet configuration password Setting the Telnet configuration password prevents unauthorized access of the setup menu via a Telnet connection to port 9999 or via Web pages. The password is limited to 4 characters. An enhanced password setting of 16 characters is available under Security Settings for Telnet access only. Note: No password is required to access the Setup Mode window via a serial connection.
3.5.5 DHCP Naming There are 3 methods for assigning DHCP names to these products. 1) Default DHCP name. If you do not change the DHCP name, and you are using an IP of 0.0.0.0, then the DHCP name will default to CXXXXXX (XXXXXX is the last 6 digits of the MAC address shown on the label on the bottom/side of the unit). For example, if the MAC address is 00-20-4A-12-34-56, then the default DHCP name is C123456. 2) Custom DHCP name. You can create your own DHCP name on these products. If you are using an IP address of 0.0.0.0, then the last option in "Server configuration" will be "Change DHCP device name". The "Change DHCP device name" option will allow you to change the DHCP name to an alpha numeric name. Change DHCP device name (not set) ? (N) Y Enter new DHCP device name : LTX
3) Numeric DHCP name. You are able to change the DHCP name by specifying the last octet of the IP address. When you use this method, the DHCP name will be LTXYY where YY is what you chose for the last octet of the IP address. If the IP address you specify is 0.0.0.12, then the DHCP name will be LTX12. This method will only work with 2 digit numbers (0-99).
3-14
CoBox-FL User Guide
Page 53
Configure
3.6 Channel 1 Configuration (Serial Port Parameters) Using this option, define how the serial port will respond to network and serial communications. Baudrate (9600) I/F Mode (4C) Flow (00) Port No (10001) ConnectMode (C0) Remote IP Address : (000).(000).(000).(000) Remote Port (00000) DisConnMode (00) FlushMode (00) DisConnTime (00:00) : SendChar 1 (00) SendChar 2 (00)
3.6.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, and 115200 bits per second.
3.6.2 I/F (Interface) Mode The Interface (I/F) Mode is a bit-coded byte that you enter in hexadecimal notation. Note: See Table 35 - Binary to Hexadecimal Conversion Table. Table 6 - Interface Mode Options I/F Mode Option RS-232C (1) RS-422/485 (1) RS-485 2-wire (1) 7 Bit 8 Bit No Parity Even Parity Odd Parity 1 Stop bit 2 Stop bit
7
6
5
4
3
1 1 0 1 0 0 1
2
1
0
0 0 1
0 1 1
0 1
0 1 1
1 1
(1) The CoBox-FL requires you to choose the correct setting in the IF mode, and to also set the front-panel switch for selection of RS-232/RS-485. CoBox-FL User Guide
3-15
Page 54
Configure
The following table demonstrates how to build some common Interface Mode settings: Table 7 - Common Interface Mode Settings Common I/F Mode Setting (1)
RS-232C, 8-bit, No Parity, 1 stop bit RS-232C, 7-bit, Even Parity, 1 stop bit (1) RS-485 2-Wire, 8-bit, No Parity, 1 stop bit (1) RS-422, 8-bit, Odd Parity, 1 stop bit (1)
Binary
Hex
0100 1100 0111 1000 0100 1111 0101 1101
4C 78 4F 5D
(1) The CoBox-FL requires you to choose the correct setting in the IF mode.
3.6.3 Flow Flow control sets the local handshake method for stopping serial input/output. Table 8 - Flow Control Options Flow Control Option
Hex
No flow control XON/XOFF flow control Hardware handshake with RTS/CTS lines XON/XOFF pass characters to host
00 01 02 05
3.6.4 Port Number The setting represents the source port number in TCP connections, and is the number used to identify the channel for remote initiating connections. Default setting for Port 1 is 10001. Range: 0-65535 except for the following reserved port numbers: Port Numbers
Reserved for
1 – 1024 9999 14000-14009 30718
Reserved (well known ports) Telnet setup Reserved Reserved (77FEh) Recommended ports, should be used for DeviceComm Manager (COM1-COM256) or direct socket connections
10000-10999
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. The port number selected is the Incoming TCP/UDP port and Outgoing TCP/UDP source port. Port 0 is used when you want the outgoing source port to change with each connection.
3-16
CoBox-FL User Guide
Page 55
Configure
3.6.5 Connect Mode Connect Mode defines how the unit makes a connection, and how it reacts to incoming connections over the network. Enter Connect Mode options in hexadecimal notation. Note: See Table 35 - Binary to Hexadecimal Conversion Table. Table 9 - Connect Mode Options Connect Mode Option
7
6
5
Incoming Connection Never accept incoming Accept incoming with DTR Accept unconditional
0 0 1
0 1 1
0 0 0
Response Nothing (quiet) Character response (C=connect, D=disconnect, N=unreachable) Startup No active startup With any character With active DTR (1) With CR (0x0D) only Manual connection Autostart
4
2
1
0
0 0 0 0 0 0
0 0 0 0 1 1
0 0 1 1 0 0
0 1 0 1 0 1
1
1
0
0
0 0 0
1 1 1
1 1 1
0 0 1
0 1
Datagram Type Directed UDP Modem Mode Full Verbose Without Echo 1-character Response
3
1 0 1
Manual Connection: When you use manual connection, you are not required to enter the entire IP address if the IP is already configured as the remote IP address in the unit. For example, if the remote IP address already configured in the unit is 129.1.2.3, then an example command string would be C3/7. (This would connect to 129.1.2.3 and port 7.) You may also use a different ending for the connection string. For example, C50.1/23 would connect you to 129.1.50.1 and port 23.
CoBox-FL User Guide
3-17
Page 56
Configure
Table 10 - Manual Connection Address Example Command String
Result if remote IP is 129.1.2.3 and remote port is 1234
C121.2.4.5/1 C5 C28.10/12
Complete override; connection is started with host 121.2.4.5, port 1 Connect to 129.1.2.5, port 1234 Connect to 129.1.28.10, port 12
Autostart (Automatic Connection): If autostart is enabled, the unit automatically connects to the remote IP address and remote port specified. Datagram Type: When selecting this option, you will be prompted for the Datagram type. Enter 01 for directed or broadcast UDP. Modem (Emulation) Mode: In Modem 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 device servers, and to use an Ethernet connection instead of a phone call, without having to change communications applications and make potentially expensive phone calls. To select Modem Mode, set the Connect Mode to C6 (no echo), D6 (echo with full verbose), or D7 (echo with 1-character response). Note: If the unit is in Modem Mode and the serial port is idle, the unit can still accept network TCP connections to the serial port if Connect Mode is set to C6 (no echo), D6 (echo with full verbose), or D7 (echo with 1-character response). In Modem Mode, echo refers to the echo of all of the characters entered in command mode; it does not mean to echo data that is transferred. Quiet Mode (no echo) refers to the modem not sending an answer to the commands received (or displaying what was typed). To disconnect a connection using Modem Mode commands: • There must be 1-second guardtime (no data traffic) before sending +++. • There must not be a break longer that 1 second between +s. • There must be another 1-second guardtime after the last + is sent. • The unit acknowledges with an OK to indicate that it is in command mode. • Enter ATH and press Enter. It is echoed if echo is enabled. ATH is acknowledged by another OK.
3-18
CoBox-FL User Guide
Page 57
Configure
Table 11 - 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). Makes a connection to an IP address (x.x.x.x) and the remote port number defined within the unit. Forces the unit into monitor mode if a remote IP address and port number are defined within the unit. Forces the unit into monitor mode if a remote IP address and port number are not defined within the unit. Makes a connection to an IP address (x.x.x.x) and the remote port number defined within the unit. Hangs up the connection (Entered as +++ATH ). Enables or disables connections from the network going to the serial port. n=0 disables the ability to make a connection from the network to the serial port. n=1-9 enables the ability to make a connection from the network to the serial port. n>1-9 is invalid. Enables or disables character echo and responses. n=0 disables character echo and responses. n=1 enables character echo and responses. Enables 1-character response or full verbose. n=0 enables 1-character response. n=1 enables full verbose.
ATDTx.x.x.x ATD0.0.0.0 ATD ATDx.x.x.x ATH
ATS0=n
ATEn
ATVn
Note: These AT commands are only recognized as single commands like ATE0 or ATV1; compound commands such as ATE0V1 are not recognized. All other AT commands with Modem Mode set to full verbose acknowledge with an OK, but no action is taken.
CoBox-FL User Guide
3-19
Page 58
Configure
3.6.6 Remote IP Address This is the destination IP address used with an outgoing connection.
3.6.7 Remote Port The remote TCP port number must be set for the unit to make outgoing connections. This parameter defines the port number on the target host to which a connection is attempted. Note: To connect an ASCII terminal to a host using the unit for login purposes, use the remote port number 23 (Internet standard port number for Telnet services).
3.6.8 DisConnMode Note: See Table 35 - Binary to Hexadecimal Conversion Table. Table 12 - Disconnect Mode Options Disconnect Mode Option
7
(6)
1 0
Disconnect with DTR drop Ignore DTR Telnet mode and terminal type setup (1) Channel (port) password (2)
6
5
3
2
1
0
1 1
(3)
Hard disconnect Disable hard disconnect State LED off with connection
0 1 1
(4)
Disconnect with EOT (^D) (5)
4
1
1. The CoBox will send the "Terminal Type" upon an outgoing connection. 2. A password is required for a connection to the serial port from the network. 3. The TCP connection will close even if the remote site does not acknowledge the disconnection. 4. When there is a network connection to or from the serial port, the state LED will turn off instead of blink. 5. When Ctrl D or Hex 04 are detected, the connection is dropped. Both Telnet mode and Disconnect with EOT must be enabled for Disconnect with EOT to function properly. Ctrl D will only be detected going from the serial port to the network. 6. When DTR on the CoBox/UDS product transitions from a high state to a low state, then the network connection to or from the serial port will drop.
3-20
CoBox-FL User Guide