[Tinyos-help] Application works fine in tossim but not on motes
Hi tinyos-help, I have a strange problem again... I have an application that works fine in TOSSIM (2.0.1) but not in the real world, with telosb motes. To be more precise : The application wants to send a multihop packet. To to so, it discovers a route using the DYMO protocol that I implemented, and then send the packet on that route. Using leds, I can see that the application calls the Multihop send, that a route request is issued and reaches all the motes, that the request gets a reply, the packet is actually sent, and the multihop sendDone is signaled. But no node receives the multihop packet, though they all have received the DYMO packets... And I can't really debug the application in TOSSIM, since it works in the simulator, that's what surprised me the most. What can be the causes of such symptoms ? The two different protocol use a different AM type, anything that I could have forgot related to that ? Thanks for your help, Romain ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Application works fine in tossim but not on motes
Hi Romain, Just two wild ideas: - Maybe the simulator filters packets differently than the real implementation. You could be sending packets to the wrong mote id and the simulator would let them pass (the routing packets would pass as maybe they are sent as broadcast). - Maybe the payload is too long. The simulator might not care, but the real implementation probably would just drop the packets. I vaguely remember that there was once a message on this mailing-list that TinyOS silently drops overlong packets. Did you check the error parameter of the sendDone() function? Cheers, Urs Romain Thouvenin schrieb: > Hi tinyos-help, > > I have a strange problem again... > > I have an application that works fine in TOSSIM (2.0.1) but not in the > real world, with telosb motes. > To be more precise : > > The application wants to send a multihop packet. To to so, it > discovers a route using the DYMO protocol that I implemented, and then > send the packet on that route. > > Using leds, I can see that the application calls the Multihop send, > that a route request is issued and reaches all the motes, that the > request gets a reply, the packet is actually sent, and the multihop > sendDone is signaled. But no node receives the multihop packet, though > they all have received the DYMO packets... > > And I can't really debug the application in TOSSIM, since it works in > the simulator, that's what surprised me the most. > > What can be the causes of such symptoms ? > The two different protocol use a different AM type, anything that I > could have forgot related to that ? > > Thanks for your help, > Romain ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Application works fine in tossim but not on motes
On 4/27/07, Urs Hunkeler <[EMAIL PROTECTED]> wrote: Hi Romain, Just two wild ideas: - Maybe the simulator filters packets differently than the real implementation. You could be sending packets to the wrong mote id and the simulator would let them pass (the routing packets would pass as maybe they are sent as broadcast). That makes sense. I already made some verifications in that direction, but I'll investigate deeper. - Maybe the payload is too long. The simulator might not care, but the real implementation probably would just drop the packets. I vaguely remember that there was once a message on this mailing-list that TinyOS silently drops overlong packets. I had this idea too, but the data packets are 16 bytes long and the routing packets are 23 bytes long. Did you check the error parameter of the sendDone() function? Yes, SUCCESS Thanks for the clues, Romain ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Application works fine in tossim but not on motes
On 4/27/07, Romain Thouvenin <[EMAIL PROTECTED]> wrote: On 4/27/07, Urs Hunkeler <[EMAIL PROTECTED]> wrote: > Hi Romain, > > Just two wild ideas: > > - Maybe the simulator filters packets differently than the real > implementation. You could be sending packets to the wrong mote id and > the simulator would let them pass (the routing packets would pass as > maybe they are sent as broadcast). That makes sense. I already made some verifications in that direction, but I'll investigate deeper. > > - Maybe the payload is too long. The simulator might not care, but the > real implementation probably would just drop the packets. I vaguely > remember that there was once a message on this mailing-list that TinyOS > silently drops overlong packets. I had this idea too, but the data packets are 16 bytes long and the routing packets are 23 bytes long. > > Did you check the error parameter of the sendDone() function? Yes, SUCCESS Thanks for the clues, Romain I have found the bug, and it was indeed related to the size of the packets. Their size was fine, but not the size parameter of the send command. So it seems the simulator copy the whole packet whatever the parameter, whereas the motes only pass the necessary bytes to the radio (and the rest seems to be zeros). I feel better now :) Romain ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help