From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: unsolicited multiline result
Date: Fri, 14 Jan 2011 14:22:16 -0600 [thread overview]
Message-ID: <4D30B078.3030207@gmail.com> (raw)
In-Reply-To: <1295029988.23336.355.camel@r82e1wc.ixonos.local>
[-- Attachment #1: Type: text/plain, Size: 2247 bytes --]
Hi Petteri,
On 01/14/2011 12:33 PM, Tikander Petteri wrote:
> Hi Denis,
>
> On Fri, 2010-12-31 at 19:07 +0200, Tikander Petteri wrote:
>
>>> 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.
>>
>> Thanks.
>>
>
> Have you got some explanation from the standard writers, what was the
> idea for these multiple unsolicited codes to be encoded in the way,
> TS.27007 says?
Not yet.
>
>>> When
>>> the string / update is broken up over multiple unsolicited result codes
>>> the application has no idea when the update has finished.
>>>
>>
>> That's true. There is no terminator ('OK' etc) in the end of the
>> unsolicited response for insuring that all the data has been received.
>>
>
> One solution (nasty one) popped in my mind, if no indication of the last
> result-code is received: usage of timer. So, after receiving some bytes
> of the unsolicited message, possible remaining bytes could be monitored
> by starting some timer for a while. If after timeout I/O-buffer is
> empty, then hopefully the result is ready. But naturally this makes the
> result-handling a little bit lazy, because the result is not sent to the
> upper level immediately...
>
The timer is the only solution I have thought of as well. I do not see
any other way. However, this solution is not really guaranteed to
always work as expected. e.g. due to OS load conditions, other timing
quirks, etc.
So I'd rather not use it unless there's absolutely no other alternative.
>>> 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.
>>>
>>
>
> I noticed in the oFono-mailing list some earlier discussion of the plans
> for taking care of Location service API (as well as TODO-task marked to
> be done). Is it still a valid case, so is it planned to be implemented?
>
I believe so, perhaps one of the STE guys can comment more.
Regards,
-Denis
prev parent reply other threads:[~2011-01-14 20:22 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
2010-12-31 17:07 ` Tikander Petteri
2011-01-14 18:33 ` Tikander Petteri
2011-01-14 20:22 ` Denis Kenzior [this message]
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=4D30B078.3030207@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.