使用 GPRS 发送短信

发布于 2024-07-25 07:43:53 字数 270 浏览 16 评论 0原文

目前,在我们的项目中,我们正在使用 GSM 系统发送和接收 SMS 消息(意味着由某些第三方 SMS 服务提供商通过 URL 发送和接收 SMS 消息)。 但现在我们需要将其迁移到GPRS系统。

因此,我们需要用GPRS系统取代GSM。 我们不知道架构如何 将。 在 GSM 中,消息是使用 HTTP 通过 URL 从应用程序发送和接收的 蜜蜂。

我们如何使用GPRS来发送和接收消息,请告诉我们如何做到这一点。

提前致谢 , 马赫什

In our project presently we are sending and receiving SMS messages using GSM system(mean, by some third party SMS service provider through URL ). but now we need to migrate it to GPRS system.

that, we need to replace GSM by GPRS system. we do not know how the architecture
will be. In GSM message was send and received through URL from out application using HTTP
API's.

How can we use GPRS to send and recieve messages , please tell the way to do it.

thanks in advance ,
Mahesh

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

懷念過去 2024-08-01 07:43:53

首先,GPRS 永远无法发送短信。 您可以使用 GPRS 连接到任何可以为您发送短信的 SMS 网关,GPRS 基本上是 GSM 网络的互联网服务,它有完全不同的用途。 GPRS 是 HTTP 传输,仅此而已

我请求您解释一下您希望如何发送短信的用例场景? 鉴于此,这里的人可以更好地帮助您并提出正确可行的解决方案。

First, GPRS can never send an SMS. You can connect to any SMS gateway using GPRS which can send SMS for you, GPRS is basically internet service for GSM networks, it has a different purpose altogether. GPRS is HTTP transport, nothing more.

I request you to explain the use-case scenario of how you want to send an SMS ? Given this people here can better help you and come up with correct feasible solution.

烟花易冷人易散 2024-08-01 07:43:53

基本上,您需要配置您的设备,以便它可以“拨号”GPRS 连接。 这就像在 PC 上拨打调制解调器一样。 然后,您应该能够使用 TCP 或 UDP 发送和接收数据,就像使用任何其他“正常”应用程序一样。 当您尝试使用 TCP 连接到主机时,某些设备会自动“拨号”GPRS 连接,而对于其他设备,您必须手动拨号。

您现在只需要考虑“如何在我的设备和服务器之间使用 TCP 或 UDP 交换消息”。

Basically you will need to configure your device so that it can "dial" an GPRS connection. That is like dialing a modem on a PC. Then, you should be able to send and receive data using TCP oder UDP like you would do with any other "normal" application. Some devices "dial" the GPRS connection automatically when you try to connect to a host using TCP, for other devices, you'll have to dial manually.

You just need to think in terms of "how can I exchange messages using TCP or UDP between my device and my server" now.

开始看清了 2024-08-01 07:43:53

对于基于 SAGEM HiLo 的 GPRS Modem,您可以使用命令

AT+CGSMS=2
// 这意味着首选 SMS 数据包域,如果不可用,则使用电路交换

For SAGEM HiLo based GPRS Modem, you can use command

AT+CGSMS=2
// Which means Prefer Packet Domain for SMS, if not available use Circuit Switched

泪之魂 2024-08-01 07:43:53

我猜测您使用的是 SMS 网关服务提供商,它可以通过 HTTP/GET 或 POST 将传入的短消息路由到您的目标 URL。

我的应用程序同时使用短信网关服务和直接 GPRS 连接。 在这两种情况下,它们都会发送日志信息。 不同之处在于使用 GPRS 不需要网关服务(因为您不通过 GPRS 发送短信)。

您只需要设置调制解调器可以连接的套接字服务器。 幸运的是,我找到了一个带有内置 python 解释器的调制解调器,因此编写客户端非常容易(顺便说一句,套接字服务器也是用 python 编写的)。

What I'm guessing that you are using is a SMS gateway service provider which can route incoming short messages via a HTTP/GET or POST to your destination url.

I'm using both a sms gateway service and a direct GPRS connection for my applications. In both cases they send log information. The difference is that using GPRS does not require a gateway service (since you are not sending short messages over gprs).

You just need to set up a socket server that the modem can connect to. Fortunately I found a modem with a built-in python interpreter so it was very easy to write a client (not so incidentally the socket server was also written in python).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文