如何创建短信网关? [英] How to create an SMS gateway?
问题描述
我知道有很多第三方站点可以通过Internet发送大量SMS,但是如果我想自己创建一个,该如何处理?我知道如何使用我的手机创建SMS网关,这非常慢.还有其他创建互联网短信网关的方法吗?
我为我的雇主设计了类似的东西(尽管文本消息少得多). Linux服务器连接到蓝牙USB加密狗,用于通过RS232串行链路从实验室中的嵌入式传感器设备和Siemens TC35 GSM调制解调器接收数据.如果传感器确定存在问题,则服务器可以将消息发送到选定的员工电话,该问题也可以由C ++程序处理.此外,还有一个J2EE应用程序,该应用程序使员工可以通过网页输入消息,然后以文本消息的形式发送给他们选择的员工. J2EE应用程序将消息转储到数据库中,然后由C ++程序收集该消息,并使用AT
命令通过TC35发送该消息.这样可以使传感器问题消息始终具有优先级.
明智的编程方式没什么特别的,因为AT
命令易于理解.只要确保您的编程安全无误,就不会被垃圾邮件发送者劫持,并且调制解调器位于具有GSM/3G良好覆盖范围的房间中,并且不在地下室中.
祝你好运
I know there are lots of 3rd party sites to send bulk SMS via the internet, but if I wanted to create one myself, how would I go about it? I know how to create an SMS gateway using my mobile phone, which is very slow. Is there any other way of creating an internet SMS gateway?
I designed something similar (although for far fewer text messages) for my employer. A Linux server is connected to a Bluetooth USB dongle for receiving data from embedded sensor devices in the lab and a Siemens TC35 GSM modem via a RS232 serial link. The server can send messages to selected employees phone if the sensors determine there is a problem which is also handled by a C++ program. In addition there is a J2EE app which allows employees to enter messages via a web page that are then sent as text messages to employees they select. The J2EE app dumps the messages into a database which are then collected by the C++ program and sent using AT
commands via the TC35. It is done this way so sensor problem messages always have priority.
Programming wise it was nothing special as AT
commands are easy to understand. Just make sure your programming is secure so it can't be hijacked by a spammer and that the modem is located in a room with good GSM/3G coverage and isn't in a basement.
Oh and its also a good idea to have your program ask the GSM modem for its signal strength and other cell base station information at a regular interval and store this in a special database table. This will allow you to spot problems with your cell provider and move to another one if required. I used this information to discover that the base station I was using appeared to be going offline or having technical problems quite frequently which caused my modems message throughput to slow down to a trickle.
Good Luck
这篇关于如何创建短信网关?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!