Main Content

Setup for Two Radios Connecting to One Host

To develop a transmitter and a receiver on the same computer, you need two supported 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 hardware. To have simultaneous Internet access in the absence of a wireless connection, the host computer must have three Ethernet connections.

Note

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

Setup

To set up two radios follow these steps.

  1. Set up the first radio following the steps in Set Up Xilinx Devices. Note the assigned radio IP address in Select Network Configuration of the hardware setup process. The default value is 192.168.3.2.

  2. Set up the second radio following the same steps. Configure it with a different IP address. In Select Network Configuration of the hardware setup process, update the second radio IP address with a different value. For example: 192.168.30.2.

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 acts as a receiver and is assigned 192.168.3.2. The second radio acts as a transmitter and 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 each object, update the IPAddress property with the IP address of the radio hardware assigned during setup.

    RxDevice = sdrdev('AD936x');
    RxDevice.IPAddress = '192.168.3.2';
    TxDevice = sdrdev('AD936x');
    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.

    Block Parameters window for AD936x Receiver and AD936x Transmitter. The Radio IP address is in the Main tab

  • Create a System object for interacting with the receiver and a System object for interacting with the transmitter. In each System object, set the corresponding IP addresses when you create the System objects.

    rx = sdrrx('AD936x','IPAddress','192.168.3.2'); 
    tx = sdrtx('AD936x','IPAddress','192.168.30.2');

Related Topics