getting Gprs strength signal while sending data to internet

T

tony

Hi,

We have Wavecom modem in our device.

Im trying to get the GPRS strength signal from the modem with the command
AT+CSQ.

The problem is, I can use this command only when the gprs is NOT connected
to the internet.

I don't know if it's specific to Wavecom modem.

I wonder, how other developers refersh GPRS strength signal status in the
GUI, when the application must be always connected to internet ?

Thanks.
 
S

Scott Gifford

[...]
Im trying to get the GPRS strength signal from the modem with the command
AT+CSQ.

The problem is, I can use this command only when the gprs is NOT connected
to the internet.

I don't know if it's specific to Wavecom modem.

I haven't worked directly with GPRS modems, but it looks like they act
like AT modems, and AT modems can usually be interrupted by sending
the string "+++" to them. Generally you can send "+++", which will
suspend the data connection; send the command you want and read the
results; then send some command to restart the data connection.

Although it were surprise me if there weren't a simpler way to do
this, supported directly by the OS.

At any rate, hope this is helpful,

-----Scott.
 
P

pdr75

[...]
Im trying to get the GPRS strength signal from the modem with the command
AT+CSQ.
The problem is, I can use this command only when the gprs is NOT connected
to the internet.
I don't know if it's specific to Wavecom modem.

I haven't worked directly with GPRS modems, but it looks like they act
like AT modems, and AT modems can usually be interrupted by sending
the string "+++" to them.  Generally you can send "+++", which will
suspend the data connection; send the command you want and read the
results; then send some command to restart the data connection.

Although it were surprise me if there weren't a simpler way to do
this, supported directly by the OS.

At any rate, hope this is helpful,

-----Scott.

As a matter of fact, there is a much simpler way to get this
information - provided your OS is mobile 5 or greater.

Check the Microsoft.WindowsMobile.Status namespace. One of the system
properties that is available to be monitored is PhoneSignalStrength.
See http://msdn.microsoft.com/en-us/library/microsoft.windowsmobile.status.systemproperty.aspx

Alternatively, you can use some TAPI P/Invokes (lineGetLineDevStatus
in particular) to retrieve this information.

Cheers,
Paul
 

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