From owner-freebsd-java@freebsd.org Wed Dec 21 07:48:43 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 E17B1C8925B for ; Wed, 21 Dec 2016 07:48:43 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smadev.internal.net", Issuer "smadev.internal.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5ACAA1DE9 for ; Wed, 21 Dec 2016 07:48:42 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id uBL7bidL021041 for ; Wed, 21 Dec 2016 09:37:46 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: can't connect GPSport 245 with BT747 To: freebsd-java@freebsd.org References: <5859B07F.1020403@quip.cz> From: Achilleas Mantzios Message-ID: <585A3148.7000507@matrix.gatewaynet.com> Date: Wed, 21 Dec 2016 09:37:44 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <5859B07F.1020403@quip.cz> 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: Wed, 21 Dec 2016 07:48:44 -0000 On 21/12/2016 00:28, Miroslav Lachman wrote: > 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? > Try to get pure serial output from the port before anything else. Unless you are able to identify your port and do : # cat /dev/ttyXYZ and see NMEA stream, then you won't succeed with any java (or other) app. > Miroslav Lachman > > _______________________________________________ > freebsd-java@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt