wiki:WARPLab/Reference/Transport/UDP

UDP Transport Module Implementations

The WARPLab Reference Design implements a Transport module that handles communication between WARP boards with UDP Ethernet traffic.

Related Components:

Transport Commands Technical Reference

Transport commands are selected as string inputs to the wl_transportCmd method in wl_node.m. These strings are each individual cases of the switch statement in procCmd method of wl_transport_eth_udp_java.m, wl_transport_eth_udp_mex.m or wl_transport_eth_udp_pnet.m.

Syntax

MATLAB allows two valid forms of syntax for calling methods

  • Let N be a scalar or vector of wl_node objects
  • Let command_string be a string containing a particular command
  • Let arg be an argument for that command (optional)

Syntax 1: wl_transportCmd(N, command_string, arg1, arg2, ..., argN)

Syntax 2: N.wl_transportCmd(command_string, arg1, arg2, ..., argN)

These two different forms of syntax are identical and either may be used for issuing commands to WARP nodes.

Command List and Documentation

ping

Test to make sure node can be accessed via this transport

Arguments: none

Returns: true if board responds; raises error otherwise

payload_size_test

Determine objects maxPayload parameter

Arguments: none

Returns: none

add_node_group_id

Adds a Node Group ID to the node so that it can process broadcast commands that are received from that node group.

Arguments: (uint32 NODE_GRP_ID)

Returns: none

NODE_GRP_ID: ID provided by wl_node_grp

clear_node_group_id

Clears a Node Group ID from the node so it can ignore broadcast commands that are received from that node group.

Arguments: (uint32 NODE_GRP_ID)

Returns: none

NODE_GRP_ID: ID provided by wl_node_grp

Last modified 4 years ago Last modified on Feb 1, 2016, 10:10:07 AM