Download Chapter II Installing

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Wake-on-LAN wikipedia , lookup

AppleTalk wikipedia , lookup

Lag wikipedia , lookup

Power over Ethernet wikipedia , lookup

TCP congestion control wikipedia , lookup

Recursive InterNetwork Architecture (RINA) wikipedia , lookup

Internet protocol suite wikipedia , lookup

Remote Desktop Services wikipedia , lookup

Zero-configuration networking wikipedia , lookup

RS-232 wikipedia , lookup

Cracking of wireless networks wikipedia , lookup

Parallel port wikipedia , lookup

Transcript
User's Manual of Serial Server /Terminal Server
Contents
Charter One: Overview ..................................................................................................................... 4
1.1 Introduction ............................................................................................................................ 4
1.2 Features ................................................................................................................................... 4
1.3 Specifications.......................................................................................................................... 4
Chapter II Installing .......................................................................................................................... 6
2.1 Hardware Installing ................................................................................................................ 6
2.1.1 Serial ports connections ................................................................................................... 6
2.1.2 Power Connection............................................................................................................ 6
2.1.3 Internet Connection ......................................................................................................... 6
2.1.4 Indicator Light ................................................................................................................. 6
2.2 Software Installing .................................................................................................................. 7
2.2.1 Introdction of IOLAN Working Model ........................................................................ 7
2.2.2 Installing driver under the windows platform.................................................................. 8
2.2.3 Installing driver under the SCO UNIX platform ........................................................... 10
2.2.4 Installing driver under the Linux platform .................................................................... 10
Chapter III Log-in and Configuration ............................................................................................. 11
3.1 Log-in ................................................................................................................................... 11
3.1.1 Log-in under the windows platform .............................................................................. 11
3.1.2 Installing driver under the UXIX/LINUX platform....................................................... 12
3.2 Basic Configuration .............................................................................................................. 13
3.2.1 Command about Server(local IP configuration) ............................................................ 14
3. 2.2 Main Command about Port (Configuration of parameter in serial ports) ..................... 16
3.2.3 Command about ROUTE .............................................................................................. 17
3.2.4 Command about SERURE ............................................................................................ 18
3.2.5 Command to USER ....................................................................................................... 19
3.2.6 Command about ping..................................................................................................... 20
3.2.7Command about stats (state, statistics) ........................................................................... 20
Chapter IV
IOLAN Work Model .............................................................................................. 22
4.1 TCP Real port (Windows extended serial ports mode)......................................................... 22
4.1.1 Configuration of IOLAN ............................................................................................... 22
4.1.2 Installing driver.............................................................................................................. 22
4.1.3 Configurating Serial ports ............................................................................................. 22
4.2 TCP/UDP Socket Mode ........................................................................................................ 22
4.2.1 TCP client ...................................................................................................................... 26
4.2.2 TCP server ..................................................................................................................... 27
4.2.3 UDP ............................................................................................................................... 28
4.2.4 TCP/UDP socket Sample—pair connect ....................................................................... 29
2
4.3 Multi screens TTY (link terminal character) Mode .............. Error! Bookmark not defined.
4.3.1 Configurate IOLAN ....................................................... Error! Bookmark not defined.
4.3.2 Installing driver under the SCO UNIX platform ........................................................... 35
4.3.3 Installing under the linux platform ................................................................................ 37
4.4 PPP dialout/deamon Mode ................................................................................................... 39
4.4.1 Configurate IOLAN ....................................................................................................... 39
4.4.2 PPP dialout .................................................................................................................... 40
4.4.3 PPP daemon ................................................................................................................... 41
4.5 Line printer deamon Mode ................................................... Error! Bookmark not defined.
4.5.1 Configurating IOLAN ................................................... Error! Bookmark not defined.
4.5.2 Installing print driver under the WINDOWS platform .. Error! Bookmark not defined.
4.5.3 Setup of remote printer queue under the SCO UNIX platform ..................................... 49
Chapter V Advanced setup of IOLAN ......................................... Error! Bookmark not defined.
Chapter VI Configuration of API in IOLAN COM Port ............................................................. 54
Chapter VII Linear order of IOLAN ............................................................................................ 57
7.1 Definition of the single serial port pin and its linearorder .................................................... 57
7.2 Make the straight-through cable for broadcom..................................................................... 57
7.3Linear order of the serial port 2/4/8/16/32 ............................................................................. 58
7.4 Basic connection of the cable of serial port 2/4/8/16/32 ....................................................... 59
Charter One: Overview
1.1 Introduction
Welcome to use our series of terminals/ serial server (Hereinafter referred to as IOLAN), IOAN is
a converter between Asynchronous serial port(RS-232/RS-422/RS-485)and Ethernet RJ45 port, as
well as a independent intelligent device with CPU, built-in OS, and complete TCP / IP protocol stack.
It completed the conversion between RS-232 format data and Ethernet IP data, and thus to add
network savvy to traditional serial device.
3
1.2 Features

