Download LIN103 - Elpro Video Labs
Transcript
LIN103 MAIN ETHERNET INTERFACE APPENDIX A. Characteristics of the LAN connection A.1 LAN Port The Ethernet port of the LIN103 is of the 10Base T type and, similarly to any other appliance, each LIN103 has its own univocal Ethernet (MAC) Address and must have its own valid IP address in order to function correctly in the network. The LIN103 has two logical ports, one that can be defined by the user, called Data Port, used to exchange data with other network appliances, and a predefined port, called Command Port, with a fixed address 65535 (FFFF hex), used to send the programming of the LIN103 via the network. The LIN103 can exchange data with remote stations using the TCP/IP or UDP/IP protocol (according to the configuration of the Transport Protocol parameters) and can operate both as master and slave. Other settings refer to the IP address, the address of the destination Data Port, the IP address of the gateway, the NetMask and the connection time-out. In addition to the TCP and UDP protocols, the LIN103 also supports ARP and ICMP (ping). This makes it possible to send a 'ping' to any other appliance of the network in order to check effective connection. A.2 RS232 Port The serial port of the LIN103 supports TX, RX, CTS, and RTS signals and can work at baudrates up to 115200. In Transparent Mode (MODE 1) the serial port transmits the data between the LIN103 and attached serial device (microcontroller). In the Serial Programming Mode the port is used to program the LIN103’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. A.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 LIN103 transforms the Ethernet packets into the serial stream and back: • Ethernet serial data routing is simple: the LIN103 outputs the contents of arriving Ethernet data packets byte by byte via the serial port. The LIN103 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. A.4 Slave and Master routing modes The LIN103 routes the data in one of two modes as defined by the Routing Mode Setting: • In the Slave Routing Mode the LIN103 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 LIN103’s serial port before the remote station “contacts” the LIN103 is discarded. In the Slave Mode the LIN103 will “work” with any station on the network that contacts it • In the Master Routing Mode the LIN103 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 LIN103). Also, the LIN103 only accepts the data sent from the remote station whose IP-address matches the one set in the Destination IP-address. The LIN103 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. 19 ELPRO Video Labs s.r.l. Via della Praia 4/a FERRIERA di BUTTIGLIERA ALTA (TO) - ITALY Tel. +39 0119348778 - FAX +39 0119348779