Skip to content
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

gammu-smsd UNKNOWNRESPONSE[16] #215

Open
ynuyasha opened this issue May 10, 2016 · 5 comments
Open

gammu-smsd UNKNOWNRESPONSE[16] #215

ynuyasha opened this issue May 10, 2016 · 5 comments

Comments

@ynuyasha
Copy link

ynuyasha commented May 10, 2016

Hi i use,
gammu-smsd 1.37.2-1.trusty~ppa.1
Ubuntu 14.04 LTS
modem 0403:6011 Future Technology Devices International, Ltd FT4232H Quad HS USB-UART/FIFO IC

Often gammu response me with Error getting SMS: Unknown response from phone. See http://wammu.eu/support/bugs/ for information how to report it. (UNKNOWNRESPONSE[16])

and i need to restart it to works again.
This is debug log of error (i only obscurate phone number with *****):

gammu: Getting SMS                                                                                                                                                          gammu: SENDING frame type 0x00/length 0x0A/10                                                                                                                                      
gammu: 41A|54T|2B+|43C|4DM|47G|52R|3D=|311|0D                          AT+CMGR=1.                                                                                                  
gammu: 1 "AT+CMGR=1"                                                                                                                                           gammu: 2 "+CMGR: "REC READ","+3933******",,"16/05/10,10:33:31+08""                                                                                                               
gammu: 3 "0" 
gammu: 4 "OK"                                                                                                                                                            gammu: Checking line: OK                                                                                                                                                           
gammu: AT reply state: 1                                                                                                                                                           
gammu: RECEIVED frame type 0x00/length 0x50/80                                                                                                                                     
gammu: 41A|54T|2B+|43C|4DM|47G|52R|3D=|311|0D |0D |0A |2B+|43C|4DM|47G AT+CMGR=1...+CMG                                                                                            
gammu: 52R|3A:|20 |22"|52R|45E|43C|20 |52R|45E|41A|44D|22"|2C,|22"|2B+ R: "REC READ","+                                                                                            
gammu: 333|399|333|333|355|366|344|300|388|377|388|388|22"|2C,|2C,|22" 3933*******",,"                                                                                            
gammu: 311|366|2F/|300|355|2F/|311|300|2C,|311|300|3A:|333|333|3A:|333 16/05/10,10:33:3                                                                                            
gammu: 311|2B+|300|388|22"|0D |0A |300|0D |0A |0D |0A |4FO|4BK|0D |0A  1+08"..0....OK..                                                                                            
gammu: Parsing +CMGR: "REC READ","+3933*****",,"16/05/10,10:33:31+08" with +CMGR: @i, @0                                                                                        
gammu: Parsing +CMGR: "REC READ","+3933*****",,"16/05/10,10:33:31+08" with +CMGR: @i                                                                                            
gammu: Parsing +CMGR: "REC READ","+3933****",,"16/05/10,10:33:31+08" with +CMGR: ,,@i                                                                                          
gammu:                                                                                                                                                      gammu: UNKNOWN response. Please report the error, see <http://wammu.eu/support/bugs/>. Thank you                                                                                   
gammu: LAST SENT frame type 0x00/length 10                                                                                                                                         
gammu: 41A|54T|2B+|43C|4DM|47G|52R|3D=|311|0D                          AT+CMGR=1.                                                                                                  
gammu: RECEIVED frame type 0x00/length 0x50/80                                                                                                                                     
gammu: 41A|54T|2B+|43C|4DM|47G|52R|3D=|311|0D |0D |0A |2B+|43C|4DM|47G AT+CMGR=1...+CMG                                                                                            
gammu: 52R|3A:|20 |22"|52R|45E|43C|20 |52R|45E|41A|44D|22"|2C,|22"|2B+ R: "REC READ","+                                                                                            
gammu: 333|399|333|333|355|366|344|300|388|377|388|388|22"|2C,|2C,|22" 3933******",,"                                                                                            
gammu: 311|366|2F/|300|355|2F/|311|300|2C,|311|300|3A:|333|333|3A:|333 16/05/10,10:33:3                                                                                            
gammu: 311|2B+|300|388|22"|0D |0A |300|0D |0A |0D |0A |4FO|4BK|0D |0A  1+08"..0....OK..                                                                                            
gammu:                                                                                                                                                      gammu: GSM_GetNextSMS failed with error UNKNOWNRESPONSE[16]: Unknown response from phone. See <http://wammu.eu/support/bugs/> for information how to report it.                    
gammu: Leaving GSM_GetNextSMS                                                                                                                                    Error getting SMS: Unknown response from phone. See <http://wammu.eu/support/bugs/> for information how to report it. (UNKNOWNRESPONSE[16])

