Network Communication

Network Communication Overview

Before you can create and run a target application, you need to set up the connection between the host and target computers. You can use either serial or network communication.

For serial communication, see Serial Communication.

Advantages of Network Communication

A host-to-target connection using network TCP/IP communication has advantages over serial RS-232 communication:

This manual does not include information for installing network cards or the TCP/IP protocol on your host computer. For correct installation and setup of your network cards and the TCP/IP protocol, contact your system administrator.

Hardware for Network Communication

You must install the following hardware before you install the xPC Target™ software and configure it for network communication:

Ethernet Card Provided with the xPC Target™ Product

The MathWorks supplies a PCI bus Ethernet card with the xPC Target software for you to use in a desktop target PC. The following table will help to identify the card that was shipped with your software and the parameter you need to select in the xPC Target Explorer. Both cards support a data transfer rate of 100 megabits per second (Mb/s). Note that these cards are equivalent.

Board

Identification

Setup Parameter

Intel® Pro/100 M

Intel Pro/100 M or Desktop Adapter

I82559

Intel Pro/100 S

Intel Pro/100 S or Desktop Adapter

I82559

  1. If xPC Target Explorer is not already started, in the MATLAB® Command Window, type

    xpcexplr

    The xPC Target Explorer window opens.

  2. In the xPC Target Explorer xPC Target Hierarchy pane, select the Communication node of the target PC for which you want to check the boot disk. For example, select the Communication node for TargetPC1.

  3. From the Host target communication list, select TCP/IP.

  4. From the TcpIp target driver list, select I82559.

If you cannot use the Ethernet card provided with the xPC Target product, see Ethernet Chip Families Supported by the xPC Target™ Product for your TCP/IP communication options.

Ethernet Chip Families Supported by the xPC Target™ Product

If you do not want to use the Ethernet card provided with the xPC Target product, you can use your own Ethernet card. The xPC Target software supports Ethernet cards with the following data transfer rates:

These Ethernet cards must contain an approved Ethernet chip. The xPC Target product supports the following chip families for 100 Mbits/second Ethernet cards:

Ethernet Chip SetsSpecific ChipsSelect TCP/IP Target Driver Option

Intel 8255X

Fast Ethernet controller chips and other chips in the Intel 8255X family, including I82559, I82559ER, I82562EM, I82562, I82551, I82551ER, I82562EZ and I82550.

For example, the Intel Pro/100 M Ethernet card that ships with your xPC Target order contains the Intel 82551QM controller chip.

Note, the Intel 82801 chip set includes an I82559 compatible Ethernet controller.

I82559

Intel I8254X

Fast Gigabit Ethernet controller chips and other chips in the Intel 8254X family.

I8254x

AMD79C971 PCNET

Fast Ethernet controller chips and other chips in the AMD® 79C97x family.

RTLANCE

Realtek RTL8139, RTL8139C, RTL8139C+

The MathWorks has tested and verified Zonet ZEN3200 and AOpen AON-325.

R8139

3Com 3C90x

Excludes 3C905-TX board and 3C900-COMBO Etherlink XL

3C90x

National Semiconductor DP83815

NS83815

NS83815

The product supports 10 Mb/s Ethernet cards with the following chips:

Ethernet Chip SetsSpecific ChipsSelect TCP/IP Target Driver Option

Novell Ethernet 2000 compatible family

NE2000

NE2000

SMC LAN91C9X compatible family

SMC91C9X

SMC91C9X

The following are cases where you might not be able to use the Ethernet card provided with the xPC Target product:

If one of the above cases applies, purchase one of the boards from the following list. These boards are compatible with the xPC Target product.

Board Type

Board Number

xPC Target Driver

PCI

SMC EZ Card 10 SMC1208T
(RJ45)

NE2000

SMC EZ Card 10 SMC1208BT
(RJ45, BNC)

NE2000

SMC EZ Card 10 SMC1208BTA
(RJ45, BNC, AUI)

NE2000

Intel PRO/100 S

I82559

Intel PRO/100 M

I82559

Zonet ZEN3200

R8139

AOpen AON-325

R8139

Boards compatible with 3C90x, except the 3Com 3C905-TX Fast EtherLink XL PCI board

3C90x

Argon 10/100MB National Semiconductor DP83815 PCI Fast Ethernet Adapter

NS83815

ISA

SMC EZ Card 10 SMC1660T
(RJ45)

NE2000

SMC EZ Card 10 SMC1660BT
(RJ45, BNC)

NE2000

SMC EZ Card 10 SMC1660BTA
(RJ45, BNC, AUI)

NE2000

PC/104

