Documentation

Setup for Two Radios Connecting to One Host

To develop a transmitter and a receiver on the same computer, you need two supported Zynq® radio hardware. For a list of supported hardware, see Hardware Support. In addition, your host must have two dedicated Ethernet connections with different MAC addresses, one for each radio. To have simultaneous Internet access in the absence of a wireless connection, the host computer must have three Ethernet connections.

Once the support package is installed, set up the two radio hardware, using one of the following methods.

    Note:   The two radio hardware must be set up with different IP addresses.

Guided Setup

The guided setup is recommended for Windows® operating systems.

Interacting with Two Radios

The internal IP address of each radio object, block, or System object™ interacting with a radio hardware must match the physical IP address assigned to the radio hardware during setup.

In these examples, the first radio hardware acting as a receiver is assigned 192.168.3.2 and the second radio acting as a transmitter is assigned 192.168.30.2.

    Note:   Run two instances of MATLAB® on the host: one for the receiver and one for the transmitter.

  • Create a radio object for interacting with the receiver and a radio object for interacting with the transmitter. In both objects, update the IPAddress properties with the matching values.

    RxDevice = sdrdev('ZC706 and FMCOMMS2/3/4');
    RxDevice.IPAddress = '192.168.3.2';
    TxDevice = sdrdev('ZC706 and FMCOMMS2/3/4');
    TxDevice.IPAddress = '192.168.30.2';
  • Create a block for interacting with the receiver and a block for interacting with the transmitter. In both blocks, update the corresponding block masks with the matching IP addresses.

  • Create a System object for interacting with the receiver and a System object for interacting with the transmitter. In both System objects, set the matching IP addresses when the objects are created.

    rx = sdrrx('ZC706 and FMCOMMS2/3/4','IPAddress','192.168.3.2'); 
    tx = sdrtx('ZC706 and FMCOMMS2/3/4','IPAddress','192.168.30.2');

Manual Setup

Use this method for Linux® operating systems or for setting up two radio hardware manually.

  1. Set up the first radio, following the steps described in Manual Host-Radio Hardware Setup. Throughout the manual hardware setup, the radio hardware is configured with a default IP addess: 192.168.3.2. Before setting up the second radio, the default IP address assigned to the first radio must be updated.

    1. Create a radio object for your board, and use setAddress to change the IP address of the board. For example:

      RxDevice = sdrdev('ZC706 and FMCOMMS2/3/4');
      setAddress(RxDevice,'IPAddress','192.168.30.2');
    2. The host network connection must be on the same subnet as the radio hardware. To meet this requirement, update the host network IP address as well. Follow the steps described in Step 3. Configure Host Computer, replacing the host network IP address with 192.168.30.x where x is any number in the range 1 through 255, apart from 2.

  2. Set up the second radio, following the steps described in Manual Host-Radio Hardware Setup. Leave the second radio with the default setting.

When operating the radios, make sure that the internal IP address of each radio object, block, or System object interacting with a radio hardware matches the physical IP address assigned to the radio during the manual hardware setup. See Interacting with Two Radios for details.

Related Topics

Was this topic helpful?