From owner-freebsd-questions@FreeBSD.ORG Sat Jun 24 20:25:25 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 7137F16A492 for ; Sat, 24 Jun 2006 20:25:25 +0000 (UTC) (envelope-from bc3910@pcisys.net) Received: from marsha.pcisys.net (marsha.pcisys.net [216.229.32.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 122CB43D58 for ; Sat, 24 Jun 2006 20:25:24 +0000 (GMT) (envelope-from bc3910@pcisys.net) Received: from [192.168.0.51] (dsl-206-53-31-39.cos.pcisys.net [206.53.31.39]) (authenticated bits=0) by marsha.pcisys.net (8.13.3/8.13.3) with ESMTP id k5OKPNeX011228; Sat, 24 Jun 2006 14:25:24 -0600 (MDT) Message-ID: <449D9FB2.8010900@pcisys.net> Date: Sat, 24 Jun 2006 14:25:22 -0600 From: Bryan 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> In-Reply-To: <000801c697c9$e4bd9c10$3c01a8c0@coolf89ea26645> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Sat, 24 Jun 2006 20:25:25 -0000 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" > > Ted, Thanks. I got this error though. #stty speed 2400 -hup cs8 -parenb -clocal -f /dev/ttyd0 38400 stty: illegal operation -- -f Also, will the system remember this setting on reboot? If not, how can I make it remember? Bryan