Thank you Philip and Paul for your responses;
The problem was in the length of the message (longer than 28 bytes).
I have follow Paul's directives and I have change my program to use only local 
variables. It was become more easier to manipulate.

 ------------------------------
Wassim DRIRA




----- Message d'origine ----
De : Philip Levis <[EMAIL PROTECTED]>
À : [EMAIL PROTECTED]
Cc : [email protected]
Envoyé le : Mardi, 1 Juillet 2008, 17h41mn 47s
Objet : Re: [Tinyos-help] sendDone not signaled


On Jun 17, 2008, at 12:33 AM, [EMAIL PROTECTED] wrote:

> Hello,
> I want to provide in a component AMSend and Receive interfaces to be  
> used in a higher layer application.
>
> command void* AMSendSync.getPayload(message_t* msg){
>     sync_init= (sync_InitSec_msg_t*)(call  
> subAMSendSync.getPayload(msg));
>     return &(sync_init->sync);
>     //return call subAMSendSync.getPayload(msg);
> }
>
> command error_t AMSendSync.send(am_addr_t addr, message_t* msg,  
> uint8_t len){
>     sync_init->Org=myOrg;
>     for(k=0;k<8;k++){
>       sync_init->cle[k]=cPi[k];
>     }
>     return call subAMSendSync.send(addr, msg,  
> (uint8_t)sizeof(sync_InitSec_msg_t));
>     //return call subAMSendSync.send(addr, msg, len);
> }
>
> The higher application works if I use "return call  
> subAMSendSync.getPayload(msg); AND return call  
> subAMSendSync.send(addr, msg, len); " only . But when I use the  
> above code, the message was not sent and sendDone is not signaled.
>
> How do you think about it?

What does the call to send return?

Phil



      
_____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to