Changes between Version 2 and Version 3 of 802.11/wlan_exp/examples/blink_node_leds
- Timestamp:
- Apr 10, 2014, 3:09:13 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
802.11/wlan_exp/examples/blink_node_leds
v2 v3 9 9 This example of the Experiments Framework is very simple. It uses a simple Python script to send a broadcast command to all WARP v3 nodes which causes them to blink the hex dispaly LEDs for 5 seconds. This script is a good way to test your Python installation, PC network configuration, nodes configuration and Ethernet connections. 10 10 11 '''Source:''' the script is included in the '''Python_Reference''' folder of the 802.11 Reference Design archive. The latest version of the code is also displayed below.11 '''Source:''' the script is included in the 802.11 Reference Design archive at '''Python_Reference/examples/blink_node_leds.py'''. 12 12 13 13 To run this example: … … 20 20 ---- 21 21 22 {{{#!python 23 24 """ 25 This script blinks the red LEDs of all nodes to ensure broadcast communication 26 27 Hardware Setup: 28 - Requires one or more WARP v3 nodes configured with the 802.11 Reference 29 Design v0.81 or later. 30 - PC NIC and ETH B on WARP v3 nodes connected to common gigbit Ethernet switch 31 32 Required Script Changes: 33 - Set HOST_INTERFACES to the IP address of your host PC NIC 34 35 Description: 36 This script will cause all nodes on each of the host interfaces to 37 blink their LEDs. 38 """ 39 import time 40 import wlan_exp.warpnet.util as wn_util 41 42 # NOTE: change these values to match your experiment setup 43 HOST_INTERFACES = ['10.0.0.250'] 44 45 # Issue identify all command 46 # Wait 1 second before issuing the command to make sure all nodes are ready 47 time.sleep(1) 48 wn_util.wn_identify_all_nodes(HOST_INTERFACES) 49 50 }}} 22 [[Include(source:/ReferenceDesigns/w3_802.11/python/examples/blink_node_leds.py)]]