Article View: borland.public.cppbuilder.nativeapi
Article #1348Re: How to find modem com port
From: Jyrki Holopainen
Date: Tue, 28 Aug 2007 18:10
Date: Tue, 28 Aug 2007 18:10
26 lines
1823 bytes
1823 bytes
Bruce Larrabee wrote: > > Hello Jyrki --- > > Well a 'quick and dirty' solution would be to > poll the com ports, say COM1 - COM4 or COM1 - COM6 > or whatever, till you find a functioning modem. > > I know it's crude so it may or may not be sufficient > for your app... I currently try to open serial ports (COM1 - COM32) and show only the ports that exist. I would also like to show the modem name after the com-port in the selection list. I could send command "AT" to every com port and see what is the response, but that does not necessarily work since some modems do not response if the serial speed is not correct. Some internal modems also have more than one serial port, but only one of them can be used for dialing. I understand that there is a direct way to get get information about installed devices and their properties. /Jyrki
Technical Details
Message-ID:
<46d4650f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46cb33b4$1@newsgroups.borland.com> <46d302e9$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,829c8cbb24c7d098 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 28 Aug 2007 21:10:15 +0300 From: Jyrki Holopainen <JyrkiBorland@halo.pp.fi> User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: How to find modem com port References: <46cb33b4$1@newsgroups.borland.com> <46d302e9$1@newsgroups.borland.com> In-Reply-To: <46d302e9$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 91.152.173.240 Message-ID: <46d4650f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1188324623 91.152.173.240 (28 Aug 2007 11:10:23 -0700) Lines: 26 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail