hi
i use opensuse 11.2 64 bits
java -version return
java version "1.6.0_17"
OpenJDK Runtime Environment (IcedTea6 1.7.3) (suse-2.1.1-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
Qstarz BT-Q1000X gps is located at: /dev/ttyACM0
bt747 software is located at: /home/mc/download/bt747
i run this file to start BT747: run_j2se.sh
content of this file is:
#!/bin/sh
# You may need to change the next line to an absolute path.
ROOT_DIR=`dirname "$0"`
if [ -z "$ROOT_DIR" ] ; then ROOT_DIR="." ; fi
# Select the most appropriate Java
which java >/dev/null 2>&1 && JAVA=java
which javaw >/dev/null 2>&1 && JAVA=javaw
# Start setting the class path.
export CLASSPATH
CLASSPATH="${ROOT_DIR}/lib/jchart2d-3.1.0.jar:$CLASSPATH"
CLASSPATH="${ROOT_DIR}/lib/jopt-simple-2.4.1.jar:$CLASSPATH"
CLASSPATH="${ROOT_DIR}/lib/jcalendar-1.3.2.jar:$CLASSPATH"
CLASSPATH="${ROOT_DIR}/lib/swing-layout-1.0.3.jar:$CLASSPATH"
CLASSPATH="${ROOT_DIR}/lib/swingx.jar:$CLASSPATH"
CLASSPATH="${ROOT_DIR}/lib/swingx-ws.jar:$CLASSPATH"
CLASSPATH="${ROOT_DIR}/dist/libBT747.jar:$CLASSPATH"
CLASSPATH="${ROOT_DIR}/dist/BT747_j2se.jar:$CLASSPATH"
########################
# Finding RXTX library
RXTXPATH="${ROOT_DIR}/lib/rxtx-2.1-7-bins-r2"
# ARCH=`arch` # The old way
ARCH=`"$JAVA" -jar "${ROOT_DIR}/dist/BT747_j2se.jar" arch`
if [ $ARCH = 'amd64' ] ; then
# Substitute for equivalent architecture.
ARCH=x86_64
# Use new library if available.
TSTRXTXPATH="${ROOT_DIR}/lib/rxtx-2.2pre2-bins"
if [ -d "${TSTRXTXPATH}" ] ; then
RXTXPATH="${TSTRXTXPATH}"
fi
fi
#RXTXLIBPATH="${RXTXPATH}/Linux/i686-unknown-linux-gnu"
RXTXLIBPATH=${RXTXPATH}/Linux/x86_64-unknown-linux-gnu
TMPRXTXPATH="${RXTXPATH}/Linux/${ARCH}-unknown-linux-gnu"
RXTXJAR="${RXTXPATH}/RXTXcomm.jar"
if [ -r "${TMPRXTXPATH}" ] ; then
RXTXLIBPATH="${TMPRXTXPATH}"
else
# Did not find binary - look on system.
if [ -e /usr/share/java/RXTXcomm.jar ] ; then
# if librxtx-java seems to be installed locally (e.g., on Ubuntu)
RXTXPATH=/usr/lib
RXTXLIBPATH=/usr/lib
RXTXJAR=/usr/share/java/RXTXcomm.jar
fi
fi
# Ended determining RXTX library
################################
CLASSPATH="${RXTXJAR}:$CLASSPATH"
MEM_HEAP_OPTION=-Xmx192m
"$JAVA" $MEM_HEAP_OPTION $DEBUG_OPTION -Dbt747_prefix="/dev/ttyACM0" -Djava.library.path="${RXTXLIBPATH}" bt747.j2se_view.BT747Main $* &
log of application when i start it and try to connect to the gps is included with this thread...
test@linux-psmz:~/download/bt747> ./run_j2se.sh
test@linux-psmz:~/download/bt747> ./lib/rxtx-2.2pre2-bins/Linux/x86_64-unknown-linux-gnu
PATH = /home/mc/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
test@linux-psmz:~/download/bt747> 6024 - BT747 2.X.1728 Build:BT747_mdeweerd.1728.20100512151616223
6024 - Initial: 1058x519 Screen: 1280x800 Final: 1058x519
6025 - Linux
6025 - amd64
6025 - 2.6.31.12-0.2-desktop
6026 - 1.6.0_17
6026 - 64
6026 - Planté com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Planté com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel
Planté com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel
Succès com.sun.java.swing.plaf.gtk.GTKLookAndFeel
javax.swing.plaf.metal.MetalLookAndFeel
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:2012)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:253)
at java.awt.Component.processMouseEvent(Component.java:6108)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:5873)
at java.awt.Container.processEvent(Container.java:2105)
at java.awt.Component.dispatchEventImpl(Component.java:4469)
at java.awt.Container.dispatchEventImpl(Container.java:2163)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
at java.awt.Container.dispatchEventImpl(Container.java:2149)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
22888 -
Listing known ports:
the application run but in the setting panel nothing is selected...
any idea?
Hi If you type '/dev/ttyACM0'
Hi
If you type '/dev/ttyACM0' on the left of the 'Connect to' ("Connecter") button, what do you get then?
In principle, when you select "USB", the /dev/ttyACM0 port would be selected if no other potentially valid ports are found.
Also, when you activate 'GPS debug' in the 'Settings menu' (='Paramètres' in French), the port that BT747 tries to open will be shown in the 'Info' panel:
Example on windows:
So please try that (typing the port path directly, activating debug) and we can continue from there.
ok that seem a right
ok that seem a right problem...with root i have no problem...
so need to adjust the right on the port
Hi I had a look on the web on
Hi
I had a look on the web on how to change the access rights on a port like /dev/acm0 and here is a page that seems like a pretty good guide to do it:
http://code.google.com/p/micropendous/wiki/SerialPortUsageLinux