New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All SMS received twice #378

Open
bigal488 opened this Issue Dec 14, 2017 · 4 comments

Comments

Projects
None yet
3 participants
@bigal488

bigal488 commented Dec 14, 2017

I have Gammu 1.38.6 running on a raspberry pi with a (cheap) GSM Development board attached via serial (Neoway M590).
All seems to work OK but Gammu is showing all SMS messages are received twice ...and therefore RunOnReceive gets triggered twice.
Heres a log:

Dec 14 10:16:24 raspberrypi gammu-smsd[2006]: Received message from: +4477xxxxxxx
Dec 14 10:16:24 raspberrypi gammu-smsd[2006]: Received message from: +4477xxxxxxx
Dec 14 10:16:24 raspberrypi gammu-smsd[2006]: Read 2 messages
Dec 14 10:16:24 raspberrypi gammu-smsd[2006]: Received IN20171214_101607_00_+4477xxxxxxx_00.txt
Dec 14 10:16:24 raspberrypi gammu-smsd[2008]: Starting run on receive: /home/pi/smsreceived IN20171214_101607_00_+4477xxxxxxx_00.txt
Dec 14 10:16:25 raspberrypi gammu-smsd[2006]: Process finished successfully
Dec 14 10:16:25 raspberrypi gammu-smsd[2006]: Subprocess output: +4477xxxxxxx, Test#012gammu-smsd-inject[2015]: Using FILES service#012gammu-smsd-inject[2015]: Configuring Gammu SMSD...#012gammu-smsd-inject[2015]: SHM token: 0x1020d4a (16911690)#012gammu-smsd-inject[2015]: PIN code is "5555"#012gammu-smsd-inject[2015]: CommTimeout=30, SendTimeout=30, ReceiveFrequency=15, ResetFrequency=0, HardResetFrequency=0#012gammu-smsd-inject[2015]: checks: CheckSecurity=1, CheckBattery=1, CheckSignal=1, CheckNetwork=1#012gammu-smsd-inject[2015]: mode: Send=1, Receive=1#012gammu-smsd-inject[2015]: deliveryreport = no#012gammu-smsd-inject[2015]: phoneid = #012gammu-smsd-inject[2015]: Inbox is "/var/spool/gammu/inbox/" with format "standard"#012gammu-smsd-inject[2015]: Outbox is "/var/spool/gammu/outbox/" with format "detail" and transmission format "7bit"#012gammu-smsd-inject[2015]: Sent SMS moved to "/var/spool/gammu/sent/"#012gammu-smsd-inject[2015]: SMS with errors moved to "/var/spool/gammu/error/"#012gammu-smsd-inject[2015]: Created outbox message OUTC20171214_101625_00_+4477xxxxxxx_sms0.smsbackup#012Written message with ID /var/spool/gammu/outbox/OUTC20171214_101625_00_+4477xxxxxxx_sms0.smsbackup
Dec 14 10:16:25 raspberrypi gammu-smsd[2006]: Received IN20171214_101607_01_+4477xxxxxxx_00.txt
Dec 14 10:16:25 raspberrypi gammu-smsd[2019]: Starting run on receive: /home/pi/smsreceived IN20171214_101607_01_+4477xxxxxxx_00.txt
Dec 14 10:16:25 raspberrypi gammu-smsd[2006]: Process finished successfully
Dec 14 10:16:25 raspberrypi gammu-smsd[2006]: Subprocess output: +4477xxxxxxx, Test#012gammu-smsd-inject[2026]: Using FILES service#012gammu-smsd-inject[2026]: Configuring Gammu SMSD...#012gammu-smsd-inject[2026]: SHM token: 0x1020d4a (16911690)#012gammu-smsd-inject[2026]: PIN code is "5555"#012gammu-smsd-inject[2026]: CommTimeout=30, SendTimeout=30, ReceiveFrequency=15, ResetFrequency=0, HardResetFrequency=0#012gammu-smsd-inject[2026]: checks: CheckSecurity=1, CheckBattery=1, CheckSignal=1, CheckNetwork=1#012gammu-smsd-inject[2026]: mode: Send=1, Receive=1#012gammu-smsd-inject[2026]: deliveryreport = no#012gammu-smsd-inject[2026]: phoneid = #012gammu-smsd-inject[2026]: Inbox is "/var/spool/gammu/inbox/" with format "standard"#012gammu-smsd-inject[2026]: Outbox is "/var/spool/gammu/outbox/" with format "detail" and transmission format "7bit"#012gammu-smsd-inject[2026]: Sent SMS moved to "/var/spool/gammu/sent/"#012gammu-smsd-inject[2026]: SMS with errors moved to "/var/spool/gammu/error/"#012gammu-smsd-inject[2026]: Created outbox message OUTC20171214_101625_00_+4477xxxxxxx_sms1.smsbackup#012Written message with ID /var/spool/gammu/outbox/OUTC20171214_101625_00_+4477xxxxxxx_sms1.smsbackup
Dec 14 10:16:25 raspberrypi gammu-smsd[2006]: Error deleting SMS: Invalid location. Maybe too high? (INVALIDLOCATION[24]

Could this be a problem with the hardware or gamma-smsd?
Using AT+CMGL=”ALL” when Gammu isnt running only shows one message.

@nijel

This comment has been minimized.

Show comment
Hide comment
@nijel

nijel Dec 20, 2017

Member

The problem seems to be in deleting the message, can you please post log including AT commands? See https://wammu.eu/support/bugs/

Member

nijel commented Dec 20, 2017

The problem seems to be in deleting the message, can you please post log including AT commands? See https://wammu.eu/support/bugs/

@struart

This comment has been minimized.

Show comment
Hide comment
@struart

struart Dec 21, 2017

Hello
Im using BananaPi with gammu 1.36.6 with the same Neoway M590 modem.
I have that issue too.
I noticed that the problem is that the gammu-smsd and gammu in general is saving incomming sms in SIM and "PHONE MEMORY" and reads them twice because of that. Solution would be something to force gammu-smsd to scan only SIM card inbox not both of them sim and phone memory.

struart commented Dec 21, 2017

Hello
Im using BananaPi with gammu 1.36.6 with the same Neoway M590 modem.
I have that issue too.
I noticed that the problem is that the gammu-smsd and gammu in general is saving incomming sms in SIM and "PHONE MEMORY" and reads them twice because of that. Solution would be something to force gammu-smsd to scan only SIM card inbox not both of them sim and phone memory.

@nijel

This comment has been minimized.

Show comment
Hide comment
@nijel

nijel Dec 22, 2017

Member

Having debug log showing AT commands used to list and delete the messages would help diagnose this issue...

Member

nijel commented Dec 22, 2017

Having debug log showing AT commands used to list and delete the messages would help diagnose this issue...

@struart

This comment has been minimized.

Show comment
Hide comment
@struart

struart Dec 23, 2017

OK here it is complete log from smsd from start to recieve SMS.

smsd.log

As i understand that logs its getting sms from SIM then adds to DB then delete, next step is checking phone memory and again add to db then delete.

struart commented Dec 23, 2017

OK here it is complete log from smsd from start to recieve SMS.

smsd.log

As i understand that logs its getting sms from SIM then adds to DB then delete, next step is checking phone memory and again add to db then delete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment