Could someone please help me with writing to Moteiv telosb motes? I am working with Python, but I do not expect this will matter much due to the tight coupling with C.
The following struct describes what I am trying to send: struct CommandMsg { uint16_t cmd; // = 3 uint16_t mask; // = 1<<15 uint16_t arg; // = 10 }; The data I send goes through the following transformations: Data: 03 00 00 80 0a 00 Message: 14 7d 03 00 00 80 0a 00 Packet: 7e 42 06 01 08 14 ff ff 7d 5e 00 14 7d 5d 03 00 00 80 0a 00 ba eb 7e I recall reading that motes are LSB byte order, and hence the ordering I use. Can someone please process these threee 16-bit integers and show me how it is done ? -- Warm regards, Darren Bishop _______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help