简体   繁体   English

如何从连接到PC的移动设备发送和读取短信

[英]how to send and read SMS from mobile attached to PC

I am building a Windows Desktop software that will respond to SMS request and sending a SMS as reply automatically. 我正在构建一个Windows桌面软件,它将响应SMS请求并自动发送短信作为回复。

The software is ready and working just fine but it works only and only with Nokia Mobiles and the prerequisite is that Nokia's PC Suit has to be installed first before my app can work. 该软件已准备就绪,工作正常,但它只适用于诺基亚手机,前提是必须首先安装诺基亚的PC套装才能使我的应用程序正常工作。

But now my customer wants to change his mobile so he wants me to change programming so that it works with any mobile. 但现在我的客户想要更换他的手机,所以他希望我改变编程,以便它适用于任何手机。

I am at loss as to how to do this? 我不知道该怎么做?

Can someone please help me here. 有人可以帮我这里。 I am ready to recode the whole app if required. 如果需要,我准备重新编写整个应用程序。

My preferred platforms are Delphi, VB.NET and VB6. 我首选的平台是Delphi,VB.NET和VB6。

There are extended AT commands that you can send to your phone's virtual serial interface that tend to work well on many phones. 有扩展的AT命令可以发送到手机的虚拟串行接口,这些命令在许多手机上都可以正常工作。 See this for more info: http://www.developershome.com/sms/howToSendSMSFromPC.asp 有关详细信息,请参阅此页面: http//www.developershome.com/sms/howToSendSMSFromPC.asp

Now all you need to do is find serial drivers for the supported phones. 现在您需要做的就是找到支持的手机的串行驱动程序。 This used to be really simple, but is harder these days. 这曾经很简单,但现在更难。 Bottom line is, it is probably your best option. 最重要的是,它可能是你最好的选择。

"Any mobile"? “任何手机”? That's a tall order. 这是一个很高的要求。 I'm not sure your customer knows what he's asking for. 我不确定你的客户是否知道他要求的是什么。 Different types of phones are different and there isn't some way to make the same program run on all of them. 不同类型的手机是不同的 ,并没有一些方法可以在所有手机上运行相同的程序。

What you can do, though, is make it run on any supported mobile. 但是,您可以做的是让它在任何受支持的移动设备上运行。 You can keep most of your existing PC-side code; 您可以保留大部分现有的PC端代码; only the part that talks to the phone has to change. 只有与手机通话的部分必须改变。 Encapsulate that into some sort of interface in a separate module, and that's your specific code for talking to Nokia phones. 将其封装到单独模块中的某种界面中,这是您与诺基亚手机通话的具体代码。 Your app now supports Nokia. 您的应用现在支持诺基亚。

Then figure out how to do the same thing for an Android, or a Blackberry or an iPhone. 然后弄清楚如何为Android,Blackberry或iPhone做同样的事情。 Build those specific parts into their own modules that all implement the same basic interface. 将这些特定部件构建到自己的模块中,这些模块都实现相同的基本接口。 With each new phone type you figure out how to talk to, your list of supported devices will grow. 通过每种新手机类型,您可以找到与之对话的方式,您支持的设备列表将会增长。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从Windows Mobile 10中的后台任务中读取SMS - How to Read SMS from background task in Windows Mobile 10 使用.net应用程序从移动设备读取短信? - Read sms from Mobile device with .net application? 如何在ASP.Net webForms中从Web应用程序向移动设备发送和接收短信 - How to send and receive sms from web application to mobile in ASP.Net webForms 如何使用诺基亚手机从C#应用程序发送/接收短信 - How to Send/Receive SMS Messages from C# application, using Nokia Mobile Phone 如何使用 asp.net 和 c# 从 web 应用程序向手机发送短信? - how to send sms to mobile from web application using asp.net and c#? 通过与PC连接的手机发送短信 - sending sms through mobile connected with pc 如何从任何Windows操作系统通过连接的手机发送SMS? 它应该支持android,Symbian或任何平台移动 - How to send SMS through connected mobile from any Windows OS? it should support android,Symbian or any platform mobile 使用PC通过蓝牙从PC将文件发送到Mobile - Send File Via Bluetooth from pc to Mobile With C# 从PC c#aplication向手机发送消息 - Send message to mobile from PC c# aplication 如何在Windows应用程序中使用SMTP服务器向手机发送短信? - How to send SMS to mobile using SMTP server in windows application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM