background image

 

 

LIN101                              

 

 

 

 

RS232 / LAN INTERFACE 

ELPRO Video Labs s.r.l. 

Via della Praia 4/a FERRIERA di BUTTIGLIERA ALTA (TO) - ITALY 

Tel. +39 0119348778 - FAX +39 0119348779 

so the packet can be sent from any port. Whenever the LIN101 has the data to transmit in the serial -> 

Ethernet direction it will send the data to the Destination IP-address and Destination Data Port Number. 

The packet will be sent to the Destination Data Port Number even if the packet received by the LIN101 

from the remote station originated at a different port. Therefore, it possible that the LIN101 will be 

receiving the data from one port but sending it to another port! 

 

 

TCP/IP Transport Protocol 

 

o

  Slave Routing Mode. 

The LIN101 will accept an incoming TCP connection from any station on the network. The LIN101 will 

not attempt to establish a connection with a remote station by itself even it the LIN101 has the data to 

transmit in the serial -> Ethernet direction. Once the remote station has established the connection the 

data can flow independently in either direction. Pending serial -> Ethernet data received by the LIN101 

prior to the TCP connection establishment is discarded when the connection is established. 

 

o

  Master Routing Mode. 

The LIN101 will both accept an incoming TCP/IP connection and attempt to establish a connection with 

the remote station by itself depending on which side sends that data first- remote station or attached 

serial device. Incoming TCP connection will only be accepted from a station whose IP-address 

matches the one defined by the Destination IP-address Setting of the LIN101. Source port number 

need not match the one defined by the Destination Data Port Number Setting so the connection can be 

initiated from any port. When the LIN101 needs to initiate a TCP/IP connection the it will attempt to 

connect to the Destination IP-address and Destination Data Port Number. Once the connection has 

been established the data can flow independently in either direction. Note that unlike in case of UDP/IP 

there will never be a situation when the LIN101 receives the data from one port but sends the data to 

another port. Once the TCP/IP connection has been established both sides exchange the data using a 

single port on each side. 

 

 

3.4 Connections with more than two nodes 

 

In many real-life situations it is often necessary to have several PCs (network stations) access the same serial device 

through the LIN101 (“many clients to one data source”) or have many serial devices (each connected to the network via 

its own LIN101) send the data to a single PC (“many data sources to one client”). 

 

 

Many clients to one data source 

operation is achieved by using the LIN101 in the Slave Routing Mode. The 

LIN101 will reply to any sender in this mode, so any station will be able to access the host serial device with the 

LIN101 inside. 

 

o

  UDP/IP Transport Protocol should not be used if there is a chance that several different clients will send the 

requests to the same LIN101/serial device at the same time. Data mix up will result on the serial side and 

the LIN101 won’t be able to route the data back to the respective sender of each command correctly. 

 

o

  TCP/IP Transport Protocol can be used safely since when one client is already connected to the LIN101 

others won’t be able to gain access to the same LIN101 until this client disconnects. To prevent one client 

from holding the TCP/IP connection to the LIN101 indefinitely there is a Connection Timeout Setting that 

defines after how long the LIN101 will abort the connection in case there is no data transfer in any direction. 

 

 

Many data sources to one client 

operation is achieved by using the LIN101 in the Master Routing Mode. In 

this mode the LIN101 will route all its serial -> Ethernet data to the Destination IP-address and Destination Data 

Port Number. Any number of LIN101s can be set to send the data to the same destination. 

 

o

  UDP/IP Transport Protocol can be used in this arrangement but you must make sure that each serial data 

block output by the serial device is sent out in a single UDP packet. Potential data mix up can occur on the 

receiving end if the serial data block is transmitted in several UDP packets and several LIN101 are sending 

data at the same time. The upside of using the UDP/IP is that you will only need to maintain one listening 

socket on the receiving end to get the data from all data sources (unless, of course, you want to  distinguish 

between the data sources). Several LIN101’s Settings define how the incoming serial data is combined into 

Ethernet packets so you can make sure that the serial data block from is not split into several packets (see 

serial -> Ethernet data routing for details). 

 

o

  TCP/IP Transport Protocol can be used safely but you will have to maintain a separate socket on the 

receiving end for every data source sending the data. 

 

 

 

4 Serial to Ethernet data routing 

Содержание LIN101

Страница 1: ...LIN101 RS232 LAN INTERFACE ELPRO Video Labs s r l Via della Praia 4 a FERRIERA di BUTTIGLIERA ALTA TO ITALY Tel 39 0119348778 FAX 39 0119348779 1 LIN101 RS232 LAN INTERFACE 24 02 2004 English ...

Страница 2: ...serial devices Using the LIN101 you can add an Ethernet port practically to any serial device with RS232 interface It is possible to communicate with any serial device from any PC or other device connected to the LAN If the LAN has a direct connection to the Internet then the serial device is accessible from anywhere in the world LED 1 and 2 LIN101 Status LED 3 and 4 Ethernet Status SETUP Button 9...

Страница 3: ...parently reroute the data via the TCP IP network to the LIN101 enabled serial device VSPs allow you to continue using your existing PC software without any modification with a serial device and you are creating a new PC software to control it then you can develop software that communicates with the LIN101 directly without VSPD The LIN101 transmits the data using industry standard UDP IP and TCP IP...

Страница 4: ...01 performs its Etherne Serial data routing Network Programming of the LIN101 can also proceed in the Normal Mode in parallel with the data routing Computer without VSPD software NON PC environment other OS like LINUX etc HUB Ethernet connections RS232 connections LIN101 TZ333 TZ333 TZX08 Ethernet LAN without using VSPD software Serial devices over the network connected by 2 LIN101 LIN101 LIN101 L...

