Subject: Fail opening com1 or com2
From: [email-masked] ("Eric LECHOPIER")

5 Jun 1997 18:03:57 -0700
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Original-To: <[email-masked]>
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1161
Original-Sender: [email-masked]

When opening a serial port, the open function returns 0 (it is stdin).

int fd;

fd = open ("com1", O_RDWR);

then fd = 0

So, the system doesn't open serial port but STDIN.

How to solve that problem ?

Thank you.
Eric

  ______________________________________________________________________
  | Eric LECHOPIER			E-mail : [email-masked] 
  | Software Dev. Engineer
  |______________________________________________________________________
  |                                                            
  | ELEKTA IGS SA			Tel : (33) 4-76-63-31-90
  | 2 av de vignate			Fax : (33) 4-76-51-80-33
  | Centre Equation - Bat 5                                                
  
  | 38610 GIERES - FRANCE                                             
  |______________________________________________________________________

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".