Hi. I'm working on a proyect with iris motes, tinyOS 2.1 and Debian I wrote some communication libraries to performing communications among all my motes. This library manages an application level head that holds some control information and a data payload.
I correct the code so the max length of the packets send by my application are 115 Bytes (plus 12 Bytes of cc2420_header_t, located in /opt/tinyos-2.1.0/tos/chips/cc2420/CC2420.h) by recommendation of a discussion in http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-April/016195.html All works fine, but I have noticed a strange behaviour: I have 2 motes, mote A, that receives a radio package, toggle a led (in the Receive.receive() event), then process this package, gets util information from it and forward it to the serial port, and mote B, that when turned on, waits for a second, sends a package to A, and stops until reset (it's only for test ;-)) the behaviour is this: when I turn on A, and before, turn on B, B sends a package that A receives, toggle its led, and forwards to serial port. That's Ok, no problem. Then I reset B (power off and few seconds later power ON, or even keep away bateries for a few seconds). When I turn on B again, it sends a package, but in this case, A don't receive anything (A Leds, that is toggled at the beginning of Receive.receive() don't toggle or blink, nothing). If I reset again B, the behaviour is the same: B sends the message but A doesn't receive it. At this point, if I reset A and later B, A receive the first package only, but not the second and over. Later I change B program, this time to send two identical packages, with random separation. If I Reset A and later B, A receives the two messages that B sends but when I restart B again, A only receives the second message, not the first. If I write a third program to send continuosly messages over the radio (with a timer.startperiodic(500), for example), If I reboot A, all packages are received from a restarted mote, but any time I turn on a new mote that sends messages to A, it doesn't receive the first message of all motes, only the rest (without problems) anybody know why this behaviour? Thanks in advance -- Nunca confies en un S.O. del que no tienes código fuente ;-) -------------------------------- Javier Almansa Sobrino. Ingeniero Técnico en Informática de Sistemas. FSF #7032 Member (www.fsf.com) Grupo de Investigación ARCo. Escuela Superior de Informática. Ciudad Real Tel: (+34)926 29 53 00 Ext: 3705 _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
