ELPRO LIN101 Manual Download Page 9

 

 

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 

 

The LIN101 provides a way to choose which incoming serial data is accepted into the serial -> Ethernet 

buffer, how this data is combined into Ethernet packets and when it is sent out via the Ethernet port. 

 

The LIN101 treats all incoming serial data as a sequence of data blocks. The term “data block” here does not mean that 

the LIN101 is only capable of working with a structured serial data. An absolutely random serial stream can also be 

processed- as one continuous infinite serial data block. Serial data blocks begin when a 

start condition 

is detected and 

end when a 

stop condition 

is detected. After the start condition is detected the LIN101 begins recording the incoming 

serial data into the serial -> Ethernet buffer. Thus, the start condition is said to 

open 

the serial data block. When the stop 

condition is detected the LIN101 seizes recording the data into the buffer and attempts to send out all the data 

accumulated in the buffer via the Ethernet port. Therefore, the stop condition 

closes 

the serial data block. The inter-block 

serial data i.e. the data received after the stop condition is detected and before the next start condition is detected is 

discarded. Besides the start and stop conditions there is also a 

break conditio

n. When the break condition is detected the 

LIN101 doesn’t close the serial data block (i.e. it continues recording subsequent serial data into the serial -> Ethernet 

buffer) but sends out the data already accumulated in the buffer through the Ethernet port. Break conditions provide a 

way to subdivide large serial data blocks. 

 

 

4.1 Start conditions 

 

The Start On Any Character Setting defines if the LIN101 recognizes any character received into the serial port as a start 

condition or requires a predefined Start Character to open the serial data block.  

When Start On Any Character is set to “yes” the LIN101 will accept any character following the end of the previous serial 

data block as the beginning of the next block. When Start On Any Character is set to “no” the LIN101 will only open the 

serial data block when one of the preset Start Characters 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 data block and attempts to send out the contents of the serial -> 

Ethernet buffer via the Ethernet port. All subsequent serial data is ignored until the next start condition is met. 

The use of Start Characters and Stop Characters assumes that these characters will not be encountered in the data 

block body. Some communications protocols use checksums (or other forms of data integrity verification). Checksum can 

potentially take any value and occasionally match the ASCII codes of the Stop Characters.  

To avoid possible confusion some communications protocols put the checksum bytes 

behind 

the Stop Characters. The 

LIN101 deals with this by allowing to define a Number Of Post-characters for each enabled Stop Character. For example, 

if the Number Of Post-characters for a certain Stop Character is set to 2 then the LIN101 will additionally receive and 

count as belonging to the current serial data block 2 bytes of data after this Stop Character has been encountered.

 

 

 

4.3 Break conditions 

 

The Maximum Data Length Setting defines the maximum number of data bytes in the serial -> Ethernet buffer. (can be 

set between 32 and 255). Once this number is reached the LIN101 attempts to send out the contents of the buffer via the 

Ethernet port. This Setting only works when the UDP/IP Transport Protocol is selected. This is because TCP/IP has its 

own way to determine what size of data chunks is best for transmission over the network. 

 

The Maximum Intercharacter Delay Setting defines the maximum time gap between the arrival of two consecutive serial 

characters into the serial port (can be defined in 10ms increments between 10ms and 2.55 sec). Once this time is 

exceeded the LIN101 attempt to send out the contents of the serial -> Ethernet buffer via the Ethernet port. Setting the 

maximum Intercharacter Delay to 0 disables the function. 

 

 

4.4 Default configuration 

 

The default configuration is the follow: 

 

 

Start On Any Character 

 

no 

Stop Characters

 are defined 

 

Maximum Intercharacter Delay

 is 10 ms 

 

Maximum Data Length 

is 255 byte (UDP only).

 

 

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: