BT747 -- gnu.io.NoSuchPortException on archlinux 64bit

lmalossi's picture

Hi,

I'm getting gnu.io.NoSuchPortException exception when trying to connect IBlue 757 to my Linux box via usb port.

here is the bash -x output:

[luca@belgarath BT747_2.X]$ bash -x ./run_j2se.sh
++ dirname ./run_j2se.sh
+ ROOT_DIR=.
+ '[' -z . ']'
+ which java
+ JAVA=/home/luca/tools/jrmc-4.0.1-1.6.0/bin/java
+ which javaw
+ export CLASSPATH
+ CLASSPATH=./lib/jchart2d-3.1.0.jar:
+ CLASSPATH=./lib/jopt-simple-2.4.1.jar:./lib/jchart2d-3.1.0.jar:
+ CLASSPATH=./lib/jcalendar-1.3.2.jar:./lib/jopt-simple-2.4.1.jar:./lib/jchart2d-3.1.0.jar:
+ CLASSPATH=./lib/swing-layout-1.0.3.jar:./lib/jcalendar-1.3.2.jar:./lib/jopt-simple-2.4.1.jar:./lib/jchart2d-3.1.0.jar:
+ CLASSPATH=./lib/swingx.jar:./lib/swing-layout-1.0.3.jar:./lib/jcalendar-1.3.2.jar:./lib/jopt-simple-2.4.1.jar:./lib/jchart2d-3.1.0.jar:
+ CLASSPATH=./lib/swingx-ws.jar:./lib/swingx.jar:./lib/swing-layout-1.0.3.jar:./lib/jcalendar-1.3.2.jar:./lib/jopt-simple-2.4.1.jar:./lib/jchart2d-3.1.0.jar:
+ CLASSPATH=./dist/libBT747.jar:./lib/swingx-ws.jar:./lib/swingx.jar:./lib/swing-layout-1.0.3.jar:./lib/jcalendar-1.3.2.jar:./lib/jopt-simple-2.4.1.jar:./lib/jchart2d-3.1.0.jar:
+ CLASSPATH=./dist/BT747_j2se.jar:./dist/libBT747.jar:./lib/swingx-ws.jar:./lib/swingx.jar:./lib/swing-layout-1.0.3.jar:./lib/jcalendar-1.3.2.jar:./lib/jopt-simple-2.4.1.jar:./lib/jchart2d-3.1.0.jar:
+ RXTXPATH=./lib/rxtx-2.1-7-bins-r2
++ /home/luca/tools/jrmc-4.0.1-1.6.0/bin/java -jar ./dist/BT747_j2se.jar arch
+ ARCH=amd64
+ '[' amd64 = amd64 ']'
+ ARCH=x86_64
+ TSTRXTXPATH=./lib/rxtx-2.2pre2-bins
+ '[' -d ./lib/rxtx-2.2pre2-bins ']'
+ RXTXPATH=./lib/rxtx-2.2pre2-bins
+ RXTXLIBPATH=./lib/rxtx-2.2pre2-bins/Linux/i686-unknown-linux-gnu
+ TMPRXTXPATH=./lib/rxtx-2.2pre2-bins/Linux/x86_64-unknown-linux-gnu
+ RXTXJAR=./lib/rxtx-2.2pre2-bins/RXTXcomm.jar
+ '[' -r ./lib/rxtx-2.2pre2-bins/Linux/x86_64-unknown-linux-gnu ']'
+ RXTXLIBPATH=./lib/rxtx-2.2pre2-bins/Linux/x86_64-unknown-linux-gnu
+ CLASSPATH=./lib/rxtx-2.2pre2-bins/RXTXcomm.jar:./dist/BT747_j2se.jar:./dist/libBT747.jar:./lib/swingx-ws.jar:./lib/swingx.jar:./lib/swing-layout-1.0.3.jar:./lib/jcalendar-1.3.2.jar:./lib/jopt-simple-2.4.1.jar:./lib/jchart2d-3.1.0.jar:
+ MEM_HEAP_OPTION=-Xmx192m
[luca@belgarath BT747_2.X]$ + /home/luca/tools/jrmc-4.0.1-1.6.0/bin/java -Xmx192m -Dbt747_port=/dev/ttyUSB -Djava.library.path=./lib/rxtx-2.2pre2-bins/Linux/x86_64-unknown-linux-gnu bt747.j2se_view.BT747Main
./lib/rxtx-2.2pre2-bins/Linux/x86_64-unknown-linux-gnu
PATH = /bin:/usr/bin:/sbin:/usr/sbin:/opt/java/bin:/opt/java/jre/bin:/opt/kde/bin:/usr/lib/perl5/vendor_perl/bin:/usr/bin/perlbin/vendor:/usr/lib/perl5/core_perl/bin:/opt/qt/bin
5173 - BT747 2.X.1789 Build:BT747_mdeweerd.1789.20101018091455485
5177 - Initial: 1019x582  Screen: 2720x900 Final: 1019x582
5177 - Linux
5177 - amd64
5177 - 2.6.35-ARCH
5177 - 1.6.0_20
5177 - 64
5177 - Fail com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Fail com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel
Success com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel
javax.swing.plaf.metal.MetalLookAndFeel
com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel
com.sun.java.swing.plaf.motif.MotifLookAndFeel
com.sun.java.swing.plaf.gtk.GTKLookAndFeel

WARNING:  RXTX Version mismatch
        Jar version = RXTX-2.2pre1
        native lib Version = RXTX-2.2pre2

gnu.io.NoSuchPortException
        at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:269)
        at gps.connection.GPSRxTxPort.openPort(Unknown Source)
        at gps.connection.GPSrxtx.myOpenPort(Unknown Source)
        at gps.connection.GPSrxtx.setUSBAndOpen(Unknown Source)
        at bt747.model.Controller.setUsb(Unknown Source)
        at bt747.j2se_view.BT747Main.access$300(Unknown Source)
        at bt747.j2se_view.BT747Main$7.actionPerformed(Unknown Source)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2319)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
        at java.awt.Component.processMouseEvent(Component.java:6263)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3268)
        at java.awt.Component.processEvent(Component.java:6028)
        at java.awt.Container.processEvent(Container.java:2042)
        at java.awt.Component.dispatchEventImpl(Component.java:4630)
        at java.awt.Container.dispatchEventImpl(Container.java:2101)
        at java.awt.Component.dispatchEvent(Component.java:4461)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
        at java.awt.Container.dispatchEventImpl(Container.java:2085)
        at java.awt.Window.dispatchEventImpl(Window.java:2479)
        at java.awt.Component.dispatchEvent(Component.java:4461)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:175)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:162)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
26199 -
Listing known ports:
31344 - SER  :/dev/ttyUSB0

And this is dmesg output when I connect IBlue 747:

usb 7-1: new full speed USB device using uhci_hcd and address 5
cp210x 7-1:1.0: cp210x converter detected
usb 7-1: reset full speed USB device using uhci_hcd and address 5
usb 7-1: cp210x converter now attached to ttyUSB0

can you please help me?

thanks

Luca

mdeweerd's picture

Did you type  '/dev/ttyUSB0'

Did you type  '/dev/ttyUSB0' in the port combobox? (next to 'Connect').

The driver seems to work because it reports available ports.

lmalossi's picture

Now it works :) there was a

Now it works :) there was a problem of logger memory full too :)

 

thank you!!

I had the same

I had the same "gnu.io.NoSuchPortException" problem with openSuse, and struggled for a while...

A "ls -l /dev/tty*" showed my that /dev/ttcACM0 was in the group "dialout".

Adding my username to the group (editing /etc/group and adding my username at the end of the line), and log-out / log-in made it work !

Just in case it might be usefull for others...