There are 1,2,4,8,16,32 interface

10/100M self-adaptive Ethernet interface

RJ45/25 Stylus, RS232 male connector plug,DTE style

Support for multiple hosts to share with equipment

Drive the COM port under the Windows NT/2000/XP platform

Fixed TTY Driver under the SCO Unix platform

Fixed TTY Driver under the SCO Unix platform

PPP dial-up connection authentication (PAP/CHAP/RADIUS)

Simple-to-use management program under the Windows platform

Provide security mechanisms of network access (IP / MAC)

Offer all the C source code to visit IP under the Socket platform to visit IP and use IP serial
ports under any OS supporting TCP/IP
1.3 Specifications
CPU: 32 bit 100MHz
Memory:8 MB
Ethernet speed:10/100 Mbps, self setting,and support manually operation.
Communication mode:
10M-semiduplex and 10-full duplex, 100M-semiduplex and 100M-full duplex
Interface protection:15KV electromagnetic isolation
Serial port:From 1 to 32 RS-232/RS422/RS485
Ports connection type:
Ethernet port:RJ45;
RS232/422/485port:RJ45 (single serial ports are DB9 pin)
Signal:
RS232: TxD, RxD, RTS, CTS, DTR, DSR, DCD, GND
RS485 HALF: DATA+, DATA-, GND
RS485 FULL: TxD+, RxD+, TxD-, RxD-, GND
RS422:
TxD+, RxD+, TxD-, RxD-, GND
The data bit of the communication parameter in the serial ports: 5, 6, 7, 8
Examination: None, Even, Odd, Space, Mark
Stop bit: 1, 1.5, 2
Flow control: RTS/CTS, XON/XOFF
Speed: 300 bps to 460800 bps
Protocol: DHCP, Telnet, TCP, UDP, IP, ICMP, ARP
Real Com Driver:Windows NT/2000/XP/7,
TTY Driver:SCO UNIX, Linux
4
Configuration: by the serialization of CONSOLE port in RS-232, Telnet
Indicator light:
Power Indicator in serial ports (Power), Link Ethernet/transmit-receive light (Link/ Act), indicator
light for the speed of Ethernet (100/10), receive (Rx), transmit (Tx)
Work Mode:
Drive mode under Windows, log-in mode, Socket Mode、Serial ports-PPP Mode, LPD print mode
Software support:
Configuration systems under the Windows NT/2000/XP platform and COM Port Driver
Configuration under the SCO Unix/LUNIX platform and tty Driver
Explore C source program under the TCP/IP cross-platform
Power Input: 110~230V AC,9~48V DC
Operating Temperature: -10 to 70 °C
Operating Humidity: 5 to 95%
Store Temperature: -40 to 80 °C
Like in other types of software, there are different configuration methods, and adjustment should be considered.
Chapter II Installing
2.1 Hardware Installing
2.1.1 Serial ports connections
IOLAN has 1 /2 / 4/ 8/ 16/ 32 serial ports in the form of DTE, such as RS232 /RS422
/RS485, there is an exact serial port which is the same as that of a standard PC.
According to your software, there are three ways to connect:
If you once have a line to connect the device device with PC COM port, you can directly
use the line to connect your device with the serial port in ; or you can also buy a
converter between RJ45 and DB9 to connect; in the appendix of the manual, it offers
the definition of a signal wire in . So you can design a connection line according to
your own demand.
5
2.1.2 Power Connection
Two steps to connect power:
1 Connect the DC plug of the power adapter with the DC outlet of
2 Connect the AC plug of the power adapter with your patch board in the utility power.
2.1.3 Internet Connection
IOLAN has three ways to connect Ethernet:
Generally, you can only use Internet cable or choose the HUB/SWITCH connecting line in the
“options”, one end to connect the HUB/SWITCH, the other end to connect RJ45 in .
Sometimes, the users can use , instead of HUB/SWITCH. They can use the straight-through cable
for broadcom in the , one end to connect the broadcom of the host computer, the other end to
connect RJ45 in the .
2.1.4 Indicator Light
In the front panel of , there are four indicator lights:
POWER: indicates the device connection with power
LINK/ACT: when the light is constantly on, it shows the device right connection with Ethernet;
when the light flickers, it means Ethernet is receiving and transmitting the data.
100M/10M: when the light is constantly on, it means the speed of Ethernet is 100M; when the
light is off, it shows the speed is 10M.
FULL/HALF: when the light is constantly on, it shows the full duplex mode; when the light is off,
it shows the semiduplex mode.
The Tx & Rx light in the framework represents the serial port is transmitting and receiving.
2.2 Software Installing
2.2.1 Introdction of IOLAN Working Model
An advanced serial server, it is also a converter between asynchronous serial port and Ethernet port.
It extends the serial server in computer, and makes the traditional serial device update into Internet
device. Therefore, the users control these devices by local area network, enterprise network,
metropolitan area network and even Internet.
In order to be suitable for different occasions, offers five kinds of working model: Windows
6
expended serial port mode, Socket mode, serial port PPP mode, and LPD print mode. Before you use,
you should know your own application model. And also know what kinds of applications has. Then
you can know how to connect the application environment with the application model in.
 TCP/UDP Real port (Windows extended serial ports mode)
