From: godot AT uni-paderborn DOT de (Frank Baumgart) Subject: Re: Windows Serial Ports 11 Apr 1998 01:27:58 -0700 Message-ID: <352E462E.7F6CDA36.cygnus.gnu-win32@uni-paderborn.de> References: <199804092204 DOT PAA00627 AT skaro DOT cygnus DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Geoffrey Noer Cc: gnu-win32 AT cygnus DOT com 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 DOT 7672437D AT uni-paderborn DOT 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 AT cygnus DOT com" with one line of text: "help".