[Tinyos-help] Tmote USB connection interface problem

Miguel Ángel «MrNet» mrnet at ono.com
Fri Nov 16 06:31:58 PST 2007


Hi again.

I've removed the "brltty" package and the USB attaching has been done correctly. :-D
Thanks to Greg Hackmann and Michiel Konstapel (again) for their help. :-)

After that, I've got communication with the mote, but I was suffering communication error continously.
I remembered that in the TinyOS source code (class "SerialByteSource") it was mentioned that the
port must be in cooked mode, so it was necessary to setup the /dev/ttyUSB0 port to RAW mode with:
stty -F /dev/ttyUSB0 raw

One commentary that I would like to do is that I had to connect to the USB device (/dev/ttyUSB0) and not to the
serial port like I thought at the beggining... So the connect string was: serial@/dev/ttyUSB0:57600. When I tryed
to connect via the serial port with serial@/dev/ttyS0 I was getting no response... Weird...

Finally, after a bunch of problems, I've got the network communication working properly.

Thank you very much for all.

Best regards,
Miguel Ángel «MrNet».



Michiel Konstapel wrote:

Glad to hear that! And I think I can help you with the problem below as well, I’ve had the same issue. Ubuntu by default comes with a Braille terminal device driver, brltty, which claims the USB port:

[ 8098.813672] usb 1-2: usbfs: interface 0 claimed by ftdi_sio while 'brltty' sets config #1

Assuming you’re not using a Braille terminal, you can just remove it:

# sudo apt-get remove brltty

should do the trick.

HTH,
Michiel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20071116/82ef9511/attachment.html


More information about the Tinyos-help mailing list