All of lore.kernel.org
 help / color / mirror / Atom feed
From: M. Dietrich <ofono@emdete.de>
To: ofono@ofono.org
Subject: Re:  fix for +CMER parser of AT driver (fixes registration)
Date: Fri, 18 Jan 2013 23:44:52 +0100	[thread overview]
Message-ID: <20130118224452.GS3604@emdete.de> (raw)
In-Reply-To: <50F76FD6.30008@gmail.com>

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

Hi,

On Wed, Jan 16, 2013 at 09:28:22PM -0600, Denis Kenzior wrote:
> It is only a problem if the modem is broken, in which case you need to
> use a quirk and parsing the result of CMER=? is likely unnecessary.
> For broken devices it is likely easier to simply skip CMER probing and
> just set the wanted CMER settings.

i assume more or less all modems are in one or the other way
"broken". even the spec is (in my opinion) broken.

so if only the output of an option list just does not follow the spec
but most other stuff of the modem works fine why not be more tolerant
parsing the option list?

if you instead have a quirk for this and only this modem you fixed only
a single one. i assume that also other modems are broken in this way and
fixing it in the parser would enable more modems to work.

> >marcel already pointer out that a generic aproach may be
> >unnecessarily complex where i agree if it comes to strings and nested
> >brackets but for plain integer cases it would be quite useful to get
> >this done in one place for all. if interested i could implement such
> >stuff into gatchat/gatresult.c which then can be used for the
> >integer-only cases. what do you think?
> Not sure what you're asking here, can you elaborate?

the AT parser code for the option list is redundant, a re-use of a
single implementation would make some sense and i offered a more generic
way of parsing an option list. marcel pointed out that a completly
generic parser would be unnecessarily complex and i agree. so i suggest
a re-usable code for integer option lists.

anyway i would like to see the patch in ofono. on the one side it does
not break any existing modem, on the other side it makes some modem
work.

regards,
	michael

-- 
M. Dietrich

  reply	other threads:[~2013-01-18 22:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-07 20:58 fix for +CMER parser of AT driver (fixes registration) M. Dietrich
2013-01-17  3:28 ` Denis Kenzior
2013-01-18 22:44   ` M. Dietrich [this message]
2013-01-19  0:05     ` Denis Kenzior
2013-01-19 18:28       ` M. Dietrich
2013-01-19 19:05         ` 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=20130118224452.GS3604@emdete.de \
    --to=ofono@emdete.de \
    --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.