How would I get the modem status (Line Status Register /
Modem Status Register values) for external serial port modems?
In an attempt to find the answer to my previously posted topic,
I was perviewing the COMMUNIT.BAS file that ships with PB/DOS 3.5.
I tried the DsrStatus function and it ALWAYS returned the same value,
regardless of whether the applicable modem was turned on or off.
I assume that this is because the modem is an external one, so
the modem status register is in the modem, not in the system memory?
If that's the case, how would I go about retrieving its data?
Thanks for any replies.
P.S. If a workable solution is uncovered, I will write my OWN
version of DsrStatus (and Carrier), because PB included
a copyright notice in the BAS file. 'Sides, I prefer to use
my own rolled routines, and I have already found the applicable one
under INT 14 in Ralf's Interrupt Lists.
ADDED: I just tried the COMMUNIT.BAS Carrier function in a test
program, and it DID correctly return the status of the connection.
So, obviously, the Modem Status Register can be culled even for
external serial port modems. So, why does the DsrStatus function
ALWAYS return the same value? It does so with PB's version, and with
my own. My version uses the INT 14 call to do it.
------------------
Clay C. Clear
mailto:[email protected][email protected]</A>
[This message has been edited by Clay Clear (edited October 07, 2002).]
Modem Status Register values) for external serial port modems?
In an attempt to find the answer to my previously posted topic,
I was perviewing the COMMUNIT.BAS file that ships with PB/DOS 3.5.
I tried the DsrStatus function and it ALWAYS returned the same value,
regardless of whether the applicable modem was turned on or off.
I assume that this is because the modem is an external one, so
the modem status register is in the modem, not in the system memory?
If that's the case, how would I go about retrieving its data?
Thanks for any replies.

P.S. If a workable solution is uncovered, I will write my OWN
version of DsrStatus (and Carrier), because PB included
a copyright notice in the BAS file. 'Sides, I prefer to use
my own rolled routines, and I have already found the applicable one
under INT 14 in Ralf's Interrupt Lists.

ADDED: I just tried the COMMUNIT.BAS Carrier function in a test
program, and it DID correctly return the status of the connection.
So, obviously, the Modem Status Register can be culled even for
external serial port modems. So, why does the DsrStatus function
ALWAYS return the same value? It does so with PB's version, and with
my own. My version uses the INT 14 call to do it.

------------------
Clay C. Clear
mailto:[email protected][email protected]</A>
[This message has been edited by Clay Clear (edited October 07, 2002).]
Comment