gammu / wammu

Wammu
https://wammu.eu/wammu/
GNU General Public License v3.0
64 stars 28 forks source link

Vodaphone K4511 issues with kalkun/gammu-smsd #22

Closed rajbps closed 8 years ago

rajbps commented 8 years ago

Hi team,

I have installed kalkun on ubuntu 15.10 with gammu-smsd. Everything works well till you leave the system for a while then kalkun shows as disconnected. The only way to get it connected again is to reboot the ubuntu server.

Here is the config of gammu-smsdrc file

Configuration file for Gammu SMS Daemon

Gammu library configuration, see gammurc(5)

[gammu]

Please configure this!

port = /dev/ttyUSB0 connection = at115200 DeliveryReport = sms

Debugging

logformat = textall

SMSD configuration, see gammu-smsdrc(5)

[smsd] runonreceive = /var/www/html/kalkun/scripts/daemon.sh service = sql driver = native_mysql logfile = syslog

Increase for debugging information

debuglevel = 3

runreceive = /var/www/htm;/kalkun/scripts/daemon.sh

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/

Configure MySQL

user = root Password = password here

customize password password = * *

pc = localhost database = db name here

Now when i look at the log file this is what I can see:

Mar 19 21:17:35 bpssms gammu-smsd[1082]: Execute SQL: SELECT ID, InsertIntoDB, SendingDateTime, SenderID FROM outbox WHERE SendingDateTime < NOW() AND SendingTimeOut < NOW() AND SendBefore >= CURTIME() AND SendAfter <= CURTIME() AND ( SenderID is NULL OR SenderID = '' OR SenderID = '' ) ORDER BY InsertIntoDB ASC LIMIT 1 Mar 19 21:17:35 bpssms gammu-smsd[1082]: Execute SQL: UPDATE phones SET TimeOut= (NOW() + INTERVAL 10 SECOND) + 0, Battery = 100, Signal = 60 WHERE IMEI = '**' Mar 19 21:17:51 bpssms gammu-smsd[1082]: Execute SQL: UPDATE phones SET TimeOut= (NOW() + INTERVAL 10 SECOND) + 0, Battery = 100, Signal = 60 WHERE IMEI = '***_' Mar 19 21:18:05 bpssms gammu-smsd[1082]: Execute SQL: SELECT ID, InsertIntoDB, SendingDateTime, SenderID FROM outbox WHERE SendingDateTime < NOW() AND SendingTimeOut < NOW() AND SendBefore >= CURTIME() AND SendAfter <= CURTIME() AND ( SenderID is NULL OR SenderID = '' OR SenderID = '' ) ORDER BY InsertIntoDB ASC LIMIT 1 Mar 19 21:18:07 bpssms gammu-smsd[1082]: Execute SQL: UPDATE phones SET TimeOut= (NOW() + INTERVAL 10 SECOND) + 0, Battery = 100, Signal = 60 WHERE IMEI = '_****' Mar 19 21:18:28 bpssms gammu-smsd[1082]: Error getting security status: No response in specified timeout. Probably phone not connected. (TIMEOUT[14]) Mar 19 21:18:28 bpssms gammu-smsd[1082]: You might want to set CheckSecurity = 0 to avoid checking security status Mar 19 21:18:40 bpssms gammu-smsd[1082]: Error getting security status: No response in specified timeout. Probably phone not connected. (TIMEOUT[14]) Mar 19 21:18:40 bpssms gammu-smsd[1082]: You might want to set CheckSecurity = 0 to avoid checking security status Mar 19 21:18:52 bpssms gammu-smsd[1082]: Error getting security status: No response in specified timeout. Probably phone not connected. (TIMEOUT[14]) Mar 19 21:18:52 bpssms gammu-smsd[1082]: You might want to set CheckSecurity = 0 to avoid checking security status Mar 19 21:18:52 bpssms gammu-smsd[1082]: Already hit 3 errors Mar 19 21:18:52 bpssms gammu-smsd[1082]: Terminating communication: Entry is empty. (EMPTY[22]) Mar 19 21:19:22 bpssms gammu-smsd[1082]: Starting phone communication... Mar 19 21:20:08 bpssms gammu-smsd[1082]: Error at init connection: No response in specified timeout. Probably phone not connected. (TIMEOUT[14]) Mar 19 21:20:08 bpssms gammu-smsd[1082]: Already hit 250 errors Mar 19 21:20:08 bpssms gammu-smsd[1082]: Terminating communication: No response in specified timeout. Probably phone not connected. (TIMEOUT[14]) Mar 19 21:20:38 bpssms gammu-smsd[1082]: Going to 30 seconds sleep because of too much connection errors Mar 19 21:21:08 bpssms gammu-smsd[1082]: Starting phone communication... Mar 19 21:21:54 bpssms gammu-smsd[1082]: Error at init connection: No response in specified timeout. Probably phone not connected. (TIMEOUT[14]) Mar 19 21:21:54 bpssms gammu-smsd[1082]: Already hit 250 errors Mar 19 21:21:54 bpssms gammu-smsd[1082]: Terminating communication: No response in specified timeout. Probably phone not connected. (TIMEOUT[14]) Mar 19 21:22:24 bpssms gammu-smsd[1082]: Going to 30 seconds sleep because of too much connection errors Mar 19 21:22:54 bpssms gammu-smsd[1082]: Starting phone communication...

I have removed the IMEI number and replaced it with ****\ for this post

Now tonight after it disconnected and I did not reboot it connected again and this is what I can see in the logs :+1:

Mar 19 22:46:42 bpssms gammu-smsd[1082]: Already hit 250 errors Mar 19 22:46:42 bpssms gammu-smsd[1082]: Terminating communication: No response in specified timeout. Probably phone not connected. (TIMEOUT[14]) Mar 19 22:47:12 bpssms gammu-smsd[1082]: Going to 30 seconds sleep because of too much connection errors Mar 19 22:47:42 bpssms gammu-smsd[1082]: Starting phone communication... Mar 19 22:48:28 bpssms gammu-smsd[1082]: Error at init connection: No response in specified timeout. Probably phone not connected. (TIMEOUT[14]) Mar 19 22:48:28 bpssms gammu-smsd[1082]: Already hit 250 errors Mar 19 22:48:28 bpssms gammu-smsd[1082]: Terminating communication: No response in specified timeout. Probably phone not connected. (TIMEOUT[14]) Mar 19 22:48:58 bpssms gammu-smsd[1082]: Going to 30 seconds sleep because of too much connection errors Mar 19 22:49:28 bpssms gammu-smsd[1082]: Starting phone communication... Mar 19 22:49:30 bpssms kernel: [15797.382929] option1 ttyUSB0: usb_wwan_indat_callback: resubmit read urb failed. (-2) Mar 19 22:49:30 bpssms kernel: [15797.383107] option1 ttyUSB0: usb_wwan_indat_callback: resubmit read urb failed. (-2) Mar 19 22:49:30 bpssms kernel: [15797.383182] option1 ttyUSB0: usb_wwan_indat_callback: resubmit read urb failed. (-2) Mar 19 22:49:30 bpssms gammu-smsd[1082]: Error at init connection: Error writing to the device. (DEVICEWRITEERROR[11]) Mar 19 22:49:30 bpssms gammu-smsd[1082]: Already hit 250 errors Mar 19 22:49:30 bpssms gammu-smsd[1082]: Terminating communication: Error writing to the device. (DEVICEWRITEERROR[11]) Mar 19 22:49:30 bpssms gammu-smsd[1082]: Going to 30 seconds sleep because of too much connection errors Mar 19 22:49:30 bpssms kernel: [15797.387762] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0 Mar 19 22:49:30 bpssms kernel: [15797.387776] option 1-1:1.0: device disconnected Mar 19 22:49:30 bpssms kernel: [15797.387795] qmi_wwan 1-1:1.1 wwan0: unregister 'qmi_wwan' usb-0000:00:1d.7-1, WWAN/QMI device Mar 19 22:49:30 bpssms kernel: [15797.415328] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1 Mar 19 22:49:30 bpssms kernel: [15797.415346] option 1-1:1.3: device disconnected Mar 19 22:49:30 bpssms kernel: [15797.415416] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2 Mar 19 22:49:30 bpssms kernel: [15797.415431] option 1-1:1.4: device disconnected Mar 19 22:49:30 bpssms kernel: [15797.690988] usb 1-1: reset high-speed USB device number 2 using ehci-pci Mar 19 22:49:31 bpssms kernel: [15797.992925] option 1-1:1.0: GSM modem (1-port) converter detected Mar 19 22:49:31 bpssms kernel: [15797.995110] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0 Mar 19 22:49:31 bpssms kernel: [15798.000045] qmi_wwan 1-1:1.1: cdc-wdm0: USB WDM device Mar 19 22:49:31 bpssms kernel: [15798.000406] qmi_wwan 1-1:1.1 wwan0: register 'qmiwwan' at usb-0000:00:1d.7-1, WWAN/QMI device, 02:f5:db:f2:57:35 Mar 19 22:49:31 bpssms kernel: [15798.000465] option 1-1:1.3: GSM modem (1-port) converter detected Mar 19 22:49:31 bpssms kernel: [15798.000596] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1 Mar 19 22:49:31 bpssms kernel: [15798.000772] option 1-1:1.4: GSM modem (1-port) converter detected Mar 19 22:49:31 bpssms kernel: [15798.000945] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2 Mar 19 22:50:00 bpssms gammu-smsd[1082]: Starting phone communication... Mar 19 22:50:09 bpssms gammu-smsd[1082]: Soft reset return code: Function not supported by phone. (NOTSUPPORTED[21]) Mar 19 22:50:15 bpssms gammu-smsd[1082]: Received message from: +44 Mar 19 22:50:15 bpssms gammu-smsd[1082]: message repeated 3 times: [ Received message from: +44] Mar 19 22:50:15 bpssms gammu-smsd[1082]: Read 4 messages Mar 19 22:50:15 bpssms gammu-smsd[1082]: Execute SQL: INSERT INTO inbox (ReceivingDateTime, Text, SenderNumber, Coding, SMSCNumber, UDH, Class, TextDecoded, RecipientID) VALUES ('2016-03-19 16:42:04', '0040006B0061006C006B0075006E0020006F006B0020006E006F0020007200650062006F006F007400650064', '+44_****_', 'Default_NoCompression', '+44*******', '', -1, '@kalkun ok no rebooted', '') Mar 19 22:50:15 bpssms gammu-smsd[1082]: Inserted message id 10

Anyone can shed some light on this one please

Regards,

Raj

nijel commented 8 years ago

Already reported here: https://github.com/gammu/gammu/issues/201