From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Using ofono for location service
Date: Wed, 11 Mar 2015 11:31:40 -0500 [thread overview]
Message-ID: <55006DEC.8050709@gmail.com> (raw)
In-Reply-To: <50BCD3CCE3CFC54ABCADC6EDD7405570C5549E@BGSMSX104.gar.corp.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1783 bytes --]
Hi Kiran,
> Following are the logs:
> ./test/gn3
> Connecting modem /he910_0...
> ofonod[2389]: drivers/telitmodem/location-reporting.c:telit_location_reporting_enable() lr=0x82e09e0
> ofonod[2389]: drivers/telitmodem/location-reporting.c:telit_portcfg_check_cb() lr=0x82e09e0 ok=1
> ofonod[2389]: drivers/telitmodem/location-reporting.c:telit_gps_enable_cb() lr=0x82e09e0 ok=1
> ofonod[2389]: drivers/telitmodem/location-reporting.c:telit_gps_ctl_cb() lr=0x82e09e0 ok=1
> ofonod[2389]: src/modem.c:get_modem_property() modem 0x82e2ba0 property GPS
> ofonod[2389]: drivers/telitmodem/location-reporting.c:telit_location_reporting_disable() lr=0x82e09e0
> ofonod[2389]: drivers/telitmodem/location-reporting.c:telit_gps_disable_cb() lr=0x82e09e0, ok=1
Everything looks as it should here.
>
> The test script I am using is:
>
> import dbus
> import sys
> import glib
>
> bus = dbus.SystemBus()
>
> if len(sys.argv) == 2:
> path = sys.argv[1]
> else:
> manager = dbus.Interface(bus.get_object('org.ofono', '/'),
> 'org.ofono.Manager')
> modems = manager.GetModems()
> path = modems[0][0]
>
> print("Connecting modem %s..." % path)
> modem = dbus.Interface(bus.get_object('org.ofono', path),
> 'org.ofono.LocationReporting')
>
> fd = modem.Request()
>
What do you expect the script to do actually?
Once you obtain the file descriptor, your client must be around to do
something with it (e.g. read NMEA strings).
As soon as the client(UNIX process) who performed the 'Request()'
operation exits, oFono closes the fd and shuts down the NMEA port on the
modem.
So everything is working as it should.
Regards,
-Denis
next prev parent reply other threads:[~2015-03-11 16:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-06 11:55 Using ofono for location service Rajashekharaiah, Kiran KumarX
2015-03-06 17:45 ` Denis Kenzior
2015-03-11 13:06 ` Rajashekharaiah, Kiran KumarX
2015-03-11 16:31 ` Denis Kenzior [this message]
2015-03-12 6:25 ` Rajashekharaiah, Kiran KumarX
2015-03-12 14:39 ` Denis Kenzior
[not found] <222E70FA67D72A4FB8EEDF5AF01724ACC99C73@BGSMSX102.gar.corp.intel.com>
2015-03-12 11:56 ` Rajashekharaiah, Kiran KumarX
2015-03-12 14:45 ` 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=55006DEC.8050709@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.