Hi Philip, ok, I was not so deep into AMSend logics. This would mean, that I need 3 packet buffers (for every AM type one buffer), right?
The next question would be: I can insert a packet to a buffer, this shouldn't be difficult. But how can tell AMSend to take a packet exactly from this buffer? I'm looking forward to hear from you! Thanks, Martin Quoting Philip Levis <[email protected]>: > > 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 ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
