delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/09/11:26:27

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: localhost.localdomain: ronald owned process doing -bs
Date: Wed, 9 Jul 2003 17:37:07 +0200 (CEST)
From: Ronald Landheer-Cieslak <ronald AT landheer DOT com>
X-X-Sender: ronald AT localhost DOT localdomain
To: vadraj kulkarni <vadiraj_kulkarni AT lycos DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Parameters to ReadFile(), SetCommState() for COM ports
In-Reply-To: <OOEIKDPHBOHILBAA@mailcity.com>
Message-ID: <Pine.LNX.4.44.0307091730280.4547-100000@localhost.localdomain>
MIME-Version: 1.0

On Wed, 9 Jul 2003, vadraj kulkarni wrote:
> This is regarding opening target in Cygwin. I have written a simple code
> which communicates with my hardware. If i am not wrong, cygwin has
> written simulation program to open com port... etc in windows. Can
> anybody tell me what all the parameters i should pass to

> CreateFile() function as well for SetComState() for COM ports.
If you want to use the Cygwin (POSIX) API to communicate with COM ports, 
use the ANSI/POSIX functions on /dev/ttyS0

i.e. as Cygwin is a POSIX emulation layer, the devices it provides access 
to are accessible through their UNIX named - /dev/ttyS* for COM ports.

You should use them as you would use COM ports from a UNIX application..

HTH

rlc

> 
> ReadFile() function never return after receiving 2-3 packets.
> 
> 
> thansk & regards
> vadiraj
> 
> 
> ____________________________________________________________
> Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
> http://login.mail.lycos.com/r/referral?aid=27005
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019