[Tinyos-help] Example TinyOS 2.x app with multiple packet types
Omprakash Gnawali
gnawali at usc.edu
Mon Nov 10 17:53:54 PST 2008
On Mon, Nov 10, 2008 at 1:36 PM, Matt Keally <makeal at wm.edu> wrote:
> Hi,
>
> I wish to have two types of packets for communication in my application:
> control packets sent from a base station and sensor data packets returned
> from the nodes. Each has a different nx_struct. Is there an example
> application (I can't seem to find one) that makes use of this scheme? It
> seems to be difficult to do this without a lot of redundant code.
>
> Currently I am wiring the AMSend and Recieve interfaces to separate send and
> recieve functions for data packets and control packets. Having both serial
> and radio communication, this makes four nearly redundant functions to
> handle sending packets and receiving packets.
>
You can look at TestDissemination and TestNetwork.
- om_p
More information about the Tinyos-help
mailing list