IMbnInterface mobileInterfaces = mbnInfMgrInterface.GetInterfaces() as IMbnInterface IMbnInterfaceManager mbnInfMgrInterface = mbnInfMgr as IMbnInterfaceManager MbnInterfaceManager mbnInfMgr = new MbnInterfaceManager() I'll post up example code for the main bits (Reading connection status, configuring the connection, checking the SIM status) as answers the code is a little too long to go into the question, annoyingly.Ĭonfiguring a connection programmatically (you will need the APN details): try Update – I've got this working on a range of different Win 7 / Win 8 devices now. NET framework?Īlternatively, does anyone know of a Windows 8 SDK which contains a Mobile Broadband API like the Windows 7 one I'm currently using? Is there a generic way to read the mobile broadband connection properties using the. I've found a way to do this using the Mobile Broadband API part of the Windows 7 SDK (see here and here), however this appears to be OS specific as it doesn't work on Windows 8 – or at least not with the device I have here. get the signal strength, and the carrier name (e.g. Now, what I need to do is read the connection status of this Mobile Broadband connection i.e. We will be moving onto a different device (likely a full Windows 8-based tablet) at some point in the future. The data connection is configured as a normal mobile broadband connection in Windows (so Windows manages the connectivity itself), and the connection shows up in Control Panel > Network and Internet > Network Connections and it works fine – the application is able to communicate over the internet with our web service. NET Framework 3.5) currently running on full Windows 7 tablets, which have a 3G module built in that is used for data connectivity. We have a Windows Forms application (written in C#.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |