This issue has been fixed in Boomerang but was never propagated to the
main TinyOS tree.  The underlying problem is that the TinyOS 1.x keeps
UART on all the time, and one of the UART pins is kept  high in the
default state.  When a node is disconnected from USB, that pin powers
the USB circuit, and, through a loop, provides a logical 1 on pin 1.2
In Boomerang I solved the problem by turning off the peripheral when
not in use, and setting the UART pins to low.

The behavior you observed will also cause much higher power
consumption when a node is disconnected from USB.  I would suggest
that you switch your development from tinyos 1.x to Boomerang.

Best regards,

Rob

Robert Szewczyk
Moteiv Corporation

On 5/24/07, Urs Hunkeler <[EMAIL PROTECTED]> wrote:
Hi,

I tried reading Port 1 Pin 2. It seems to work until the mote is
re-disconnected. Somehow after the mote has been connected and then
disconnected again, the pin always reads a logical one. Do I have to
reset the pin somehow?

Cheers,
Urs


Philip Levis schrieb:
> On Feb 28, 2007, at 2:32 AM, Avanti Chitnis wrote:
>
>> Hi,
>>
>> I am relatively new here.I am using TinyOS 1.1.15. I want an
>> application that does the following:a mote should be able to detect a
>> usb connection.When a mote is connected to a USB port, the Leds should
>> glow thereby indicating a connection .  Any ideas??
>>
>
> If it's a telos variant, then you can do so by examining Port 1 Pin 2.
> Joe Polastre wrote an email on the topic to this list on July 27, 2005,
> with a lot of details; take a look through the archives.
>
> Phil

_______________________________________________
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