Hi Vijay, I don't have a working program for you, but you might want to take a look at some of the test programs in TinyOS for inspiration. Since it's just a matter of sending a bit of data back and forth, try looking at the /apps/ Osilloscope, both the node and java program src.
Best Regards, /Martin On Fri, May 29, 2009 at 7:18 PM, Vijay Gabale <[email protected]>wrote: > Hi, > > I am, Vijay, working on my masters thesis at Computer Science and > Engineering department, IIT Bombay, India. > > I am testing a similar kind of set up where I have a Tmote-sky motes as the > network nodes and Tiny OS 2.x as the software system. I have a laptop which > feeds the mote (mote connected to PC) with the encoded data (for voice > streaming) every x ms which I need to extract through the USB port to PC. > > I am facing a non-trivial problem in this setting. Suppose I want to > receive data at PC side every 60ms. For this, I have a program running on > mote side which sends 2 bytes of data to PC and then PC (a java program > running on PC side) sends 50 bytes to mote. I would call this a cycle of > transfer. After some cycles of transfer, the java program running at PC > side gets stalled and for say, next 10 transfers, it does not receive any > data, i.e. it does not receive any data for next 600ms and then receives the > 10 transfer of data (like buffered either at the USB or UART end interface) > every 10ms for next 100ms and the pattern gets randomized but continues in > this fashion. > > I would be extremely grateful if any body could get me a working program > where > > 1) PC (java program) to mote transfer (unidirectional only) is > deterministic for long data transfer from PC to mote i.e. if PC is sending > data every 60ms, mote should receive data at 60ms interval. > > 2) similar unidirectional transfer from mote to PC > > 3) and the bidirectional transfer that I have mentioned where mote sends a > pulse of 2 bytes and PC sends a data of 50 bytes to mote back at 60ms > interval. > > If you get working program, try including radio components of Tiny OS and > let the split control interface of radio be started. Then see whether you > get the same output as above. If you get one, do send me the working > programs. > > Awaiting your response. Kindly let me know if there are any queries. > > Regards, > Vijay > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
