Android mobile as GSM Modem to send/receive SMS on PC?

送分小仙女□ 提交于 2019-12-07 03:29:00

问题


Is it possible to use an Android mobile device as a GSM modem with PC?

I am developing apps under .net to make send/reieve SMSs and so on. Now I'd like to connect my android devices via USB to my PC and use it as a GSM modem to communicate with it.

Here is the Reference site which I am following to create .NET application for this purpose.

and I am getting the error here

 try
 {
 Phone_Name.Text = comm.IdentifyDevice().Manufacturer.ToUpper().ToString();
 Phone_Model.Text = comm.IdentifyDevice().Model.ToUpper().ToString();
 Revision_Num.Text = comm.IdentifyDevice().Revision.ToUpper().ToString();
 Serial_Num.Text = comm.IdentifyDevice().SerialNumber.ToUpper().ToString();
 }
catch (Exception e50)
{
MessageBox.Show("Error Retriving COM Port Phone Information", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
 }

It says "Error Retriving COM port Phone Information".

Is there any kind of driver/app/etc to handle it?

Environment: Windows XP/Windows 7 Mobile to test: Q Mobile Noir A-10


回答1:


Yes, I think you can do it. Just install your cellphone drivers and then connect your mobile to PC. (Usually there are drivers in the mobile packages disks.) Then open "Phone and Modem" from your windows control panel. Then click on "Modems" tab. Now you can see all of your modems and their COM number. Use you cellphones COM in your .Net application. If you can not see you cellphones name as a modem in "Phone and Modem", it mean that you can not use you cellphone as a GSM modem. (I'm sorry for my bad English speaking)




回答2:


If you are wishing to communicate using your phone, there are apps to install on your phone and connect it to your PC.

But if you are wishing to use GSM API to send instructions to your phone Arma's answer is correct but theoretically you can have a smart phone application to that takes the phone USB under control and emulates/imitates a GSM modem.



来源:https://stackoverflow.com/questions/17610489/android-mobile-as-gsm-modem-to-send-receive-sms-on-pc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!