From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Weird Droid 4 modem protocol and a way to support it
Date: Tue, 09 Jun 2020 11:00:02 -0500 [thread overview]
Message-ID: <bf3dfd8a-d192-0c6a-d0ee-6480bea81e13@gmail.com> (raw)
In-Reply-To: <20200608235941.GA4835@amd>
[-- Attachment #1: Type: text/plain, Size: 1532 bytes --]
Hi Pavel,
On 6/8/20 6:59 PM, Pavel Machek wrote:
> Hi!
>
> I'd really like to get support for Droid 4 modem... unfortunately it
> is quite special. Few words about Droid 4 modem protocol:
>
<snip>
>
> I'm not sure what is the best way to support it. I was not able to get
> atchat.c to work with it (and I don't think it is quite suitable), so
> I ended up copying it and modifying it for Droid 4 protocol.
>
> Is that acceptable? Can you see a better way?
I don't think there's really another way. So the approach of duplicating
GAtChat and everything inside drivers/atmodem is likely the way to go.
But if you pursue this, we really should throw out as much of the legacy in
gatchat as possible:
- g_at_chat_suspend / resume is likely not needed (you're probably not running
PPP over these, right)?
- stuff like g_at_chat_set_wakeup is only relevant for some weird modems and
probably isn't relevant here
- add_terminator / blacklist_terminator might not be needed
- Some other concepts might not be needed, like send_pdu_listing and
send_and_expect_short_prompt. Those are really only for weird SMS commands.
- It might also be possible to greatly simplify the GAtParser concept.
- I'd also just put this all directly into drivers/motmodem/* instead of trying
to extend gatchat library itself.
Most importantly though, we should stop using glib. oFono is (glacially slowly)
being ported over to ell. So I don't really want to accept any new glib code.
Regards,
-Denis
next prev parent reply other threads:[~2020-06-09 16:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-08 23:59 Weird Droid 4 modem protocol and a way to support it Pavel Machek
2020-06-09 16:00 ` Denis Kenzior [this message]
2020-06-10 16:24 ` Pavel Machek
2020-07-11 12:10 ` Pavel Machek
[not found] <20200610140042.GW43721@atomide.com>
2020-06-10 19:30 ` 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=bf3dfd8a-d192-0c6a-d0ee-6480bea81e13@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