Using xPC Target, how do I configure multiple NICs for real-time UDP?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
James
2013-10-5
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.
回答(1 个)
Chethan Pandarinath
2013-12-5
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Target Computer Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!