[maemo-developers] DBus Methods and Signals Introspection or Documentation

From: Daniil Ivanov daniil.ivanov at gmail.com
Date: Mon Jun 7 14:13:37 EEST 2010
Hi Wei!

On Mon, Jun 7, 2010 at 2:02 PM, Wei Li <ttlee1984 at gmail.com> wrote:
> Hi Daniil,
>
> So you mean the API references are object (component) dependent hence there
> is no unified reference to all the services of /com/nokia objects?

Each component has it's own team responsible for it and it's pretty
natural that every team has it's own
documentation package.

> I've got to say it is a little bit inconvenient. A unified reference document will be
> much helpful.

If we are speaking about internal DBus methods and signals, you are
not supposed to use it.
Otherwise you can install doc packages and use them with devhelp.

> So how about mce and icd? I found the dbus-names.h File
> Reference but no luck with icd in the same page.

icd2 and mce are documented in API documentation
http://maemo.org/development/sdks/maemo_5_api_documentation/

Thanks, Daniil.

> Thanks for the help!
>
> Cheers,
> Wei
>
>
> On Mon, Jun 7, 2010 at 12:20 PM, Daniil Ivanov <daniil.ivanov at gmail.com>
> wrote:
>>
>> Hi Wei!
>>
>>  CSD stands for cellular services daemon and name explains why API is
>> closed.
>>
>> Thanks, Daniil.
>>
>> On Mon, Jun 7, 2010 at 12:15 PM, Wei Li <ttlee1984 at gmail.com> wrote:
>> > Thanks for all your help! As I mentioned, I am doing a middleware (for
>> > energy efficiency) project on N900, hence I need to get the device
>> > status
>> > information such as battery, WLan card, mce. I need to use DBus to
>> > communicate with other components in my work. So the refs on DBus
>> > methods
>> > and signals will be helpful. Some of such information (for example, the
>> > battery) can be queried from HAL which has a defined specification. But
>> > some
>> > are not. For example, under /com/nokia path, there are many objects like
>> > icd, wlancond and in Faheem's example, csd (don't even know what it is.
>> > I
>> > assumed circuit switch data?), which I couldn't find the docs for them.
>> > If
>> > anyone knows a general reference to all those objects, like what HAL
>> > specification does, it would be great.
>> >
>> > BTW, in dbus-send command, the --desti argument specifies the "service",
>> > meaning the interface? I always get lost with bus name (connection name)
>> > and
>> > interface.
>> >
>> > Thanks for all the help!
>> >
>> > Cheers,
>> > Wei
>> >
>> > On Mon, Jun 7, 2010 at 11:35 AM, Faheem Pervez <trippin1 at gmail.com>
>> > wrote:
>> >>
>> >> Hi,
>> >>
>> >> On Mon, Jun 7, 2010 at 12:15 AM, Wei Li <ttlee1984 at gmail.com> wrote:
>> >> > I am doing a project of middleware on Maemo/N900. I need to find the
>> >> > methods
>> >> > and signals related to the hardware, for example, HAL (especially the
>> >> > objects under /com/nokia since it is somehow proprietary). However, I
>> >> > couldn't find a detailed documentation on that. And I also used tools
>> >> > such
>> >> > as mdbus2, but since it lacks documentation and so does DBus itself,
>> >> > I
>> >> > couldn't figure out how to do the introspection to find the
>> >> > information
>> >> > I
>> >> > want. Anyone knows how to find that? Thanks!
>> >> >
>> >>
>> >> You'll get more information if you specify *what* interface you're
>> >> trying to figure out. The best way I found for me was looking, using
>> >> strings, in a library that calls a D-Bus method, finding the name of
>> >> that method call and working out its arguments by trial and error.
>> >>
>> >> Graham Cobb's
>> >> https://garage.maemo.org/plugins/wiki/index.php?Tools&id=1106&type=g
>> >> may also be of help.
>> >>
>> >> Best regards,
>> >> Faheem
>> >
>> >
>> > _______________________________________________
>> > maemo-developers mailing list
>> > maemo-developers at maemo.org
>> > https://lists.maemo.org/mailman/listinfo/maemo-developers
>> >
>> >
>
>
More information about the maemo-developers mailing list