RR> Here's the problem.. Using the following code on my system (which o
RR> has a plain old 14.4k modem on COM2), output works--i.e. I type ATH1
RR> the phone goes off-hook--but I don't get any input from the modem (i
RR> I don't see the ATH1 and the subsequent OK).
RR>
RR> Note, If I skip the "SetComAddress", and just use "OPEN COM2:..." bo
RR> input and output work beautifully..
RR> print hex$(GetComAddress(2)), hex$(GetComAddress(1))
RR> SetComAddress 1, &h2f8
RR>
RR> open "com1:38400,N,8,1" as #1 len = 1024
I can see a number of things. First, I work in QuickBASIC, so my
solution may not be exactly the same.
1: COM1 address is &H3F8 COM2 is &H2F8
2: I don't know about PowerBASIC, but the OPEN COM statement in QB uses
BIOS routines, and BIOS routines only handle up to the fastest a serial
port can go (regardless of the modem speed) which is 19200.
3: Try this: open "com1:19200,N,8,1,RB1024" for BINARY as #1
The RB1024 sets the receive buffer to 1024 bytes. The len= has no
effect on communications routines.
Hope this helps!
Joe Clark
--- GEcho 1.00
---------------
* Origin: The PowerSoft Connection -=- 206-589-8429 (1:138/288)
|