delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/17/10:48:40

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
Subject: RE: COM port setup
To: cygwin AT cygwin DOT com
Message-ID: <OFB3E9C966.F3666015-ON80256CB1.005682E3@portsmouth.uk.ibm.com>
From: "Paul Munden" <paul_munden AT uk DOT ibm DOT com>
Date: Fri, 17 Jan 2003 15:48:00 +0000
MIME-Version: 1.0

Cool thanks this seems to work as I can see my IR port trying to connect to
my IR on my mobile but the problem is I keep getting '/dev/com4: Permission
denied' when I'm running my code. If these are virtual links, how can I
look at changing the permissions on them ?


Regards
Paul

                                                                                                                                       
                      "Sergey Okhapkin"                                                                                                
                      <sos AT sokhapkin DOT dy        To:       Paul Munden/UK/IBM AT IBMGB, <cygwin AT cygwin DOT com>                                 
                      ndns.org>                cc:                                                                                     
                                               Subject:  RE: COM port setup                                                            
                      17/01/03 13:36                                                                                                   
                                                                                                                                       
                                                                                                                                       




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 AT cygwin DOT com
> [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Paul Munden
> Sent: Thursday, January 16, 2003 11:34 AM
> To: cygwin AT cygwin DOT 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/

- Raw text -


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