All of lore.kernel.org
 help / color / mirror / Atom feed
* basic connection howto
@ 2015-09-01 19:34 Bo
  2015-09-01 21:03 ` Denis Kenzior
  0 siblings, 1 reply; 4+ messages in thread
From: Bo @ 2015-09-01 19:34 UTC (permalink / raw)
  To: ofono

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

Hi,
Seems that there takes some fiddling to connect 
my cellular dongle to the ofono framework.

My issue is i quickly looked at the man pages 
to see how to create the link between 
ofono my device.

The man pages mention that: 

"oFono is controlled through D-Bus; 
for example, one can tell ofonod to send 
AT commands over /dev/rfcomm0 by calling 
the D-Bus method org.ofono.at.Manager.Create"

So as any developer would do, I built my dbus command:
dbus-send --system --print-reply 
--dest=org.ofono / org.ofono.at.Manager.Create
string:"dev:/dev/ttyUSB0" string:"at"

I had already done my typical marshalling of  my device like so:
usb_modeswitch -v 1199 -p 0025
rmmod usbserial
modprobe usbserial vendor=0x1199 product=0x0025
which correspond to the sierra-wireless 598u

HOWEVER, there is no command called org.ofono.at.Manager.Create. 
I quickly see that the man page was created in 2009...
Quickly peeking through the test scripts 
I don't find anything that sounds familiar, 
took a peek in list-modems and enable-modem.... 
Also there is no examples to find in the docs to follow.

I also have conman installed, but not really sure who does what here. 
Who is controlling the device? 
Where do i give someone my 
golden /dev/ttyUSB0 string so it all magically works?

Thanks all!
Bo


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

* Re: basic connection howto
  2015-09-01 19:34 basic connection howto Bo
@ 2015-09-01 21:03 ` Denis Kenzior
  2015-09-08 16:57   ` Bo
  2015-09-08 21:32   ` Bo
  0 siblings, 2 replies; 4+ messages in thread
From: Denis Kenzior @ 2015-09-01 21:03 UTC (permalink / raw)
  To: ofono

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

Hi Bo,

 > The man pages mention that:
>
> "oFono is controlled through D-Bus;
> for example, one can tell ofonod to send
> AT commands over /dev/rfcomm0 by calling
> the D-Bus method org.ofono.at.Manager.Create"

Well this is embarrassing.  That manpage is completely out of date. 
Please forget whatever you read in it.

USB Modem detection in oFono is handled by plugins/udevng.c.  Generally, 
things just work.  However, you might have a device that isn't 
supported.  At least the vendor id / product id you mention are missing 
from udevng.c.

Regards,
-Denis



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

* Re: basic connection howto
  2015-09-01 21:03 ` Denis Kenzior
@ 2015-09-08 16:57   ` Bo
  2015-09-08 21:32   ` Bo
  1 sibling, 0 replies; 4+ messages in thread
From: Bo @ 2015-09-08 16:57 UTC (permalink / raw)
  To: ofono

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

Hi Denis!

Thanks for responding.
That helps a lot.
I figured the man pages were seriously out of date, 
so hopefully one of the pro's will update it.
I will try and add support for my device -- 
If I have success, I'll submit a pull request.
Good to know it will just "work out of the box".
Classic problem in embedded engineering is 
you rarely have hardware available to conduct a control experiment, 
so I didn't know what behaviour to expect.

Cheers,
Bo


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

* Re: basic connection howto
  2015-09-01 21:03 ` Denis Kenzior
  2015-09-08 16:57   ` Bo
@ 2015-09-08 21:32   ` Bo
  1 sibling, 0 replies; 4+ messages in thread
From: Bo @ 2015-09-08 21:32 UTC (permalink / raw)
  To: ofono

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

Hi again,
Now after poking around in the code I realize I might be in trouble.
I'm using devtmpfs

Looks like ofono needs udev for the init of the drivers.

However, I'm going to hack ofono and hardcode my usb dev in ofono 
if i can figure it out.
Not quite sure where I should do that in the src code.

If that fails. I will rebuild my system to use eudev, 
and maybe this is a good time to hear if you 
guys support eudev, or if anyone has tried with that before.

Thanks for any guidance,
Bo



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

end of thread, other threads:[~2015-09-08 21:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-01 19:34 basic connection howto Bo
2015-09-01 21:03 ` Denis Kenzior
2015-09-08 16:57   ` Bo
2015-09-08 21:32   ` Bo

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.