On Apr 29, 2010, at 9:39 AM, [email protected] wrote:

> 
> event void localization_timer.fired()
> {
>       if( !is_radio_busy )
>       {
>               loc_msg* l_msg = (loc_msg*)( call 
> Packet_localization.getPayload( &pkt,
> (uint16_t)NULL) );
> 
>               if( call AMSend_localization.send( AM_BROADCAST_ADDR, &pkt, 
> sizeof(loc_msg))
> == SUCCESS )
>               {
>                       is_radio_busy = TRUE;
>               }
>       }
> }
> 
> So, I call the AMSend_localization interface. This should be done with the 
> AM_ID
> = 7. But somehow, all messages are sent with the ID = 6.

Maybe you are calling AMSend_report using the same packet buffer, while the 
localization send is pending. This will cause the AM layer to rewrite the 
buffer to be a report packet.

Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to