Is there any way to send diagnostic AT commands to a conencted Modem?

N

News123

Hi,

I';m having an HSDPA/GPRS modem.

The modem is used by the ras service in order to manage a TCP ip connection.

I wondered whether there is any API, which allows dispatching AT
commands and recevng their responsed while the modem is connected to the
network.

The reason I am asking is very simple.

I would like to send some AT commands in order to query the modem status?
I'd hope to get more details about the connection status and the sigfnal
quality than I get via the normal RAS API)


Is this possible within .NET (or with C)

I am looking for something like either a virtual COM interface for
control commands or a multiplexing API

Thanks in advance for any suggestions of how to tackle the problem.


N
 
P

Peter Duniho

News123 said:
Hi,

I';m having an HSDPA/GPRS modem.

The modem is used by the ras service in order to manage a TCP ip connection.

I wondered whether there is any API, which allows dispatching AT
commands and recevng their responsed while the modem is connected to the
network. [...]

..NET has APIs for both network and serial i/o. However the modem is
connected to your computer, you can use one of those APIs to communicate
with the modem and send it whatever string you want, including AT commands.

Note, of course, that once a modem has connected and is being used to
move data back and forth, you usually will have to invoke some special
"escape mode" to temporarily suspend the remote link and issue commands.
But that part isn't really a .NET or C# question.

Pete
 
N

News123

Hi Pete,

Peter said:
News123 said:
Hi,

I';m having an HSDPA/GPRS modem.

The modem is used by the ras service in order to manage a TCP ip
connection.

I wondered whether there is any API, which allows dispatching AT
commands and recevng their responsed while the modem is connected to the
network. [...]

.NET has APIs for both network and serial i/o. However the modem is
connected to your computer, you can use one of those APIs to communicate
with the modem and send it whatever string you want, including AT commands.

Note, of course, that once a modem has connected and is being used to
move data back and forth, you usually will have to invoke some special
"escape mode" to temporarily suspend the remote link and issue commands.
But that part isn't really a .NET or C# question.

I can open a device twice?

What I'd really like to achieve is tu use rasdial to build up an ip
connection and while the connection is up
send some diagnostic commands to the modem to ask how it's doing?

This requires some way of multiplexing my question is mostly about this
multiplexing.

The SW delivered witht the modem can for exammple display the signal
quality and stay connected.
However I don't know how they implemented it.
Do they just use their own library to multiplex or is there some
'standard' windows way of multiplexing, either as DLL or as .NET library

Hope this clarifies somehow my initial post.



bye

N
 
P

Peter Duniho

News123 said:
I can open a device twice?

Sorry…I somehow overlooked that your own program isn't running the
original connection.
What I'd really like to achieve is tu use rasdial to build up an ip
connection and while the connection is up
send some diagnostic commands to the modem to ask how it's doing?

This requires some way of multiplexing my question is mostly about this
multiplexing.

The SW delivered witht the modem can for exammple display the signal
quality and stay connected.
However I don't know how they implemented it.
Do they just use their own library to multiplex or is there some
'standard' windows way of multiplexing, either as DLL or as .NET library

I suspect that the modem vendor's software is either built into the
driver, or involves itself with the driver somehow. But I don't know
that for sure; I suppose it's possible that there's some Windows API
that is specifically designed for that.

That said, I really doubt that if such an API exists, it's exposed in
..NET in any real fashion. At best, it could be something you might find
in WMI, which is accessible via .NET but only in a way such that you
need to already know the unmanaged WMI API you're trying to use first.
And it doesn't really seem like the sort of thing that is likely to be
in WMI (but I suppose no harm in you investigating to see).

In other words, you will likely get a much better, more useful reply if
you post your question in a newsgroup where questions about that
particular topic are pertinent to the newsgroup.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top