GPRS data monotoring

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello

I'm deveopling a manage application for smartphone and windows CE .NET.

I need to monitor GPRS data the application. I've some problem to find some
helpfull API for this. I hope somone here can give me a clue where to look?:)
 
What do you want to monitor? Availability of GPRS, current connected state,
IP traffic, signal strength, all of the above?

Peter
 
Hei Peter

Thanks for a fast reply. I basically want to monitor IP traffic, amout of
bytes sent/recived.
 
Hi Peter,

How it is possible to know the availability of GPRS, the state of the
connection and the signal strength?

What API I have to use?

Thanks
 
You should be able to query these items via TAPI functions, which you'll
need to call with P/Invoke (Platform Invoke) and create definitions for the
various structures returned.
You'll need the following functions:-

lineInitializeEx - initialises TAPI
lineOpen - open a handle to the phone line object
lineGetDevStatus - to retrieve signal strength and availability
lineGetGPRSClass - will allow you to determine if GPRS is supported on the
line
lineClose - close the handle

Seperately you can use the Connection Manager APIs (There is a .NETCF
wrapper for these as part of OpenNETCF.Net.dll (www.opennetcf.org/sdf/). You
can query the connection status to see if the device has an available
network connection.

Peter
 
Back
Top