From mboxrd@z Thu Jan 1 00:00:00 1970 From: presotto@plan9.bell-labs.com To: 9fans@cse.psu.edu Subject: Re: [9fans] serial port programming MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-wypcqsmgbtbcdkugyznvgmgjal" Message-Id: <20010215212500.E6329199D5@mail.cse.psu.edu> Date: Thu, 15 Feb 2001 16:24:57 -0500 Topicbox-Message-UUID: 6668df02-eac9-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-wypcqsmgbtbcdkugyznvgmgjal Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Short answer: cat /dev/eia0 Longer answer: look at /sys/src/cmd/ip/ppp/ppp.c:2437-2451 --upas-wypcqsmgbtbcdkugyznvgmgjal Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Thu Feb 15 12:20:30 EST 2001 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Thu Feb 15 12:20:28 EST 2001 Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.16.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 5134E199FB; Thu, 15 Feb 2001 12:20:11 -0500 (EST) Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id E41C0199D7 for <9fans@cse.psu.edu>; Thu, 15 Feb 2001 12:19:01 -0500 (EST) Received: from cotswold.demon.co.uk ([194.222.75.186] helo=nigel.9fs.org) by anchor-post-34.mail.demon.net with smtp (Exim 2.12 #1) id 14TS3R-0006z8-0Y for 9fans@cse.psu.edu; Thu, 15 Feb 2001 17:18:53 +0000 To: 9fans@cse.psu.edu Subject: Re: [9fans] serial port programming From: nigel@9fs.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-fqsuordwnmcuazfnzmvonwuofx" Message-Id: Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Thu, 15 Feb 2001 17:18:51 0000 This is a multi-part message in MIME format. --upas-fqsuordwnmcuazfnzmvonwuofx Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I know the world of computing has forsworn manuals for a variety of reasons, but it's a valid approach in Plan 9. So, read uart(3) first. It explains how to configure a uart by opening the ctl file and writing simple strings. You read and write it by reading and writing the data file. As they used to say on a game show here, "that's all there is to it". If you need more, then try src con the source of the terminal emulator. --upas-fqsuordwnmcuazfnzmvonwuofx Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by cpu; Thu Feb 15 17:17:42 GMT 2001 Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.18.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 4DEF0199E3; Thu, 15 Feb 2001 12:11:10 -0500 (EST) Received: from wopie.prowillen.com (wopie.prowillen.com [209.10.42.10]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 50C63199D7 for <9fans@cse.psu.edu>; Thu, 15 Feb 2001 12:10:40 -0500 (EST) Received: from ducksworth.com ([209.152.156.1]) by wopie.prowillen.com (Post.Office MTA v3.5.3 release 223 ID# 0-61815U200L100S0V35) with ESMTP id com for <9fans@cse.psu.edu>; Thu, 15 Feb 2001 09:10:32 -0800 Message-ID: <3A8C0D6F.17395EC2@ducksworth.com> From: Sam Ducksworth X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: 9fans mailing list <9fans@cse.psu.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [9fans] serial port programming Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: 9fans@cse.psu.edu X-Reply-To: sam@ducksworth.com List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Thu, 15 Feb 2001 09:10:07 -0800 i would like to write a simple plan9 program that i can use to pull serial data from a microcontroller based data logger that i have constructed. does anyone know where i could find some sample code that shows how plan9 handles serial port I/O. -sam --upas-fqsuordwnmcuazfnzmvonwuofx-- --upas-wypcqsmgbtbcdkugyznvgmgjal--