Update Testing Framework Code on a Cooja Simulation authored by Alex Medellin's avatar Alex Medellin
......@@ -41,16 +41,19 @@
To test the border-router with a physical device:
1. Make sure a device is plugged into the computer that has the ../firmware/edgeNode/border-router.hex (generate this file by running the Makefile, i.e. ```make TARGET=srf06-cc26xx BOARD=launchpad/cc1310```) file loaded onto it.
2. Go to ../firmware/edgeNode/ directory
3. Run ```sudo make connect-router```
4. Go to ../framework/ directory
5. Run ```ant run-server```
6. Hit ```Ctrl+Z```
7. Run ```ant run-dblogger```
8. Hit ```Ctrl+Z```
9. Run ```ant run-sensorapp```
A GUI will pop up. That GUI should display all nodes connected to the network. If it's working, you should be able to click on a node and click the "Observe" button and see its sensor data.
NOTE: There are some steps missing here as we are still not able to get it to work just yet. These instructions will be updated when we get everything working correctly.
1. Plug in serial interface board (USB <-> Serial Interface <-> Border-Router <-> Mesh) into the computer. Then, run ```dmesg``` and find which device it's attributed to (NOTE: should be either ttyACM0 or ttyACM1).
2. Navigate to the ../firmware/edgeNode directory. Change the line in the Makefile that starts with "connect-router" and after the -s parameter, add /dev/<ttyACMx>.
3. Make sure a device is plugged into the serial interface board that has the ../firmware/edgeNode/border-router.hex (generate this file by running the Makefile, i.e. ```make TARGET=srf06-cc26xx BOARD=launchpad/cc1310```) file loaded onto it.
4. To make sure that the serial port is working correctly, run ```sudo minicom``` and see if there's any output. If not, keep powering off the board programmed with the border-router code, close out of minicom (```Ctrl+A```, ```q```), unplug and replug the serial interface board, and repeat until it works. NOTE: The output won't make sense, but the idea is to make sure you're seeing something coming in.
5. You can run Wireshark (```sudo wireshark &```, ```fg```, enter root pw, ```bg```) to see if there's any traffic on tun0. If not, ensure via step 4 that the serial interface is functioning correctly. You'll see traffic, but you'll also see that messages aren't being correctly received until you follow steps 6-13.
6. Go to ../firmware/edgeNode/ directory
7. Run ```sudo make connect-router```
8. Go to ../framework/ directory
9. Run ```ant run-server```
10. Hit ```Ctrl+Z```, then ```bg```
11. Run ```ant run-dblogger```
12. Hit ```Ctrl+Z```, then ```bg```
13. Run ```ant run-sensorapp```
14. On Wireshark, you will be able to see messages being sent. You should be able to identify what the messages are (NOTE: The values are little endian so the byte order is backwards, but the bits within each byte are NOT REVERSED).
A GUI will pop up. That GUI should display all nodes connected to the network. If it's working, you should be able to click on a node and click the "Observe" button and see its sensor data. The issue we're still having is that nothing shows up in the Status GUI. It should display config values, but the sensor nodes don't appear to be accepting commands. This is currently an active issue in the firmware git.