手机端口0接收短信

发布于 2024-07-30 12:49:50 字数 159 浏览 9 评论 0原文

我正在将 J2ME 应用程序配置为在收到 SMS 时从推送注册表获取事件。 在 SMS 消息到达收件箱之前,我能否访问该消息? 我读到发送到移动设备 port0 的消息会直接发送到本机收件箱,我们无法访问它。 是否有任何方法可以转移甚至嗅探这些消息,以便从 J2ME 应用程序内对它们执行操作。

I am configuring my J2ME app to get an event from the push registry on receipt of an SMS.
Would I be able to access the SMS message, before it reaches the inbox?
I have read that messages sent to port0 of the mobile go directly to native inbox and we can't access it. Is there any way of diverting or even sniffing these messages so as to perform an operation on them from within the J2ME app.

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

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

发布评论

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

评论(1

忘年祭陌 2024-08-06 12:49:50

根据讨论,无法接收短信在进入收件箱之前,在端口 0 上使用 MIDlet。 虽然我不熟悉
无线消息 API,其他各种帖子似乎都表明您也无法访问收件箱(我可能是错的)。

我认为您可以做的是打开与电话调制解调器部分的串行连接并侦听 UR 代码(主动响应,“事件”),指示
收到一条新短信,请阅读它,如果它符合您的条件,请使用 AT 命令将其删除(从收件箱中,您仍然保留副本)。
请参阅 AT+CNMA 命令(新消息确认)以及标准< /a>(大多数手机AT命令都是通过27.007<中指定的方式/a>)。


对于以下内容,我不知道 if if 是否有意义/是否可能。 我只是为了完整性而提到它。

至于在短信到达收件箱之前对其进行处理,我认为
唯一的选择(没有将其发送到您侦听的特定端口)是
SIM 应用工具包(可以做很多事情),尽管那是很远的事情J2ME 的范围非常晦涩且非常不平凡。 只有当你真的非常绝望时才走这条路。

According to this discussion, it is not possible to receive a SMS on port 0 using a MIDlet before it enters the inbox. And while I am not familiar with the
Wireless Messaging API, various other posts seems to indicate that you cannot access the inbox either (I might be wrong on this).

What I think you could do instead is to open a serial connection to the modem part of the phone and listen for an UR code (Unsolicited Response, "events") indicating
that a new SMS is arrived, read it and if it matches your criteria delete it (from the inbox, you still have your copy) using AT commands.
See the AT+CNMA command (New Message Acknowledgement) and similar in the standard (most mobile phone AT commands are by the way specified in 27.007).


For the following I have no idea if if even makes sense/is possible. I only mention it for completeness.

As for processing the SMS before it arrives in the inbox I think the
only option (without it having being sent to a specific port that you listen for) is
SIM application toolkit (which can do a hell of a lot of things), although that is way outside the scope of J2ME and highly obscure and highly un-trivial. Only follow this route if you are really, really desperate.

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