delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/05/29/08:59:12

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <7c5010d60805290558o3717c302u959dd34f396cdb81@mail.gmail.com>
Date: Thu, 29 May 2008 14:58:41 +0200
From: "Giovanni Maruzzelli" <gmaruzz DOT lists AT gmail DOT com>
To: cygwin AT cygwin DOT com, ebb9 AT byu DOT net
Subject: serial ports not visible with 1.7 under Vista
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Hi all,

I am using the 1.7 cygwin on Vista (SP1, updated), installed yesterday
from scratch with setup-2.592-1.7special.exe.

Result of uname -a is:

CYGWIN_NT-6.0 vista-maruzz 1.7.0(0.185/5/2) 2008-05-25 20:10 i686 Cygwin

I cannot see the serial ports (/dev/ttyS*), it seems that they do not
exist under Vista (tried both as a user with admin rights and as
Administrator, and tried also with AUC disabled).

Is this a known bug?

With cygwin 1.5.25 current serial ports are working as expected under
Vista (but cygwin 1.5.25 crashes as soon as I call waveinopen, while
under 1.7 waveinopen works flawlessly).

Is this a known bug?

Any help greatly appreciated,

Giovanni

This is a test case, substitute your port to ttyS5 (eg: COM4 is ttyS3):


#include <stdlib.h>
#include <stdio.h>
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>

int main (int argc, char* argv[])
{
 int tty;

 tty = open ("/dev/ttyS5", O_RDWR | O_NOCTTY | O_NONBLOCK);

 if (tty < 0)
  {
     printf ("Unable to open /dev/ttyS5\n");
     exit (1);
  }

 close (tty);

 return 0;
}

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

- Raw text -


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