Hi,
 
TinyOS messages start and end with byte 0x7E. That is the value 126 you are describing. The rest of the message is escaped. therefore, you have to unescape the message before checking crc...
 
This link will provide you information about the settings. Normally you do not need to take care of crc, except you want to send a message from pc to nodes.
 
http://www.octavetech.com/pubs/TB5-01%20Deciphering%20TinyOS%20Serial%20Packets.pdf
 
I think this link will help you understand the reason for all bytes of the messages.
 
 
 
Best regards,
 
 
Patrick

Imanol Padillo <[EMAIL PROTECTED]> wrote:
Hi !!
I have some problems with the message transmited from the radio CC2420 of the micaz in tinyOs 1.15. I receive the whole messege via RS232 with the TOS_BASE,and I'm trying to identify all the fields. This is the messege I receive and the fields I know:
byte 0: 126 -> sync byte
byte 1: 66 -> I don't know what means this byte????
byte 2 and 3: 255 and 255 -> adress
byte 4: 0 -> type
byte 5: 170 -> group id
byte 6: 29 ->lenght
byte 7 to 36:  -> payload
byte 37 and 38:14 and 18  ->CRC
byte 39:126  -> sync byte
 
From  byte 2 to byte 38 are defined in the TOS_Msg
The first byte and the last one, I supose that are syncronism bytes and in all the messeges I ' ve received is always 126, is this true?,is this always constant?
The second byte, could anybody tell me what means?
 
And how can I check the CRC bytes?
 
Thank you in advance


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




All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to