From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Implement signal strength polling in plugin/driver
Date: Sat, 09 Jun 2012 01:16:41 -0500 [thread overview]
Message-ID: <4FD2EA49.8060805@gmail.com> (raw)
In-Reply-To: <d9e9c17c27aa80d12803dbaa87b8b971@toulouse.viveris.com>
[-- Attachment #1: Type: text/plain, Size: 880 bytes --]
Hi Audric,
> I found by looking in include/netreg.h that it should be up to the
> plugin to
> implement CSQ polling, however I can't find how it is supposed to be done.
> Indeed, the plugin has no access to the netreg atom nor structure, so
> how is it
> supposed to update one of these properties ?
Drivers do not modify DBus properties directly. Instead you should be
signaling the change to the core the regular way, via
ofono_netreg_strength_notify.
If you want to implement periodic signal strength reporting, then use
g_idle_add_seconds to periodically send the +CSQ query. Please note
that doing it this way you'd have to keep track of other states. For
example, you might want to stop polling when the registration is lost, etc.
Ideally you should be asking your vendor why the signal strength isn't
reported properly.
Regards,
-Denis
next prev parent reply other threads:[~2012-06-09 6:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-07 15:20 Implement signal strength polling in plugin/driver Audric Schiltknecht
2012-06-09 6:16 ` Denis Kenzior [this message]
2012-06-11 14:00 ` Guillaume Zajac
2012-06-11 14:28 ` Audric Schiltknecht
-- strict thread matches above, loose matches on Subject: below --
2012-06-14 12:21 Audric Schiltknecht
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=4FD2EA49.8060805@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox