Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jul 2005 16:14:04 -0500
From:      David Kelly <dkelly@HiWAAY.net>
To:        FreeBSD_Questions FreeBSD_Questions <freebsd-questions@freebsd.org>
Subject:   Re: C program to write to the com port
Message-ID:  <8534437C-2442-47A3-9B58-873E4CBD92B6@HiWAAY.net>
In-Reply-To: <01cb01c595df$435ed060$6600a8c0@w2k2>
References:  <01cb01c595df$435ed060$6600a8c0@w2k2>

next in thread | previous in thread | raw e-mail | index | archive | help

On Jul 31, 2005, at 9:50 AM, Paul Hamilton wrote:

> I am trying to write a C program that will send 3 bytes to the  
> cuaa0 com
> port at 9600 baud, 8n1.

Oddly I found information on how to do that very easy to find for  
Unix. Conversely wanted to do the same thing in Windows and hit a  
brick wall. Everyone does it differently with different compilers. So  
I told the boss a Windows Weenie would have to take over.

Had a perfectly good minimal text-only program which formed serial  
Modbus ASCII packets, and displayed the response, under FreeBSD.  
Would be interested in a library for mingw or similar with termios  
cloned. Else some simple documented way to do unbuffered serial I/O.  
ASCII Modbus doesn't really require unbuffered I/O but thats the path  
I started on and would be required for Modbus RTU mode.

--
David Kelly N4HHE, dkelly@HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8534437C-2442-47A3-9B58-873E4CBD92B6>