ELPRO LIN101 Manual Download Page 7

 

 

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 

3 Slave and Master routing modes 

 

 

The LIN101 routes the data in one of two modes as defined by the Routing Mode Setting: 

 

 

In the Slave Routing Mode the LIN101 never sends any data transmission in the serial port -> Ethernet direction 

before it receives some data from the remote station first (i.e. the data in the Ethernet -> serial direction). The 

serial data received into the LIN101’s serial port before the remote station “contacts” the LIN101 is discarded. In 

the Slave Mode the LIN101 will “work” with any station on the network that contacts it 

 

 

In the Master Routing Mode the LIN101 does not wait for the remote station to send the data first and routes the 

data in the serial -> Ethernet direction as soon as there is a data to be sent. The data is always sent to a 

specific destination (as defined by the Destination IP-address and Destination Data Port Number Settings of the 

LIN101). Also, the LIN101 only accepts the data sent from the remote station whose IP-address matches the 

one set in the Destination IP-address. The LIN101 will discard the data sent from any other IP. Note, that data 

port number of the sender is not verified so the data can be sent from any port. 

 

 

3.1 Using Slave and Master Routing Modes 

 

Use the Slave Routing Mode to network-enable serial devices that never send out the data by themselves but instead 

are “polled” for data from the PC. Examples of such devices are time recorders, access control panels and other 

“hardware terminals”. 

 

Use the Master Routing Mode to network-enable serial devices that send out the data “spontaneously” i.e. without 

waiting for the request from PC.  

Also use the Master Routing Mode in cases when the serial data must flow independently in both directions (i.e. Ethernet 

-> serial and serial -> Ethernet). This is the case, for instance, when you are creating a “network modem” that must pass 

the data in both directions simultaneously. 

 

 

3.2 Required network settings for the Slave and Master Routing Modes 

 

In the Slave Routing Mode 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-address and the Data Port Number. 

This is true 

even if there is a router between the remote station and the LIN101. You don’t have to set the Netmask 

and Gateway IP when using the LIN101 in the Slave Routing Mod

e; 

 

In the Master Routing Mode the LIN101 needs to be able to send the data to a predefined remote station at any time. 

This means that not only LIN101’s own IP-address and Data Port Number must be set but also the Destination IP-

address and the Destination Data Port Number. If the destination remote station and the LIN101 are residing in different 

network segments then the Netmask and Gateway IP-address must also be set. 

 

 

 

3.3 Slave and Master routing modes vs. UDP/IP and TCP/IP transport protocols 

 

UDP/IP and TCP/IP provide completely different data transmission so LIN101s behavior in the Slave and Master Routing 

Modes is slightly different under UDP/IP and TCP/IP Transport Protocols. 

 

 

UDP/IP Transport Protocol 

 

o

  Slave Routing Mode. 

All UDP data packets arriving from any remote station and addressed to the Data Port of the LIN101 

are routed to the serial port. For the serial -> Ethernet direction the LIN101 always sends the data to 

the IP-address and the port number that were received in the last (latest) UDP packet. Once the 

LIN101 receives a UDP packet from a different station it will start sending all its serial -> Ethernet data 

to this new station. After power up and before the LIN101 receives the first UDP data packet the 

LIN101 doesn’t have any IP-address and port number to send the data to so all the data received into 

the LIN101’s serial port is simply discarded. 

 

o

  Master Routing Mode.

 

The LIN101 only accepts and routes to the serial port the data packets that have originated from the 

remote station whose IP-address matches the one defined by the Destination IP-address Setting. 

Source data port number need not match the one defined by the Destination Data Port Number Setting 

Summary of Contents for LIN101

Page 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 ...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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 ...

Page 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...

Page 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...

Page 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...

Page 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 ...

Page 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 ...

Page 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 ...

Page 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 ...

Page 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 ...

Page 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 ...

Page 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 ...

Page 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 ...

Reviews: