Hello,
 
When I receive a radio message I want to send the received information through 
the serial port using UARTOutput function. 
I would like to know if there is any restriction about the quantity I can send 
through the serial port.
If I try to do the following in the event TOS_MsgPtr 
RadioReceive.receive(TOS_MsgPtr data), the hyperterminal get stack and 
I can only see the first character (a 0):
 
msglenght = 0;
msglenght += sprintf(OutputM + msglenght, 
"%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x,", 
         beacultrasonic->Id[0],beacultrasonic->Id[1],
         beacultrasonic->Id[2],beacultrasonic->Id[3],
         beacultrasonic->Id[4],beacultrasonic->Id[5],
         beacultrasonic->Id[6],beacultrasonic->Id[7]);
   
msglenght += sprintf(OutputM + msglenght, "%d,",beacultrasonic->tla);
msglenght += sprintf(OutputM + msglenght, "%d,",beacultrasonic->Distance);
msglenght += sprintf(OutputM + msglenght, "%d\r\n",beacultrasonic->temp);
UARTOutput(DBG_ERROR,"%s", &OutputM);
 

If I write only this:

 

msglenght = 0;
msglenght += sprintf(OutputM + msglenght, "%d,",beacultrasonic->tla);
msglenght += sprintf(OutputM + msglenght, "%d,",beacultrasonic->Distance);
msglenght += sprintf(OutputM + msglenght, "%d\r\n",beacultrasonic->temp);
UARTOutput(DBG_ERROR,"%s", &OutputM);
 
Then I can see everything and the hyperterminal is OK.
 
Could you please tell me what is the problem?
 
Thank you very much.
 
Sofia

_________________________________________________________________
Llévate Messenger en el móvil a todas partes ¡Conéctate!
http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to