All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin =?unknown-8bit?q?Hundeb=C3=B8ll?= <martin@geanix.com>
To: ofono@ofono.org
Subject: Handle broken AT command process
Date: Mon, 19 Aug 2019 21:29:07 +0200	[thread overview]
Message-ID: <9c9e17cf-549d-dfef-21c0-1c6a13913986@geanix.com> (raw)

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

Hi,

Does ofono have a way to handle lacking OK/error messages? I seems like 
my modem (Quectel M95) is buggy when it comes to unsolicited indications 
and (as far as I have seen) SIM commands:

  > AT+CRSM=178,28614,3,4,8
  < +CRSM: 144,0,"FFFFFFFFFFFFFFFF"
  < OK
  > AT+CRSM=178,28614,4,4,8
  < Call Ready
  < +CREG: 5,"0119","04EA"

The "Call Ready" indication causes a lacking "OK" from the preceding 
"AT+CRSM" command. This has happened with other CRSM commands, and can 
also be caused by an unsolicited +CREG indication.

I guess one way handle it, is to to glue op the URC listeners to peek 
into the AT command queue and check if a command is pending for 
OK/errors, and retry it if so.

But that could cause unexpected side effects depending on the retried 
command...

// Martin

             reply	other threads:[~2019-08-19 19:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-19 19:29 Martin =?unknown-8bit?q?Hundeb=C3=B8ll?= [this message]
2019-08-19 19:55 ` Handle broken AT command process Denis Kenzior
2019-08-19 22:12   ` Martin =?unknown-8bit?q?Hundeb=C3=B8ll?=

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=9c9e17cf-549d-dfef-21c0-1c6a13913986@geanix.com \
    --to=martin@geanix.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.