[Tinyos-help] Re: Packet format from PC to base mote through UART

David Gay dgay42 at gmail.com
Tue Jun 6 21:42:06 PDT 2006


On 6/5/06, Lei Tang <leitangcn at gmail.com> wrote:
> I was using a general serial-port application to send data to the mote,
> because I want to have my own application to control motes.

A suggestion: if you want to roll your own code, start by reading
through the existing code which does what you want to do. The Java
version (well, the part that encodes a packet for transmission over a
serial port) is in
tinyos-1.x/tools/java/net/tinyos/packet/Packetizer.java. It does have
comments, and it does have a brief description of the protocol and
encoding.

David Gay


More information about the Tinyos-help mailing list