[6320] | 1 | """ |
---|
| 2 | ------------------------------------------------------------------------------ |
---|
| 3 | Mango 802.11 Reference Design Experiments Framework - Identify Nodes Example |
---|
| 4 | ------------------------------------------------------------------------------ |
---|
| 5 | License: Copyright 2014-2019, Mango Communications. All rights reserved. |
---|
| 6 | Distributed under the WARP license (http://warpproject.org/license) |
---|
| 7 | ------------------------------------------------------------------------------ |
---|
| 8 | This script blinks the right hex display of all nodes to ensure broadcast |
---|
| 9 | communication on the network. |
---|
| 10 | |
---|
| 11 | Hardware 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 | |
---|
| 16 | Required 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 | |
---|
| 19 | Description: |
---|
| 20 | This script will cause all nodes on each of the network to blink their hex |
---|
| 21 | displays. If a node has not been initialized with an IP address (ie, it has |
---|
| 22 | just booted and and has not had its network configured via init_nodes()), then |
---|
| 23 | it will respond to all broadcast packets that are seen regardless of the |
---|
| 24 | network. This is useful to test connectivity regardless of further network |
---|
| 25 | segmentation during the experiment. |
---|
| 26 | ------------------------------------------------------------------------------ |
---|
| 27 | """ |
---|
| 28 | import wlan_exp.transport.config as config |
---|
| 29 | import wlan_exp.transport.util as util |
---|
| 30 | |
---|
| 31 | # Change these values to match your experiment setup |
---|
| 32 | NETWORK = '10.0.0.0' |
---|
| 33 | |
---|
| 34 | # Create the network configuration |
---|
| 35 | network_config = config.NetworkConfiguration(network=NETWORK) |
---|
| 36 | |
---|
| 37 | # Issue identify all command on the network |
---|
| 38 | util.identify_all_nodes(network_config) |
---|