This is the mail archive of the cygwin@sourceware.cygnus.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]

Re: Windows Serial Ports


Geoffrey Noer wrote:

> > Has anyone tried talking to the serial ports under gnuwin32?
...

> You should be able to just open "comn" where n is a number from 1 to 4
> and then communicate with it normally...

Well,

read() does not work (blocks in non-blocking mode)
select() does not work (returns even if no data is available)
alarm() does not interrupt within a read() call
open() does not set non-blocking mode on serial devices

(see <34FB4DA5.7672437D@uni-paderborn.de> also)

This is not quite what I would call "normally", more like "making
workarounds difficult to impossible" leaving few choices:

1) try further workarounds, hoping that FIONREAD or poll() might work
   (does not look too promising though)
2) use the WIN32 API (d'lng dox right now)
3) fix cygwin32 myself. Apart from having neither knowledge nor 
   experience with the WIN32 API so far, few knowledge about cygwin32, 
   I am not the one who debugs the debugger to develop his application.
   More like the GPLed application programmer who wants to port an 
   application to Win32 and cares about his "customers" complaints
4) complain about it here. Well, maybe it helps or another guy more
   capable and willing to fix this runs into the same problem ;-)
   Of course I am willing to assist with detailed bug and trace reports.

Has anybody been successful in porting some kind of getty on serial 
lines?

Best regards,

Frank


P.S.: I like cygwin32 and have been able to port my own GPLed apps 
apart from the most important one which depends on a working serial
communication layer/emulation
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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