From owner-freebsd-hackers Sun Aug 12 9:16:23 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from jxmls04.se.mediaone.net (jxmls04.se.mediaone.net [24.129.0.51]) by hub.freebsd.org (Postfix) with ESMTP id 6C86D37B405 for ; Sun, 12 Aug 2001 09:16:16 -0700 (PDT) (envelope-from ruff@jxmls04.se.mediaone.net) Received: from surge (mail@planw-65-33-233-143.pompano.net [65.33.233.143]) by jxmls04.se.mediaone.net (8.11.1/8.11.1) with ESMTP id f7CGEf907556 for ; Sun, 12 Aug 2001 12:14:41 -0400 (EDT) Received: from ruff by surge with local (Exim 3.22 #1 (Debian)) id 15VxuF-0001Xu-00 for ; Sun, 12 Aug 2001 12:16:03 -0400 Date: Sun, 12 Aug 2001 12:16:03 -0400 From: Chris Ruffin To: freebsd-hackers@freebsd.org Subject: serial port programming problems Message-ID: <20010812121603.D838@surge> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UoPmpPX/dBe4BELn" Content-Disposition: inline User-Agent: Mutt/1.3.18i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --UoPmpPX/dBe4BELn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I'm having serious frustrating problems when programming the serial ports under FreeBSD. Here's what I do: - open the port - stty -f /dev/cuaa2 -echo -echoe raw - write "ATZ" - wait - read This gives me back "ATZ\r\nOK\r\n", which is completely counter-intuitive to me. I have downloaded other code and tested them with the same results, where it is clear in the code that the port is not expecting to see the data that we wrote to it, only the response. This code, however, did not mention being tested under FreeBSD. Any ideas on what could be happening here? Is this the way it is supposed to work?!? -- Chris Ruffin --UoPmpPX/dBe4BELn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7dqvDmvFPwtjbK5sRAntQAJ0awvhtjMr6S8EIfEJl6+pRobxl4gCgiE0+ pfbTUzMAax8w3Bci15dwOzU= =C6SQ -----END PGP SIGNATURE----- --UoPmpPX/dBe4BELn-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message