cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/12/03:45:10

From: "Simon Redwood" <spredwood AT sri-net DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: DOS ioctl ?
Date: Wed, 11 Aug 1999 23:03:22 +0100
Organization: SRi Ltd
Message-ID: <934408912.3665.0.nnrp-01.c2de6b60@news.demon.co.uk>
NNTP-Posting-Host: sri-net.demon.co.uk
X-NNTP-Posting-Host: sri-net.demon.co.uk:194.222.107.96
X-Trace: news.demon.co.uk 934408912 nnrp-01:3665 NO-IDENT sri-net.demon.co.uk:194.222.107.96
X-Complaints-To: abuse AT demon DOT net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Lines: 29
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

as I am writing a peice of code to basically put some binary data down the
serial port.  My problem comes when
the bios times out because of flowcontrol.  Under unix this is easily
resolved, as I can just set the line to CLOCAL with an ioctl setting.  This
does seem to work under DOS to well, unless its the way I am doing it.


unsigned char data[...] = {
 0xFF, 0x8E, 0x01, 0xFF,  0xCE, 0x10, 0x00, 0x6F,
 0x35, 0x18, 0xCE, 0x10,  0x3F, 0x86, 0x07, 0x8D,
}

...
...

_bios_serialcom(_COM_INIT, 0, _COM_9600|_COM_NOPARITY|_COM_STOP1|_COM_CHR8);

...
for(i=0;i<...;i++)
    _bios_serialcom(_COM_SEND, 0, data[i]);

...







- Raw text -


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