Hi,

>> However, for a forwarded packet from other
motes, Packet.setPayloadLength() is not called prior to enqueue.

Since every mote sets adjusts its local packet payload according to CTP
specs, a mote forwards other motes messages which have already been
preparedby the corresponding mote!. ctp_data_header_t structure is at the
top of the packet, following it the application layer struct.... A mote does
not change any property related to the forwarded packets. (Except thl field
as far as i know.)

Regards,

-- 
Mehmet Akif Antepli
Telecommunications Lab.
Dept. of EEE
Middle East Technical University

On Sun, Feb 28, 2010 at 12:42 PM, Xiaohui Liu <[email protected]> wrote:

> Hi,
>
> In forwarding engine of CTP, when there is a local generated packet
> arriving, before it's enqueued, Packet.setPayloadLength() is called so that
> when packet is retrieved from the queue, payload length could be obtained by
> calling SubPacket.payloadLength(). However, for a forwarded packet from
> other motes, Packet.setPayloadLength() is not called prior to enqueue. Is it
> problematic to later retrieve the payload length the same way as local
> generated packets? Thanks.
>
> --
> -Xiaohui Liu
>
> _______________________________________________
> 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