RE: COM port setup

2003-01-17 Thread Paul Munden
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

  [EMAIL PROTECTED]To:   Paul Munden/UK/IBM@IBMGB, 
[EMAIL PROTECTED] 
  ndns.orgcc: 

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




COM port setup

2003-01-16 Thread Paul Munden


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/