The expended Com port driver under the Windows platform, it offers simple-to-use management
system under the Windows platform. They are no less than1024 serial ports under the Windows
NT/Windows2000/Windows XP.
In this model, each serial port of can reflect into the local COM port under the Window platform in
the host computer. This means using these serial ports is like using the local COM port in the host
computer, and it also means the current software or communication module which are used on this
serial ports can directly use without any adjustment. See details in 4.1.
 Multi screens TTY(UNIX Log-in mode)
The terminal device can use this mode to log in Linux/Unix host computer. In this mode, each serial
port can support at most six virtual screens on average. Each screen supports two ways of log in
ways: standard TELNET and RTELNET. And each screen can also log in different host computer or
the same one. By hot key command, one terminal which supports connection with different host
computer, which fully realize that one person in one terminal can undertake multitask. In the fixed
terminal mode of RTELNET, it offers Fixed TTY driver under the SCO Unix/Linux/Unix ware. The
users can log in the terminal with any names beginning with TTY, which largely eases the
management work and also easily reduce the errors. See details in 4.3.
 PPP dialout/PPP daemon(as the server or client of PPP)
Each serial port of can support PPP. By configuration, each serial port can be used as server or client
of PPP. It can support remote dial-up access service. It can be used as the dialing-in and dialing-out
server in the remote dialing-up service system. If it employs RS-232 mode from two sides, it can
also use PPP to connect, for example, the optical transmitter and receiver of RS-232. See details in
4.4.
 TCP/UDP Socket(Socket access module basis on network communication)
It provides all data and sample source code to visit basis on access Socket, which can be used to visit
and control the serial port of under the OS supporting TCP/IP. Under the TCP/UDP Socket mode,
there are tcp client, tcp server, and udp, which play a role respectively in TCP client, TCP server and
UDP function. See details in 4.2.
 Line printer daemon (Serial port work in LPD mode)
