DEV Community

Dimitrios Desyllas
Dimitrios Desyllas

Posted on

Is a good idea by Scanning all Serial Ports and sent ATZ At command in order to scan for a modem?

As I ask at Stackoverflow:

I need to implement an application that scans serial ports and detects a modem. Therefore, I searched for existing examples in Open - Libre Software that this functionality is performed.

An example is in this piece of software: https://sourceforge.net/projects/simplecallerid/ Via svn I downloaded the code and I found this method:

I need to detect all serial ports in order to detect a modem. At the provided software is from an Open-Source project that does that and I need to know whether this approach is a rather good to adopt or it may have some mishaps.

Top comments (0)