locked
Windows Mobile Device - Get Data Transfer Stats (GPRS, WiFi, USB) RRS feed

  • Question

  • Hello all,

    I am just getting into developing for mobile devices, and I am interested in acquiring some specific data from devices running WM5 and up (CE 5.0 also helpful). Specifically, I am trying to get network stats (GPRS, WiFi, and USB) on the amount of data transfer by applications.
    For example: IE has transferred (sent+received) a total of 1234 KB. Outlook has transferred 4321 KB...etc.

    In my solution searching I have come across performance counters (I can only get stats from MY apps or .NET apps?). I have also been reading up on RIL, and TAPI functionality, but I have not been able to find anything that gives me what I need. Admittedly, I may have not been able to recognize the solution if I have somehow stumbled across it, so any push in the right direction would be greatly appreciated. I understand that there are already a variety of choices in terms of independant utilities, but I am only looking for the raw data, and the opportunity to learn by experience.


    Thanks,
    Adrian R

    Wednesday, January 27, 2010 2:35 PM

All replies

  • Hey Paul,

    Thank you for your reply. I am still unsure of the solution though; won't IOCTL_NDISUIO_NIC_STATISTICS just give me information about the TOTAL bytes transferred? I'm looking for the transfer count for each application individually.

    Thanks,

    Adrian R
    Wednesday, January 27, 2010 10:32 PM
  • Yes, after further digging it seems I am correct about the limits of NDIS filtering. At that point there would be no process-specific information for me to obtain. I have tried taking a look through RIL and TAPI but I have not found anything that might solve my problem yet.

    Adrian R
    Thursday, January 28, 2010 8:35 PM
  • I have currently come to the conclusion that I will have to create an intermediate network driver to accomplish this task. I am quite clueless about how to implement this, so any help or resource is definitely welcome. Also, if I am going down the wrong path, and there is an easier way, please inform me.

    I am considering making an LSP for winsock to try and obtain the information I require. Will this method be able to capture all that data? Is winsock used by all/majority of applications over GPRS/WiFi/ActiveSync?

    Thanks,

    Adrian R
    Tuesday, February 2, 2010 10:59 PM