From owner-freebsd-java@freebsd.org Wed Dec 21 13:13:14 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 0C07AC8A153 for ; Wed, 21 Dec 2016 13:13:14 +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 C096818C2 for ; Wed, 21 Dec 2016 13:13:13 +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 B86E02846F; Wed, 21 Dec 2016 14:13:09 +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 E69D028412; Wed, 21 Dec 2016 14:13:08 +0100 (CET) Subject: Re: can't connect GPSport 245 with BT747 [solved] To: Achilleas Mantzios , freebsd-java@freebsd.org References: <5859B07F.1020403@quip.cz> <585A3148.7000507@matrix.gatewaynet.com> <585A6CB5.8010608@quip.cz> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <585A7FE4.3000708@quip.cz> Date: Wed, 21 Dec 2016 14:13:08 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: <585A6CB5.8010608@quip.cz> Content-Type: text/plain; charset=ISO-8859-1; 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 13:13:14 -0000 Miroslav Lachman wrote on 2016/12/21 12:51: > Achilleas Mantzios wrote on 2016/12/21 08:37: >> On 21/12/2016 00:28, Miroslav Lachman wrote: > I noticed that ttyU0 and cuaU0 are not accessible by my user so I > changed permissions to 0666 but BT747 still don't see them: > > 24340 - isValidPort('/dev/cu.serial-0001')?: false -1 > 24341 - isValidPort('/dev/cu.SLAB_USBtoUART')?: false -1 > 24341 - isValidPort('/dev/cu.iBTAGPS-SPPslave')?: false -1 > 24341 - isValidPort('/dev/cu.usbmodem1b10')?: false -1 > 24341 - isValidPort('/dev/cu.usbmodem1d10')?: false -1 > 24341 - isValidPort('/dev/cu.usbmodem3d10')?: false -1 > 24342 - isValidPort('/dev/cu.usbmodem3a20')?: false -1 > 24342 - isValidPort('/dev/cu.usbmodem620')?: false -1 > 24342 - isValidPort('/dev/cu.usbmodemfd110')?: false -1 > 24342 - isValidPort('/dev/tty.usbmodemfd110')?: false -1 > 24342 - isValidPort('/dev/tty.usbmodemfd510')?: false -1 > 24344 - isValidPort('/dev/tty.usbserial')?: false -1 > Info: trying to open 'null' > > I don't know where these strange device names come from. If they are > from rxtx package or BT747 itself and I don't know where to change them > to /dev/cuaU0 or /dev/ttyU0 I found the main problem - file permissions. Everything would be easier if the app says "permission denied" instead of "no valid port". Making /dev/cuaU0 or /dev/ttyU0 writable is not enough. The problem is in lock directory: > ls -ld /var/spool/lock/ drwxrwxr-x 2 uucp dialer 3 Dec 21 13:48 /var/spool/lock/ Must be writable by user running BT747 Even if I am in group "dialer" I cannot connect to cuaU or ttyU. I must made them writable by everyone. I will try to find this last problem later. Thank you for your time! Miroslav Lachman