From: Andrew Cottrell Newsgroups: comp.os.msdos.djgpp Subject: Re: Serial port (RS232C) open Date: Wed, 16 Oct 2002 21:17:17 +1000 Organization: ECLiPSE Lines: 18 Message-ID: <5fiqqug0v3pj1vk9qrfao8rqq66abr79qf@4ax.com> References: <3DACF5E5 DOT 80105 AT kordi DOT re DOT kr> NNTP-Posting-Host: p156-tnt4.syd.ihug.com.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: lust.ihug.co.nz 1034767039 16550 203.173.134.156 (16 Oct 2002 11:17:19 GMT) X-Complaints-To: abuse AT ihug DOT co DOT nz NNTP-Posting-Date: Wed, 16 Oct 2002 11:17:19 +0000 (UTC) X-Newsreader: Forte Agent 1.92/32.572 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >On Wed, 16 Oct 2002, jou wrote: > >> I want to read data from serial port (RS232C). >> Not possible to open /dev/ttyS0 in DOS. > >Open /dev/aux or COM1 (or COM2, as the case might be) instead. If yuo want to run faster than 9600 baud then you may want to check out one of the many comms libraries in the V2TK directory. Some of the comms libraries are in assembly, some support multiple comm ports, some support wakeup mode (9 bit parity), and some are not maintained any more. If you need timing libraries then there are also some in the V2TK directory and don't forget Allegro also has timing functions which I have stipped out and used in comms programs. Andrew