From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH v2 9/9] gps: add documentation
Date: Thu, 13 Jan 2011 11:30:19 -0600 [thread overview]
Message-ID: <4D2F36AB.8060903@gmail.com> (raw)
In-Reply-To: <1294716238-21218-10-git-send-email-rafael.zurita@profusion.mobi>
[-- Attachment #1: Type: text/plain, Size: 2742 bytes --]
Hi Rafael,
> +Location Reporting hierarchy
> +=================
> +
> +Service org.ofono
> +Interface org.ofono.LocationReporting
> +Object path [variable prefix]/{modem0,modem1,...}
> +
> +Methods dict GetProperties()
> +
> + Returns all Gps properties. See the
> + properties section for available properties.
> +
> + Possible Errors: [service].Error.InProgress
> + [service].Error.Failed
> +
> + void SetProperty(string name, variant value)
> +
> + Changes the value of the specified property. Only
> + properties that are listed as read-write are
> + changeable. On success a PropertyChanged signal
> + will be emitted.
> +
> + Possible Errors: [service].Error.InvalidArguments
> + [service].Error.InProgress
> + [service].Error.Failed
> +
> +Signals PropertyChanged(string property, variant value)
> +
> + This signal indicates a changed value of the given
> + property.
> +
> +Properties boolean Powered [readwrite]
> +
> + This property will power or disable the GPS feature in
> + the modem.
> +
> + Many modem manufacturers provide a GPS unit with their
> + modem hardware. This unit can be turned on or off and
> + frequently takes over one of the tty ports that the
> + modem provides.
So after discussing this some more with Marcel I'd like to change the
API slightly. Instead of using a Powered property, let us use an Agent
with file descriptor passing instead. The flow will roughly go like this:
LocationReporting interface becomes available and the string Type
property is known. An external client registers an Agent with this
interface. Internally this triggers the driver function to bring up the
GPS device and return the file descriptor to the core. The core takes
care of calling the Agent with the file descriptor using DBus FD passing
mechanisms.
Once the remote client receives the file descriptor it can use it to
receive e.g. NMEA data.
Unregistering the agent or if the remote client exits unexpectedly
terminates should close the file descriptor and deactivate the NMEA stream.
> +
> + dict Settings [readonly]
> +
This dictionary is no longer necessary.
> + Holds the location information settings
> +
> + string Device [readonly]
> +
> + Holds the device from which the location
> + information can be obtained (e.g. "/dev/ttyACM2")
> +
This makes this property unnecessary
> + string Type [readonly]
> +
> + Holds the type of the device (e.g. "nmea")
> +
And this property should be moved to a top level property instead of
being inside the Settings dict.
I hope my explanation was pretty clear, if not, find me on IRC.
Regards,
-Denis
prev parent reply other threads:[~2011-01-13 17:30 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-11 3:23 [PATCH v2 0/9] Add GPS atom Rafael Ignacio Zurita
2011-01-11 3:23 ` [PATCH v2 1/9] gps: define new dbus interface Rafael Ignacio Zurita
2011-01-13 17:11 ` Denis Kenzior
2011-01-11 3:23 ` [PATCH v2 2/9] gps: add new interface to feature map Rafael Ignacio Zurita
2011-01-13 17:11 ` Denis Kenzior
2011-01-11 3:23 ` [PATCH v2 3/9] gps: add public header Rafael Ignacio Zurita
2011-01-13 17:33 ` Denis Kenzior
2011-01-11 3:23 ` [PATCH v2 4/9] gps: implement interface/atom Rafael Ignacio Zurita
2011-01-11 3:23 ` [PATCH v2 5/9] mbmmodem: add gps atom Rafael Ignacio Zurita
2011-01-11 3:23 ` [PATCH v2 6/9] plugins: add gps atom to mbm Rafael Ignacio Zurita
2011-01-11 3:23 ` [PATCH v2 7/9] plugins/udev.c: add gps comparison for add_mbm registered modem Rafael Ignacio Zurita
2011-01-11 3:23 ` [PATCH v2 8/9] gps: add test scripts Rafael Ignacio Zurita
2011-01-11 3:23 ` [PATCH v2 9/9] gps: add documentation Rafael Ignacio Zurita
2011-01-13 17:30 ` Denis Kenzior [this message]
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=4D2F36AB.8060903@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.