August Betzler
2012-10-09 09:22:30 UTC
Hi,
I'm working with TelosB motes and saw in this mailing list that they can
be simulated in Cooja by compiling the TinyOS code and loading it into the
simulator. However, I'm having some issues with it.
Since the nodes are programmed with TinyOS, the following question may be
"out of scope" for this mailing list. Still, i hope that maybe someone had
similar issues and may help me out:
I implemented 60 nodes that all use the same code and have different node
IDs. They form a sensor network, where each node needs to be able to find
routes to other nodes and to exchange data with them. This program uses
millisecond timers, as provided by TinyOS. Some of these timers are set to
about 1500 ms, but when I run the Cooja simulation, they expire after a
few ms. I really don't understand what is going on.
The program is relatively complex, so it's no simple "ping-pong" code that
I could post here. I just can say that the timers are part of the routing
mechanism (discovery timeout) and I use many more (transport layer RTOs,
etc.) that also behave strangely. Other aspects of the code seem to work
fine so far, only the timers are causing problems. For the simulations I'm
using the newest version of instant Contiki downloaded from sourceforge.
To make the timers work, do I have to adjust a certain parameter in Cooja?
Or do i need to use a different type of timers in TinyOS to make the
simulation possible?
As I said, I know this is not a Contiki issue, but maybe someone has an idea.
With best regards,
August
I'm working with TelosB motes and saw in this mailing list that they can
be simulated in Cooja by compiling the TinyOS code and loading it into the
simulator. However, I'm having some issues with it.
Since the nodes are programmed with TinyOS, the following question may be
"out of scope" for this mailing list. Still, i hope that maybe someone had
similar issues and may help me out:
I implemented 60 nodes that all use the same code and have different node
IDs. They form a sensor network, where each node needs to be able to find
routes to other nodes and to exchange data with them. This program uses
millisecond timers, as provided by TinyOS. Some of these timers are set to
about 1500 ms, but when I run the Cooja simulation, they expire after a
few ms. I really don't understand what is going on.
The program is relatively complex, so it's no simple "ping-pong" code that
I could post here. I just can say that the timers are part of the routing
mechanism (discovery timeout) and I use many more (transport layer RTOs,
etc.) that also behave strangely. Other aspects of the code seem to work
fine so far, only the timers are causing problems. For the simulations I'm
using the newest version of instant Contiki downloaded from sourceforge.
To make the timers work, do I have to adjust a certain parameter in Cooja?
Or do i need to use a different type of timers in TinyOS to make the
simulation possible?
As I said, I know this is not a Contiki issue, but maybe someone has an idea.
With best regards,
August