Changes
Page history
bp0705 created page: Testing Framework Code on a Cooja Simulation
authored
Mar 08, 2018
by
Brett
Show whitespace changes
Inline
Side-by-side
Testing-Framework-Code-on-a-Cooja-Simulation.md
0 → 100644
View page @
edbb74ce
**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
**Connect Cooja Network to Tunslip-**
*
Run Cooja using instructions from Wiki
*
Create new simulation
*
Add Cooja mote
*
Navigate to firmware/edgeNode directory and select border-router.c
*
Compile and create
*
Right click border node and select Mote tools -> SERIAL SOCKET (SERVER) option
*
Type 60001 and then press Start
**Installing MySQL and Importing MySQL Dumpfile-**
*
Installing MySQL:
*
sudo apt-get update
*
sudo apt-get install mysql-server
*
If the above commands output errors, purge the mysql filesystem and uninstall
*
Launch mysql shell:
*
sudo mysql --password={linux user password}
*
Create database in mysql called sensors (while in mysql shell):
*
mysql> CREATE DATABASE sensors;
*
mysql> GRANT ALL PRIVILEGES ON
*.*
TO 'logger'@'localhost' IDENTIFIED BY 'cc1310';
*
Exit mysql shell (type
\q
and hit enter or Ctrl+Z works fine)
*
navigate to /framework folder where localhost.sql is located
*
Enter command: mysql -p -u logger sensors < localhost.sql
*
Enter password cc1310
**Launching Java Framework-**
*
Navigate to framework/ant/build
*
sudo ant