TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: RODERICK RIENSCHE
from: ERIC SCHONNING
date: 1995-09-18 21:50:00
subject: Re: Comm.. Argh!

RR> Here's the problem..  Using the following code on my system (which onl
RR> has a plain old 14.4k modem on COM2), output works--i.e. I type ATH1 a
RR> the phone goes off-hook--but I don't get any input from the modem (i.e
RR> I don't see the ATH1 and the subsequent OK).
 
This is a classic interrupt problem with the serial port.  You can send
data but not recieve.  
 
RR> print hex$(GetComAddress(2)), hex$(GetComAddress(1))
RR> SetComAddress 1, &h2f8
 
RR> open "com1:38400,N,8,1" as #1 len = 1024
RR> open "cons:" for output as #2
 
well there is the problem right there.  You reset the com1 port address
to the one normally used for com2, but you need to remember that the
port at 3F8h was using IRQ 4 (standard COM1) and that 2F8h is using IRQ
3 (standard COM2).  When you opened the port as com1 it automatically
assigned it IRQ 4, but was looking at the COM2 (2F8h) address which is
using IRQ 3.  So any data being recieved isn't going to be noted by PB
cause its accessing IRQ 3 not IRQ 4.  If you want to reset the
addresses you are going to have to use the ,IR# option and reset the
IRQ # as well (so for your above example you will have to make it 
open "com1:38400,n,8,1,ir3" as #1 len=1024    to tell it to use a
different irq.  Make sense?  hope so......   eric
--- QM v1.00
---------------
* Origin: Creekside Manor (805) 484-8016 CdCom Support BBS (1:206/2512.0)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.