From owner-freebsd-arm@freebsd.org Mon Sep 4 16:50:17 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 EFA1DE11483 for ; Mon, 4 Sep 2017 16:50:17 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [IPv6:2a02:21e0:16e0:fe::101:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "raven.bwct.de", Issuer "raven.bwct.de" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 89DEC7E03D for ; Mon, 4 Sep 2017 16:50:17 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.15.2/8.15.2) with ESMTPS id v84Go9BM034315 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 4 Sep 2017 18:50:10 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id v84Go7eh036242 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 4 Sep 2017 18:50:07 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.15.2/8.15.2) with ESMTPS id v84Go7ZM078726 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 4 Sep 2017 18:50:07 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.15.2/8.15.2/Submit) id v84Go6HW078725; Mon, 4 Sep 2017 18:50:06 +0200 (CEST) (envelope-from ticso) Date: Mon, 4 Sep 2017 18:50:06 +0200 From: Bernd Walter To: Stefan Parvu Cc: "Jukka A. Ukkonen" , freebsd-arm@freebsd.org Subject: Re: Strato Server PI FreeBSD 11.1 Release serial port comunication Message-ID: <20170904165005.GB18101@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <6989FBCA-5866-4E71-814B-2D850A353824@kronometrix.org> <9bf992d9-9a22-c7a0-5a78-54c779880a6d@gmail.com> <1AD403B4-F974-4734-BE0A-40717FA34E9E@kronometrix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1AD403B4-F974-4734-BE0A-40717FA34E9E@kronometrix.org> X-Operating-System: FreeBSD cicely7.cicely.de 11.0-STABLE amd64 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED=-1, RP_MATCHES_RCVD=-0.001 autolearn=unavailable version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de 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:50:18 -0000 On Mon, Sep 04, 2017 at 05:41:46PM +0300, Stefan Parvu wrote: > > > > What are the other /dev/cua* devices on your system? > > Quite often various USB connected gizmos I have tried > > end up under names like /dev/cuaU0 or /dev/cuaU1 etc. > > Nothing else. I do have just that. > > I have tried as well to play with a FTDI USB connector (plugs in to the USB port) > and that works fine. So basically I can connect my IAQ sensor on such USB to > Serial RS485 connector and yes, I do get some: /dev/cuaU0 device easily that case. > > But my problem is if I want to directly plug the IAQ sensor to the RS485 board > provided by SferaLabs without using such FTDI USB connector. The SferaLabs is basically > another board which connects to the GPIO ports of the RBPI2. > > I cant make it run nor detect anything. Wonder if there is something else on the kernel > to make it happen The schematic (looked at the BASE/UPS) is quite clear. It uses the one and only onboard UART, so cuau0 is correct, but under FreeBSD that uart is already in use as the console. You can use conscontrol to temporarily relocate the console, which should allow you to use the uart. The TXenable line seems to be autogenerated by the PIC microcontroller, so I assume you don't need to care about it. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.