source: ReferenceDesigns/w3_802.11/python/examples/blink_node_leds.py

Last change on this file was 6320, checked in by chunter, 5 years ago

1.8.0 release wlan-exp

File size: 1.7 KB
Line 
1"""
2------------------------------------------------------------------------------
3Mango 802.11 Reference Design Experiments Framework - Identify Nodes Example
4------------------------------------------------------------------------------
5License:   Copyright 2014-2019, Mango Communications. All rights reserved.
6           Distributed under the WARP license (http://warpproject.org/license)
7------------------------------------------------------------------------------
8This script blinks the right hex display of all nodes to ensure broadcast
9communication on the network.
10
11Hardware Setup:
12  - Requires one or more WARP v3 nodes configured with the 802.11 Reference
13      Design v0.81 or later.
14  - PC NIC and ETH B on WARP v3 nodes connected to common gigbit Ethernet switch
15
16Required Script Changes:
17  - Set NETWORK to the IP address of your host PC NIC network (eg X.Y.Z.0 for IP X.Y.Z.W)
18
19Description:
20  This script will cause all nodes on each of the network to blink their hex
21displays.  If a node has not been initialized with an IP address (ie, it has
22just booted and and has not had its network configured via init_nodes()), then
23it will respond to all broadcast packets that are seen regardless of the
24network.  This is useful to test connectivity regardless of further network
25segmentation during the experiment.
26------------------------------------------------------------------------------
27"""
28import wlan_exp.transport.config as config
29import wlan_exp.transport.util as util
30
31# Change these values to match your experiment setup
32NETWORK = '10.0.0.0'
33
34# Create the network configuration
35network_config = config.NetworkConfiguration(network=NETWORK)
36
37# Issue identify all command on the network
38util.identify_all_nodes(network_config)
Note: See TracBrowser for help on using the repository browser.