通过php,AT命令发送短信 [英] Send SMS through php, AT commands
问题描述
我想使用php通过GSM网关发送SMS.我想直接将AT命令发送到调制解调器.我应该尝试与minicom或类似设备连接吗?我应该只使用短信服务器工具吗?有没有更简单的方法可以做到这一点?
I'd like to send SMS through a GSM gateway using php. I want to send AT commands directly to the modem. Should I try and interface with minicom or something similar? Should I just use sms server tools? Is there an easier way to do this?
使用Debian btw.
Using Debian btw.
此外,作为后续工作,我可以使用标准的SIM卡使用什么体面的GSM调制解调器,并且可以与上述程序配合使用.
Also, as a follow-up, what is a decent GSM modem that I can use with a standard SIM card, and that would work with the aforementioned programs.
推荐答案
在php中创建SMS管理器并不是那么容易-实际上,要使一个可靠的SMS管理器并不是那么容易,调制解调器是一个特殊的品种. SMS服务器工具易于设置,可靠且功能丰富,因此我不会打扰,也不会设置SMS工具.
It's not that easy to make an SMS manager in php - actually it's not that easy to make a reliable SMS manager at all, modems are a peculiar breed. SMS server tools is easy to set up, reliable and feature rich so I wouldn't bother and just setup sms tools.
WRT调制解调器,我认为大多数调制解调器都可以工作.我们正在使用Cinterion TC65,它们可以很好地工作,但是我相信许多其他产品也可以很好地工作.
Wrt modems, I think most should work. We are using Cinterion TC65's and they work well, but I am sure many others will work equally well.
这篇关于通过php,AT命令发送短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!