All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH v4 4/4] udev: add Telit UC864-G and update udev rules
Date: Wed, 08 Jun 2011 03:32:15 -0500	[thread overview]
Message-ID: <4DEF338F.1020701@gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1106100958000.30119@entw48>

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

Hi Bernhard,

>>
>> From what I remember of the Telit modems, all ports are fully
>> functional, so the GPS port can be on any tty.  If this is the case,
>> then the way this can be accomplished is by querying the model /
>> revision of the modem during the enable() stage in the modem driver and
>> adding the appropriate atom as needed.
>>
> 
> The GPS port is not fully functional as far is I know it is read only.
> According to the manual it is necessary to enable over the modem line
> with AT$GPSP=1 afterwards it starts reporting NMEA signals on the GPS line.
> 

In theory you can use $GPSNMUN to enable GPS reporting on Ports 1 and 4
which seem to be fully functional.  However, it does look like on my
UC864-G, port #3 is used for the GPS stream.  Port #1 doesn't seem to
respond to anything.

> I like the environment setting with udev more. The approach with
> querying the model during enable() requires a update to the telit plugin
> every time a new model with gps is released. The comment about hardcode
> the interface number was an answer to the suggestion to look at the
> novatel udev code. Sorry for mixing up things.
> 
> After I dug deeper into the add_modem code I don't know if I have a
> problem at all :)
> 
> My current "problem" with the patch I sent is that I get into the
> 
>     if (modem == NULL) {
>         const char *serial = get_serial(parent);
> 
>         modem = ofono_modem_create(serial, driver);
> 
> case.
> 
> ofonod[16327]: src/modem.c:ofono_modem_create() name: 000000000002,
> type: telit
> 
> So my modem dbus modem path is /000000000002 which I thought it was wrong.
> Everything else works well. The GPS value is set and both paths are set
> right.
> 
> So I think my real question is - is it the intended behavior to have the
> path like this? I don't have any supported modem to test (I really
> should by one :D ) and the phonesim is using /phonesim1 as path
> 

Yes and no.  ofono_modem_create has two modes of operation, one where a
known unique id is given.  This can come for example from the serial
number of the USB device.  Some manufacturers provide this information
properly, others do not.  If you cannot trust the USB serial ID, then
giving a NULL parameter to ofono_modem_create will tell oFono to
generate a unique id itself.  Your path will then look like /telit2 or
something like that.

Regards,
-Denis

  reply	other threads:[~2011-06-08  8:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-08 15:18 [PATCH v4 1/4] network-registration.c: add telit support Bernhard.Guillon
2011-06-06 22:52 ` Denis Kenzior
2011-06-08 15:18 ` [PATCH v4 2/4] Add basic Telit UC864-G support: Bernhard.Guillon
2011-06-08  9:29   ` Denis Kenzior
2011-06-14  8:42     ` Bernhard Guillon
2011-06-09 10:26   ` Marcel Holtmann
2011-06-08 15:18 ` [PATCH v4 3/4] atmodem/vendor.h: add OFONO_VENDOR_TELIT Bernhard.Guillon
2011-06-06 22:51   ` Denis Kenzior
2011-06-08 15:18 ` [PATCH v4 4/4] udev: add Telit UC864-G and update udev rules Bernhard.Guillon
2011-06-08 15:32   ` Bernhard Guillon
2011-06-06 23:25     ` Denis Kenzior
2011-06-10  8:32       ` Bernhard Guillon
2011-06-08  8:32         ` Denis Kenzior [this message]
2011-06-14  8:34           ` Bernhard Guillon
2011-06-13  9:28             ` Denis Kenzior
2011-06-15  9:12               ` Bernhard Guillon
2011-06-13  9:04   ` 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=4DEF338F.1020701@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.