Filter löschen
Filter löschen

xpc target does not work with multiple NICs

2 Ansichten (letzte 30 Tage)
Mirko Kunze
Mirko Kunze am 9 Jan. 2012
Hello!
I cannot run an xpc-target PC with multiple NICs plugged in. I need realtime UDP support, so I connected two compatible NICs in two PCI ports. If I connect the host PC to the wrong network adaptor, xpc target doesn't network-boot. If I connect it to the other, it boots, displays the correct PCI port but the host cannot connect to it. Both of the NICs work fine if the other is not connected.
I use Intel PRO 100 S cards but I also tried NETGEAR GA 311 and 3Com 3C905-TX.
The funny thing is that although (or maybe because) xpc target has no driver for this specific 3Com Card, boot and target-host communication (via the second, Intel card) work, the 3Com card is even displayed in the PCI device list but of course I cannot send realtime UDP packages over it.
What is the problem here and what can I do?

Antworten (1)

Shiva Arun Kumar
Shiva Arun Kumar am 6 Feb. 2012
Hi Mirko,
As of R2010a:
If the target computer has multiple Ethernet cards, type the following MATLAB commands to specify which card to use. These commands assume that the target computer name is nonDefaultTarget.
allTargets = xpctarget.targets;
myTargetEnv = allTargets.Item('nonDefaultTarget');
set(myTargetEnv, 'EthernetIndex', '#');
# indicates a single digit to specify the index number for the Ethernet card. For example, set(myTargetEnv, 'EthernetIndex', '2'); selects the Ethernet card with index number 2 as the target computer card.
After you type this command, boot the target. The kernel selects the specified Ethernet card as the target computer card instead of selecting the default card with index number 0.
Alternatively, if you have a single target computer system, you can use setxpcenv(‘EthernetIndex', '#'), For example, setxpcenv('EthernetIndex','2') selects the Ethernet card with index number 2 as the target computer card.
Hope that helps,
Shiva

Kategorien

Mehr zu Multicore Processor Targets finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by