Ethernet Rx

Receive data over Ethernet network


Simulink® Real-Time™ Library for Ethernet


Use the Ethernet Rx block to receive Ethernet packets and to filter on the received packets. You can filter packets by EtherType or length. You can use multiple Ethernet Rx blocks with the same device ID. However, you must configure each block to filter a unique set of packets.

Block Parameters

This block has two tabs, Rx and Filter.


Device ID

From the list, select a unique number to identify the Ethernet board. Select the same Device ID as the one you selected for the Real-Time Ethernet Configuration block.

Sample time

Enter the base sample time or a multiple of the base sample time (-1 means sample time is inherited).


Filter criteria

From the list, select how you want to filter on EtherTypes (Ethernet II framing standard) or Ethernet lengths (IEEE® 802.3 framing standard).

  • Receive all unmatched types [0 to 65535]

    Select this option to output all unmatched packets, both Ethernet II framing and IEEE 802.3 framing standards.

  • Receive unmatched lengths [0 to 1500]

    Select this option to output all packets with IEEE 802.3 framing standard.

  • Receive unmatched EtherTypes [150 to 65535]

    Select this option to output all output packets with Ethernet II framing standard.

  • Specify types to match

    Select this option to enter your own criteria of the EtherTypes to output. This option enables the Receive these types (vector of types 0–65535) parameter.

Receive these types (vector of types 0–65535)

Enter a vector of EtherTypes that you want to enable to output, for example [hex2dec('0000')].

This field appears only if you select Specify types to match for the Filter criteria parameter.

Was this topic helpful?