@nijel
Copy link
Member

nijel commented May 10, 2016

The phone is probably using SMS text mode even if it doesn't report it.

Can you please provide complete log? You can also try with enabling USE_SMSTEXTMODE feature in configuration file.

@ynuyasha
Copy link
Author

I have attacched complete log.
To enable USE_SMSTEXTMODE i need to add this in gammu section right?
[gammu]
.....
Features = USE_SMSTEXTMODE
.....

smsd2.log.txt

nijel added a commit that referenced this issue May 17, 2016
Signed-off-by: Michal Čihař <michal@cihar.com>
@nijel
Copy link
Member

nijel commented May 17, 2016

Yes, that should do it, but it doesn't seem to work...

I've just commited change which will enable it automatically for your modem..

@nijel
Copy link
Member

nijel commented Jun 23, 2016

Had to revert this fix as obviously different devices share this identification, see 6351c78 https://www.facebook.com/wammu/posts/1214614785223584?ref=notif&notif_t=page_wall&notif_id=1466670019486586

@carlosmmr
Copy link

carlosmmr commented Jun 7, 2022

Greetings.

I'm also having the same issue. My configuration is the following:

  • Raspberry Pi 4 running Raspbian (5.15.32-v7l+ #1538 SMP Thu Mar 31 19:39:41 BST 2022 armv7l GNU/Linux).
  • 4G Modem Qualcomm, Inc. Siemens SG75. (Kruger&Matz Modem Router Wireless USB 3G/4G LTE - ML0700)
  • gammu-smsd 1.41.0
  • MariaDB 10.5.15

gammu --identify:

Device : /dev/ttyUSB1
Manufacturer : Qualcomm
Model : unknown (WSM009)
Firmware : MDM9K-CIGO-D_9.5.5-3M_BL_KM 1 [Jan 19 2012 21:00:00]
IMEI : ***************
SIM IMSI : ***************

Gammu-smsd config file:

[gammu]
port = /dev/ttyUSB1
connection = at
logformat = textall

[smsd]
service = sql
driver = native_mysql
host = localhost
user = ****
password = ********
database = smsd
RunOnReceive = /opt/scripts/smsd/run_scripts.sh
CheckSecurity = 0
CheckBattery = 0
PIN = ****
logfile = syslog
debuglevel = 255

Gammu-smsd sends and receives SMS messages without problems but after some time I start to see these messages in the log:

Error getting SMS status: Unknown response from phone. See https://wammu.eu/support/bugs/ for information on how to report it. (UNKNOWNRESPONSE[16])

I enabled debug mode to see the diference between what is registered in the log with and without the issue:

When the issue is registered:

Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: Entering GSM_GetSMSStatus
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: Getting SIM SMS status
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: SENDING frame type 0x00/length 0x12/18
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: 41A|54T|2B+|43C|50P|4DM|53S|3D=|22"|53S|4DM|22"|2C,|22"|53S|4DM AT+CPMS="SM","SM
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: 22"|0D ".
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: 1 "AT+CPMS="SM","SM""
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: 2 "OK"
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: Checking line: OK
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: AT reply state: 1
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: RECEIVED frame type 0x00/length 0x18/24
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: 41A|54T|2B+|43C|50P|4DM|53S|3D=|22"|53S|4DM|22"|2C,|22"|53S|4DM AT+CPMS="SM","SM
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: 22"|0D |0D |0A |4FO|4BK|0D |0A "...OK..
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: SMS status received
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: Parsing OK with +CPMS: @i, @i, @0
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: Parsing OK with +CPMS: @s, @i, @i, @0
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: Parsing OK with +CPMS: @i, @i
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu:
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: UNKNOWN response. Please report the error, see https://wammu.eu/support/bugs/. Thank you
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: LAST SENT frame type 0x00/length 18
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: 41A|54T|2B+|43C|50P|4DM|53S|3D=|22"|53S|4DM|22"|2C,|22"|53S|4DM AT+CPMS="SM","SM
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: 22"|0D ".
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: RECEIVED frame type 0x00/length 0x18/24
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: 41A|54T|2B+|43C|50P|4DM|53S|3D=|22"|53S|4DM|22"|2C,|22"|53S|4DM AT+CPMS="SM","SM
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: 22"|0D |0D |0A |4FO|4BK|0D |0A "...OK..
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu:
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: GSM_GetSMSStatus failed with error UNKNOWNRESPONSE[16]: Unknown response from phone. See https://wammu.eu/support/bugs/ for information on how to report it.
Jun 7 10:00:30 pi01 gammu-smsd[1617]: gammu: Leaving GSM_GetSMSStatus
Jun 7 10:00:30 pi01 gammu-smsd[1617]: Error getting SMS status: Unknown response from phone. See https://wammu.eu/support/bugs/ for information on how to report it. (UNKNOWNRESPONSE[16])

Without the issue:

Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: Entering GSM_GetSMSStatus
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: Getting SIM SMS status
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: SENDING frame type 0x00/length 0x12/18
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: 41A|54T|2B+|43C|50P|4DM|53S|3D=|22"|53S|4DM|22"|2C,|22"|53S|4DM AT+CPMS="SM","SM
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: 22"|0D ".
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: 1 "AT+CPMS="SM","SM""
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: 2 "+CPMS: 0,30,0,30,0,30"
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: 3 "OK"
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: Checking line: OK
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: AT reply state: 1
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: RECEIVED frame type 0x00/length 0x31/49
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: 41A|54T|2B+|43C|50P|4DM|53S|3D=|22"|53S|4DM|22"|2C,|22"|53S|4DM AT+CPMS="SM","SM
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: 22"|0D |0D |0A |2B+|43C|50P|4DM|53S|3A:|20 |300|2C,|333|300|2C, "...+CPMS: 0,30,
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: 300|2C,|333|300|2C,|300|2C,|333|300|0D |0A |0D |0A |4FO|4BK|0D 0,30,0,30....OK.
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: 0A .
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: SMS status received
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: Parsing +CPMS: 0,30,0,30,0,30 with +CPMS: @i, @i, @0
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: Parsed int 0
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: Parsed int 30
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: Used : 0
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: Size : 30
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: Getting phone SMS status
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: SENDING frame type 0x00/length 0x12/18
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: 41A|54T|2B+|43C|50P|4DM|53S|3D=|22"|4DM|45E|22"|2C,|22"|4DM|45E AT+CPMS="ME","ME
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: 22"|0D ".
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: 1 "AT+CPMS="ME","ME""
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: 2 "+CPMS: 0,50,0,50,0,30"
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: 3 "OK"
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: Checking line: OK
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: AT reply state: 1
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: RECEIVED frame type 0x00/length 0x31/49
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: 41A|54T|2B+|43C|50P|4DM|53S|3D=|22"|4DM|45E|22"|2C,|22"|4DM|45E AT+CPMS="ME","ME
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: 22"|0D |0D |0A |2B+|43C|50P|4DM|53S|3A:|20 |300|2C,|355|300|2C, "...+CPMS: 0,50,
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: 300|2C,|355|300|2C,|300|2C,|333|300|0D |0A |0D |0A |4FO|4BK|0D 0,50,0,30....OK.
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: 0A .
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: SMS status received
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: Parsing +CPMS: 0,50,0,50,0,30 with +CPMS: @i, @i, @0
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: Parsed int 0
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: Parsed int 50
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: Used : 0
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: Size : 50
Jun 7 10:00:15 pi01 gammu-smsd[1617]: gammu: Leaving GSM_GetSMSStatus
Jun 7 10:00:15 pi01 gammu-smsd[1617]: 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 Priority DESC, InsertIntoDB ASC LIMIT 1

Gammu-smsd still receives and sends SMS messages, for awhile, but eventually I have to restart the daemon, since it will stop being able to communicate with the modem.

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

No branches or pull requests

3 participants