Hello,

We have made a NesC application like surge, which can send and receive messages.

So before sending a message from our motes we filled every fields of our 
message struct with :

*****************************************************************************************************
MoteAppMsg *pReading;
TOS_Msg gMsgBuffer;
TOS_MsgPtr pMsgBuf;
pMsgBuf = &gMsgBuffer;

if (pReading = (MoteAppMsg *)call SendApp.getBuffer(&gMsgBuffer,&Len)) 
        {
              pReading->myaddr = 0x56;//TOS_LOCAL_ADDRESS;
              pReading->type = MOTEAPP_TYPE_RATE_READING;
              pReading->parentaddr = call RouteControl.getParent();
                pReading->reading = timer_rate;
            }



*****************************************************************************************************

And we send that message with :

*****************************************************************************************************

if ((call SendApp.send(&gMsgBuffer,sizeof(MoteAppMsg))) != SUCCESS) // Si 
l'envoi ne se passe pas bien
                  {
                      atomic gfSendBusy = FALSE;  // l'envoie de donne n'est 
pas occupée
                    call Leds.redToggle();
                }

:



*****************************************************************************************************
So the different fields of the message received on our computer , are not the 
same as the differents fields filled of our message sent before...

We don't know how it doesn't work, we have followed the same way as surge or 
other applications of tinyOS...

Can anyone help us ?

Thank you very much,

Regards,

Tony GOMES and Ahmed DEHBI




       
____________________________________________________________________________________Ready
 for the edge of your seat? 
Check out tonight's top picks on Yahoo! TV. 
http://tv.yahoo.com/
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to