From owner-freebsd-questions@FreeBSD.ORG Tue May 1 01:13:53 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DF8CD16A401 for ; Tue, 1 May 2007 01:13:53 +0000 (UTC) (envelope-from jhofer@bhware.com) Received: from host2.omj.us (host2.omj.us [67.18.22.68]) by mx1.freebsd.org (Postfix) with ESMTP id BE07A13C46A for ; Tue, 1 May 2007 01:13:53 +0000 (UTC) (envelope-from jhofer@bhware.com) Received: from [63.230.146.38] (helo=[192.168.6.240]) by host2.omj.us with esmtpa (Exim 4.63) (envelope-from ) id 1Hia2A-0003vA-L9 for freebsd-questions@freebsd.org; Mon, 30 Apr 2007 12:51:34 -0500 Message-ID: <46362CA0.9090506@bhware.com> Date: Mon, 30 Apr 2007 12:51:28 -0500 From: Jordon Hofer User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2.omj.us X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - bhware.com X-Source: X-Source-Args: X-Source-Dir: Subject: Setting the baud rate 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: Tue, 01 May 2007 01:13:54 -0000 I am developing a windows utility to analyse data it receives through a serial port. To test it, need to simulate the data it receives. I made a file in FreeBSD 4.11 that is a single packet. I need to send the data in this file out the serial port at 4800 baud. I would like to do a "cp file /dev/cuaa0" or "cat file > /dev/cuaa0" but when I do this, it goes out at the wrong baud rate. When I run "stty -f /dev/cuaa0", I see that cuaa0 is set to 9600 baud. When i run "stty -f /dev/cuaa0 4800", it seems to run without error, but the baud rate doesnt change. How do I set the baud rate for the serial port so i can just redirect data to it and the data will be sent out at 4800 baud? jorj