From owner-freebsd-questions@FreeBSD.ORG Mon Jun 26 13:06:14 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1943616A402 for ; Mon, 26 Jun 2006 13:06:14 +0000 (UTC) (envelope-from bc3910@pcisys.net) Received: from ampex.com (postal.ampex.com [65.201.33.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE17844914 for ; Mon, 26 Jun 2006 13:06:06 +0000 (GMT) (envelope-from bc3910@pcisys.net) Received: from newman.ampex.com (newman.ampex.com [136.185.151.32]) by ampex.com (8.12.10/8.12.9) with ESMTP id k5QD5YUQ029712; Mon, 26 Jun 2006 06:05:34 -0700 (PDT) Received: from [136.185.151.143] (cos-pc-143 [136.185.151.143]) by newman.ampex.com (8.12.9/8.12.9) with ESMTP id k5QD5WIm001919; Mon, 26 Jun 2006 07:05:33 -0600 (MDT) Message-ID: <449FDB97.9040108@pcisys.net> Date: Mon, 26 Jun 2006 07:05:27 -0600 From: bc User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Ted Mittelstaedt References: <449D982B.4090707@pcisys.net> <000801c697c9$e4bd9c10$3c01a8c0@coolf89ea26645> <449DA71E.50109@pcisys.net> <005601c698a5$096222d0$3c01a8c0@coolf89ea26645> In-Reply-To: <005601c698a5$096222d0$3c01a8c0@coolf89ea26645> X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-MailScanner-SpamCheck: not spam, SpamAssassin (score=0.036, required 3, autolearn=not spam, HTML_40_50, HTML_MESSAGE) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Serial Communication X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 13:06:14 -0000 The -f option works ok if located directly after 'stty'. In Windows ( not necessarily bragging here at all) I just set com1 to 2400, 8, N, 1 with no flow control. I just need to trouble shoot further and sort through the many serial options now. Thanks for getting me started in the right direction though. Ted Mittelstaedt wrote: > Hmm, > > Try this instead > > stty < /dev/ttyd0 2400 cs8 -parenb -cstopb -crtscts > > see /etc/rc.d/serial > > for examples of how the system sets these up, or just edit that file. > > Maybe the -f option is busted with serial ports. > > Ted > ----- Original Message ----- > From: "Bryan" > To: "Ted Mittelstaedt" > Sent: Saturday, June 24, 2006 1:57 PM > Subject: Re: Serial Communication > > > >> Ted Mittelstaedt wrote: >> >>> stty speed 2400 -hup cs8 -parenb -clocal -f /dev/ttyd0 >>> cat dload.txt > /dev/ttyd0 >>> >>> also the scanner must assert DTR when it's turned on. >>> >>> Ted >>> >>> ----- Original Message ----- >>> From: "Bryan" >>> To: >>> Sent: Saturday, June 24, 2006 12:53 PM >>> Subject: Serial Communication >>> >>> >>> >>>> I have an old TCL/TK Script That I wrote several years ago that sends >>>> data out of a serial port into a Radio Shack Pro-64 scanner. The >>>> > program > >>>> basically programs the scanner with frequencies to listen to. >>>> >>>> I cant figure out how to make it work in FreeBSD. The port must be >>>> configured as follows >>>> >>>> COM1: 2400, 8, N, 1 >>>> >>>> The actual snippet of code that writes out to the port looks like this: >>>> >>>> cat dload.txt > /dev/prd64 >>>> >>>> where /dev/pro64 was a device (com port configured as above)I had >>>> created (somehow) for the linux box I had at the time. >>>> >>>> The handbook reading did not provide enough detail for me to get the >>>> port configured and working. The port does not need anything to be >>>> recognized coming in since the operation is outbound only. Software or >>>> scanner cannot read the port anyway. >>>> >>>> Can anyone give me a primer or some help to get going? >>>> >>>> Thank You. >>>> _______________________________________________ >>>> freebsd-questions@freebsd.org mailing list >>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>>> To unsubscribe, send any mail to >>>> >>> "freebsd-questions-unsubscribe@freebsd.org" >>> >>> _______________________________________________ >>> freebsd-questions@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>> To unsubscribe, send any mail to >>> > "freebsd-questions-unsubscribe@freebsd.org" > >>> >> Actually, after checking man stty, I see maybe the command should read: >> stty -f /dev/ttyd0 speed 2400 cs8 -parenb -cstopb -crtscts >> >> Or from the handbook, to make it permanent >> stty -f /dev/ttyd0.init speed 2400 cs8 -parenb -cstopb -crtscts >> >> Either command returns >> #9600 >> >> Running >> #stty -a -f /dev/ttyd0 >> shows that the speed did not change. >> >> I am still confused then. >> >> > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > >