Hello,

 If anyone remember I was asking for serial packet format quite a while ago. I 
managed to make a packet and send it to BaseStation app, by sending this 
packet, the Led0 (Red LED) of the telosb mote toggles. I assume this means the 
packet has been transfred from PC to mote in correct format. Is this right?

 Here is the packet I managed to make:

 7E 44 00 00 FF FF 00 00 02 06 00 00 64 7B 7E

 byte[0] = 0x7E //start bit
 byte[1] = 0x44 //Message Type
 byte[2,3] = 0x0000 //Sequence number
 byte[4,5] = 0xFFFF //Destination Address (AM_BROADCAST = 65535)
 byte[6,7] = 0x0000 //Source Address
 byte[8] = 0x02 //Payload size, in this case payload is 2 bytes both zero
 byte[9,10] = 0x0000 //My messege (payload) to be sent
 byte[11,12] = 0x647B //Calculated CRC from byte[1] to byte [10]
 byte[13] = 0x7E //end bit


 Can somone please confirm that I am making a correct packet and if it is 
accodring to the format? also is the byte[2,3] really the Sequence Number!? 
What are they being used for? How can I take care of escape sequence? Does 
somone have a C/C# code for this case?!

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

Reply via email to