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.
I think this link will help you understand the reason for all bytes of the messages.
Best regards,
Patrick
Imanol Padillo <[EMAIL PROTECTED]> wrote:
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 bytebyte 1: 66 -> I don't know what means this byte????byte 2 and 3: 255 and 255 -> adressbyte 4: 0 -> typebyte 5: 170 -> group idbyte 6: 29 ->lenghtbyte 7 to 36: -> payloadbyte 37 and 38:14 and 18 ->CRCbyte 39:126 -> sync byteFrom byte 2 to byte 38 are defined in the TOS_MsgThe 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
