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

4 ビュー (過去 30 日間)
Zachary Irwin
Zachary Irwin 2012 年 9 月 5 日
回答済み: Chethan Pandarinath 2013 年 12 月 5 日
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
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
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.

カテゴリ

Help Center および File ExchangeMulticore Processor Targets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by