From owner-freebsd-arm@freebsd.org Mon Sep 4 16:49:57 2017 Return-Path: Delivered-To: freebsd-arm@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 214F2E11448 for ; Mon, 4 Sep 2017 16:49:57 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery6.ore.mailhop.org (pmta2.delivery6.ore.mailhop.org [54.200.129.228]) (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 054E97DFDF for ; Mon, 4 Sep 2017 16:49:56 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 02f4f5bb-9191-11e7-b49e-71a67e0dab63 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound2.ore.mailhop.org (Halon) with ESMTPSA id 02f4f5bb-9191-11e7-b49e-71a67e0dab63; Mon, 04 Sep 2017 16:49:26 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v84Gnr79007920; Mon, 4 Sep 2017 10:49:54 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1504543793.41612.69.camel@freebsd.org> Subject: Re: Strato Server PI FreeBSD 11.1 Release serial port comunication From: Ian Lepore To: Stefan Parvu , freebsd-arm@freebsd.org Date: Mon, 04 Sep 2017 10:49:53 -0600 In-Reply-To: <6989FBCA-5866-4E71-814B-2D850A353824@kronometrix.org> References: <6989FBCA-5866-4E71-814B-2D850A353824@kronometrix.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Sep 2017 16:49:57 -0000 On Mon, 2017-09-04 at 16:50 +0300, Stefan Parvu wrote: > Hi guys, > > I have installed FreeBSD 11.1 [1] under Strato Server PI [2], a > Raspberry PI2 board plus > goodies. FreeBSD 11.1 STABLE is booting fine. Now my problem is to > connect to an > indoor air quality sensor, plugged in to a RS485 connector and Im > stuck in discovering whats  > the correct serial port for that. I have tried /dev/cuau0 but with no > success.  > > root@k50dev:~ # ls -lrt /dev/cuau0* > crw-rw----  1 uucp  dialer  0x2d Sep  4 12:22 /dev/cuau0.lock > crw-rw----  1 uucp  dialer  0x2c Sep  4 12:22 /dev/cuau0.init > crw-rw----  1 uucp  dialer  0x2b Sep  4 12:22 /dev/cuau0 > > I know all parameters set on the device level, baudrate, stopbits, > parity since I have tried it under > Raspbian and it is working fine there. Im basically using Kronometrix > data recording rs485rec [3] > fo that. > > Any ideas how can I discover the port, and debug it somehow ? > > thanks, > Stefan > > [1] http://ftp.freebsd.org/pub/FreeBSD/snapshots/ISO-IMAGES/11.1/Free > BSD-11.1-STABLE-arm-armv6-RPI2-20170822-r322788.img.xz > [2] https://www.sferalabs.cc/strato-pi/  > [3] https://github.com/kronometrix/recording/blob/master/bin/rs485rec >   I think /dev/cuau0 is the right device, but maybe the system is using it as a console and has a getty active on the port.  Try editing /etc/ttys and in this line: ttyu0   "/usr/libexec/getty 3wire"      vt100   onifconsole  secure Change "onifconsole" to "off".  That should leave the device free for other software to access. -- Ian