Set MAC Address for UDP/TCP Communication for Automotive Ethernet Communication

Updated Jun 13, 2024

Environment

Software

  • LabVIEW

Driver

  • NI-XNET

For automotive ethernet communication you can define the destination MAC Address . So if you are using the ethernet write vi it is easy to define the MAC address.

Using the XNET IP Stack for UDP/TCP communication, how would you define the MAC address in LabVIEW for an application UDP/TCP communication for Automotive Ethernet Communication?

The LabVIEW example NI-XNET IP Stack Multiple DUT.lvproj, comes with the XNET Example IP Stack Config - Single Interface.vi, which allows you to define the source mac address, the default behavior is that it is generated.

You can use Wireshark to confirm this behaviour. 

kb1.PNG

 

kb2.PNG