Xref: utzoo comp.lang.pascal:2916 comp.sys.ibm.pc:41865 Path: utzoo!attcan!uunet!husc6!paperboy!snorkelwacker!tut.cis.ohio-state.edu!cs.utexas.edu!hellgate.utah.edu!ug.utah.edu!u-dmfloy From: u-dmfloy%ug.utah.edu@cs.utah.edu (Daniel M Floyd) Newsgroups: comp.lang.pascal,comp.sys.ibm.pc Subject: Re: com port nightmare Message-ID: <1990Jan12.014123.6038@hellgate.utah.edu> Date: 12 Jan 90 08:41:22 GMT References: <10561@bsu-cs.bsu.edu> Organization: University of Utah CS Dept Lines: 37 In article <10561@bsu-cs.bsu.edu> pervect@bsu-cs.bsu.edu (Barrett Kreiner) writes: >I'm trying to connect two com ports ... >It's like this: I have a terminal on my com1 port and a modem on my >com2 port. I want to use the modem from terminal. The modem is >internal to the pc. I've tried ... >and writing my own drivers using bios. Dosgate and async won't play >together like good programs. Async works fine, but supports only one >open com port I've looked the source over.. nasty to make it support >2 open. So basically this is a general plea if ANYONE out there is >smart enough to at least get my two ports talking at once please Email >to me. > > Thanx for your support. >|---------------------------------------------------------------------|-----| >| Barrett Kreiner ARPA: pervect@bsu-cs.bsu.edu <-*New Address* | :-] | Three methods spring to mind (the last is best if you can): 1)Interrupts 2)Polling 3)ctty 1) If you intend to do interrupts, you have to enable both the 8259A interrupts number 3 and 4 (which correspond to interrupt vectors B and C in the BIOS respectively), and enable the ports themselves. You'll have to put in the right interrupt addresses and deal with conflicts. 2) If you do polling you may forget about the interrupts and poll com1 then com2 rapidly using the BIOS interrupt vector. 3) CTTY is a DOS command that may be just what you want. Then see if you can use your modem with the standard software. Try and see. I hope this helps and makes sense. Dan Floyd 8