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
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help