Open Source Telephony
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: ofono@ofono.org
Subject: Re: AT modem on Droid 4: where is my sms?
Date: Sat, 01 Aug 2020 21:11:48 +0200	[thread overview]
Message-ID: <20200801191148.GA8032@amd> (raw)
In-Reply-To: <05afe4c6-a81b-77e5-6e1e-6cb9d0f8f6a6@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1588 bytes --]

Hi!

> >I have problems with getting CNMA to work, so I'm exploring other
> >possibilities. Apparently ofono should be able to work without
> >that.. but is it working properly?
> >
> >ofonod[5218]: < \r\n+CIEV: 1,3\r\n
> >ofonod[5218]: < \r\n+CIEV: 1,4\r\n
> >ofonod[5218]: < \r\n+CMTI: "ME",2\r\n
> >ofonod[5218]: drivers/atmodem/sms.c:at_cmti_notify() Got a CMTI
> >indication at ME, index: 2
> >ofonod[5218]: > AT+CMGR=2\r
> >ofonod[5218]: < \r\nOK\r\n
> 
> That's quite strange, CMGR response should have an intermediate response
> prefixed by +CMGR: prior to the OK.  Your modem is just weird ;)

Yes, it is.

> >ofonod[5218]: > AT+CMGD=2\r
> >ofonod[5218]: < \r\nOK\r\n
> >ofonod[5218]: < \r\n+CIEV: 1,3\r\n
> >ofonod[5218]: < \r\n+CIEV: 1,4\r\n
> >
> >So.... modem told us we have new message and where it is, but then
> >ofono ... deleted the message without delivering it...?
> >
> 
> What the stock AT modem driver does is reads the message and deletes it
> right away.  Somehow your modem says 'sure' to the read request without
> actually reading the message.  Maybe the firmware is just too slow or oFono
> is too fast, or maybe this modem needs extra special magic.

Would it make sense not to proceed with +CMGD in case modem did not
provide a message for +CMGR?

I don't think it is timing, as we see OK after CMGR...

Fortunately, I found a mode that works...

Best regards,
								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

  parent reply	other threads:[~2020-08-01 19:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-31 10:07 AT modem on Droid 4: where is my sms? Pavel Machek
2020-07-31 10:10 ` Pavel Machek
2020-07-31 13:43 ` Denis Kenzior
2020-07-31 14:41   ` Christophe Ronco
2020-08-01 19:13     ` Pavel Machek
2020-08-01 19:11   ` Pavel Machek [this message]
2020-07-31 21:57 ` [PATCH] Support weird modem in Motorola Droid 4 Pavel Machek
2020-07-31 22:00   ` [PATCH v2] " Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200801191148.GA8032@amd \
    --to=pavel@ucw.cz \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox