无法使用 GSMComm 从诺基亚手机读取短信
我正在实施一个项目 使用GSMComm 库<读取和解析来自诺基亚 Xpress Music 5800 的短信< /a>
我尝试使用 GSMComm 演示:我能够获取电话信息、不同状态(例如电池/存储)并发送短信。但我无法从手机读取短信,它给出以下错误:
Error: The phone reports an unspecified error.
当设备不支持命令、命令对于当前状态无效或参数不正确时,通常会发生这种情况。 (GsmComm.GsmCommunication.CommException
)
由于我使用 DLL,所以我看不到哪些命令被发送到手机。另外,我怀疑除了读取短信的命令外,所有其他命令是否都有效。
问题:
- 主要问题:问题的可能原因是什么?
- 我知道回答上面的问题很难。那么是否有任何日志/转储/事件被记录在某个地方?我在这个领域(硬件接口)是全新的,并且需要故障排除的起点
- Stretch:如果我使用上述技术(USB 到 COMM 仿真器、GSMComm)实现,我的应用程序的可移植性是什么?肯定需要运送 GSMComm dll。但这是否意味着目标PC需要安装Ovi Suite(包含USB to COMM模拟器)?手机的便携性如何:它只能与诺基亚 Xpress Music 5800 配合使用,还是也可以与其他诺基亚手机配合使用。还是用其他手机?”
更多信息:我手机上的操作系统是 西里尔字母,如果这很重要的话。
更新了问题:因为一些问题经过一周的调查得到了解答。
更新 2:我已按照此链接中的说明进行操作。我的手机正在响应某些命令,但对其他命令却给出“错误”。有什么想法吗?
I'm implementing a project for reading and parsing SMS from Nokia Xpress Music 5800 using GSMComm library
I tried using GSMComm Demo: I'm able to get phone information, different status such as battery/storage and send SMS. But I'm not able to read SMS from the phone, it's giving following error:
Error: The phone reports an unspecified error.
This typically happens when a command is not supported by the device,a command is not valid for the current state or if a parameter is incorrect.
(GsmComm.GsmCommunication.CommException
)
Since I use DLL's I don't see which commands are being sent to the phone. Also I doubt that all other commands work, except the ones reading the SMS.
Questions:
- Main Question: what are possible causes of the problem?
- I know it's difficult to answer above question. So is there any logs/dumps/events being logged in some place? I'm totally new in this area (hardware interfacing) and need starting point for troubleshooting
- Stretch: If I implement using above technology (USB to COMM emulator, GSMComm), what's the portability of my application? Definitely GSMComm dll needs to be shipped. But does this mean that the target PC needs to have Ovi Suite (containing USB to COMM emulator) installed? What about portablity on the phone: will it work only WITH Nokia Xpress Music 5800, or will it work with other Nokia phone as well. Or with any other phone?"
More info: OS on my phone is in
Cyriliic alphabet, if that matters.
Updated the question: since some of the questions were answered after a week of investigation.
Update 2: I've followed instructions in this link. My phone is responding to some of the commands, but giving "ERROR" for others. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您使用的是第三代手机,因此您无法访问用于读取短信的 AT 命令。我建议您使用旧的诺基亚手机,以下是其中一些手机的列表:
I think you are using 3rd generation phone so that you can't access the AT commands that are used to read SMS. I advice you to use an old(er) Nokia phone, here is a list of some:
http://www.scampers.org/steve/sms/libraries.htm
我确信您已经浏览过此页面,但在底部它告诉您如何检查 GSMComm 日志。不幸的是,我从未直接使用过 GSMComm,无法告诉您问题的根本原因是什么,但请尝试检查日志。如果您还没有阅读常见问题解答,我会阅读该常见问题解答,它可能会对您提出的问题有所帮助。
就可移植性而言,如果您需要第三方模拟器来运行它,那么这必须是其他人使用您的应用程序的先决条件。任何包含您使用的代码的 GSMComm DLL 也需要进行分发,否则您的程序将无法运行。
http://www.scampers.org/steve/sms/libraries.htm
I'm sure you've gone over this page, but at the bottom it tells you how to check the logs for GSMComm. Unfortunately, I have never worked directly with GSMComm and couldn't tell you what the root cause of the problem is, but try checking the logs. If you haven't read through the FAQ, I would do so, it may shed some light on the questions you are asking.
As far as portability, if you require a third-party emulator for you to run it, that would have to be a pre-requisite for others to use your application. Any GSMComm DLLs that contain code you use would also be required for distribution or else your program won't work.