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

Jung Woo Lee jungwoo.lee at stanford.edu
Thu Feb 5 14:30:17 PST 2009


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

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.

Jung Woo

More information about the Tinyos-help mailing list