From nobody Sun Oct 27 19:21:47 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Xc5xJ3w79z5bLSc for ; Sun, 27 Oct 2024 19:21:56 +0000 (UTC) (envelope-from hohe72@posteo.de) Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xc5xH4Wddz4jMD for ; Sun, 27 Oct 2024 19:21:55 +0000 (UTC) (envelope-from hohe72@posteo.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=posteo.de header.s=2017 header.b=KY4GNKDm; spf=pass (mx1.freebsd.org: domain of hohe72@posteo.de designates 185.67.36.65 as permitted sender) smtp.mailfrom=hohe72@posteo.de; dmarc=pass (policy=none) header.from=posteo.de Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 3FADF240028 for ; Sun, 27 Oct 2024 20:21:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1730056913; bh=Wagicf6HiiztU5z5+ZxfIsJk0/VS9iZQoXPiD9KBLfc=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type:From; b=KY4GNKDmPkpRAVI0oZzz2IZnny3e/kW2RayLOWe7q7lfaNJfREd+GxpJlOu6BEPfu 6T7kCjISqhRR/ta76ctQWib3B28wh4+henT3Pb2u1svKPRB4qfUFQeaZIqjJrBnG90 vTBVLWLIYj69Jue13jgNbBa8oRJgUvxrFJgkpvYrTij6bOAjbOcUOc1Qg4iSX+Wske BeS5803pIrqRLpQlI7/OnhnhtVzEN/y57htxcZRAQQVz6Ao4jWQOoUij2eG+zAl1Jh obb8RcNRaJNIBBJeVxlZeeID7Tl83KcH4RhUL/aqakKJq+98zoEzLTgzo7UABYL+f1 tlSwKkO+JIkmA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Xc5xD3tlvz6tm8 for ; Sun, 27 Oct 2024 20:21:52 +0100 (CET) Date: Sun, 27 Oct 2024 19:21:47 +0000 From: To: FreeBSD-Questions Subject: serial (PL011) config on RaspberryPi Message-ID: <20241027202147.127171fd@tpt14> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/zSJt7opnb=wvz32wZPusAEa"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Spamd-Result: default: False [-7.40 / 15.00]; SIGNED_PGP(-2.00)[]; DWL_DNSWL_LOW(-1.00)[posteo.de:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DMARC_POLICY_ALLOW(-0.50)[posteo.de,none]; R_SPF_ALLOW(-0.20)[+ip4:185.67.36.0/23]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_DKIM_ALLOW(-0.20)[posteo.de:s=2017]; RCVD_IN_DNSWL_MED(-0.20)[185.67.36.65:from]; RWL_MAILSPIKE_GOOD(-0.10)[185.67.36.65:from]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MISSING_XM_UA(0.00)[]; DKIM_TRACE(0.00)[posteo.de:+]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_NO_DN(0.00)[]; ASN(0.00)[asn:8495, ipnet:185.67.36.0/23, country:DE]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4Xc5xH4Wddz4jMD X-Spamd-Bar: ------- --Sig_/zSJt7opnb=wvz32wZPusAEa Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I have a problem setting the speed of the physical UART on a Raspberry Pi 3B+. I want to connect a HP48 pocket calculator an Raspi serially via RS232. Raspi's running FreeBSD 14.1-RELEASE. Serial lines: RX,TX,Shield,GND (no CTS nor RTS) Finally I'll use Kermit but while here are issues, I first aim for serial running. That is: echo -n "S" > /dev/cuau0 # sending and: cat /dev/cuau0 # receiving ("S" =3D #53h =3D #01010011b) Watching on oscilloscope: Send signals can be observed from Raspi and Hp48. Config: edit: /etc/ttys Commented out all 'ttyuN' lines (0-3) cause that gave me access to 'cuau0' and disposed console butting in. Well: stty -a -f /dev/cuau0 speed 115200 baud; 0 rows; 0 columns; stty -f /dev/cuau0 speed 9600 115200 stty -a -f /dev/cuau0 speed 9600 baud; 0 rows; 0 columns; seems to work, however: echo -n "S" > /dev/cuau0 # sending from Raspi sends 8.62_=C2=B5s a bit. That is 115200_baud. sending from HP48: sends 104.80_=C2=B5s a bit. That's 9600_baud. cat /dev/cuau0 # doesn't receive anything, ofcause So: How to set the serial line's speed. (manually, after boot) Thanks in advance, Holger --Sig_/zSJt7opnb=wvz32wZPusAEa Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEVepK+aSRI0hJ0Y9qfWl2gZrbC3gFAmceks0ACgkQfWl2gZrb C3h/qAf/Vjh2EOZza6kSHKSpjNYZF6TwmbDVpyxduel14KTPhqHKU9Lp3WExNbFA v6E9gEOeJnnpUXguPH7Xl1p5pXGBnGL0q8DTNX7rozOmZ81oC2nfmm8Bag36sMk5 FA7v81qr01NIE9oLaVMfh/65cR7bDQYEGBAcIVdbqj1iDytDz0sfO7OA/tkhjQDJ KOA6eNGsIvgWxYD8wRLZKyGazCPWKKyE2EH86429np+bxIaT0eLFWGOn9k6pxegJ ntUQAnHEHYRH/hYtA+1XdXPXYpsobpjIPN3OrN1QplIUdGx0yTlbqNx15wYTa4PA dMqGwIv1Hs27Prz75MQXXwcasjceGQ== =a4Z/ -----END PGP SIGNATURE----- --Sig_/zSJt7opnb=wvz32wZPusAEa--