public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* serial port programming
@ 2001-03-30 17:16 Tim Holmes
  2001-03-30 17:20 ` Christopher Faylor
  0 siblings, 1 reply; 26+ messages in thread
From: Tim Holmes @ 2001-03-30 17:16 UTC (permalink / raw)
  To: cygwin

Hello,

I'm trying to use cygwin to write an app that communicates via the serial
port.  I'm doing this under Windows NT.  

At one point I need to find out how many bytes are in the incoming
buffer.  The POSIX programming references I've found say to use FIONREAD,
but this is apparently not included in Cywin's termios.

I've found some references to this in the list archives, but wasn't clear
as to what it all meant.  Can I read the number of bytes in the
buffer?  

Thanks for any thoughts on this.

Tim Holmes



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 26+ messages in thread
* Serial port programming
@ 2000-05-29  7:43 El
  0 siblings, 0 replies; 26+ messages in thread
From: El @ 2000-05-29  7:43 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 483 bytes --]

Hi Chris !!

I need some Help .. Please..

I work in developed a new program for serial communications in C   for DOS,(FX, Interlink.. etc..) i search in the net for some c   programs or .h libraries, but nothing..

you can help me ?

THAX....

@ndreX
Cali
COL


_________________________________________________________
http://www.latinmail.com .  Gratuito, latino y en español.


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 26+ messages in thread
* serial port programming
@ 2000-05-15  9:23 j_s_saini
  0 siblings, 0 replies; 26+ messages in thread
From: j_s_saini @ 2000-05-15  9:23 UTC (permalink / raw)
  To: cygwin

 
 dear friend
         hi! & namaste from india.
         how are you.
 
 i am jagmohan, final yr engg, student ic electronics & comm. . my problem is s programming the serial port  of PC in C.
 you must have solution. please help me also. i need this to complete my final semester project.
 
 thank you,
 bye bye.
> 
> 
> ______________________________________________________
> 123India.com - India's Premier Portal 
> Get your Free Email Account at http://www.123india.com


______________________________________________________
123India.com - India's Premier Portal 
Get your Free Email Account at http://www.123india.com



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 26+ messages in thread
* Serial port programming
@ 1999-08-22 23:32 Kim Poulsen
  1999-08-22 23:52 ` Baron Shatturday
                   ` (5 more replies)
  0 siblings, 6 replies; 26+ messages in thread
From: Kim Poulsen @ 1999-08-22 23:32 UTC (permalink / raw)
  To: Cygwin Mailing list

Hi there

  I've got the following problem:
I need to access the serial ports of my PC through an ANSI C program.
How do I do that ?  I have already tried using fopen("/dev/com2", "r")
and fopen("com2", "r") but these only causes a core dump.
  So how to avoid core dumping and make me able to set the serial port
stats (parity, stop bits, bits per byte, serial speed) ?
dos.h is not available as far as I can see and therefore inportb() and
outportb() as well...

The FAQ or the mailing list archive has no response on 'serial' or
'port' which is why I ask here now.

Thank you in advance for any answers that might help me clear this up.
  Kim
-- 
 Kim Poulsen, B.Sc.E.E, System Developer HW
 Ericsson Telebit A/S     Tel: + 45 86 28 81 76
 Fabriksvej 11            Fax: + 45 86 28 81 86
 DK-8260 Viby J           E-mail: info@tbit.dk
 Denmark                  URL: http://www.tbit.dk/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

end of thread, other threads:[~2001-03-30 17:20 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-30 17:16 serial port programming Tim Holmes
2001-03-30 17:20 ` Christopher Faylor
  -- strict thread matches above, loose matches on Subject: below --
2000-05-29  7:43 Serial " El
2000-05-15  9:23 serial " j_s_saini
1999-08-22 23:32 Serial " Kim Poulsen
1999-08-22 23:52 ` Baron Shatturday
     [not found] ` <199908230653.IAA17307@mailhostnew.tbit.dk>
1999-08-23  0:04   ` Kim Poulsen
1999-08-31 23:49     ` Kim Poulsen
1999-08-23  2:32 ` Corinna Vinschen
1999-08-23  2:50   ` Kim Poulsen
1999-08-23  8:03     ` Chris Faylor
1999-08-23 22:31       ` Kim Poulsen
1999-08-23 22:35         ` Geoff Appleby
1999-08-31 23:49           ` Geoff Appleby
1999-08-24  9:17         ` Chris Faylor
1999-08-31 23:49           ` Chris Faylor
1999-08-31 23:49         ` Kim Poulsen
1999-08-31 23:49       ` Chris Faylor
1999-08-31 23:49     ` Kim Poulsen
1999-08-23  8:00   ` Chris Faylor
1999-08-31 23:49     ` Chris Faylor
1999-08-31 23:49   ` Corinna Vinschen
     [not found] ` <199908230653.XAA03904@cygnus.com>
1999-08-23  7:59   ` Chris Faylor
1999-08-31 23:49     ` Chris Faylor
1999-08-31 23:49 ` Kim Poulsen
1999-08-31 23:49 ` Baron Shatturday

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).