Open Source Telephony
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Getting started (serial GPRS modem)
Date: Wed, 12 Sep 2012 08:35:39 -0500	[thread overview]
Message-ID: <50508FAB.2030609@gmail.com> (raw)
In-Reply-To: <CAK2MJLqFZqRqk8e-PKE9xQU9NuRE8ZpwbnH9tYdW5_wGnwT_rg@mail.gmail.com>

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

Hi Erik,

> I picked a driver at random. What I was looking for was basically to see
> if I could at least see some trace of AT commands being sent. I'll care about
> if they are the right ones when I understand how stuff work. Something
> apparently understood that it should use the port I specified. What happens
> next? I understand that list-modems ends up doing some dbus magic
> in src/manager.c but I haven't really figured out more. Any hints on debugging
> except running ofono with the -d option? Should I be using some dbus
> tracing utility? I have no experience *at all* of using dbus myself. i basically
> know more or less what it is but not more than that.

There's d-feet and the like for tracing D-Bus, however most everything 
can be done using the included test scripts in ofono/test.  e.g. 
monitor-ofono, list-modems, etc.

The modem detection logic is handled in plugins/udevng.c and 
plugins/udev.c  You want to modify the latter which takes care of serial 
tty based devices.  Create a new modem driver and add it to the 
add_modem function.  Your udev changes seem fine.

> Hm. I wouldn't say GPRS *requires* multiplexing. I've written a GSM0710 MUX
> code before and I know that my current modem supports it (I even made sure
> to get the specification for it when we selected this modem) but surely it's
> possible to set up a GPRS connection without it, even though such a setup
> is quite limited.

For all practical purposes it does, unless you feel like giving even 
basic things like signal strength reporting while the context is active. 
  You can try to write a driver without it, and it should even work. 
However, oFono has multiplexing support already assuming your modem is 
07.10 compliant.  See plugins/calypso.c on how to setup the multiplexer.

>
> I found Android's reference-ril code (not trying to offend anyone, not sure
> about any potential religious wars going on here) which seems really
> simple. I'll see if that might suit my immediate needs better. But I haven't
> written off ofono yet.
>
> I suppose what I'm looking for is a really quick way of doing what I can do
> with chat and pppd but with potential of doing much more in the future.
>

I doubt you can enable a modem faster with any other stack out there 
today.  You do need to write about 500 lines of code for a new modem 
driver though ;)

Regards,
-Denis

  reply	other threads:[~2012-09-12 13:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-11 13:17 Getting started (serial GPRS modem) Erik
2012-09-12  4:49 ` Denis Kenzior
2012-09-12  8:40   ` Erik
2012-09-12 13:35     ` Denis Kenzior [this message]
2012-09-12 15:55     ` Daniele Palmas
2012-09-12 17:31       ` Andrea Galbusera
2012-09-13 12:44         ` Daniele Palmas

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=50508FAB.2030609@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