This mode focuses especially on the application of serial port printer, and also supports LPD print
queue. See details in 4.5.
7
2.2.2 Installing driver under the windows platform
Run the compact disc \driver\fixed port program in files under Windows: setup4.2.2
Click “NEXT” to select installing list:
Click “NEXT”:
8
After successful installation, there will be “COM port over TCP / IP” in the control panel.
2.2.3 Installing driver under the SCO UNIX platform
fx_ttyd.tar is the driver of fixtty under the sco unix platform, set-up procedure is as follows:
Notice: if you have once installed this driver, please uninstall, then install new driver.
1. If you use CD to install:
# mount /dev/cd0/mnt
mount CD
# cd/mnt/drivers/driver/unix
copy driver to root directory
# tar xvf fx_ttyd.tar
decompress driver
# cd/tmp/fx_ttyd
go to the directory
# ./build
run Setup
2. If you use floppy disk to install:
# doscp a:fx_ttyd.tar /
copy the files to directory
# cd /
# tar -xvf fx_ttyd.tar
untie tar
# cd /tmp/fx_ttyd
# ./build
setup
Notice: during setup, it will automatically connect kernel, and reboot the UNIX system.
2.2.4 Installing driver under the Linux platform
Start Linux system, then copy ht_rt.tar program from CD to hard disk
# mcopy x: ht_rt.tar /
# tar xvf ht_rt.tar
# cd /tmp/tmp/_rtel
# ls
9
install
# ./install
RTELNET driver v1.0 for LINUX2.2, 2.4, 2.6
============================================
1.Install the driver.
2.Remove the driver.
q.Quit.
============================================
Please select=>1
Install driver succeed!!!
Press any key to continue....
# _cfg
Configuration interface appears
10
Chapter III Log-in and Configuration
There are usually two ways to log in:
1. By telnet, log in under the windows platform;
2. By the first serial port or CONSOLE port (some types do not have console port) in the terminal
of serial port, log in under the UNIX / LINUX platform.
3.1 Log-in
3.1.1 Log-in under the windows platform
1. Connect power and Ethernet, if the straight-through cable directly connects with hub or switch,
if the crosswire, it will directly connect with the broad com in PC;
2. Power on, watch the light;
3. Default IP address of : 192.168.0.233 ;
4. Use tool software-htutls.exe in CD(in the directory of driver in CD) to confirm the state of the
device;
5. Click the icon
to scan the device;
6. Find the online device;
7. No matter whether and you are in the same network segment, htutls.exe can always find.
However, only in the same network, you can log in and configurate it.
8.
It is probably not in your operating network, there are two ways to connect:
1. By adding routing to connect PC with :
The default IP address of is: 192.168.0.233, suppose your IP address: 168.8.0.88
11
input: route add 192.168.0.233 168.8.0.88
Then input telnet 192.168.0.233. That is all.
2. You can use the same temporary network, which is given by htutls.exe to. Then you click the
icon it will generate a
window, then you input temporary IP address the same as PC, for
example, 168.8.0.99.
Click OK, and establish a temporary IP address to the device, at this time, you can telnet
168.8.0.99
Log-in configuration.
Of course, the easiest way is to change the temporary IP address of PC into the same as
that of , then to log in configuration.
3.1.2 Installing driver under the UXIX/LINUX platform
Use the first serial port or CONSOLE port (partial types) in the terminal to log in.
When one end of the serial port connects to 1, the other end connects with PC or terminal.
12
3.2 Basic Configuration
Basic Configuration
Log in configuaration Interface
Suppose you are already in the same network, and use the leave factory IP address, click start, <<run->> telnet 192.168.0.233
Enter the log in configuration interface.
Interface commands
COMMON
setup the server
SERVER
setup serial Server IP
ANYNC
setup serial port
MODE
setup serial mode
ROUTE
setup route path
HOST
setup host computer
SECURE
edit the list of access
USER
about the users
PING
the host computer of ping
STATS
state of the device
13
3.2.1 Command about Server(local IP configuration)
In the interface choose Server, enter configuration interface:
Main commands about Server
Server name:
Name the local device, default is , use character like “1~9”,”a~z”, “A~Z”.
Server position:
In order to find the name of the device, value characters like “1~9”,”a~z”, “A~Z” are usually empty.
IP :
the local IP address 给本定义的 IP 地址
mask:
subnet mask
mode:
Ethernet work model, 10/100M adaptive mode, full duplex/ semiduplex
Value span auto|100f|100h|10f|10h
auto – 10/100M self adaptive mode
100f – 100M full duplex
100h – 100M semiduplex
10f – 10M full duplex
10h – 10M semiduplex
Use DHCP:
whether support IP address from the server of DHCP
value yes|no
yes –use the server dhcp
no –not use the server dhcp, default value
DHCP CLIENT ID:
14
When supports DHCP, some settings need to add identification number of, value the sexadecimal
digit like ‘0-9’,‘a-f’.
default gateway:
Primary DNS:
First choice, IP address from server DNS
second DNS:
The alternate IP address from server DNS
console timeout:
advanced:
According to the actual demand, write the IP address at ip, if the routing and host computer connect,
then write routing or gateway address in default gateway.
3.2.2 Main Command about Port (Configuration of parameter in serial
ports)
Choose ASYNC, click enter, then write the first serial port:
Click Enter, enter the interface
Main commands about Port
Baud rate
300~460800 bps, there are 17types of speed to choose, default is 9600.
Data bits
there are 5,6,7,8 to choose, default is 8.
Stop bits
choose from 5,6,7,8 , default is 1.
Parity
there are none, odd, even, space, mark to choose, default is n
15
Flow ctrl
there are none,xon/xoff,rts/cts to choose, the default is none
Advance
Session
Sessions:
Convensations times: the connective consersation times,1~6, the default is 1, each conversation has
different work model.
Auth:
none/local, default is none
3.2.3 Command about ROUTE
It offers the setup function of the routing; there are at most sixteen routings in each to be used in
complicated network. Choose ROUTE in the interface, click Enter, then enter the configuration
interface.
Main command about gateway (routing)
ip
the target address
Mask
Internet mask is the target mask internet address. If the target address is single node, then here
you can write: 255.255.255.255;if the targe address is internet segment of the node, here you can
16
write the internet mask of the node.
Gateway
Gateway is the source address. In concrete condition, it can be IP address, or the IP of the router
in LAN.
Metric
Metric shows how many routing it will need to send the data to source address, 0 means direct
connection.
Iface
It means by which port to send data which do not belong to home network Eth1 refers to from
net gape;
ppp1 means from serial port 1;ppp2 means from serial port 2…… (if transmit data from serial port,
the working model should be PPP)
After all the configuration, return to MAIN, SAVE, then REBOOT, to ensure the set parameter to
take effect.
3.2.4 Command about SERURE
Internet security becomes more and more important to the users. Offer a series of security
mechanism, including administration and data access permission and so on. Choose access in the
interface, click Enter, and enter the configuration.
There are three options: secure、IP、MAC
Secure the security of the device, not to permit to access to the computer, setup and download
FIRMWARE
In this option, you can set up four parameters
17
Search enable: permit to search whether you can use digutls.exe which can be searched in the
Internet.
Firmware enable: whether to update firmware in the Internet or not
Telnet enable: whether to permit computer to access to device by telnet or not
Http enable: whether to permit computer to enter the device by Web
IP :IP limit, enter this setup:
Each can set up sixteen sets of IP limit. And also can appoint whether each IP address has right
to read, write and transmit serial ports. If each item sustains empty, it means no limitation.
NET: Here you can input some IP address which has the access permission.
MASK: When you input mask, it means all the nodes which belong to the same internet
segment have the same access.
READ: the appointed IP address has permission to which serial ports. Ctrl-L can illustrate all
the serial ports. And then choose the serial ports which can is limited to access to. (See
the picture below)
18
MAC
MAC limit, enter and set up:
Each can set up 32 MAC limits. Once you input MAC address, you can only link with
appointed MAC address. If every item is empty, it means no limit. MAC sets up the connection;
if every option is empty, it means no limitation.
3.2.5 Command to USER
Choose user in the main interface, click Enter, then you enter the configuration.
19
It can configurate 64 users and relevant password authentication, so it is often used in the mode of
socket or PPP.
3.2.6 Command about ping
Choose ping in the main interface, click Enter, and then enter the configuration.
Input IP address in blank, to test the state of communications: Test 192.168.0.1
3.2.7Command about stats (state, statistics)
Choose stats in the main interface, click Enter, and then enter the configuration.
20
System:System information, Firmaware version, MAC address and so on.
Network interface: network connection port
Active route: operating routing
Serial port: serial port information
ARP table : RP information
TCP socket: TCP information
Active TCP socket: operative TCP information
UDP socket: UDP information
21
Chapter IV IOLAN Work Model
4.1 TCP Real port (Windows extended serial ports mode)
4.1.1 Configuration of IOLAN
Enter the main interface, choose the serial port, and then enter the concrete configuration
interface, also choose mode:
Reselect TCP realport (i.e. the system default)
4.1.2 Installing driver
See details in 2.2.2
4.1.3 Configurating Serial ports
See details in 3.2.2
4.2 TCP/UDP Socket Mode
Enter MAIN interface, choose the serial ports, and then enter the concrete configuration interface.
Meanwhile, choose the TCP/UDP Socket in mode:
22
Enter the interface:
Under the mode of TCP/UDP Socket, there are three protocols, i.e. tcp client, tcp server, udp, which
are looked upon respectively as TCP client, TCP server and UDP function. Among configuration
options, TCP data, CR trans to, LF trans to, sessions, and strip NULL are valid to the three protocols.
The meanings of these configuration options are explained as follows:
TCP data:
It includes two parameters, i.e. raw and telnet. Raw means the transparent transmission, i.e. IOLAN
receives data from serial ports, and then transmits to other nodes by Ethernet; telnet means socket
data is accordance with the standards of TELNET and RFC2217. IOLAN adds some control codes to
the data receiving from the serial ports according to certain rules, and then transmits to other nodes
by socket.
CR trans to:
It includes four parameters, i.e. none, cr, lf and cr-lf.
None means if IOLAN receives “Enter” from the serial ports, it will not transmit to Ethernet;
Cr means, if IOLAN receives “Enter”, it still transmits to Ethernet;
Lf means IOLAN receives “Enter” from the serial port, and then it changes into “newline” in
order to transmit to Ethernet;
Cr-lf means IOLAN receives “Enter” from the serial ports, and then it changes into “Enter” and
“newline” in order to transmit to Ethernet.
LF trans to:
It includes four parameters, i.e. none, cr, lf and cr-lf.
None means, if IOLAN receives “newline” from the serial ports, and it will not transmit to
Ethernet;
23
Lf means IOLAN receives “newline” from the serial ports, and it still transmits to Ethernet;
Cr means IOLAN receives “newline” from the serial ports and it will change into “Enter” in
order to transmit to Ethernet;
Cr-lf means IOLAN receives “newline” from the serial ports, and it will change into “Enter”
and “newline” in order to transmit to Ethernet.
Sessions:
Each serial port of IOLAN can support 1-6 sessions. Sessions refer to IOLAN receives data and
then transmits to Ethernet by socket. More than one session means, IOLAN receives data from
there serial ports and then transmits to Ethernet by more than one socket. Take the following as
examples:
Suppose we set up four sessions, the following is the configuration:
We set up the protocol of “session 1” as TCP client; and the protocol of “session 2” as TCP server;
the protocol of “session 3” as UDP; the protocol of “Session 4” as TCP server. Other parameters of
every session are listed in the above picture. We also suppose that the respective IP address of
“session 2” and “session 4” are 192.168.0.1 and 192.168.0.2. If every session has right connection
with host computer, then data, which IOLAN receives from the serial ports, can be divided into four
directions. And it will transmit into the following four nodes: 192.168.0.18, 192.168.0.1,
192.168.0.99 and 192.168.0.2 according to different protocols. It means the four nodes can fast at the
same time receive the same data. Notice: in Internet we can’t see that several host computers operate
in the same serial port.
4.2.1 TCP client
As the tcp client, IOLAN connects the internet device, such as PC in TCP/IP of Ethernet. By
configuration, then IOLAN will at the right time to connect internet address and the TCP port. After
the establishment of socket, IOLAN can transmit data which is received from the relevant serial port
by socket. On the contrary, socket receives the data and transmits to the relevant serial port.
24
Other configuration options which are related with tcp client are as follows: remote host、port、
connect、disconnect and free time. The meanings of these configuration options are listed in the
following:
Remote host:
IOLAN connects IP address
Port:
IOLAN connects TCP port.
Connect:
IOLAN connects in the following situation including always, char, dcdon and dsron:
Always means IOLAN connects immediately when power is on. And even when power is off, will
reconnect soon;
Char means the moment IOLAN receives data from the relevant serial port, the IOLAN will connect;
Dcdon means when DCD for the relevant serial port of RS-232 in IOLAN is asserted high, IOLAN
will connect;
Dsron shows when DSR for the relevant serial port of RS-232in IOLAN is asserted high, IOLAN
will connect.
Disconnection conditions
After IOLAN set up the connection with socket, the disconnection will always happen in the
following situations, including none, dcdoff, sroff and break:
None, IOLAN never disconnect actively;
Dcdoff, when DCD for the relevant serial port of RS-232 in IOLAN changes from high to low,
IOLAN will disconnect;
Dsroff, when DSR for the relevant serial port of RS-232 in IOLAN changes from high to low,
IOLAN will disconnect;
Break, when the relevant serial port of RS-232 in IOLAN receives break, IOLAN will disconnect.
25
Freetime :
Set up the freetime for disconnection automatically. If during the free time, there is no transmission
of data, IOLAN will disconnect.
Unit is second. The setup of “0” means, no matter how long the freetime is, IOLAN will never
disconnect actively. The range of this option is from 0 to 10000 seconds.
4.2.2 TCP server
IOLAN is used as Tcp server and is connected passively. An important parameter is local port. There
are also some assistant options, such as, auth and auth prompt, which are related with other options
and need other options to configurate.
Local port:
IOLAN offers TCP port which can be connected by other nodes in TCP/IP. The TCP port interrelates
with the relevant serial port in IOLAN.
Auth:
When it is connected, IOLAN needs authentication of the users. If the users and the password can’t
match, the connection will stop. In this configuration options, there are two parameters, none and
local.
None, does not need authentication;
Local, needs authentication.
Notice: when choose local, user should add the relevant user and the right to read and write the serial
ports. If there is no added user, the configuration of auth will be invalid. When you input the
nonexistent user and password, you may even connect.
Auth prompt:
26
If the option is set up yes, it will show log-in message (Login: and Password) during connecting
IOLAN.
4.2.3 UDP
Under the mode of UDP, IOLAN is not only server but also client. The relevant configuration
options are local port, remote host, and port. IOLAN not only supports point-to-point but also
multicase way to transmit like UDP.
For multicase transmission, directly input the multicast address in remote host.
4.2.4 TCP/UDP socket Sample—pair connect
Two IOLAN set up connection by means of respectively TCP server and TCP client in TCP/UDP
socket. It supports Pair Connection, i.e. paired employing, to connect the two IOLAN with Ethernet
TCP/IP, to connect the two ports with RS-232. I n this way, the two IOLAN can be connected
automatically by internet instead of PC.
Suppose there are two PLC, it will need two IOLAN to pair connect by Internet. We assert the IP
address of one IOLAN is 192.168.0.233, which can be used as tcp server, the IP address of the other
is 192.168.0.232, which can be used as tcp client.
Configuration IOLAN
1. Enter the server configuration of the first IOLAN, with the IP address of 192.168.0.233
2. Press ESC and return to main, choose serial port 1 to enter
27
Set up the mode of TCP/UDP socket
3. Set TCP server as protocol
4. Enter the server configuration of the second IOLAN, with IP address of 192.168.0.232
5. Press ESC then return main, and choose serial port 1 and enter, set the mode of TCP/UDP socket
6. Set TCP client as protocol, set IP address of remote host as192.168.0.233, and set port as 10001
7. set the serial ports parameters
Set up the serial ports parameter of the two terminals of the device, such as baud rate, data bit, and
stop bit. Make sure the parameter of IOLAN is the same as that of the device.
After the configuration, the two IOLAN can be used in the mode of pair connection.
When one server is solely used as server or client, just set up according to the above.
Notice: Pair connects can generate many sessions, so one IOLAN can have many serial ports, one of
them can be used as server, the left can be used as client, can realize the one-to-many mode.
Chapter VII Linear order of
IOLAN
It is important to use the linear order of serial port. It is related with whether the data communication
can be connected. Therefore, be careful to examine the linear order required by the purchased
device.
7.1 Definition of the single serial port pin and its linear order
PIN
RS232
RS485-HALF
1
DCD
2
RXD
DATA-
3
TXD
DATA+
4
DTR
RS485-FULL
28
RS422
Explain
RTS-
Data Carrier Detect
TXD-
TXD-
Data reception
TXD+
TXD+
Data transmission
RXD+
RXD+
DataTerminal Ready
5
GND
6
DSR
7
8
GND
GND
GND
Signal Ground
RXD-
RXD-
Data Set Ready
RTS
RTS+
Request to Send
CTS
CTS+
Clear to Send
9
CTS-
7.2 Make the straight-through cable for broadcom
During test or configuration, IOLAN needs to connect PC directly. You can exchange pin 1 and 3,
pin 2 and 6 in the two RJ45 plugs of the Internet cable, the other lines can be connected in a straight
line.
7.3Linear order of the serial port 2/4/8/16/32
RJ45 pin definitions
IOLAN addition to single estuary, the other is to use the RJ45 port form the connection port, the pin
definition:
PIN
RS232
RS485-HALF
RS485-FULL
RS422
1
TXD
DATA+
TXD+
TXD+
2
RXD
DATA-
TXD-
TXD-
3
RTS
RXD+
RXD+
4
CTS
RXD-
RXD-
5
DSR
6
GND
GND
GND
7
DTR
8
DCD
GND
The RJ45 and DB9/DB25 cable sequence
RJ45
PIN
1
2
3
4
5
TXD
RXD
RTS
CTS
DSR
DB9 pin
PIN
3
TXD
2
RXD
7
RTS
8
CTS
6
DSR
DB9 hole
PIN
2
TXD
3
RXD
8
RTS
7
CTS
4
DSR
29
DB25 pin
PIN
2
TXD
3
RXD
4
RTS
5
CTS
6
DSR
DB25 hole
PIN
3
TXD
2
RXD
5
RTS
4
CTS
20
DSR
6
GND
5
GND
5
GND
7
GND
7
GND
7
DTR
4
DTR
6
DTR
20
DTR
6
DTR
8
DCD
1
DCD
8
DCD
DB9 pin definitions
DB25 pin definitions
7.4 Basic connection of the cable of serial port 2/4/8/16/32
We usually do not need to connect all the pins of RJ45and DBX, only need three straight lines(RJ45
to receive, transmit and connect ground), i.e.normal communication. Therefore, we recommend for
you to use in this way.
RJ45
DB9 pin
DB9 hole
DB25 pin
DB25 hole
PIN
PIN
PIN
PIN
PIN
1
TXD
3
TXD
2
TXD
2
TXD
3
TXD
2
RXD
2
RXD
3
RXD
3
RXD
2
RXD
6
GND
5
GND
5
GND
7
GND
7
GND
Do DB9 pin cable method:
RJ45
DB9 pin
1
-------------
3
2
-------------
2
6
-------------
5
30