Hi Mohamed, Please send your questions to the mailing list so that others can profit, too. Also I think you should read the tutorials, as many of your questions are answered there.
1. If you turn the radio off with SplitControl, then the mote will not receive anything. The idea of my suggestion was that the mote does not receive anything except when waiting for an ack, so you could as well just turn the radio off when not waiting for an ack. 2. Please read the tutorial on communicating with a mote: http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder 3. You use the timer component. After sending a message, you set a counter to 0 and simply start the timer (call Timer.startOneShot(..), look at the sample applications and the Timer interface definition). If you receive an ack, you simply cancel the timer (I think that would be 'call Timer.cancel()) and turn the radio off. If you don't receive an ack, then the timer will fire. In that case you increment a counter. If the counter is above a certain threshold (eg. 3), you know that sending the message has failed a couple of times, so give up (turn the radio off and do nothing till the next periode). If the counter is still below the threshold, send the message again and restart the timer. I would use two different timers, one that fires periodically (e.g. once a day), and the other one you just use for timeouts. Cheers, Urs Mohamed H. Seddik wrote: > HI Urs > > I've just followed your instructions. but I have a few questions if you do > not mind. > 1st. and the most important thing if I stopped the splitcontrol (stopped the > RF) after finish sending the message. Is the mote will be able to receive > anything ?if yes how it knows there is something is coming to start the RF, > if not how it works in normal motes,how to work around this and make the RF > not working all the time, where it should send the data and then go to sleep > mode . > can the mote start the RF by itself when it receiving or not. how this > process work? > > 2nd. I want to take the voltage reading using the serial forwarder but I got > something like this > 00 00 00 00 01 04 00 00 00 0C 00 00 > 00 00 00 00 01 04 00 00 00 0C 00 00 > 00 00 00 00 01 04 00 00 00 0C 00 00 > 00 00 00 00 01 04 00 00 00 0C 00 00 > 00 00 00 00 01 04 00 00 00 0C 00 00 > > I've attached the file to see how I tried to send the voltage values. how can > I get these values exactly or these readings ? > > how can I see the values of the voltage ? > > 3rd. I liked the retransmission & time-out Idea but I could not implement it > because I do not how to do it,if you can show me how! > > > > Thanks & Have a Nice Day > Mohamed _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
