Hi Imanol.

 

The documentation for the protocol is pretty sparse in general, but this link should be enough to get it done with the appropriate amount of beating your head on the wall, http://www.octavetech.com/pubs/TB5-01%20Deciphering%20TinyOS%20Serial%20Packets.pdf

 

Not sure I’m allowed to give the code out (we’re one of those evil corporation thingies) but I can give a couple important hints, the first being to note that it’s a little-endian protocol, so the LSB comes first, which is opposite to the way LabView likes to convert multi-byte numerics into byte arrays (at least on a PC- I don’t know how well defined that behavior is). The second is that the CRC starts at the packet type (including the optional prefix) and runs up to the end of the TOS_Msg payload. The thing that’s a little confusing about that is that the packet type isn’t properly part of the TOS_Msg, so the CRC kind of includes a little piece of the frame from the next layer down, even though it is definitely inside the frame, i.e. it can be escaped. Other than that, it’s a fairly straightforward matter of peeling away the various protocol layers. Networking components like Bcast often put stuff on top of the TOS_Msg payload, but you can usually find those structures in the NesC source.

 

Ben


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Imanol Padillo
Sent: Wednesday, September 20, 2006 3:42 AM
To: [email protected]
Subject: [Tinyos-help] Labview

 

Hi all!

 

I'm trying to get data from my micaz motes in Labview. The data are sent to the TOS BASE mote by the radio, and then through the serial port I want to adquire this data with Labview.

So I'm looking for some labview modules or libraries. Does anyone know if anything is available? Has anyone done something similar?

 

Thanks.

 

Imanol

 



LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to