Date: Mon, 04 Sep 2017 10:49:53 -0600 From: Ian Lepore <ian@freebsd.org> To: Stefan Parvu <sparvu@kronometrix.org>, freebsd-arm@freebsd.org Subject: Re: Strato Server PI FreeBSD 11.1 Release serial port comunication Message-ID: <1504543793.41612.69.camel@freebsd.org> In-Reply-To: <6989FBCA-5866-4E71-814B-2D850A353824@kronometrix.org> References: <6989FBCA-5866-4E71-814B-2D850A353824@kronometrix.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1504543793.41612.69.camel>