From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Handling empty row from AT command
Date: Wed, 20 Jun 2018 08:20:13 -0500 [thread overview]
Message-ID: <d72eb358-78a5-ef3d-c1fe-8ec83fcba27c@gmail.com> (raw)
In-Reply-To: <AM5PR1001MB11716B2FEF6BCFC4D2E4C45596770@AM5PR1001MB1171.EURPRD10.PROD.OUTLOOK.COM>
[-- Attachment #1: Type: text/plain, Size: 861 bytes --]
Hi Mattias,
On 06/20/2018 02:34 AM, Mattias Månsson wrote:
> I'm integrating a new Cinterion module and have a small issue I haven't
> been able to solve nicely in Ofono. One of their commands responds with
> a list of stuff, followed by an OK but also after the OK there is an
> empty line. Which is of course wrong, but it might not be solved for a
> while. Using the g_at_chat_send function with a callback doesn't seem to
> work then, the callback will not be called it seems and I get stuck in
> the sequence. Can I without modifying the AT parser handle this somehow?
>
Nope, the parser is what actually drives command recognition. So
sending empty commands, etc won't work.
If you're using the gsmv1 parser, then try switching to permissive.
Permissive is generally able to deal with such situations.
Regards,
-Denis
next prev parent reply other threads:[~2018-06-20 13:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-20 7:34 Handling empty row from AT command Mattias =?unknown-8bit?q?M=C3=A5nsson?=
2018-06-20 13:20 ` Denis Kenzior [this message]
2018-06-20 13:24 ` SV: " Mattias =?unknown-8bit?q?M=C3=A5nsson?=
2018-06-20 13:30 ` Denis Kenzior
2018-06-20 13:33 ` SV: " Mattias =?unknown-8bit?q?M=C3=A5nsson?=
2018-06-20 13:58 ` Mattias =?unknown-8bit?q?M=C3=A5nsson?=
2018-06-20 14:28 ` Denis Kenzior
2018-06-20 14:30 ` SV: " Mattias =?unknown-8bit?q?M=C3=A5nsson?=
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=d72eb358-78a5-ef3d-c1fe-8ec83fcba27c@gmail.com \
--to=denkenz@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox