WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2011-Jun-29 11:09:57

riveridea
Member
From: Tennessee Tech Univ.
Registered: 2010-Oct-01
Posts: 100

is there reference code controlling more than 2 boards

In current reference designs of WARP Lab, seems the Matlab code in the current workshops is usually for the two boards control. Do we have existing code for more than 2 boards control? And besides the Matlab code, if 3+ boards are involved in the WARP lab, do we need to modify the C code running on the Powerpc?

Offline

 

#2 2011-Jun-29 11:17:31

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: is there reference code controlling more than 2 boards

We've done lots of research work with 3+ WARPLab nodes, but none of the examples do this. The reference C and m code do not require modification for up to 16 nodes. The only "catch" is calling warplab_initialize() with an argument indicating the number of nodes:

Code:

%3 Node Example:
[socketHandles, packetNum] = warplab_initialize(3);

udp_Sync = socketHandles(1);
udp_node1 = socketHandles(2);
udp_node2 = socketHandles(3);
udp_node3 = socketHandles(4);

If you omit the argument, it assumes two nodes (i.e. the return vectors have three elements; one per node, plus the sync handle).

Be sure the DIP switches on your nodes are set correctly (0/1/2 for IP addresses 10.0.0.1/2/3).

Offline

 

#3 2011-Jun-29 17:03:19

riveridea
Member
From: Tennessee Tech Univ.
Registered: 2010-Oct-01
Posts: 100

Re: is there reference code controlling more than 2 boards

Thank you. I will try it.

Offline

 

Board footer