[Tinyos-help] Problems with javacomm

Claro Noda claro.noda at gmail.com
Wed Aug 2 10:40:38 PDT 2006


Frabrizio:

did you sorted out the FTDI drivers correctly?
remember there is a serial<->USB interface on the Tmote.
the drivers are probably part of the kernel and the motelist output make me
guess you did.

but, besides, the javacomm, in linux uses the RXTX. You might be willing to
check:
http://wass.homelinux.net/howtos/Comm_How-To.shtml

I'm not sure if this applies to the Tmote, though.
There is no reference to it in:
http://www.moteiv.com/community/Tmote_Linux_install
Maybe somebody else in the list can advise.

we are entertaining the idea of moving to ubuntu, so i might keep an eye on
this thread :)

Claro.


On 02/08/06, Fabrizio Stefani <fabrizio.stefani at arslogica.net> wrote:
>
> Hi all,
>    I'm using Ubuntu 6.06, TinyOS 1.1, Java 1.5.0_06, JavaComm 3.0, GCC
> 4.0.3, Tmote tools 2.0.2.
>
> To install all I followed this guides:
>   http://www.chadmetcalf.com/tinyos-1x-on-ubuntu/
>   http://www.moteiv.com/community/Tmote_Linux_install
>
> I can program the tmotes, but I'm having some problems with the javacomm
> because trying to test the Oscilloscope application the program gives me
> an error and stops.
>
> $ motelist
> Reference  Device           Description
> ---------- ---------------- ---------------------------------------
> M4A9N70Z   /dev/ttyUSB0     Moteiv tmote sky
>
> $ export MOTECOM=serial@/dev/ttyUSB0:tmote
>
> $ java net.tinyos.tools.Listen
> Error on serial@/dev/ttyUSB0:57600: java.io.IOException: Couldn't
> configure /dev/ttyUSB0
>
> If I try to use some other java applications for testing the serial
> port, such as BlackBox, it seems to work.
>
> $ export CLASSPATH BlackBox.jar:$CLASSPATH
> $ java BlackBox -p /dev/ttyUSB0
> Opening port /dev/ttyUSB0
> /dev/ttyUSB0: PORT_OWNED [by this application]
>
> and the GUI opens giving me informations on that port.
>
> So what's happening with the serial connection with the tmote?
> Can you help me?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060802/64d2668c/attachment.html


More information about the Tinyos-help mailing list