Initiating work with contiki’s cooja.
Initiating work with cooja requires set up for contiki-OS.If you have not configured or set up instant contiki than refer the below link-
- Open terminal of the instant contiki and traverse to directory :-Contiki/tools/cooja.
cd contiki/tools/cooja
2. Now to open cooja simulation type(After This if some error occur see note at the end):-
ant run
3. To start the simulation click on file than new Simulation.
4. Enter your simulation name(This name is upto your choice).Click Create.
5. Add Motes:-
Click on the Motes->Add Motes->Sky Mote(You can select any mote according to your application)
6. Burning code of client in node:-
browse contiki process / Firmware to:-
/home/user/contiki/examples/er-rest-example/er-example.c(This application is upto you).
7. Click Create.
8. Enter the Number of new motes and click Add motes.
9. Add Server Mote by applying steps 5,6 and 7.
In step 6 Browse to:-
/home/user/contiki/examples/er-rest-example/er-example-server.c(It can be different in your case).
In case of server I am adding 8 Server, You can add as many as you want.
10. Now your simulation set up is configured.You can click on start and its done.(You need to check some of the options available in view tab of network Example->I select radio traffic to see the communication).
Note:-
In case of Contiki-3.0 sometimes there is an error related to mspsim, for that you have to download mspsim from github(See below link).
Extract the file and paste all the content of the file to-
contiki/tools/mspsim.
Than again try to run command ant run specified in step 2.
Happy Simulation!!!!