From owner-freebsd-questions Sat May 8 18:11:50 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.HiWAAY.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id C901614DB1 for ; Sat, 8 May 1999 18:11:47 -0700 (PDT) (envelope-from dkelly@nospam.hiwaay.net) Received: from nospam.hiwaay.net (tnt4-208-166-127-102.dialup.HiWAAY.net [208.166.127.102]) by mail.HiWAAY.net (8.9.1a/8.9.0) with ESMTP id UAA15096; Sat, 8 May 1999 20:11:46 -0500 (CDT) Received: from nospam.hiwaay.net (nospam.hiwaay.net [127.0.0.1]) by nospam.hiwaay.net (8.9.2/8.9.2) with ESMTP id TAA50784; Sat, 8 May 1999 19:50:53 -0500 (CDT) (envelope-from dkelly@nospam.hiwaay.net) Message-Id: <199905090050.TAA50784@nospam.hiwaay.net> X-Mailer: exmh version 2.0.2 2/24/98 To: "Grifter" Cc: freebsd-questions@FreeBSD.ORG From: David Kelly Subject: Re: comport usage In-reply-to: Message from "Grifter" of "Sat, 08 May 1999 13:37:05 MDT." <3.0.1.32.19990508133705.006c1618@mail.cal.shaw.wave.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 08 May 1999 19:50:53 -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Grifter" writes: [...] > > In my case i have connected this chip to a remote control car and by > sending data through the comport at 2400BPS i can navigate the car. I used > to run linux and had the car working (not verywell but working). Anyway im > looking for a way to access the comports at 2400BPS from a perl appliction > i have written to allow the car to be driven from the net. > > > i have read that i can open the comport like a file but how do i set > parity,baudrate, stopbits, startbits etc.... Are there any examples that i > could look at or any help files i can use? or hell just someone out there > willing to help? I'm not good a perl, but "man stty" will tell you all about how to set and read serial port speed and the like. Open the port in perl first, then exec(), system(), or whatever, the stty command. "man sio" for more details about the serial port driver and the meanings/functions of the various serial port names. "man termios" and "man comcontrol" will also be helpful. -- David Kelly N4HHE, dkelly@nospam.hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message