-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Joakim Eriksson edited this page Dec 28, 2015
·
7 revisions
Radio-sim is a radio-medium simulator intended to hook-up emulators such as MSPSim and Emul8 to. The initial version is supporting very basic 802.15.4 style radio-medium.
- Emulators - emulators are responsible for "executing" node firmware. They will connect to the simulation and take part. All emulators will get time information in order to progress the same amount of time-quanta.
- Time manager - one time manager per simulation needs to be connected. This is the one that controls the progress of time in the simulation.
- "Listener" - ...
This is quick guide to start up some example code.
- Start the Main class (Simulator)
>cd radio-medium
>ant jar
>java -jar emul8-radio-medium.jar
...
- Start the test time controller
>java -cp emul8-radio-medium.jar se.sics.emul8.radiomedium.test.TestClient
- Start MSPSim Sky mode emulator with firmwares
>cd ../mspsim-emulink
>ant jar
>java -jar mspsim-emulink.jar firmwares/udp-server.sky
>...
and
>java -jar mspsim-emulink.jar firmwares/udp-client.sky
>...
It is also possible to use the test/load-test.py script to load a COOJA csc file. It will load the COOJA simulation file and start Radio-sim and a bunch of MSPSim emulators that connect with the radio-medium simulator. It will also extract the Javascript and run that in a similar way as it is run in COOJA.