I don't understand the relationship between send() and receive() here
but it's possible that the intermediate put() fails because the UART
is busy. I think put() just starts a uart xmit, and like the radio
send() you need to wait for a done() before successfully posting
another char.

MS


liangjing wrote:
Hi all,

 I encountered a problem when debugging the send message. I use the
UART to give me the debugging information. In my application, I start
a timer to send the message repeatly, and when the timer is fired, I
send the message out. Now, I insert two debugging sentences to send
number to UART. My send code is below,
 call HPLUART.put(0x06);
 call CC1100Control.send( (uint8_t *)cm, CONTROL_MSG_LENGTH+1);
 call HPLUART.put(0x07);
 I could receive 0x06 and 0x07 on my PC. But I am not sure the
CC1100Control.send is implemented correctly, because in my receive
section, I don't the debugging number I expected. My receive code is
below,
 event result_t CC1100Control.receive(uint8_t *t)
 {
   call HPLUART.put(0x02);
 }
 I don't get 0x02 on my PC. Is anything wrong ? Any advice is appreciated.

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

Reply via email to