From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: unsolicited multiline result
Date: Thu, 30 Dec 2010 12:51:25 -0600 [thread overview]
Message-ID: <4D1CD4AD.8040503@gmail.com> (raw)
In-Reply-To: <1293731547.17038.35.camel@r82e1wc.ixonos.local>
[-- Attachment #1: Type: text/plain, Size: 1676 bytes --]
Hi Petteri,
Remember, no top-posting on this list ;)
On 12/30/2010 11:52 AM, Tikander Petteri wrote:
> Hi Denis,
>
> Actually I meant with multiline unsolicited results the same thing, as
> you mentioned below:
>
> +prefix: result data 1 <CRLF>
> +prefix: result data 2 <CRLF>
> ...
>
I know what you mean, however last I checked there's no such thing as
multi-line unsolicited results. Are you trying to invent something new
here? Or is there a modem that might be implementing this already?
> And my problem originally was, that although the result-handler handled
> the first line correctly, the next lines where missed.
> So when looking state-machine gsmv1_feed() in gatsyntax.c:
Of course, because unsolicited results are assumed to be prefixed and
suffixed by a CRLF. When you do something like:
<cr><lf>+CUNSOLICITED<cr><lf>+CUNSOLICITED<cr><lf> the parser gets
understandably confused.
However, I'm now starting to question how the spec writers ever intended
the implementation of unsolicited +CEN reporting to work on the
application side. Not to mention other similar ones like +CPOSR. When
the string / update is broken up over multiple unsolicited result codes
the application has no idea when the update has finished.
What is particularly challenging in the +CEN case is the fact that it
uses two different prefixes for such unsolicited reporting.
This makes it impossible to reliably update the emergency call list,
obtain CPOSR information, etc.
Since these features are relatively recent, maybe people who are
implementing these features in real modem firmware can chime in here.
Regards,
-Denis
next prev parent reply other threads:[~2010-12-30 18:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-30 16:55 unsolicited multiline result Petteri Tikander
2010-12-30 16:55 ` [RFC PATCH] gatchat: support for " Petteri Tikander
2010-12-30 17:03 ` Denis Kenzior
2010-12-30 17:52 ` Tikander Petteri
2010-12-30 18:51 ` Denis Kenzior [this message]
2010-12-31 17:07 ` Tikander Petteri
2011-01-14 18:33 ` Tikander Petteri
2011-01-14 20:22 ` Denis Kenzior
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=4D1CD4AD.8040503@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 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.