Страница 5: ...tting error cannot enter the Normal Mode Red LED blink Normal Mode active Slave Routing Mode Green LED constantly ON Normal Mode active Master Routing Mode Destination IP address not reachable Green LED blink Destination IP address reachable Green LED constantly ON Buffer overflow Green and red LEDs blinking constantly The LIN101 is constantly sending pings to the Destination IP address when in th...

Страница 6: ...ata Port Number Gateway IP address Netmask and Connection Timeout 2 2 Serial comunications The serial port of the LIN101 supports TX RX CTS and RTS signals and can work at baudrates up to 115200 In the Normal Mode the serial port transmits the data between the LIN101 and attached serial device microcontroller In the Serial Programming Mode the port is used to program the LIN101 s Settings Settings...

Страница 7: ...ode the LIN101 only responds to other stations on the network When the LIN101 receives the data from remote station it memorizes this station s IP address and data port number When routing the data in the serial Ethernet direction the LIN101 will reply to this IP address and data port number Therefore the only network settings that must be set in the Slave Routing Mode are the LIN101 s own IP addr...

Страница 8: ...ral PCs network stations access the same serial device through the LIN101 many clients to one data source or have many serial devices each connected to the network via its own LIN101 send the data to a single PC many data sources to one client Many clients to one data source operation is achieved by using the LIN101 in the Slave Routing Mode The LIN101 will reply to any sender in this mode so any ...

Страница 9: ...ters is received Up to three different Start Characters can be defined Start Characters received after the serial data block has been opened are treated as normal characters and do not restart the serial data block 4 2 Stop conditions Up to three different Stop Characters can be defined to close the serial data block Once one of the preset Stop Characters is detected the LIN101 closes the serial d...

Страница 10: ...nal receiving buffer of the host serial device can potentially overflow if the LIN101 outputs the serial data too fast Ethernet Serial buffer o UDP IP Transport Protocol The Ethernet serial buffer can easily overflow because the Ethernet is much faster than the serial port and UDP IP has no inbuilt protection against buffer overflows UDP IP should not be used to send continuous data flow and is on...

Страница 11: ...rk Programming can proceed in parallel with the normal operation of the LIN101 Certain commands can only be executed through the network Some commands have different result when executed in the Serial Programming Mode and through the network Initialize command Serial Programming Mode can always be entered even when the LIN101 is not properly setup and needs to be Initialized Network Programming ca...

Страница 12: ...01 RS232 LAN INTERFACE ELPRO Video Labs s r l Via della Praia 4 a FERRIERA di BUTTIGLIERA ALTA TO ITALY Tel 39 0119348778 FAX 39 0119348779 12 Select the PC serial communication port connected to the LIN101 ...

Страница 13: ... a FERRIERA di BUTTIGLIERA ALTA TO ITALY Tel 39 0119348778 FAX 39 0119348779 13 Network settings definition In this example the Slave Routing Mode is selected and the connection timeout is disabled in this case the application can control the serial device indefinitely ...

Страница 14: ... ELPRO Video Labs s r l Via della Praia 4 a FERRIERA di BUTTIGLIERA ALTA TO ITALY Tel 39 0119348778 FAX 39 0119348779 14 No Start and Stop condition are defined then the TCP packet is completed after the 20 ms timeout as defined ...

Страница 15: ...el 39 0119348778 FAX 39 0119348779 15 Attached device serial port parameters All defined parameters are now sent to the LIN101 and It is possible to connect the LIN101 between the HUB and serial device Creation of a Virtual COM Execute the Virtual Serial Port Manager function to create a virtual COM on the PC ...

Страница 16: ...IN101 RS232 LAN INTERFACE ELPRO Video Labs s r l Via della Praia 4 a FERRIERA di BUTTIGLIERA ALTA TO ITALY Tel 39 0119348778 FAX 39 0119348779 16 This tool links a virtual COM with the defined IP address ...

Страница 17: ... The existing PC software then can interface COM3 as an installed hardware communication port Note after the LIN101 configured it is possible to test it by PING command In DOS environment use the following ping 169 254 100 40 5 3 Port Monitor Log The VSP Monitor Log logs all VSP messages error warning info about operations regarding virtual COMs ...

Страница 18: ... 4 internally connected to pin 4 5 GND 6 internally connected to pin 6 7 RTS 8 CTS 9 no connection Ethernet port 10BaseT RJ45 8 pin fem Pin Signal 1 Tx 2 Tx 3 Rx 4 no connection 5 no connection 6 Rx 7 no connection 8 no connection Ethernet wiring Wiring between LIN101 and HUB Wiring between two LIN101 Side A Side B Side A Side B 1 1 1 3 2 2 2 6 3 3 3 1 4 4 4 4 5 5 5 5 6 6 6 2 7 7 7 7 8 8 8 8 Note ...

Страница 19: ...rface 10 Base T Network Cable CAT5 Network Protocols UDP TCP ICMP ARP Buffer Size 2 independent 255 bytes Serial Interface RS232 Signals RxD TxD RTS CTS Serial Speed from 150 bit sec to 115200 bit sec Power 9 Vac external power suply Consumption 3 VA Size WXDXH 94 5 x 71 5 x 25 mm Weight Temperature Range 0 45 C Security EN 60065 EMC EN 55103 1 EN 55103 2 EN 50081 part 1 e 50082 part 1 ...

Отзывы: