Configure
The following table demonstrates how to build some common Interface Mode settings:
Table 8 - Common Interface Mode Settings
Common I/F Mode Setting Binary Hex
RS-232C, 8-bit, No Parity, 1 stop bit 0100 1100 4C
RS-232C, 7-bit, Even Parity, 1 stop bit 0111 1000 78
3.13.3 Flow
Flow control sets the local handshaking method for stopping serial input/output.
Table 9 - Flow Control Options
Flow Control Option Hex
No flow control 00
XON/XOFF flow control 01
Hardware handshake with RTS/CTS lines (see note) 02
XON/XOFF pass characters to host 05
Note: RTS and CTS control lines are not enabled at the factory. See Configurable Pin Settings on page 3-13.
Note: On the NET232, CP0 should only be set to Clear To Send (CTS) or the default setting. CP1 is not used. CP2
should only be set to Ready To Send (RTS), Data Terminal Ready (DTR) or the default setting.
3.13.4 Port Number
The setting represents the source port number in TCP connections. It is the number used to identify the
channel for remotely initiating connections. Default setting for Port 1 is 10001. Range: 1-65535 except for
the following reserved port numbers:
Table 10 - Reserved Ports
Port Numbers Reserved for
1 – 1024 Reserved (well known ports)
9999 Telnet setup
14000-14009 Reserved for Comm Port Redirector
30704 Reserved (77F0h)
30718 Reserved (77FEh)
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. 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.
If the port number is set to 0, the initial value of 50000 will be used to actively establish a connection. Each
subsequent connection will increment the number by 1. When the port number reaches 59999, it will wrap
back to 50000.
The automatic port increment feature must only be used when this device is the one initiating a connection
using TCP. The port must be set to a non-zero value when this is a passive device or when UDP is being
used instead of TCP.
NET232/NETUSB User Guide 3-21