This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Troubleshoot Target Computer Ethernet and MAC Address Information

I want to find Ethernet address information and MAC address information from the target computer for configuring blocks in models.

What This Issue Means

To use Ethernet blocks in Simulink Real-Time models, you configure the blocks with Ethernet address information and MAC address information. Typically, you set block parameters to configure this information.

Try This Workaround

To configure a two-target-computer Ethernet network, collect the Ethernet address information that is listed in this table. This information applies to Ethernet, EtherCAT®, PTP, TCP, and UDP.

EtherCAT and PTP have protocol-specific requirements. For information about the protocols that the card supports, see the network card documentation.

ConnectorCard NameBootCommBusSlotFunctionPTP EtherCAT MAC Address

TargetPC1 A

 

 

 

 

 

 

 

 

 

TargetPC1 B

 

 

 

 

 

 

 

 

 

TargetPC2 A

 

 

 

 

 

 

 

 

 

TargetPC2 B

 

 

 

 

 

 

 

 

 

Set Up Hardware and Software for Information Gathering

Assemble these components:

  • One Windows® development computer with an Ethernet card.

  • Two Speedgoat target machines, each with two Ethernet cards installed that support network booting.

  • One Ethernet switch.

  • Three crossover Ethernet cables.

Starting with target computer TargetPC1, perform these steps:

  1. On the development computer, run MATLAB®, and then run Simulink® Real-Time™ Explorer.

  2. Connect the development computer to the Ethernet switch.

  3. Connect the target computer to the Ethernet switch by using a randomly chosen Ethernet connector on the target computer.

  4. In the Explorer Targets pane, create a SimulinkRealTime.target object for the target computer.

  5. In the Properties pane for the target computer, assign an IP address value.

  6. Set Target driver to auto.

  7. Set Boot mode to Network.

Repeat steps 3–7 for the other target computer,TargetPC2.

Collect PCI Address and MAC Address Information

Before collecting PCI address and MAC address information, perform the steps in Set Up Hardware and Software for Information Gathering.

To perform these steps, MATLAB and Simulink Real-Time Explorer must be running.

Starting with target computer TargetPC1, fill in the table.

  1. Click the Properties node representing the target computer.

  2. Click the Reset button next to the MAC address field, and then click Create boot disk.

  3. Start the target computer and select the target computer name in the Simulink Real-Time Network Boot dialog box.

    If the target computer fails to start, replace the target computer Ethernet card with an Ethernet card that supports network booting.

  4. In Simulink Real-Time Explorer, from the Properties pane for the target computer, copy the MAC address that is displayed in the MAC address field.

    This MAC address is the address of the card that caused the target computer to start. For this MAC address, in the Boot column, enter Y.

  5. To verify that the development computer can communicate with the target computer by using this Ethernet card, type:

    tg = slrt('TargetPC1')

    If slrt returns something like:

    Target: TargetPC1
       Connected            = No

    Enter N in the Comm column for this MAC address.

    Stop the target computer, switch the Ethernet switch cable to another Ethernet connector on the target computer, and start again from step 2.

  6. If slrt returns something like:

    Target: TargetPC1
       Connected            = Yes
       Application          = loader

    Enter Y in the Comm column next to the MAC address. Enter the PCI bus, slot, and function numbers displayed in the output log area in the Bus, Slot, and Function columns for this MAC address.

    This Ethernet connector is the connector that you use to start the target computer and to communicate with it from the development computer.

  7. In the Command Window, type:

    getPCIInfo(tg, 'ethernet')
    List of installed PCI devices:
    
    Intel                    82579LM
         Bus 0, Slot 25, Function 0, IRQ 3
         Ethernet controller
         VendorID 0x8086, DeviceID 0x1502, SubVendorID 0x15bd, 
              SubDeviceID 0x100a
         Released in: R2012b
         Notes: Intel 8254x Gigabit Ethernet series
    
    Intel                    82574L
         Bus 5, Slot 0, Function 0, IRQ 10
         Ethernet controller
         VendorID 0x8086, DeviceID 0x10d3, SubVendorID 0x15bd, 
              SubDeviceID 0x100a
         Released in: R2010a
         Notes: Intel 8254x Gigabit Ethernet series
    

    Record the device name (for example, Intel 82574L) for each PCI bus, slot, and function triplet.

    If the device supports the PTP protocol, enter Y in the PTP column. Otherwise, enter N. For more information, see Prerequisites, Limitations, and Unsupported Features.

    If the device supports the EtherCAT protocol, enter Y in the EtherCAT column. Otherwise, enter N.

Repeat steps 1–7 for the other target computer, TargetPC2. At the end of the process, the table looks something like this table.

ConnectorDevice NameBootCommBusSlotFunctionPTP EtherCAT MAC Address

TargetPC1 A

Intel 82579LM

Y

Y

0

25

0

N

N

00:01:29:55:3C:BB

TargetPC1 B

Intel 82574L

Y

N

5

0

0

Y

N

00:01:29:55:3C:BA

TargetPC2 A

Intel 82574L

Y

N

52

0

0

Y

N

68:05:CA:31:B9:EF

TargetPC2 B

Intel 82541GI_LF

Y

Y

16

4

0

N

N

90:E2:BA:17:5D:15

See Also

| |

Related Topics