[Tinyos-help] Help request: How to write to Telosb/TmoeSky ?
Darren Bishop
D.Bishop at cs.ucl.ac.uk
Sat Jul 29 15:20:36 PDT 2006
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
More information about the Tinyos-help
mailing list