gammu-smsd守护进程不发送短信

我注意到在Ubuntu上运行的gammu-smsd守护进程突然没有发送消息(我的postgresql数据库的sentitems表没有被更新)。 首先,我注意到damemon没有运行,所以我重新启动它:

$ sudo /etc/init.d/gammu-smsd start * Starting Gammu SMS Daemon gammu-smsd [ OK ] 

然后我检查了系统日志(这是我configurationgammu-smsd报告的日志):

 Jun 27 15:33:04 porkypig gammu-smsd[19267]: Configuring Gammu SMSD... Jun 27 15:33:04 porkypig gammu-smsd[19267]: SHM token: 0xffffffffce020154 (-838729388) Jun 27 15:33:04 porkypig gammu-smsd[19267]: Warning: No PIN code in /etc/gammu-smsdrc file Jun 27 15:33:04 porkypig gammu-smsd[19267]: commtimeout=30, sendtimeout=30, receivefrequency=0, resetfrequency=0 Jun 27 15:33:04 porkypig gammu-smsd[19267]: checks: security=1, battery=0, signal=1 Jun 27 15:33:04 porkypig gammu-smsd[19267]: deliveryreport = no Jun 27 15:33:04 porkypig gammu-smsd[19267]: phoneid = Jun 27 15:33:04 porkypig gammu-smsd[19268]: Using PGSQL service Jun 27 15:33:04 porkypig gammu-smsd[19268]: Connected to database: smsd on localhost. Server version: 80414 Protocol: 3 Jun 27 15:33:05 porkypig gammu-smsd[19268]: Database structures version: 11, SMSD current version: 11 Jun 27 15:33:05 porkypig gammu-smsd[19268]: Table check succeeded Jun 27 15:33:05 porkypig gammu-smsd[19268]: Starting phone communication... Jun 27 15:33:22 porkypig gammu-smsd[19268]: Error at init connection No response in specified timeout. Probably phone not connected. (14) Jun 27 15:33:22 porkypig gammu-smsd[19268]: Terminating communication No response in specified timeout. Probably phone not connected., (14, 250 times) Jun 27 15:33:22 porkypig gammu-smsd[19268]: Starting phone communication... Jun 27 15:33:32 porkypig gammu-smsd[19268]: Error at init connection No response in specified timeout. Probably phone not connected. (14) Jun 27 15:33:32 porkypig gammu-smsd[19268]: Terminating communication No response in specified timeout. Probably phone not connected., (14, 250 times) Jun 27 15:33:32 porkypig gammu-smsd[19268]: Starting phone communication... Jun 27 15:33:42 porkypig gammu-smsd[19268]: Error at init connection No response in specified timeout. Probably phone not connected. (14) Jun 27 15:33:42 porkypig gammu-smsd[19268]: Terminating communication No response in specified timeout. Probably phone not connected., (14, 250 times) Jun 27 15:33:42 porkypig gammu-smsd[19268]: Starting phone communication... Jun 27 15:33:52 porkypig gammu-smsd[19268]: Error at init connection No response in specified timeout. Probably phone not connected. (14) Jun 27 15:33:52 porkypig gammu-smsd[19268]: Terminating communication No response in specified timeout. Probably phone not connected., (14, 250 times) Jun 27 15:33:52 porkypig gammu-smsd[19268]: Going to 30 seconds sleep because of too much connection errors Jun 27 15:34:22 porkypig gammu-smsd[19268]: Starting phone communication... Jun 27 15:34:32 porkypig gammu-smsd[19268]: Error at init connection No response in specified timeout. Probably phone not connected. (14) Jun 27 15:34:32 porkypig gammu-smsd[19268]: Terminating communication No response in specified timeout. Probably phone not connected., (14, 250 times) Jun 27 15:34:32 porkypig gammu-smsd[19268]: Going to 30 seconds sleep because of too much connection errors Jun 27 15:35:02 porkypig gammu-smsd[19268]: Starting phone communication... Jun 27 15:35:12 porkypig gammu-smsd[19268]: Error at init connection No response in specified timeout. Probably phone not connected. (14) Jun 27 15:35:12 porkypig gammu-smsd[19268]: Terminating communication No response in specified timeout. Probably phone not connected., (14, 250 times) Jun 27 15:35:12 porkypig gammu-smsd[19268]: Going to 30 seconds sleep because of too much connection errors Jun 27 15:35:42 porkypig gammu-smsd[19268]: Starting phone communication... Jun 27 15:35:52 porkypig gammu-smsd[19268]: Error at init connection No response in specified timeout. Probably phone not connected. (14) Jun 27 15:35:52 porkypig gammu-smsd[19268]: Terminating communication No response in specified timeout. Probably phone not connected., (14, 250 times) Jun 27 15:35:52 porkypig gammu-smsd[19268]: Going to 30 seconds sleep because of too much connection errors Jun 27 15:36:22 porkypig gammu-smsd[19268]: Starting phone communication... Jun 27 15:36:32 porkypig gammu-smsd[19268]: Error at init connection No response in specified timeout. Probably phone not connected. (14) Jun 27 15:36:32 porkypig gammu-smsd[19268]: Terminating communication No response in specified timeout. Probably phone not connected., (14, 250 times) Jun 27 15:36:32 porkypig gammu-smsd[19268]: Going to 30 seconds sleep because of too much connection errors 

这是否意味着插入计算机串口的调制解调器没有响应? (我通过ssh访问机器,如果不需要,我不想实际上去电脑。)

请注意,虽然我可以运行sudo minicom并得到以下内容:

 Welcome to minicom 2.4 OPTIONS: I18n Compiled on Jan 25 2010, 07:02:36. Port /dev/ttyS0 Press CTRL-A Z for help on special keys 

但是,minicom不允许我在窗口中input任何命令。 它只是显示一个闪烁的光标。 虽然我能够使用CTRLA Z和其他CTRL – 访问菜单快捷方式,但我无法在窗口中键入任何命令。

minicom日志看起来像这样:

 $ cat minicom.log 20130610 17:57:50 Hangup (0:10:29) 20130611 10:47:56 Gone offline (0:00:02) 20130611 10:53:59 Hangup (0:00:00) 20130611 12:51:50 Hangup (0:00:00) 20130612 00:43:39 Hangup (0:00:00) 20130616 21:45:54 Hangup (0:00:07) 20130624 14:22:48 Hangup (0:01:43) 20130624 14:26:02 Hangup (0:02:58) 20130624 16:58:52 Hangup (2:19:25) 20130625 15:04:39 Hangup (0:03:54) 20130626 10:43:19 Hangup (0:08:13) 20130627 15:46:02 Hangup (0:00:35) 

任何想法为什么短信不被发送?

请使用当前用户运行gammu-config和..

编辑/etc/init.d/gammu-smsd

 # user which will run this daemon USER=USERNAME 

例如

 USER=apis17 

默认用户是gammu,在/home/gammu文件夹中没有.gammurc文件