* Now should be able to run Tunslip commands. This connects the Java framework program to Cooja
**Connect Cooja Network to Tunslip-**
**Connect Cooja Network to Tunslip-**
* Run Cooja using instructions from Wiki
* Run Cooja using instructions from Wiki
* Create new simulation
* Create new simulation
...
@@ -13,6 +7,11 @@
...
@@ -13,6 +7,11 @@
* Right click border node and select Mote tools -> SERIAL SOCKET (SERVER) option
* Right click border node and select Mote tools -> SERIAL SOCKET (SERVER) option
* Type 60001 and then press Start
* Type 60001 and then press Start
**Running Tunslip-**
* Navigate to firmware/edgenode directory
* Run 'sudo make connect-router-cooja'
* Now should be able to run Tunslip commands. This connects the Java framework program to Cooja
**Installing MySQL and Importing MySQL Dumpfile-**
**Installing MySQL and Importing MySQL Dumpfile-**
...
@@ -35,22 +34,22 @@
...
@@ -35,22 +34,22 @@
* Navigate to framework/ant/build
* Navigate to framework/ant/build
* sudo ant {java class name}
* sudo ant {java class name}
* Possible java class options:
* Possible java class options:
*dblogger
*run-server
*dlgstatus
*run-dblogger
* sensorapp
*run-sensorapp
*createoldfakedata
*run-generator
* generatorsensor
To test the border-router with a physical device:
To test the border-router:
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.
1. Go to ../firmware/edgeNode/ directory
2. Go to ../firmware/edgeNode/ directory
2. Run "sudo make connect-router"
3. Run ```sudo make connect-router```
3. Go to ../framework/ directory
4. Go to ../framework/ directory
4. Run "ant run-server"
5. Run ```ant run-server```
5. Hit Ctrl+Z
6. Hit ```Ctrl+Z```
6. Run "ant run-dblogger"
7. Run ```ant run-dblogger```
7. Hit Ctrl+Z
8. Hit ```Ctrl+Z```
8. Run "ant run-sensorapp"
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.
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.