Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Dec 2016 23:28:15 +0100
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        java@freebsd.org
Subject:   can't connect GPSport 245 with BT747
Message-ID:  <5859B07F.1020403@quip.cz>

next in thread | raw e-mail | index | archive | help
I have Holux GPSport 245 (gps tracker). It uses USB connection with 
serial (COM) emulation. It worked on Windows with Java based application 
BT747 http://www.bt747.org/webinstall
But I can't use it on my FreeBSD 10.3 based desktop PC (PC-BSD)
I installed package comms/rxtx.

Device is identified as

kernel: ugen1.4: <Silicon Labs> at usbus1
kernel: uslcom0: <CP2102 USB to UART Bridge Controller> on usbus1

These devices are created under /dev/

  ugen1.4

  ttyU0.lock
  ttyU0.init
  ttyU0

  cuaU0.lock
  cuaU0.init
  cuaU0

BT747 cannot connect with this device. If I enabled "GPS connection 
debug" in settings I see this trace:

493029 - isValidPort('/dev/cu.serial-0001')?: false -1
493029 - isValidPort('/dev/cu.SLAB_USBtoUART')?: false -1
493030 - isValidPort('/dev/cu.iBTAGPS-SPPslave')?: false -1
493030 - isValidPort('/dev/cu.usbmodem1b10')?: false -1
493030 - isValidPort('/dev/cu.usbmodem1d10')?: false -1
493030 - isValidPort('/dev/cu.usbmodem3d10')?: false -1
493030 - isValidPort('/dev/cu.usbmodem3a20')?: false -1
493031 - isValidPort('/dev/cu.usbmodem620')?: false -1
493031 - isValidPort('/dev/cu.usbmodemfd110')?: false -1
493031 - isValidPort('/dev/tty.usbmodemfd110')?: false -1
493031 - isValidPort('/dev/tty.usbmodemfd510')?: false -1
493033 - isValidPort('/dev/tty.usbserial')?: false -1
Info: trying to open 'null'

gnu.io.NoSuchPortException
	at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:320)
	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$6e36da35(Unknown Source)
	at bt747.j2se_view.BT747Main$7.actionPerformed(Unknown Source)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
	at 
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
	at 
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at 
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
	at java.awt.Component.processMouseEvent(Component.java:6533)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
	at java.awt.Component.processEvent(Component.java:6298)
	at java.awt.Container.processEvent(Container.java:2236)
	at java.awt.Component.dispatchEventImpl(Component.java:4889)
	at java.awt.Container.dispatchEventImpl(Container.java:2294)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
	at java.awt.Container.dispatchEventImpl(Container.java:2280)
	at java.awt.Window.dispatchEventImpl(Window.java:2746)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
	at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.awt.EventQueue$4.run(EventQueue.java:731)
	at java.awt.EventQueue$4.run(EventQueue.java:729)
	at java.security.AccessController.doPrivileged(Native Method)
	at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
493035 -
Listing known ports:


I don't know where ports should be configured for Java based applications.

I tired to create symlinks like tty.usbserial@ -> cuaU0
or ttyUSB0@ -> cuaU0 but BT747 still doesn't see any GPS device / port.

Can somebody help me with this problem?

Miroslav Lachman




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5859B07F.1020403>