I'm using TinyOS 2.1 (from a recent CVS checkout) with a tmote sky.  I have
a component which hooks into the MSP430 Port1 Pin 2 to monitor the USB
connection and indicate whether it's connected by lighting LED1.  This
works fine.

Now, I want to hook it into a program like TestSerial which transmits
information over the serial line, so that LED1 goes out when the USB
connection goes down.  This does not work.  The serial communications works
fine, but when I pull the mote out of the USB port, LED1 never turns off.
Because LED0 stops flickering, though, I believe the serial port stops
transmitting.

If I run the same program but with the call to TestSerialC.Control.start()
commented out, the USB LED code works fine, but (of course) no serial
communications occurs.

I'm guessing that somewhere down in the guts of TinyOS, the serial stack is
detecting that the mote has been disconnected from the PC and is shutting
itself off.  As a side effect, it seems to be disabling my USB monitor.

Is this diagnosis correct?  If so, what code is causing this to happen, 'cuz
I can't find it?  Beyond that, is there any other information I need in
order to get a USB-disconnected event in an application that uses serial
communications?

Thanks.

Peter

-- 
Peter A. Bigot                    Rincon Research Corporation
Eng. Spec.                        101 N. Wilmot, Ste 101
[email protected]                    Tucson AZ  85711
Voice: 520-519-4726               Fax: 520-519-4747
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to