sms在移动端口0上接收 [英] sms receive on Port 0 of mobile

查看:191
本文介绍了sms在移动端口0上接收的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在配置我的J2ME应用程序,以便在收到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.

推荐答案

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

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).

我认为您可以做的是打开与手机调制解调器部分的串行连接,并侦听UR代码(未经请求的响应,事件),指示
新短信到达,读取如果它符合您的标准,请使用AT命令删除它(从收件箱中,您仍然拥有您的副本)。
参见AT + CNMA命令(新消息确认)和类似的标准(大多数手机AT命令按 27.007 )。

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).

以下我不知道是否有道理/是可能的。我只提到它的完整性。

至于处理收件箱到达收件箱之前我认为只有
选项(没有它)被发送到你听的特定端口是
SIM应用工具包(其中虽然这远远超出了J2ME的范围,而且非常模糊且非常重要,但它可以做很多事情。如果你真的非常绝望,只能沿着这条路走。

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.

这篇关于sms在移动端口0上接收的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