The text of a manual · part 11 of 16
CoBox-FL/CoBox-FL-IAP User Guide, pages 90 to 98
Pages 90 to 98 of 135
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 90
UDP
8.3.1 Channel Parameters Use the following table to select setup record parameters for Channels 1: Table 22 - Channel Parameters Byte(s) (Channel 1) 16 17
18 19 20-21 22-23 24-27 28 29 30 31 32-33 34 35 36-47 48-63
Function Interface Mode (see Table 23 - Interface Mode Options) Line Speed Bits 7-5: Reserved Bits 4-0: Baud Rate (see Table 25 - Baud Rate Settings) Flow Control (see Table 26 - Flow Control Options) Reserved Own TCP port low-byte, high-byte (Intel) Remote TCP port low byte, high-byte (Intel) Remote IP address (low/high low/high) Connect Mode (see Table 27 - Connect Mode Options) Disconnect Mode (see Table 28 - Disconnect Mode Options) Disconnect w/ inactivity time-out, minutes (00 if unused) Disconnect w/ inactivity time-out, seconds (00 if unused) Characters to trigger send immediately (sendchar) Flush mode (see Table 29 - Flush Mode Options) Pack Control (see Table 30 - Pack Control Options) Reserved (0) a) Terminal name for Telnet terminal type option (15 characters max), 0-terminated. If set and Bit 6 in Disconnect Mode is set, Telnet connection will be assumed.
b) Password for Passworded Socket Connection (Bit 4 in Disconnect Mode Set).
8-8
CoBox-FL User Guide
Page 91
UDP
8.3.2 Interface Mode The Interface (I/F) Mode is a bit-coded byte entered in hexadecimal notation. Use the following table to select Interface Mode settings: Table 23 - 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 bits
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. The following table demonstrates how to build some common Interface Mode settings: Table 24 - Common Interface Mode Settings Option
(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, 2 stop bits (1)
Binary
Hex
0100 1100 0111 1000 0100 1111 1101 1101
4C 78 4F DD
(1) The CoBox-FL requires you to choose the correct setting in the IF mode. Note: See Table 35 - Binary to Hexadecimal Conversion Table.
CoBox-FL User Guide
8-9
Page 92
UDP
8.3.3 Baud Rate The Device Server and attached serial device must agree on a speed or baud rate to use for the serial connection. Use the following table to select Baud Rate settings: Table 25 - Baud Rate Settings Speed (bps)
Hex
38400 19200 9600 4800 2400 1200 600 300 115200 57600
00 01 02 03 04 05 06 07 08 09
8.3.4 Flow Control Flow control sets the local handshaking method for stopping serial input/output. Generally, flow control is not required if the connection is used to pass a blocked protocol with block sizes less than 1k (ACK/NAK) and/or speeds of 19200 or less. Use the following table to select Flow Control options: Table 26 - Flow Control Options 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
8-10
CoBox-FL User Guide
Page 93
UDP
8.3.5 Connect Mode Connect Mode defines how the Device Server makes a connection, and how it reacts to incoming connections over the network. Use the following table to select Connect Mode options: Table 27 - 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=conn, D=disconn, 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
Note: See Table 35 - Binary to Hexadecimal Conversion Table.
CoBox-FL User Guide
8-11
Page 94
UDP
8.3.6 Disconnect Mode In Disconnect Mode, DTR drop either drops the connection or is ignored. Use the following table to select Disconnect Mode Options: Table 28 - 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
4
3
2
1
1 1
(3)
Hard disconnect Disable hard disconnect State LED off with connection
0 1 1
(4)
Disconnect with EOT (^D) (5)
0
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.
Note: See Table 35 - Binary to Hexadecimal Conversion Table.
8-12
CoBox-FL User Guide
Page 95
UDP
8.3.7 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. Use the following table to select Flush Mode options: Table 29 - Flush Mode Options Function
7
6
5
4
3
2
1
0
Input Buffer (Serial to Network) Clear with a connection that is initiated from the UDS to the network Clear with a connection initiated from the network to the UDS Clear when the network connection to or from the UDS is disconnected
1 1 1
Output Buffer (Network to Serial) Clear with a connection that is initiated from the UDS to the network Clear with a connection initiated from the network to the UDS Clear when the network connection to or from the UDS is disconnected
1 1 1
Alternate Packing Algorithm (Pack Control) Enable
1
Note: See Table 35 - Binary to Hexadecimal Conversion Table.
8.3.8 Pack Control Alternate packing algorithm settings are enabled in Flush Mode. Use the following table to select Pack Control options: Table 30 - Pack Control Options Option Idle Time Force transmit: 12ms Force transmit: 52ms Force transmit: 250ms Force transmit: 5sec Trailing Characters None One Two Send Characters Sendchars Define 2-Byte Sequence Send Immediately After Sendchars
CoBox-FL User Guide
7 6 5 4 3 2 1 0 0 0 1 1 0 0 1
0 1 0 1
0 1 0
1 1
8-13
Page 96
UDP
8.4 IP Addresses Each TCP/IP node on a network host has a unique IP address. This address provides the information needed to forward packets on the local network and across multiple networks if necessary. IP addresses are specified as x.x.x.x, where each x is a number from 1 to 254; for example, 192.0.1.99. The Device Server must be assigned a unique IP address to use TCP/IP network functionality. IP addresses contain three pieces of information: the network, the subnet, and the host.
8.4.1 Network Portion The network portion of the IP address is determined by the network type: Class A, B, or C. Table 31 - Network Portion of IP Address Network Class
Network Portion of Address
Class A Class B Class C
First byte (2nd, 3rd, and 4th bytes are the host) First 2 bytes (3rd and 4th bytes are the host) First 3 bytes (4th byte is the host)
In most network examples, the host portion of the address is set to zero. Table 32 - Available IP Addresses Class Reserved
Available
A
1.0.0.0 to 126.0.0.0
B C D, E
0.0.0.0 127.0.0.0 128.0.0.0 191.255.0.0 192.0.0.0 223.255.255.0 224.0.0.0 to 255.255.255.254 255.255.255.255
128.1.0.0 to 191.254.0.0 192.0.1.0 to 223.255.254.0 None (Check this)
Consider the IP address 36.1.3.4. This address is a Class A address; therefore, the network portion of the address is 36.0.0.0 and the host portion is 1.3.4.
8.4.2 Subnet Portion The subnet portion of the IP address represents which sub-network the address is from. Subnetworks are formed when an IP network is broken down into smaller networks using a subnet mask.
8-14
CoBox-FL User Guide
Page 97
UDP
A router is required between all networks and all sub-networks. Generally, hosts can send packets directly only to hosts on their own sub-network. All packets destined for other subnets are sent to a router on the local network.
8.4.3 Host Portion The host portion of the IP address is a unique number assigned to identify the host.
8.4.4 Network Address A host address with all host bits set to 0 addresses the network as a whole (for example, in routing entries). 192.168.0.0
8.4.5 Broadcast Address A host address with all host bits set to 1 is the broadcast address, meaning for “for every station.” 192.168.0.255
Network and broadcast addresses must not be used as a host address; for example, 192.168.0.0 identifies the entire network, and 192.168.0.255 identifies the broadcast address. IP Subnet Mask An IP subnet mask divides IP address differently than the standards defined by the classes A, B, and C. An IP subnet mask defines the number of bits to be taken from the IP address as the network or host sections. The Device Server prompts for the number of host bits to be entered and then calculates the netmask, which is displayed in standard decimal-dot notation (for example, 255.255.255.0) when saved parameters are displayed. Table 33 - Standard IP Network Netmasks Network Class Network Bits Host Bits Netmask A B C
8 16 24
CoBox-FL User Guide
24 16 8
255.0.0.0 255.255.0.0 255.255.255.0
8-15
Page 98
UDP
Table 34 - Netmask Examples Netmask
Host Bits
255.255.255.252 255.255.255.248 255.255.255.240 255.255.255.224 255.255.255.192 255.255.255.128 255.255.255.0 255.255.254.0 255.255.252.0 255.255.248.0 ... 255.128.0.0 255.0.0.0
2 3 4 5 6 7 8 9 10 11 ... 23 24
8.4.6 Private IP Networks and the Internet If your network is not and will not be connected to the Internet, you may use any IP address. If your network is connected or will be connected to the Internet, or if you intend to operate the Device Server on an intranet, you should use one of the reserved sub-networks. Consult your network administrator with questions about IP address assignment.
8.4.7 Network RFCs For more information about IP addresses, refer to the following documents, which can be located on the World Wide Web using one of the following directories or indices: • RFC 950 Internet Standard Subnetting Procedure • RFC 1700 Assigned Numbers • RFC 1117 Internet Numbers • RFC 1597 Address Allocation for Private Networks
8-16
CoBox-FL User Guide