Ticket #1757 (closed defect: fixed)
[Qtopia] Is AT+CGML=4 retrying correct? (+CMS ERROR: 321 in response to AT+CMGL=4 (SMS errors?))
| Reported by: | Mercury | Owned by: | openmoko-devel |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Qtopia | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: | erin_yueh@… | Blocked By: | |
| Blocking: | Estimated Completion (week): | ||
| HasPatchForReview: | PatchReviewResult: | ||
| Reproducible: |
Description
I don't appear to be able to receive SMS messages, and I'm getting strange messages in the log.
Aug 7 18:54:30 lisa user.notice root: AtChat? : T : "AT+CMGL=4"
Aug 7 18:54:30 lisa user.notice root: AtChat? : F : "+CMS ERROR: 321"
Aug 7 18:54:30 lisa user.notice root: AtChat? : T : "AT+CMGL=4"
Aug 7 18:54:30 lisa user.notice root: AtChat? : F : "+CMS ERROR: 321"
Aug 7 18:54:31 lisa user.notice root: AtChat? : T : "AT+CMGL=4"
Aug 7 18:54:31 lisa user.notice root: AtChat? : F : "+CMS ERROR: 321"
Aug 7 18:54:31 lisa user.notice root: AtChat? : T : "AT+CMGL=4"
Aug 7 18:54:31 lisa user.notice root: AtChat? : F : "+CMS ERROR: 321"
Aug 7 18:54:32 lisa user.notice root: AtChat? : T : "AT+CMGL=4"
Aug 7 18:54:32 lisa user.notice root: AtChat? : F : "+CMS ERROR: 321"
Aug 7 18:54:32 lisa user.notice root: AtChat? : T : "AT+CMGL=4"
Aug 7 18:54:32 lisa user.notice root: AtChat? : F : "+CMS ERROR: 321"
Aug 7 18:54:33 lisa user.notice root: AtChat? : T : "AT+CMGL=4"
Aug 7 18:54:33 lisa user.notice root: AtChat? : F : "+CMS ERROR: 321"
Aug 7 18:54:33 lisa user.notice root: AtChat? : T : "AT+CMGL=4"
Aug 7 18:54:33 lisa user.notice root: AtChat? : F : "+CMS ERROR: 321"
Aug 7 18:54:34 lisa user.notice root: AtChat? : T : "AT+CMGL=4"
Aug 7 18:54:34 lisa user.notice root: AtChat? : F : "+CMS ERROR: 321"
Aug 7 18:54:34 lisa user.notice root: AtChat? : T : "AT+CMGL=4"
Aug 7 18:54:34 lisa user.notice root: AtChat? : F : "+CMS ERROR: 321"
Aug 7 18:54:35 lisa user.notice root: AtChat? : T : "AT+CMGL=4"
Aug 7 18:54:35 lisa user.notice root: AtChat? : F : "+CMS ERROR: 321"
Aug 7 18:54:35 lisa user.notice root: AtChat? : T : "AT+CMGL=4"
Aug 7 18:54:35 lisa user.notice root: AtChat? : F : "+CMS ERROR: 321"
Aug 7 18:54:36 lisa user.notice root: AtChat? : T : "AT+CMGL=4"
Aug 7 18:54:36 lisa user.notice root: AtChat? : F : "+CMS ERROR: 321"
Some things I've done recently. I got my first 3 SMS messages. I deleted 2 of them (Because they were all the same), and then I sent two more to myself, and neither showed up, and now I see that error.
Maybe it's trying to get message #4 even though it's message #2 now? (Wild guess)
Change History
comment:2 Changed 5 years ago by Mercury
- Status changed from new to closed
- Resolution set to invalid
Oh! Okay great then! My bad. I'll set this to closed for now then. Thanks.
comment:3 Changed 5 years ago by zecke
- Status changed from closed to reopened
- Component changed from unknown to Qtopia
- Milestone ASU deleted
- Resolution invalid deleted
- Summary changed from +CMS ERROR: 321 in response to AT+CMGL=4 (SMS errors?) to [Qtopia] Is AT+CGML=4 retrying correct? (+CMS ERROR: 321 in response to AT+CMGL=4 (SMS errors?))
Thanks to both. To make things more complicated. Sometimes (e.g. if you reset, or remove power from the modem) the modem is in a state where it throws random errors at you and you will have to retry... I will have to test the retry attempts with a SIM card where really no messages are stored...

Nope, it's trying to list all messages (+CMGL=4 in PDU mode is same as +CMGL="ALL" in text mode).
Error 321 is "Invalid Memory Index", which means that there are no messages in the inbox. (Fully 3GPP compliant modems would just list zero messages and print OK but the TI Calypso is known to be special and give INVALID_MEMORY_INDEX).
There must be another issue with receiving messages that you're seeing.