我已经安装了gammu 1.33.0-3
和gammu-smsd 1.33.0-3
。当启动gammu并向SQL-Queue中注入一些消息时,消息正在被发送。然而,在第一个短信没有工作了,我需要kill -9
gammu,以便能够再次启动它。
请看下面的信息。如果有人能帮忙就太好了。
root@sms ~ $ gammu identify
Device : /dev/ttyUSB0
Manufacturer : Huawei
Model : unknown (K3765)
Firmware : 11.126.03.06.00
IMEI : 358...
SIM IMSI : 262...
发送第一条短信时,一切正常,但gammu-smsd
似乎随后直接中断。
strace显示gammu-smsd
在发送第一条短信后的奇怪行为。似乎gammu-smsd
被困在做/etc/localtime
的事情。屏幕上充斥着这些条目。
nanosleep({1, 0}, 0x7fffbacc4fa0) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, 0x7fffbacc4fa0) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, 0x7fffbacc4fa0) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, 0x7fffbacc4fa0) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[...] repeats for hundreds of times..
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 357) = 357
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(4, "-1 3SELECT `ID`, `InsertIntoDB`"..., 305) = 305
read(4, "1 14+ 23def5gammu6outbox6outbo"..., 16384) = 325
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 202) = 202
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(4, "222 3UPDATE outbox SET `SendingT"..., 150) = 150
read(4, "0 1 1 2 (Rows matched: 1 Cha"..., 16384) = 52
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[...] repeats for hundreds of times..
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 229) = 229
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(4, "255 3SELECT `Text`, `Coding`, `U"..., 177) = 177
read(4, "1 1v/ 23def5gammu6outbox6outbo"..., 16384) = 936
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 66) = 66
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 71) = 71
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 63) = 63
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 87) = 87
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 131) = 131
write(5, "AT+CSCA?r", 9) = 9
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
select(6, [5], NULL, NULL, {0, 50000}) = 1 (in [5], left {0, 46166})
read(5, "AT+CSCA?r", 65536) = 9
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
select(6, [5], NULL, NULL, {0, 50000}) = 1 (in [5], left {0, 49778})
read(5, "rn+CSCA: "+491770610000",145rnrn"..., 65536) = 36
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 63) = 63
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 81) = 81
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 57) = 57
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 68) = 68
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 68) = 68
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 89) = 89
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 131) = 131
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 131) = 131
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 131) = 131
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 69) = 69
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 104) = 104
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 111) = 111
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 86) = 86
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 90) = 90
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 65) = 65
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 70) = 70
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 80) = 80
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 73) = 73
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 87) = 87
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 131) = 131
write(5, "AT+CBCr", 7) = 7
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
select(6, [5], NULL, NULL, {0, 50000}) = 1 (in [5], left {0, 49418})
read(5, "AT+CBCr", 65536) = 7
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
select(6, [5], NULL, NULL, {0, 50000}) = 1 (in [5], left {0, 49905})
read(5, "rn+CBC: 2,0rnrnOKrn", 65536) = 19
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 61) = 61
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 64) = 64
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 57) = 57
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 68) = 68
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 68) = 68
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 89) = 89
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 131) = 131
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 131) = 131
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 73) = 73
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 86) = 86
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 63) = 63
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 63) = 63
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 79) = 79
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 80) = 80
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 78) = 78
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 87) = 87
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
write(3, "Wed 2015/07/08 00:05:51 gammu-sm"..., 131) = 131
write(5, "AT+CSQr", 7) = 7
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
select(6, [5], NULL, NULL, {0, 50000}) = 1 (in [5], left {0, 46575})
read(5, "AT+CSQr", 65536) = 7
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
select(6, [5], NULL, NULL, {0, 50000}) = 1 (in [5], left {0, 49808})
read(5, "rn+CSQ: 11,99rnrnOKrn", 65536) = 21
<标题> 配置文件 /root/.gammurc
[gammu]
port = /dev/ttyUSB0
model =
connection = at
synchronizetime = yes
logfile = /var/log/sms/gammu.log
logformat = nothing
use_locking = no
gammuloc =
/etc/gammu-smsdrc
# This is a sample Gammu SMSD configuration file. It's required for gammu-smsd,
# see gammu-smsdrc(5) for documentation.
# Gammu configuration, this section is like section "gammu" in "gammurc" file,
# see gammurc(5) for documentation.
[gammu]
device = /dev/ttyUSB0
connection = at
[smsd]
Service = sql
Driver = native_mysql
User = xxx
Password = xxx
PC = localhost
Database = xxx
PIN =
LogFile = /var/log/sms/gammu-smsd
debuglevel = 255
PhoneID = UMTSStick
receive = 0
标题>看到SMSD日志也会很好,但我认为这是1.35.0中已经修复的错误,所以请升级Gammu。