[ILUG] Checking for a modem?
Martin Donlon
akawaka at csn.ul.ie
Fri Sep 22 12:03:55 IST 2000
well, in C you could open a pipe(2) to the serial device.
send a "ATZ\n" and if theres a modem there you should get a "OK" back
If you don't want to reset the modem you could try just sending a "AT\n"
which should return a "OK" unless numeric responses are on (ATV0).
Not too sure how to go about doing this from the shell.
On Fri, 22 Sep 2000, Cathal Garvey wrote:
> Hi!
>
> Is there anyway to find out whether or nor a modem is present on a given com
> port? What I want is for a script to confirm whether a modem exists on a
> specified port - I don't want to use minicom or a similar manual method.
> Also, if there is a simple solution does that work when the modem is in use?
>
> Ta for any pointers
> .cg
>
>
> --
> Irish Linux Users' Group: ilug at linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie
>
Martin
--
Bother, said Pooh as his ship failed to jump to light speed.
More information about the ILUG
mailing list