Ip Layer Raw Mode - Advantech EH-8100 Reference Manual

Ethernet & tcp/ip protocols stack
Table of Contents

Advertisement

4. IP Layer RAW Mode

the Ethernet I/F of EH-8100-Lx IPL_RAW(IP Layer RAW) mode is used in processing protocols
(e.g., ICMP, etc.) other than TCP and UDP as provided by the Ethernet I/F of EH-8100-Lx.
IPL_RAW Mode Initialization Process
In order to use the Ethernet I/F of EH-8100-Lx IPL_RAW Mode, the protocol value of the IP Layer
to be used (e.g., 0x01 in case of ICMP) needs to be set as Cx_IPR (IP Protocol Register of Channel
x), and the Cx_SOPR (Socket Option/Protocol register of Channel x) protocol field of the
corresponding channel needs to be set as SOCK_IPL_RAW(0x03) before socket initialization
(sock_init command). As in UDP, data transmission and reception is possible when the
corresponding channel is initialized.
IPL_RAW Mode Data Transmission and Reception
Transmission in IPL_RAW Mode is activated similarly to UDP, and the reception is made for the
same Protocol data as Cx_IPR.
IPL_RAW Mode Data Transmission
For reception in IPL_RAW Mode, calculating the free buffer size of the reception memory, data
copying and usage of Cx_TW_PR, Cx_TR_PR are identical to UDP, and the destination IP needs to
be set. Unlike UDP, however, no port needs to be set. As in UDP, if the destination IP set prior to
this transmission is different to the destination IP to be used for the transmission, the value need to
be updated before executing the send command.
- 25 -

Advertisement

Table of Contents
loading

Table of Contents