Vlado,
Thanks for your reply, It does work now.
I also had trouble with decoding a sequence (missing random bytes) and it
was solved too.
Regards,
Ariel.
>
> On 9/25/07, Vlado Handziski <[EMAIL PROTECTED]> wrote:
> >
> > OK, I repeated the test while exciting the uart0 pins on the mote, and
> > it does lock-up. The problem is in your usage of "start-edge detection"
> > i.e. urxse : 1 in the config struct. In this case, the MCU generates a
> > single RX interrupt that has to be handled manually, before one can start
> > with normal byte receive. The current code in the stack relies on the
> > automatic clearing of the RX flag, thus the lock-up that you see.
> >
> > Vlado
> >
> > On 9/25/07, Vlado Handziski < [EMAIL PROTECTED]> wrote:
> > >
> > > Hi Ariel,
> > >
> > > unfortunately I can not reproduce the bug that you are seeing on my
> > > testing tmote sky node.The red led is blinking both with and without
> > > that line. Can you send me a binary image of the application to rule out
> > > different source trees.
> > >
> > > Vlado
> > >
> > > On 9/25/07, Vlado Handziski < [EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi Ariel,
> > > >
> > > > I'll take a look at the issue later today and get back to you.
> > > >
> > > > Vlado
> > > >
> > > > On 9/25/07, Ariel Mauricio Nunez Gomez < [EMAIL PROTECTED]> wrote:
> > > >
> > > > > Hello everyone,
> > > > >
> > > > > I am trying to use Timer0 and Uart0 (Tinyos 2.0.2 (cvs updated 4
> > > > > days ago), Tmote Sky, Ubuntu Feisty).
> > > > > As you can see, led0 blinks if timer is fired, and led1 blinks
> > > > > when a byte is received over the serial port.
> > > > >
> > > > > Problem: When I request the serial port, led0 stops blinking.
> > > > >
> > > > > Note: The serial port can be disconnected and it will show the
> > > > > same behavior.
> > > > >
> > > > > Thanks in advance,
> > > > > Ariel
> > > > >
> > > > > code snippet
> > > > >
> > > > >
> > > > > event void Boot.booted()
> > > > > {
> > > > > call Timer0.startPeriodic( 1000 );
> > > > > // call SerialResource.request(); //Uncomment this line to
> > > > > disable Timer0
> > > > > }
> > > > >
> > > > > event void Timer0.fired()
> > > > > {
> > > > > call Leds.led0Toggle();
> > > > > }
> > > > >
> > > > > event void SerialResource.granted(){
> > > > > call UartStream.enableReceiveInterrupt ();
> > > > > }
> > > > > async event void UartStream.receivedByte(uint8_t byte){
> > > > > call UartStream.disableReceiveInterrupt();
> > > > > call Leds.led1Toggle();
> > > > > call UartStream.enableReceiveInterrupt();
> > > > > }
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > Tinyos-help mailing list
> > > > > [email protected]
> > > > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
>
--
Ariel Núñez
Project Manager
Keydome
[EMAIL PROTECTED]
+57(300)8438443
+57(317)3205876
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help