All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: ofono with serial modem
  2011-12-02 10:52 ofono with serial modem Andrea Galbusera
@ 2011-11-30  9:15 ` Denis Kenzior
  2011-12-05 13:52   ` Andrea Galbusera
  0 siblings, 1 reply; 4+ messages in thread
From: Denis Kenzior @ 2011-11-30  9:15 UTC (permalink / raw)
  To: ofono

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

Hi Andrea,

On 12/02/2011 04:52 AM, Andrea Galbusera wrote:
> Hi! I'm new to the list and ofono project. In these days I'm trying to
> figure out if ofono can help me with some embedded projects involving
> M2M GPRS connections on serial modems.
> I have a few questions I was not able to give an answer to, neither
> from wiki nor from doc files in source code. Hope not to bother with
> too newbish questions here!
> 
> 1. Are non-hot-pluggable serial modem supported by ofono? I believe
> they should run with the atmodem driver: is this correct?

Yes they are, however they are still detected via udev and require a
proper modem driver. 'atmodem' is a collection of atom drivers that
implement generic 27.007 functionality.  The difference should be
explained nicely in the presentations posted on the site.

See the calypso modem driver in plugins/calypso.c for an example as well
as doc/calypso-modem.txt for an example udev rule.

> 
> 2. Is udev detection the only way to let ofono know about a modem? If
> I'm not wrong, I read about support for some kind of static
> configuration in the past (modem.conf file), but it seems gone in
> these days. I'm definitely fine with udev: just need some hints on how
> to setup a rule to let ofono know I have a pretty standard AT modem
> on, say, ttyS0. I looked at ofono.rules, but I think it deals mainly
> with usb modem.

A udev rule like:
KERNEL=="ttyS0", ENV{OFONO_DRIVER}="your_driver"

should be all that is needed.

> 
> 3. ofono looks very promising for its integration with d-bus. I'm
> looking forward to be able to have different applications to manage
> GPRS context activation/deactivation while, i.e., monitoring signal
> strength and maybe asynchronous notifications by the modem itself. Are
> these tasks in the ofono's scope or not?

Yes all the things you have listed are possible.

> 
> Thanks in advance for any clarifications!
> 

Regards,
-Denis

^ permalink raw reply	[flat|nested] 4+ messages in thread

* ofono with serial modem
@ 2011-12-02 10:52 Andrea Galbusera
  2011-11-30  9:15 ` Denis Kenzior
  0 siblings, 1 reply; 4+ messages in thread
From: Andrea Galbusera @ 2011-12-02 10:52 UTC (permalink / raw)
  To: ofono

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

Hi! I'm new to the list and ofono project. In these days I'm trying to
figure out if ofono can help me with some embedded projects involving
M2M GPRS connections on serial modems.
I have a few questions I was not able to give an answer to, neither
from wiki nor from doc files in source code. Hope not to bother with
too newbish questions here!

1. Are non-hot-pluggable serial modem supported by ofono? I believe
they should run with the atmodem driver: is this correct?

2. Is udev detection the only way to let ofono know about a modem? If
I'm not wrong, I read about support for some kind of static
configuration in the past (modem.conf file), but it seems gone in
these days. I'm definitely fine with udev: just need some hints on how
to setup a rule to let ofono know I have a pretty standard AT modem
on, say, ttyS0. I looked at ofono.rules, but I think it deals mainly
with usb modem.

3. ofono looks very promising for its integration with d-bus. I'm
looking forward to be able to have different applications to manage
GPRS context activation/deactivation while, i.e., monitoring signal
strength and maybe asynchronous notifications by the modem itself. Are
these tasks in the ofono's scope or not?

Thanks in advance for any clarifications!

Regards,
Andrea

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ofono with serial modem
  2011-12-05 13:52   ` Andrea Galbusera
@ 2011-12-02 11:48     ` Denis Kenzior
  0 siblings, 0 replies; 4+ messages in thread
From: Denis Kenzior @ 2011-12-02 11:48 UTC (permalink / raw)
  To: ofono

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

Hi Andrea,

>> See the calypso modem driver in plugins/calypso.c for an example as well
>> as doc/calypso-modem.txt for an example udev rule.
> 
> At moment I'm interested in using ofono with a Telit GPRS module with
> serial interface.
> As far as I understand, there already exist a driver for Telit UC864-G
> in plugins dir. I'm trying to figure out how much of this driver can
> be used for other modules by Telit. I'm trying to follow the code path
> from udev detection down to driver selection. I'm therefore slightly
> confused by the interaction of the two modules udev.c and udevng.c. I

udev is the old detection code, udevng is the next generation detection
code.  They work together at the moment.

> see setup and init function for different modems in both of them. Are
> they supposed to provide different functions or is "ng" a short for
> new-generation or the like? If so, and supposed I need to write a new
> driver for the modem, where should I hook it?

If you're adding a new serial modem then likely you want to put it into
udev.c for now.  udevng is limited to USB devices only at the moment.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ofono with serial modem
  2011-11-30  9:15 ` Denis Kenzior
@ 2011-12-05 13:52   ` Andrea Galbusera
  2011-12-02 11:48     ` Denis Kenzior
  0 siblings, 1 reply; 4+ messages in thread
From: Andrea Galbusera @ 2011-12-05 13:52 UTC (permalink / raw)
  To: ofono

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

Hi, Denis!
Thank you for clarifications. I'm getting better understanding of
ofono architecture now. See a few more comments below.

On Wed, Nov 30, 2011 at 10:15 AM, Denis Kenzior <denkenz@gmail.com> wrote:
>> 1. Are non-hot-pluggable serial modem supported by ofono? I believe
>> they should run with the atmodem driver: is this correct?
>
> Yes they are, however they are still detected via udev and require a
> proper modem driver. 'atmodem' is a collection of atom drivers that
> implement generic 27.007 functionality.  The difference should be
> explained nicely in the presentations posted on the site.

Just a suggestion here. It was quite difficult for me to find those
presentations: links are only available as pretty old blog posts!
It would probably be nice to link them in the Documentation section or
in the wiki.

> See the calypso modem driver in plugins/calypso.c for an example as well
> as doc/calypso-modem.txt for an example udev rule.

At moment I'm interested in using ofono with a Telit GPRS module with
serial interface.
As far as I understand, there already exist a driver for Telit UC864-G
in plugins dir. I'm trying to figure out how much of this driver can
be used for other modules by Telit. I'm trying to follow the code path
from udev detection down to driver selection. I'm therefore slightly
confused by the interaction of the two modules udev.c and udevng.c. I
see setup and init function for different modems in both of them. Are
they supposed to provide different functions or is "ng" a short for
new-generation or the like? If so, and supposed I need to write a new
driver for the modem, where should I hook it?

Thanks again for your help
Regards,
Andrea

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-12-05 13:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-02 10:52 ofono with serial modem Andrea Galbusera
2011-11-30  9:15 ` Denis Kenzior
2011-12-05 13:52   ` Andrea Galbusera
2011-12-02 11:48     ` Denis Kenzior

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.