This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: COM port setup


Cygwin has pseudo /dev directory, the device name mapping is
/dev/ttyS0 - com1
/dev/ttyS1 - com2
/dev/ttyS2 - com3
/dev/ttyS3 - com4

You can use both unix and windows device names to open a com port, ie
fopen("/dev/ttyS0") and fopen("com1") do the same, but I suggest you to
use unix-like names.

> -----Original Message-----
> From: cygwin-owner@cygwin.com
> [mailto:cygwin-owner@cygwin.com] On Behalf Of Paul Munden
> Sent: Thursday, January 16, 2003 11:34 AM
> To: cygwin@cygwin.com
> Subject: COM port setup
>
>
>
>
> Hi,
>
> I'm hoping you could help me. I'm using CYGWIN to run some
> SMS tools and the tools config files need setting up to add
> the details of which com port I'm using. Basically I just
> need to know how I would go about creating the com4 object in
> /dev so that it does actually point at the com port as when
> installed, CYGWIN came with no /dev or any example of how I
> would setup the com object.
>
> Any help appreciated
>
> Paul.
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]