简体   繁体   English

通过与PC连接的手机发送短信

[英]sending sms through mobile connected with pc

I am trying to develop the application which, any mobile is connected with PC and needs to send SMS through the mobile one by one, software is used only to connect the mobile and type the message. 我正在尝试开发一个应用程序,该应用程序的任何移动设备都与PC连接,并且需要通过移动设备一一发送SMS,软件仅用于连接移动设备并键入消息。

When the send button is clicked the message should send through mobile not through any modems. 单击发送按钮后,消息应通过移动设备而不是通过任何调制解调器发送。

I have tried to search everywhere, but I couldn't find anything. 我试图在任何地方搜索,但找不到任何东西。

Can anybody guide me on how to proceed? 有人可以指导我如何进行吗?

Thanks in advance. 提前致谢。

If you want to do it on your own without using a sms-library you can open the modem in handset through a serial port and send out hayes at-commands for sms-operation. 如果您希望自己不使用短信库而自己做,则可以通过串行端口在手机中打开调制解调器,并在发出短信指令时发出麻烦。 Before you program you can try it using a terminal program. 在编程之前,您可以使用终端程序进行尝试。

Example

; Send message to "0170 00000"  (Ctrl+Z to finish and send the message)
AT+CMGS="017000000" 
> This is a SMS Test!!^Z

+CMGS: 3 ; OK, message gone

Note: these at-commands are not supported on every handset. 注意:并非每个手机都支持这些命令。 Maybe the handset needs additional configuration through extra at commands (set textmode, set sms-gateway, ...) 也许手机需要通过额外的at命令来进行其他配置(设置文本模式,设置sms-gateway等)

Several sms hayes related commands are described in http://www.cellular.co.za/at_etsi.htm . http://www.cellular.co.za/at_etsi.htm中描述了几个与sms hayes相关的命令。

Yes, absolutely you can send sms through your pc connected with your cell phones. 是的,绝对可以通过与手机连接的PC发送短信。 "Nokia PC Suite" is the only software; “诺基亚PC套件”是唯一的软件; after installing software in your computer, connect your Nokia handset by usb cable with computer and select pc suite option. 在计算机中安装软件后,通过USB电缆将诺基亚手机与计算机连接,然后选择“个人计算机套件”选项。 After then launch Nokia PC Suite. 之后,启动诺基亚PC套件。 Now there u go. 现在你去了。

What you are trying to do is difficult. 您想做的事很困难。 It is difficult not because the programming is difficult, but because there are restrictions (security!) from the carrier side and from the mobile manufacturer side. 困难不是因为编程困难,而是因为运营商方和移动制造商方都有限制(安全!)。

To be able to send messages from a mobile device connected to a PC, the mobile device must provide access to the internal functions its OS uses to deliver those SMSs. 为了能够从连接到PC的移动设备发送消息,该移动设备必须提供对其操作系统用来传送这些SMS的内部功能的访问权限。 They could be low level modem commands, or a high level API; 它们可以是低级调制解调器命令,也可以是高级API。 but in any case it will depend on the device manufacturer SDK. 但无论如何都将取决于设备制造商的SDK。

If you want to type more efficiently, then maybe a mobile device with support for a bluetooth keyboard is a good idea. 如果您想更有效地键入内容,那么支持蓝牙键盘的移动设备也许是个好主意。

I guess that depends strongly on the used mobile phone. 我想这很大程度上取决于所使用的手机。 I don't think there's a generic solution for all manufacturers. 我认为并非所有制造商都有通用的解决方案。 And such feature is probably hardly documented. 而且这种功能可能几乎没有记载。

However, I'm not sure, if this is worth the effort at all, because eg Nokia provides the software "Ovi Suite" (or older PC Suite), which already supports sending SMS via connected phone. 但是,我不确定是否值得这样做,因为例如诺基亚提供了软件“ Ovi Suite”(或更旧的PC Suite),该软件已经支持通过连接的电话发送SMS。 I think there are similar programs from other manufacturers. 我认为其他制造商也有类似的计划。

It is possible to send SMS from a computer via a connected phone, but the phone itself will be the modem (I assume you don't want to connect another device for SMS). 可以通过连接的电话从计算机发送SMS,但是电话本身就是调制解调器(我想您不想连接其他设备发送SMS)。 You can see this question , this question and (possibly) GSMComm for more info 您可以查看此问题该问题以及(可能) GSMComm了解更多信息

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM