![]() ![]() I took the easy way and used RAS to handle the dialing. Dialingįor dialing, there are two ways: either opening the "Huawei Connect - 3G Modem" port and issue a dial command, or letting RAS do the job for you. An instance of CDummyModem is first created, then the modem model is identified and the appropriate class is constructed for that modem. I used factory design pattern to select the correct class to load dynamically depending on the installed modem. I have tried to keep everything as object oriented as possible so the code can be reusable and easy to maintain, because not all manufacturers use the same set of commands. We are only interested in two ports: the "Huawei Connect - 3G Modem" port which is the modem port where normal connecting and disconnecting commands should be invoked (RAS should do this for us), and the "HUAWEI Mobile Connect - 3G PC UI Interface" port that the modem uses for sending events like signal quality, signal mode, etc. HUAWEI Mobile Connect - 3G PC UI Interface (COM #) HUAWEI Mobile Connect - 3G Application Interface (COM #) ![]() In my case with a Huawei modem, you should see the following in the device manger: Before we get started, you need to successfully install the modem, and you should notice after installing the modem that it usually adds three ports: one for the modem and the other two for application interface. ![]() BackgroundĪll my work and testing was on a Huawei modem, but things shouldn't change much with other modems. ![]() There have been a lot of great articles that guide you how to write an internet dialer for regular modem (and most of them work for 3G modems too) but some information is missing, for example, signal strength, connection mode (GSM, GPRS, EDEG, HSDPA, etc.) and other information which is wireless modem related. Many cellular phones these days have 3G modems built into them. It allows you to get broadband internet access anywhere you can get a cell-phone signal. This code was developed using VS2008 SP1.Ī wireless 3G modem is a type of modem which connects to a cellular network instead of to the land line telephone system. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |