我正在使用带有Raspibian的Raspberry PI3。我可以发送短信,但从未收到短信。 我正在使用华为E3131 UMTS Stick。
gammu-detect提供以下输出:
[gammu]
device = /dev/ttyUSB0
name = Phone on USB serial port HUAWEI
HUAWEI_Mobile connection = at
[gammu1]
device = /dev/ttyUSB1
name = Phone on USB serial port HUAWEI HUAWEI_Mobile
connection = at
[gammu2]
device = /dev/ttyUSB2
name = Phone on USB serial port HUAWEI HUAWEI_Mobile
connection = at
sudo gammu-smsd-monitor
gammu-smsd-monitor[29508]: Mapped POSIX RO shared memory at 0x76fb5000
Client: Gammu 1.39.1 on Linux, kernel 4.9.35-v7+ (#1014 SMP Fri Jun 30 14:47:43 BST 2017) compiler GCC 4.9
PhoneID:
IMEI: 862570023288227
IMSI: 262011101627400
Sent: 0
Received: 0
Failed: 0
BatterPercent: 0
NetworkSignal: 18
已安装以下版本:
Raspbian:8.0 smsd -Version:版本3.1.15
这是我的smsd.conf文件:
devices = GSM1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
logfile = /var/log/smstools/smsd.log
loglevel = 7
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
stats = /var/log/smstools/smsd_stats
receive_before_send = no
autosplit = 3
[GSM1]
device = /dev/ttyUSB0
incoming = yes
baudrate = 115200
report_device_details = yes
check_memory_method = 3
[GSM2]
device = /dev/ttyUSB1
incoming = yes
baudrate = 19200
[GSM3]
device = /dev/ttyUSB2
incoming = yes
baudrate = 19200
在日志文件中,只有未收到短信才没有错误。
谢谢 卡斯滕