public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: open () and /dev/ttyS0
@ 2003-09-25 16:38 Craig Gullixson
  2003-09-25 16:41 ` Ronald Landheer-Cieslak
  0 siblings, 1 reply; 4+ messages in thread
From: Craig Gullixson @ 2003-09-25 16:38 UTC (permalink / raw)
  To: cygwin

It turns out that the permission denied error was due to a typeo causing
an attempt to open the serial port a second time (me: bashing head against
wall).  After that was corrected, tty port works fine with my POSIX tty
library.

---Craig

>
>I have an application where I need to communicate with some simple
>controllers via serial commands.  I have a package to do the low level
>open,read,write, and close tasks for a tty port that I have been using
>for a number of years under Solaris using the standard POSIX tty calls.
>
>My problem is that when attempting to open /dev/ttyS0, I get a
>permission denied error.  I get the same error when attempting to
>open /dev/com1.  Curiously, the open works when opening "com1" but
>the tcgetattr () call then fails with a not a typewriter error
>(presumably ENOTTY).
>
>I can manually communicate with the controllers via hyperterm.
>
>My configuration is 
>
>uname -a output:
>
>CYGWIN_NT-5.0 dlsppc 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown unknown 
>Cygwin
>
>The windows system is:
>
>Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4
>
>built on a FAT32 partition.
>
>
>I have noted several similar problems with opening serial ports in the
>archives but have not see anything regarding this being resolved.
>
>Any suggestions would be appreciated.
>
>---Craig
>
>
>________________________________________________________________________
>Craig A. Gullixson
>Instrument Engineer			INTERNET: cgullixson@nso.edu
>National Solar Observatory/Sac. Peak    PHONE: (505) 434-7065
>Sunspot, NM 88349 USA                   FAX: (505) 434-7029
>


--
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: open () and /dev/ttyS0
  2003-09-25 16:38 open () and /dev/ttyS0 Craig Gullixson
@ 2003-09-25 16:41 ` Ronald Landheer-Cieslak
  2003-09-25 16:44   ` Igor Pechtchanski
  0 siblings, 1 reply; 4+ messages in thread
From: Ronald Landheer-Cieslak @ 2003-09-25 16:41 UTC (permalink / raw)
  To: cygwin

On Thu, Sep 25, 2003 at 10:34:01AM -0600, Craig Gullixson wrote:
> (me: bashing head agains wall)
Bash is by no means intentded to hurt the heads of developers! Please don't
abuse the shell in such a way!

(Sorry, couldn't resist ;)

rlc


--
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: open () and /dev/ttyS0
  2003-09-25 16:41 ` Ronald Landheer-Cieslak
@ 2003-09-25 16:44   ` Igor Pechtchanski
  0 siblings, 0 replies; 4+ messages in thread
From: Igor Pechtchanski @ 2003-09-25 16:44 UTC (permalink / raw)
  To: Ronald Landheer-Cieslak; +Cc: cygwin

On Thu, 25 Sep 2003, Ronald Landheer-Cieslak wrote:

> On Thu, Sep 25, 2003 at 10:34:01AM -0600, Craig Gullixson wrote:
> > (me: bashing head agains wall)
> Bash is by no means intentded to hurt the heads of developers! Please don't
> abuse the shell in such a way!

Oh, yes, it is.  Haven't you taken a look at the source lately?

> (Sorry, couldn't resist ;)
> rlc

Ditto. ;-)
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* open () and /dev/ttyS0
@ 2003-09-24 21:09 Craig Gullixson
  0 siblings, 0 replies; 4+ messages in thread
From: Craig Gullixson @ 2003-09-24 21:09 UTC (permalink / raw)
  To: cygwin; +Cc: craig

I have an application where I need to communicate with some simple
controllers via serial commands.  I have a package to do the low level
open,read,write, and close tasks for a tty port that I have been using
for a number of years under Solaris using the standard POSIX tty calls.

My problem is that when attempting to open /dev/ttyS0, I get a
permission denied error.  I get the same error when attempting to
open /dev/com1.  Curiously, the open works when opening "com1" but
the tcgetattr () call then fails with a not a typewriter error
(presumably ENOTTY).

I can manually communicate with the controllers via hyperterm.

My configuration is 

uname -a output:

CYGWIN_NT-5.0 dlsppc 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown unknown 
Cygwin

The windows system is:

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4

built on a FAT32 partition.


I have noted several similar problems with opening serial ports in the
archives but have not see anything regarding this being resolved.

Any suggestions would be appreciated.

---Craig


________________________________________________________________________
Craig A. Gullixson
Instrument Engineer			INTERNET: cgullixson@nso.edu
National Solar Observatory/Sac. Peak    PHONE: (505) 434-7065
Sunspot, NM 88349 USA                   FAX: (505) 434-7029


--
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-09-25 16:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-25 16:38 open () and /dev/ttyS0 Craig Gullixson
2003-09-25 16:41 ` Ronald Landheer-Cieslak
2003-09-25 16:44   ` Igor Pechtchanski
  -- strict thread matches above, loose matches on Subject: below --
2003-09-24 21:09 Craig Gullixson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).