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
Looking for a deal? Find great prices on flights and hotels with Yahoo!
FareChase.
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help