RealTime Devices USA CM202
(RJ45, BNC, AUI)

NE2000

WinSystems Inc. PCM-NE2000-16 (RJ45)

NE2000

WinSystems Inc. PCM-NE2000-16-BNC
(BNC)

NE2000

SBC

Versalogic VSBC-6

SMC91C9X

Ethernet Card for a PCI Bus

If your target PC has a PCI bus, The MathWorks recommends that you use an Ethernet card for the PCI bus. The PCI bus has a faster data transfer rate and requires minimal effort to configure. The MathWorks also supplies one PCI bus Ethernet card with the xPC Target software for your target PC.

To install the PCI bus Ethernet card supplied with the xPC Target software, use the following procedure:

  1. Turn off your target PC.

  2. If the target PC already has an unsupported Ethernet card, remove the card.

  3. Plug the Ethernet card from The MathWorks into a free PCI bus slot.

  4. Connect your target PC Ethernet card to your LAN using an unshielded twisted-pair cable.

Your next task is to set up the xPC Target environment for network communication. See Environment Properties for Network Communication.

Ethernet Card for an ISA Bus

Your target PC might not have an available PCI bus slot, or your target PC might not contain a PCI bus (older motherboards, passive ISA backplanes, or PC/104 computers). In these cases, you can use an Ethernet card for an ISA bus.

If you are using an ISA bus, you need to reserve, from the BIOS, an interrupt for this board.

The MathWorks does not provide an ISA bus board. For a list of known compatible network adapter cards, see Hardware for Network Communication.

To install an ISA bus Ethernet card, use the following procedure:

  1. Turn off your target PC.

  2. On your ISA bus card, assign an IRQ and I/O-port base address by moving the jumpers or switches on the card. Write down these settings, because you need to enter them in the xPC Target Explorer.

    You should set the IRQ line to 11 and the I/O-port base address to around 0x300. If one of these hardware settings would lead to a conflict in your target PC, select another IRQ or I/O-port base address.

  3. If the target PC already has an unsupported Ethernet card, remove the card. Plug the compatible network card into a free ISA bus slot.

  4. Connect the target PC network card to your local area network (LAN) using a coaxial cable or an unshielded twisted-pair cable.

    If you use an Ethernet card for an ISA bus within a target PC that has a PCI bus, you must reserve the chosen IRQ line number for the Ethernet card in the PCI BIOS. Refer to your BIOS setup documentation to set up the PCI BIOS.

Your next task is to set up the xPC Target environment for network communication. See Environment Properties for Network Communication.

Environment Properties for Network Communication

The xPC Target environment is defined by a group of properties. These properties give xPC Target information about the software and hardware that it works with. You might change some of these properties often, while others you will rarely want to change.

After you have installed the xPC Target software, you can specify the environment properties for the host and target computers. Note that you must specify these properties before you can build and download a target application.

  1. If xPC Target Explorer is not already started, in the MATLAB Command Window, type

    xpcexplr

    The xPC Target Explorer window opens.

    xPC Target Explorer associates network communication environment properties with the target PC.

  2. In the xPC Target Explorer, right-click the Host PC node.

  3. Select Add Target.

    A target PC node named TargetPC1 appears in the xPC Target Hierarchy, at the same level as the Host PC node. It appears with the icon (note the X to denote that the host PC is not connected to the target PC).

  4. As necessary, repeat Environment Properties for Serial Communication and Environment Properties for Serial Communication for each additional target PC you want to add to your system.

    Additional target PC nodes appear in the xPC Target Hierarchy. As you add other target PCs, the PC number is incremented. The following figure illustrates two target PC nodes.

  5. In the xPC Target Explorer, expand a target PC node.

    A Configuration node appears. Under this are nodes for Communication, Settings, and Appearance. The parameters for the target PC node are grouped in these categories.

  6. Select Communication.

    The Communication Component pane appears to the right.

  7. From the Host target communication list, select TcpIp.

    The pane changes to one that contains only those parameters pertinent to network communication.

  8. You must enter the network properties with the correct values according to your LAN environment. Ask your system administrator for values for these settings.

  9. Optionally, enter the following properties, depending on your specific circumstances:

  10. Enter the following properties specific to the Ethernet card on your target PC:

  11. Repeat step 5 to 10 for any target PC for which you have a network connection between the host PC and target PC.

    The xPC Target software updates the environment with new properties as you enter them.

    The following figure illustrates the Communication Component pane for a network connection.

For more information on the xPC Target environment, see Software Environment and Demos in the xPC Target User's Guide.

Your next task is to create a target boot disk. See Target Boot Disk.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS