Hi Urs,

the official baud rate is 57600 but the AVR ATMega1281 on my platform 
(Meshbean) should use double rate for the UART but the controller does not use 
double rate even though the flag is set (should be set??). I think the accuracy 
at 57600 is not high enough. Using the baud rate 38400 the error (jitter) is 
less and it works. The modules uses a RC oscillator instead of a crystal this 
circumstances affects less clock accuracy.

Now the received data and the signaled event ends in the
default event message_t *Receive.received[uart_id_t idxxx](message_t *msg, void 
*payload, unit8_t len)
in the file: SerialDispacherP.nc

I expected an signaled event in my testSerialC.nc at the line:
event message_t *Receive.receive(message_t * bufPtr, void * payload, uint8_t 
len)

How can I signal my Receive.receive event? Or should I use an other received 
event?
Is it a wiring problem?

Cheers, 
Mario

-----Ursprüngliche Nachricht-----
Von: Urs Hunkeler [mailto:[email protected]] 
Gesendet: Donnerstag, 21. Oktober 2010 20:13
An: Mario Riesner
Cc: [email protected]
Betreff: Re: AW: AW: AW: [Tinyos-help] unable to receive UART frame

Hi Mario,

Glad it works now. What's the official platform baudrate (normaly in 
$TOSROOT/tos/platform/<yourplatform>/hardware.h defined as 
PLATFORM_BAUDRATE)?

Cheers,
Urs


On 10/21/2010 04:14 PM, Mario Riesner wrote:
> Hi Urs,
>
> again, I reduced the baud rate to 38400 now it works. The module
> receives a whole frame and sends an ACK frame. Now I have to find out
> why the highest event in my test code is not called. For now thank
> you for your help.
>
> Cheers, Mario



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

Reply via email to