[Tinyos-help] tossim acknowledgement when TOS_NODE_ID is different from AM address

Philip Levis pal at cs.stanford.edu
Thu Feb 5 14:45:11 PST 2009


On Feb 5, 2009, at 2:30 PM, Jung Woo Lee wrote:

> Hello,
>
> I found that when I set AM address to a value that is different from
> TOS_NODE_ID in TOSSIM, an ack is not received in a sender.
>
> I think it's because of a code in CpmModelC that compares TOS_NODE_ID
> to AM ADDRESS:
>
>
> In CpmModelC.nc
> command void Model.putOnAirTo(
> ...
> sim_gain_put(other, msg, endTime, ack && (other == dest) ...
> ...
> dest is an AM ADDRESS and other is a node id.
>
> When I remove (other == dest), it seemed to work fine.

Nice catch. The (other == dest) check is redundant due to the up-call  
to shouldAck. I'll check in a fix.

Phil


More information about the Tinyos-help mailing list