All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Getting started (serial GPRS modem)
Date: Tue, 11 Sep 2012 23:49:28 -0500	[thread overview]
Message-ID: <50501458.3050003@gmail.com> (raw)
In-Reply-To: <CAK2MJLofabWuABc8vOnZ+tF_p4nMHugoMoSYTmK1wm0KFE3+EQ@mail.gmail.com>

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

Hi Erik,

On 09/11/2012 08:17 AM, Erik wrote:
> Hi!
>
> I've been looking at ofono for quite some time now. A couple of years
> ago I wrote a lot of code to interface a GPRS modem. Now I need to do
> basically the same again and I wonder if ofono would be a good idea to use.
>
> The modem is not supported by ofono out of the box (no driver for it in
> the tree).
>
> First of all, I must say that I really miss some kind of "getting
> started" information on the home page. Maybe I have just not found it.
> Is there such a thing?
>

Formal getting started documentation is lacking at the moment. 
Documentation contributions are always welcome ;)

There are plenty of working examples to learn from however.

> Second, the modem is a serial GPRS modem connected through a serial
> line. This has to be farily common. Isn't there a simple way of just
> testing ofono without adding udev rules, writing drivers, etc? What I
> would like is basically to start ofonod with a path to the serial
> device, telling it to use only standard (not device-specific) AT commands.

We have tried that, unfortunately we have yet to encounter a piece of 
hardware that can be driven entirely using standard AT commands.  There 
are too many vendor commands and behavioral quirks that have to be 
accounted for.

>
> I don't think what I'd like to do is possible. So I added an udev rule
> in the form of:
>
> KERNEL=="ttyUSB*", ENV{OFONO_DRIVER}="nokia"

Are you picking a driver at random or is it indeed a Nokia modem?

>
> This gives me some indication that something happens when I start ofonod:
>
> ofonod[21742]: plugins/udev.c:add_modem()
> /devices/pci0000:00/0000:00:06.0/usb2/2-2/2-2:1.0/ttyUSB0/tty/ttyUSB0
> (atmodem)
>
> How do I proceed from here?
>
> test/llist-modems gives me nothing.
>
> Do the existing drivers check that the modem is actually a modem of that
> type (nokia in this case)?

No, but the list of modem drivers that support a serial port is only a 
subset of all the drivers available.  See add_modem() function in 
plugins/udev.c for more details.  The subset is currently limited to 
ifx, calypso, tc65, wavecom, sim900 and a few others.  These devices are 
true serial port devices and frequently require multiplexing, etc.

>
> I am not looking for anything fancy. I basically only want to set up a
> GPRS connection and maybe do operator selection.
> No voice, no SMS, nothing more.

If you're wanting GPRS on a true serial port based device, then you 
definitely need to write your own modem driver for it.  GPRS requires 
multiple AT ports to drive successfully which requires multiplexing 
(e.g. via CMUX).  Multiplexing details are frequently vendor-specific, 
so these have to be handled in your driver.

Regards,
-Denis

  reply	other threads:[~2012-09-12  4:49 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 [this message]
2012-09-12  8:40   ` Erik
2012-09-12 13:35     ` Denis Kenzior
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=50501458.3050003@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.