From owner-freebsd-java@freebsd.org Tue Dec 20 22:28:28 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1E4CEC810F3 for ; Tue, 20 Dec 2016 22:28:28 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0AF5C1743 for ; Tue, 20 Dec 2016 22:28:28 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: by mailman.ysv.freebsd.org (Postfix) id 0781AC810F2; Tue, 20 Dec 2016 22:28:28 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 05731C810F1 for ; Tue, 20 Dec 2016 22:28:28 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 94B181742 for ; Tue, 20 Dec 2016 22:28:26 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 5D8E928412 for ; Tue, 20 Dec 2016 23:28:18 +0100 (CET) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 6774228429 for ; Tue, 20 Dec 2016 23:28:16 +0100 (CET) To: java@freebsd.org From: Miroslav Lachman <000.fbsd@quip.cz> Subject: can't connect GPSport 245 with BT747 Message-ID: <5859B07F.1020403@quip.cz> Date: Tue, 20 Dec 2016 23:28:15 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2016 22:28:28 -0000 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: at usbus1 kernel: uslcom0: 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