如何使用 minicom 通过短信与我的 USB 调制解调器进行通信?
我在 Linux 上使用华为 e355 USB 调制解调器。我想从我的手机发送 USB 调制解调器文本,并希望我的 USB 调制解调器将其存储在某个日志文件中,并可能进行通信。我该怎么做呢?
我阅读了很多文章,但它们更多的是关于设置调制解调器而不是以这种特定方式使用它。
I am using a huawei e355 usb modem on linux. I would like to send my usb modem texts from my cell phone and would want my usb modem to store it in some log file and may be communicate back. How do I go about doing this?
I went through a lot of articles but they were more about setting up the modem rather than using it in this particular way.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
满足您需求的最佳选择是 Gammu。您可以在 http://wammu.eu/ 处下载。您也可以通过您的包管理器获取它。
有一个可用的 python API,可以使与文本的交互变得更容易。
根据您的需要,我建议您运行 gammu-sms 守护进程 (gammu-smsd) 并拥有一个与短信内容交互的脚本。检查 /etc/gammu-smsdrc 文件中的 RunOnReceive 变量。
The best option for your needs would be Gammu. You can download it here http://wammu.eu/. You can also get it over your paket manager.
There is a python API available which makes interacting with texts easier.
For your needs I would recommend you run the gammu-sms daemon (gammu-smsd) and have a script which interacts with the contents of your sms. Check the RunOnReceive variable in the /etc/gammu-smsdrc file.
尝试 http: //www.question-defense.com/2010/07/27/use-minicom-for-linux-modem-dialup-at-command-testing。
这允许您从调制解调器发送和接收文本;然后,您可以设置回调以了解收到短信后要执行的操作。我目前也在做一些类似的事情,所以我没有完整的答案,但这应该可以帮助你开始。
Try http://www.question-defense.com/2010/07/27/use-minicom-for-linux-modem-dialup-at-command-testing.
This allows you to send and receive texts from the modem; you can then set a callback for what to do once a text is received. I'm currently working on something along these lines, too, so I don't have a complete answer, but this should get you started.