Skip to content

SMS Status? query sometimes fails #68

@leighghunt

Description

@leighghunt

Seems that SMS Status? message is sometimes not succeeding.

Log grepped with SMS for times when messages both worked and didn't work:

2023-11-23 12:15:07,008 handleSMS WARNING [Errno 101] Network is unreachable
2023-11-23 12:15:30,071 handleSMS INFO 
2023-11-23 12:15:30,074 handleSMS INFO OK
2023-11-23 12:20:02,752 handleSMS DEBUG About to call receiveSMS()...
2023-11-23 12:20:06,794 handleSMS DEBUG Returned from receiveSMS()
2023-11-23 12:20:06,803 handleSMS DEBUG b'AT+CMGL="ALL"\r\r\n+CMGL: 0,"REC UNREAD","+64212711844","","23/11/23,12:17:49+52"\r\nStatus?\r\n\r\nOK\r\n'
2023-11-23 12:20:06,805 handleSMS DEBUG [b'AT+CMGL="ALL"', b'', b'+CMGL: 0,"REC UNREAD","+64212711844","","23/11/23,12:17:49+52"', b'Status?', b'', b'OK']
2023-11-23 12:20:06,807 handleSMS INFO AT+CMGL="ALL"
2023-11-23 12:20:06,809 handleSMS INFO 
2023-11-23 12:20:06,810 handleSMS INFO +CMGL: 0,"REC UNREAD","+64212711844","","23/11/23,12:17:49+52"
2023-11-23 12:20:06,812 handleSMS INFO Status?
2023-11-23 12:20:06,813 handleSMS INFO Status query
2023-11-23 12:20:06,833 handleSMS WARNING [Errno 101] Network is unreachable
2023-11-23 12:20:29,895 handleSMS INFO 
2023-11-23 12:20:29,897 handleSMS INFO OK
2023-11-23 12:25:02,371 handleSMS DEBUG About to call receiveSMS()...
2023-11-23 12:25:06,413 handleSMS DEBUG Returned from receiveSMS()
2023-11-23 12:25:06,420 handleSMS DEBUG b'AT+CMGL="ALL"\r\r\n+CMGL: 0,"REC UNREAD","+64212711844","","23/11/23,12:24:55+52"\r\nStatus?\r\n\r\nOK\r\n'
2023-11-23 12:25:06,422 handleSMS DEBUG [b'AT+CMGL="ALL"', b'', b'+CMGL: 0,"REC UNREAD","+64212711844","","23/11/23,12:24:55+52"', b'Status?', b'', b'OK']
2023-11-23 12:25:06,424 handleSMS INFO AT+CMGL="ALL"
2023-11-23 12:25:06,425 handleSMS INFO 
2023-11-23 12:25:06,427 handleSMS INFO +CMGL: 0,"REC UNREAD","+64212711844","","23/11/23,12:24:55+52"
2023-11-23 12:25:06,429 handleSMS INFO Status?
2023-11-23 12:25:06,430 handleSMS INFO Status query
2023-11-23 12:25:06,451 handleSMS WARNING [Errno 101] Network is unreachable
2023-11-23 12:25:29,510 handleSMS INFO 
2023-11-23 12:25:29,512 handleSMS INFO OK
2023-11-23 12:30:02,947 handleSMS DEBUG About to call receiveSMS()...
2023-11-23 12:30:06,990 handleSMS DEBUG Returned from receiveSMS()
2023-11-23 12:30:06,998 handleSMS DEBUG error0
2023-11-23 12:30:07,000 handleSMS DEBUG ['error0']
2023-11-23 12:35:03,762 handleSMS DEBUG About to call receiveSMS()...
2023-11-23 12:35:07,804 handleSMS DEBUG Returned from receiveSMS()
2023-11-23 12:35:07,806 handleSMS DEBUG error0
2023-11-23 12:35:07,807 handleSMS DEBUG ['error0']
2023-11-23 12:40:03,231 handleSMS DEBUG About to call receiveSMS()...
2023-11-23 12:40:07,273 handleSMS DEBUG Returned from receiveSMS()
2023-11-23 12:40:07,275 handleSMS DEBUG b'AT+CMGL="ALL"\r\r\n+CMGL: 0,"REC UNREAD","+64212711844","","23/11/23,12:37:17+52"\r\nStatus?\r\n\r\nOK\r\n'
2023-11-23 12:40:07,276 handleSMS DEBUG [b'AT+CMGL="ALL"', b'', b'+CMGL: 0,"REC UNREAD","+64212711844","","23/11/23,12:37:17+52"', b'Status?', b'', b'OK']
2023-11-23 12:40:07,278 handleSMS INFO AT+CMGL="ALL"
2023-11-23 12:40:07,280 handleSMS INFO 
2023-11-23 12:40:07,281 handleSMS INFO +CMGL: 0,"REC UNREAD","+64212711844","","23/11/23,12:37:17+52"
2023-11-23 12:40:07,283 handleSMS INFO Status?
2023-11-23 12:40:07,285 handleSMS INFO Status query
2023-11-23 12:40:07,304 handleSMS WARNING [Errno 101] Network is unreachable
2023-11-23 12:40:30,365 handleSMS INFO 
2023-11-23 12:40:30,367 handleSMS INFO OK
2023-11-23 12:45:02,809 handleSMS DEBUG About to call receiveSMS()...
2023-11-23 12:45:06,851 handleSMS DEBUG Returned from receiveSMS()
2023-11-23 12:45:06,859 handleSMS DEBUG error0
2023-11-23 12:45:06,861 handleSMS DEBUG ['error0']
2023-11-23 12:50:03,530 handleSMS DEBUG About to call receiveSMS()...
2023-11-23 12:50:07,572 handleSMS DEBUG Returned from receiveSMS()
2023-11-23 12:50:07,574 handleSMS DEBUG b'AT+CMGL="ALL"\r\r\n+CMGL: 0,"REC UNREAD","+64212711844","","23/11/23,12:46:41+52"\r\nStatus?\r\n\r\nOK\r\n'
2023-11-23 12:50:07,575 handleSMS DEBUG [b'AT+CMGL="ALL"', b'', b'+CMGL: 0,"REC UNREAD","+64212711844","","23/11/23,12:46:41+52"', b'Status?', b'', b'OK']
2023-11-23 12:50:07,576 handleSMS INFO AT+CMGL="ALL"
2023-11-23 12:50:07,578 handleSMS INFO 
2023-11-23 12:50:07,589 handleSMS INFO +CMGL: 0,"REC UNREAD","+64212711844","","23/11/23,12:46:41+52"
2023-11-23 12:50:07,591 handleSMS INFO Status?
2023-11-23 12:50:07,592 handleSMS INFO Status query
2023-11-23 12:50:07,723 handleSMS WARNING [Errno 101] Network is unreachable
2023-11-23 12:50:30,783 handleSMS INFO 
2023-11-23 12:50:30,785 handleSMS INFO OK
2023-11-23 12:55:13,699 handleSMS DEBUG About to call receiveSMS()...
2023-11-23 13:00:03,827 handleSMS DEBUG About to call receiveSMS()...
2023-11-23 13:00:07,869 handleSMS DEBUG Returned from receiveSMS()
2023-11-23 13:00:07,879 handleSMS DEBUG b'\r\n+CMGL: 0,"REC UNREAD","002B00360034003200310032003700310031003800340034","","23/11/23,12:53:28+52"\r\n005300740061007400750073003F\r\n\r\nOK\r\n'
2023-11-23 13:00:07,882 handleSMS DEBUG [b'', b'+CMGL: 0,"REC UNREAD","002B00360034003200310032003700310031003800340034","","23/11/23,12:53:28+52"', b'005300740061007400750073003F', b'', b'OK']
2023-11-23 13:00:07,883 handleSMS INFO 
2023-11-23 13:00:07,885 handleSMS INFO +
CMGL: 0,"REC UNREAD","002B00360034003200310032003700310031003800340034","","23/11/23,12:53:28+52"
2023-11-23 13:00:07,887 handleSMS INFO 005300740061007400750073003F
2023-11-23 13:00:07,888 handleSMS INFO 
2023-11-23 13:00:07,890 handleSMS INFO OK
pi@sediment-pi-zero-w-v1-l:~$ 
 @  11 0:-*                                                                                                                                              14m 2.52 1.0GHz 429M47% 59G5% 2023-11-23 13:09:07
Screenshot 2023-11-23 at 1 11 41 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions