LabVIEW Automotive Ethernet

cancel
Showing results for 
Search instead for 
Did you mean: 

UDP and TCP/IP Examples

Automotive Ethernet networks can support common higher-layer protocols such as UDP and TCP/IP just like any other physical implementation of Ethernet can. LabVIEW has UDP and TCP/IP Vis built-in which are ready for use in Automotive Ethernet networks. The following links provide more information on how to get started with UDP and TCP/IP.

 

Tutorial: UDP Communication

White Paper: TCP/IP Communication

Using LabVIEW with TCP/IP and UDP

 

0 Kudos
Message 1 of 13
(9,532 Views)

Hello 

 

I tried both UDP and TCPIP sample but couldn't communicate with IVN-8561.

I think the problem might be the IP address.

 

What IP address should I use ?  I just can use IP address of the PCs  ?

 

Thank you for your support.

 

Tomomitsu Wakugawa
Field Sales Engineer, Japan
National Instruments

0 Kudos
Message 2 of 13
(8,908 Views)

Yes, you should use the IP address of the PC. 

 

As background, the IVN is a layer 1 device (it simply transitions from automotive Ethernet phy to standard Ethernet phy).  As such it does not have an IP address.  If you connect two computers via standard 100Mb Enet and communicate using UDP or TCP then insert the IVN in the middle it should work exactly the same (with some added propagation delay due to the IVN phy transfer). 

0 Kudos
Message 3 of 13
(8,902 Views)

Hello Hokie

 

Thank you so much for the quick response. Now I can communicate with no problem.

As you mentioned, I needed to set longer timeout setting. ( 1000m sec as default and I set 10000m sec)

 

Thank you for your support.

0 Kudos
Message 4 of 13
(8,889 Views)

Hello MarcusB,

 

I am just started with an application that will require DoIP, just wondering if there is any DoIP specific examples or if I can use some of the documentation on this topic to start designing my application, thank you.

0 Kudos
Message 5 of 13
(8,657 Views)

Eder,

 

NI offers support for DoIP (Diagnostics over IP) with the NI Automotive Diagnostic Command Set

 

I hope this helps.

 

Thanks,

Kris Klemett

0 Kudos
Message 6 of 13
(8,642 Views)

Great! Thank you Kristofer, I will try with the API.

Thanks for your support.

0 Kudos
Message 7 of 13
(8,636 Views)

Hello

To communicate with IVN-8561,I need to use TCP/IP. How do I set IP address and port in my program?

thanks!

0 Kudos
Message 8 of 13
(6,860 Views)

hello

how to set IP address and port if I want to communicate with IVN-8561?

Thanks for answering me.

0 Kudos
Message 9 of 13
(6,858 Views)

Hi Mark,

 

The IVN-8561 translates the physical layer from automotive Ethernet PHY (100BASE-T1) to standard Ethernet (100BASE-TX) and thus does not itself have a particular IP address or port associated with it. The IP address and port you would use with TCP/IP in your program depends on what you have connected to it. For example, if your PC connects to the IVN-8561 over Ethernet which connects to a 100BASE-T1 device--say, a camera, you would use the IP address and port of the camera.

 

This is what that looks like using the TCP Open Connection VI in LabVIEW:

MarcusB_0-1582925044426.png

 

Note that you may first need to change the IP address of the NIC on the PC that connects to the IVN-8561 to match the subnet of the device you have connected. So if the camera has an IP address 160.48.199.7, the IP address on the PC needs to change to something like 160.48.199.2.

 

On Windows, this is where I would configure that:

MarcusB_1-1582925915490.png

 

Also note that if your device uses VLAN-tagged packets, there would be additional setup involved on your PC to configure the NIC for VLANs.

0 Kudos
Message 10 of 13
(6,824 Views)