Question

We have a large number of Window Mobile Devices (Symbol MC35 & MC70). I want to write a small app that gets the device serial number and simcard serial number (not phone number). I have tryed using the Symbol SDK and I can get the Device Serial Number for the MC70s as they have a Electronic Serial Number Module. But not sure how to get the Sim Details. If i am unable to get the Device Serial Number From the MC35s can I get the IMEI number?

The porpose behind this is so I can keep a upto date record of what sim is in what handheld as any time. I am going to write the data to a registy file where SOTI Mobile Control will link it to that handheld.

Was it helpful?

Solution

See here for SIM management functions. I can't find anything for retrieving a SIM ID, if such a thing exists. I suppose that you can identify the SIM by the phone number. Is it possible two different SIMs to have the same phone number? To get the phone number there is the GetPhoneNumber sample in the Windows Mobile SDK.

As for identifying the phone, the correct way is to read the Device ID. Again there is the GetDeviceID sample in the SDK (Both are in Common\CPP\Win32). Copying from the sample's read me:

GetDeviceUniqueID protects the privacy of a device. Multiple applications need to use a device's unique identifier to communicate with servers. To protect a device's privacy, multiple servers should not be able to correlate data from the same device. GetDeviceUniqueID does not use any additional information other than the data that is provided by the application, so any application that passes in the same application data buffer will obtain the same hash. This API can be called be any application regardless of the trust level of the application.

If you want to retrieve the IMEI, see for example here.

OTHER TIPS

You're after the lineGetGeneralInfo TAPI call. You want to look at the subscriber number, which is located using the dwSubscriberNumberSize and dwSubscriberNumberOffset members of the LINEGENERALINFO structure the call returns.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top