bp0705 created page: Testing Framework Code on a Cooja Simulation authored by Brett's avatar Brett
**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