Hi,

Yes, the Snoop works in CTP...



On 17 Mar 2012, at 07:00 PM, tinyos-help-requ...@millennium.berkeley.edu wrote:

> Send Tinyos-help mailing list submissions to
>    tinyos-help@millennium.berkeley.edu
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>    https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 
> or, via email, send a message with subject or body 'help' to
>    tinyos-help-requ...@millennium.berkeley.edu
> 
> You can reach the person managing the list at
>    tinyos-help-ow...@millennium.berkeley.edu
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Tinyos-help digest..."
> 
> 
> Today's Topics:
> 
>   1. Facing problem with snoop in CTP (Amitangshu Pal)
>   2. Few questions (Juan Martinez)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Sat, 17 Mar 2012 14:23:11 -0400
> From: Amitangshu Pal <amitangshu....@gmail.com>
> Subject: [Tinyos-help] Facing problem with snoop in CTP
> To: tinyos-help@millennium.berkeley.edu
> Message-ID:
>    <CAONiVDM=E7Rrk68WmTr5d--p_mvoNmvrffHqtAoaRuhi4p=f...@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi,
>   I am trying to test the snoop interface in CTP. Thus in
> CtpForwardingEngineP.nc I added two line in the SubSnoop.receive as below:
> 
> *event message_t*
>  SubSnoop.receive(message_t* msg, void *payload, uint8_t len) {
>    //am_addr_t parent = call UnicastNameFreeRouting.nextHop();
>    am_addr_t proximalSrc = call AMPacket.source(msg);
> 
>   event_OVERHEAR++;
> 
>    call Leds.led2On();
> 
>    // Check for the pull bit (P) [TEP123] and act accordingly.  This
>    // check is made for all packets, not just ones addressed to us.
>    if (call CtpPacket.option(msg, CTP_OPT_PULL)) {
>      call CtpInfo.triggerRouteUpdate();
>    }
> 
>    call CtpInfo.setNeighborCongested(proximalSrc, call
> CtpPacket.option(msg, CTP_OPT_ECN));
>    return signal Snoop.receive[call CtpPacket.getType(msg)]
>      (msg, payload + sizeof(ctp_data_header_t),
>       len - sizeof(ctp_data_header_t));
>  }*
> 
> I installed this in 2-3 motes, but I am not able to see GREEN led on,
> neither the counter is incrementing. Can anyone please let me know what is
> the problem?
> Does the snoop interface in CTP works?
> 
> Thanks & Regards,
> Amitangshu Pal
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20120317/0333e0e2/attachment-0001.htm
>  
> 
> ------------------------------
> 
> Message: 2
> Date: Sat, 17 Mar 2012 19:42:57 +0100
> From: Juan Martinez <juan.jose.martinez.ro...@gmail.com>
> Subject: [Tinyos-help] Few questions
> To: tinyos-help@millennium.berkeley.edu
> Message-ID:
>    <capojjtty4jp3snbf+fw3wuq989syjqn3kwavfexzkpvdz5q...@mail.gmail.com>
> Content-Type: text/plain; charset="windows-1252"
> 
> Hello everyone.
> 
> I?m using the TinyOS V2.1.1 with TELOS B and I?ve got some questions.
> 
> On the standard 802.15.4 the CSMA-CA algorithm, in slotted this version of
> TinyOS give the option of ?Battery life extension?. What it meant?
> 
> Another thing is. When ? BE=min(2,macMinBE) ? wich is this possible value
> for BE.
> 
> Thanks
> 
> Juan
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20120317/1cd8181c/attachment-0001.htm
>  
> 
> ------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 
> End of Tinyos-help Digest, Vol 107, Issue 36
> ********************************************

_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to