Using xPC Target, how do I configure multiple NICs for real-time UDP?

4 visualizaciones (últimos 30 días)
Hi,
I'm using xPC Target (5.2), and I'm running into an issue when trying to configure multiple NICs for use with real-time UDP. I could just use 1 NIC with an ethernet switch, but I'm trying to make very sure that no packets get dropped, while using a 1ms clock. I've got 2 dual-port (i.e. 2 ethernet jack) 100 Mb/s NICs plugged into the target PC's PCI slots. I tried to use 2 of the Network Configuration blocks from the Real-Time UDP library, and everything compiles and downloads just fine, but when I run it on the target, I get the following error:
"EtherInit: EtherID 1: Registration Error 2
ARP: Invalid IP Interface 0 (1309)
IP: Invalid IP Group 0 (271)
UDP: Invalid IP Group 0 (113)"
However, each card works fine when only that card is configured. I also tried having both connections on the same dual-port NIC, as well as having 1 connection on each card. Is it even possible to do Real-Time UDP with multiple NICs, or do I need to use the Raw Ethernet library?
Thanks so much,
Zach Irwin
  1 comentario
James
James el 5 de Oct. de 2013
I have this exact question. Is it even possible?
If you look under mask, you can change parameters in the UDP, IP, and ARP from their defaults. By doing this, I was able to get rid of the errors. I think each card set up for Real-Time UDP needs a unique IP group or interface number. Unfortunately, I don't know what these numbers actually mean and I can't find any documentation for it.
And when I do this, the NIC for which I changed the default group/interface settings does not appear to actually send any packets. It thinks it sends packets, but nothing appears at the other side.

Iniciar sesión para comentar.

Respuestas (1)

Chethan Pandarinath
Chethan Pandarinath el 5 de Dic. de 2013
I just wanted to mention that I've seen this same error (EtherID X: Registration Error 2) when I accidentally had two Network Configuration blocks in the model that used the same Device ID. So definitely make sure each of your NICs has its own Device ID.

Categorías

Más información sobre Multicore Processor Targets en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by