Are you using the tinyos C sdk: http://code.google.com/p/tinyos-main/source/browse/#svn%2Ftrunk%2Fsupport%2Fsdk%2Fc%2Fsf
I've been using this for years (reading from a Span running BaseStation) and never had a problem with it Mike On Thu, Jun 23, 2011 at 1:59 PM, Erwan RENAUDO <[email protected]>wrote: > Hello ! > > I'm currently working with Shimmer 2R + Gyro board and I developed a > firmware answering my previous needs. Now, I want to improve it on the > following point : > I'm sending my data each time timer fires through radio. I have a span > plugged on the computer running BaseStation that bridges data incoming, > making me able to print them with the java tool Listen or by reading in C on > the correct /dev/ttyUSB (I wrote a short for that). > > The problem that appears is that the data and the reading on serial port > are not synchronized (they are with Listen, but I need the reader to be in C > for compatibility with, at least, the processing). I tried cheating by > parsing the received bytes and looking for the beginning of the message ( 00 > FF FF 00 ), but it doesn"t happen every time and I'm losing data this way. > So I decided to implement a handshake mechanism by writing a message on the > span to send it to the mote saying "let's go, I'm ready" and the mote > answering before starting to send data. > But I tried writing on the serial and if it looks being received by the > Basestation, it's not then transmitted to the radio and sent to the mote. > > So I would know if there is any method / modus operanti to make the span > works in serial->radio wireless or another better solution I can implement > in C to get my data. > > Ask for any precision, > > Thanks for answering, > Erwan > > -- > Élève Ingénieur Promo 2011 - Section *Informatique et Systèmes*. > École Nationale Supérieure de l'Électronique et de ses Applications (* > E.N.S.E.A.* - Cergy) > > > _______________________________________________ > 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
