IEEE154Receive is the link-layer receive call; packets being received on
this interface in the case of IP are messages with compressed headers and
possible fragmentation.  You should not wire to this interface.  In any
case, you cannot "call" either of these interfaces; they are signaled by the
component implemening the respecive interfaces.

In order to receive UDP packets, wire IPDispatchC, and bind a port (see
UDPEcho for examples.) recvfrom is an even which will be signaled when a
reconstructed datagram is available for consumption.

You say that your target is to "use the compression/decompression
function".  I'm not sure what this means; however, if you're trying to use
the compressed header parser, have a look at lib6lowpan.  If you really just
mean that you want to receive uncompressed UDP datagrams, see the previous
packet.

Steve

On Tue, Jan 6, 2009 at 9:52 AM, alessandro ludovici <
[email protected]> wrote:

> Hi,
> I've a doubt on how to use the interfaces UDP and IP provided in the
> IPDispatchP.nc.
> The doubt is relative to receive-side code. In fact I see that the function
> *IEEE154Receive.receive is the one dedicated to the handling of the received
> packet and inside it there is a call to the receive function of UDP and IP
> interfaces.
> The question is: In my own application I have to use the IEEE154Receive or
> use the UDP.recvfrom and inside its definition call the IEEE154Receive?
>
> Just to be more clear, my target is to call and use the
> compression/decompression function.
>
> regards,
> alessandro
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to