[Tinyos-help] Converting Binary Data to Printf Format
Michael Schippling
schip at santafe.edu
Thu May 21 09:00:09 PDT 2009
I don't know what format the printf lib sends things in,
and I thought it supplied a host end receiver of some sort.
Perhaps you can find that and see how they go about it, or
work back from the source for the re-Mote end.
You can look at any MIG generated Java message class for pointers
on converting the message stream to java types, although that
will probably be over-the-top complicated to understand.
My posted code contains some hand built message conversion code,
e.g., RoboStatMsg.java in
http://www.etantdonnes.com/Motes/robocode.tar.gz
In any case you will have to know what the structure of the data
in the file is in order to parse it.
MS
Tal Rusak wrote:
> Hi,
> I have a binary data file received from the serial port on several motes, in the PrintfMsg format. I need to decode this data to get the messages in the regular plain-text output from printf. How is it possible to decode data stored in binary format (as opposed to what would be received directly from the motes)?
>
> Thanks!
> Tal
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
More information about the Tinyos-help
mailing list