I don't remember or understand very well of tinyos-1.x, but how did
you check the message receival in the computer? Have you mapped
correctly the message fields to the output of the program in the
computer which shows the received messages?

One suggestion: set address based values via TOS_LOCAL_ADDRESS, and
set its value later, when compiling the component.

(sorry for the double message... I still have to get used to clicking
'reply to all')

2007/6/19, projet19 projet19 <[EMAIL PROTECTED]>:

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.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



--
"The truth shall set you free"
<a href="http://www.nerdtests.com/nq_ref.html";>
<img src="http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif";
alt="I am nerdier than 99% of all people. Are you a nerd? Click here
to find out!"></a>

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

Reply via email to