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
6
2. Operation in Normal Mode
The main function of the LIN101 is to route the data between its Ethernet and serial ports. Routing means that the data
received into the serial port is sent out via the Ethernet port and vise versa. Data routing is effected through two routing
buffers, one for each routing direction. The LIN101 performs the routing in the Normal Mode of operation. A number of
user-programmable Settings and Parameters define the way the LIN101 works in the Normal Mode.
2.1 Ethernet port and network communications
The Ethernet port of the LIN101 is of 10BaseT type. Just like any other Ethernet device each LIN101 has a unique
Ethernet (MAC) Address and must be assigned a valid IP-address to function properly on the network.
Logically, the LIN101’s network interface has two ports. A user-definable Data Port is used to exchange the data
between the LIN101 and other stations on the network. Another port called Command Port has a fixed number 65535
(FFFF Hex) and is used to send programming commands to the LIN101’s over the network.
The LIN101 can exchange data with remote stations using the UDP/IP or TCP/IP transport protocols as
defined by the Transport Protocol Setting. Depending on the Routing Mode Setting the LIN101 can act as a
network Slave or Master (see Slave and Master routing modes for details).
Other network-related settings include Destination IP-address, Destination Data 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 that define the operation of the
serial port include the Baudrate (150~115200bps), Parity (none, even, or odd), Bits Per Byte (7 or 8), and Flow Control
(none or CTS/RTS). Each of these Settings has a matching Parameter that overrides the value of a corresponding
Setting.
2.3 Routing buffers
The data between the Ethernet port and the serial port is routed via two independent 255-byte buffers, one for each
routing direction. Buffers are necessary because the Ethernet and the serial port operate at different speeds and in
different ways. Ethernet carries the data in “packets” (i.e. groups of data), while the serial port sends and receives a
serial “stream” where each data byte is independent. Here is how the LIN101 transforms the Ethernet packets into the
serial stream and back:
• Ethernet serial data routing is simple: the LIN101 outputs the contents of arriving Ethernet data packets byte by byte
via the serial port. The LIN101 does not check of filter the contents of data being routed in the Ethernet -> serial
direction
• Serial Ethernet routing requires grouping arriving serial data into packets and is more complicated. Several Settings
define exactly what serial data is accepted into the buffer and when and how this data is combined into an Ethernet
packet and sent out. Detailed information on the subject can be found in Serial -> Ethernet data routing.