Query Modem via Command Line

February 26, 2010 at 08:34:22
Specs: Windows XP
I've got a tough one for the experts.

Is there a way to query a broadband modem via command line? Right now I'm stuck going into the device manager, finding the modem and clicking "query modem" to gather the parameters.

I was thinking about calling a saved HT but then I need to know what com port the modem is on...

Seems there should be an easier way...

TIA!


See More: Query Modem via Command Line

Report •


#1
February 26, 2010 at 11:58:06
I think you are getting confused between analogue modems and broadband digital modems. What is the model number of your Modem?

There is no command to query and broadband digital modem and broadband modems do not use Com ports. They use Ethernet or USB ports, most commonly Ethernet. Ethernet Modems do not show up in Device Manager and USB Modems show in the USB configuration. If your Modem is actually connected to a Com port then you have an analogue Modem.

If you have an analogue modem then there should be something there to tell you which port it is connected to. There is also a whole raft of commands you can use to query an analogue modem but you need to do it from a terminal application like Hyper Terminal.

You can send commands to the Modem from the command line but you need something more to be able to receive and interpret the information. returned.

Stuart


Report •

#2
February 26, 2010 at 13:41:21
No clue if it would help, but I also just disovered this command :

getmac


Report •

#3
February 26, 2010 at 16:10:39
getmac returns the MAC address of the Netwrok Interface Card. Just a sub- function of what ipconfig does.

Stuart


Report •

Related Solutions

#4
February 26, 2010 at 17:06:22
some equipment has its own ip address which you can access using a browser, but i'm not sure how to find the ip address of the equipment.

Report •

#5
February 27, 2010 at 04:31:21
I'm not completely knowledgeable on this subject, but what if you do this :

C:\>ping %computername%

Pinging computer007 [x.y.a.b] with 32 bytes of data:

Reply from x.y.a.b: bytes=32 time<1ms TTL=128
Reply from x.y.a.b: bytes=32 time<1ms TTL=128
Reply from x.y.a.b: bytes=32 time<1ms TTL=128
Reply from x.y.a.b: bytes=32 time<1ms TTL=128

Ping statistics for x.y.a.b:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\>


Report •

#6
March 3, 2010 at 08:14:30
I think maybe my request was unclear.

I'm looking to gather the "device parameters" not the IP or MAC.

If you query a modem, it will return something like this:

--------------------------------------
ATQ0V1E0 - OK
AT+GMM - H.324 video-ready rev. 1.0
AT+FCLASS=? - 0,1
AT#CLS=? - COMMAND NOT SUPPORTED
AT+GCI? - +GCI:B5
AT+GCI=? - +GCI:(00,01,02,04,06,07,09,0A,0B,0C,0D,0E,0F,10,11,12,14,15,16,19,1A,1B,1D,1E,1F,20,21,22,23,24,25,26,27,29,2B,2D,2E,2F,31,32,33,35,36,37,38,3C,3D,40,41,43,44,45,46,47,48,49,4B,4C,4D,4E,4F,50,51,52,53,54,57,58,59,5A,5B,5E,5F,61,62,63,64,66,68,69,6A,6B,6C,6D,6F,70,72,73,74,77,78,7A,7B,7C,7D,7E,7F,80,81,82,83,84,85,86,87,88,89,8A,8B,8C,8D,8E,8F,90,93,96,97,98,99,9B,9C,9F,A0,A1,A3,A4,A5,A6,A7,A8,A9,AA,AC,AD,AE,B2,B3,B4,B5,B6,B7,B8,BB,BC,BF,C1,C2,C4)
ATI1 - OK
ATI2 - OK
ATI3 - Agere SoftModem Version 2.1.87
ATI4 - Built on 02/29/2008 15:13:34
ATI5 - 2.1.87, HDA MB, HDA, A35 S-Rev:2 L-Rev:3, 19
ATI6 - OK
ATI7 - HDA MB
ATQ0V1E0 - OK
AT+GMM - H.324 video-ready rev. 1.0
AT+FCLASS=? - 0,1
AT#CLS=? - COMMAND NOT SUPPORTED
AT+GCI? - +GCI:B5
AT+GCI=? - +GCI:(00,01,02,04,06,07,09,0A,0B,0C,0D,0E,0F,10,11,12,14,15,16,19,1A,1B,1D,1E,1F,20,21,22,23,24,25,26,27,29,2B,2D,2E,2F,31,32,33,35,36,37,38,3C,3D,40,41,43,44,45,46,47,48,49,4B,4C,4D,4E,4F,50,51,52,53,54,57,58,59,5A,5B,5E,5F,61,62,63,64,66,68,69,6A,6B,6C,6D,6F,70,72,73,74,77,78,7A,7B,7C,7D,7E,7F,80,81,82,83,84,85,86,87,88,89,8A,8B,8C,8D,8E,8F,90,93,96,97,98,99,9B,9C,9F,A0,A1,A3,A4,A5,A6,A7,A8,A9,AA,AC,AD,AE,B2,B3,B4,B5,B6,B7,B8,BB,BC,BF,C1,C2,C4)
ATI1 - OK
ATI2 - OK
ATI3 - Agere SoftModem Version 2.1.87
ATI4 - Built on 02/29/2008 15:13:34
ATI5 - 2.1.87, HDA MB, HDA, A35 S-Rev:2 L-Rev:3, 19
ATI6 - OK
ATI7 - HDA MB
--------------------------------------

I know how to get a text file through the GUI, but I was hoping to pass this file to the temp folder by command line then I could parse the data from it.


Report •

#7
March 3, 2010 at 08:55:26
The above information only applies to a 56K analogue Modem. Has no relevance at all to a broadband Modem.

You can only get this information via a terminal application where you use the AT commands. That long since I used an analogue modem I can't remember the commands but the manual should give to and indication of which one to use.

You will not get this information from a command prompt by itself.

Load up Hyperteminal. Make sure you are connected to the Modem.

You may have to type AT +++ which puts the Modem into local mode.

You can do this by just typing AT. The Modem will return OK

Then type ATi11

http://www.modemsite.com/56k/sv92p.asp

Stuart


Report •

Ask Question