[Tinyos-help] Problems with javacomm

Fabrizio Stefani fabrizio.stefani at arslogica.net
Fri Aug 4 01:06:57 PDT 2006


OK, I solved reinstalling java as explained in 
https://jdk-distros.dev.java.net/ubuntu-dev.html
and then repeating the steps "Compile Java Tools", "TOSCOmm" and "JNI" 
in http://www.chadmetcalf.com/tinyos-1x-on-ubuntu/

Now java programs work properly with a tmote attached to the 
/dev/ttysUSB0 virtual com port.

Fabrizio


Fabrizio Stefani 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?
> 
> 
> Thanks,
> Fabrizio
> _________________________________
> This email has been ClamScanned !
>          www.clamav.net
> _________________________________
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> _______________________________________________________________
> This email has been ClamScanned by ArsLogica antivirus server !
>          www.clamav.net
> _______________________________________________________________
> 

-- 

Fabrizio Stefani, Ph.D.
Researcher

ArsLogica S.r.l.
IT Laboratories

Business Innovation Centre
Unit 6 - 1st floor
BIC, Via Trento, 117
38017 Mezzolombardo
(TN), Italy

Email: fabrizio.stefani at arslogica.it
Skype: fabrizio.stefani
Phone: +39 0461 600253
Fax:   +39 0461 603250

Web Site: www.arslogica.it
_________________________________
This email has been ClamScanned !
          www.clamav.net
_________________________________


More information about the Tinyos-help mailing list