Gammu RaspberryPi 忽略传入消息

问题描述

对于我的一个学校项目,我需要在我的树莓派上发送和接收短信。

首先我安装了 Gammu 来发送消息,然后安装了 Gammu-smsd 来发送和接收。

我可以轻松发送消息,但接收的消息根本不会存储

这是我的日志文件gammu-smsd.log

正如你所看到的,gammu 忽略不正常的短信

经过一些研究,我发现它可以来自 CNMI 所以我在我的配置文件添加并尝试了多个 CNMI 配置,但没有人工作。 我也尝试自己编译 git projet 但结果相同 我已经没有办法解决这个问题了。

这是我的配置文件 /etc/gammu-smsrc

# Configuration file generated by gammu-detect.
# Please check The Gammu Manual for more information.
[gammu]
GammuCoding = utf8
GammuLoc = fr_FR.UTF8
device = /dev/ttyUSB0
name = Phone on USB serial port HUAWEI HUAWEI_Mobile
connection = at
atgen_setCNMI=1,2,0
[gammu1]
GammuCoding = utf8
GammuLoc = fr_FR.UTF8
device = /dev/ttyUSB1
name = Phone on USB serial port HUAWEI HUAWEI_Mobile
connection = at
atgen_setCNMI=1,0
[gammu2]
GammuCoding = utf8
GammuLoc = fr_FR.UTF8
device = /dev/ttyUSB2
name = Phone on USB serial port HUAWEI HUAWEI_Mobile
connection = at
atgen_setCNMI=1,0
# SMSD configuration,see gammu-smsdrc(5)
[smsd]
service = files
logfile = /var/log/gammu-smsd.log
# Increase for debugging information
debuglevel = 0
RunOnReceive = /usr/bin/sms/slap-tickles.sh
PIN = XXXX
# Paths where messages are stored
inBoxpath = /var/spool/gammu/inBox/
outBoxpath = /var/spool/gammu/outBox/
sentsmspath = /var/spool/gammu/sent/
errorsmspath = /var/spool/gammu/error/

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)