[maemo-developers] [maemo-developers] btcond / d-bus problems
From: Simon Budig simon at budig.deDate: Mon Jan 2 00:28:27 EET 2006
- Previous message: [maemo-developers] Localization.
- Next message: [maemo-developers] Huge bundle O' year-end questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Andrew Ramsay (ramsaya at dcs.gla.ac.uk) wrote: > I started off with the basic example program which just connects to the > session bus, lists the services available, then exits. That works fine > with both session and system buses. I then tried to modify it slightly to > obtain a proxy for the "com.nokia.btcond" service, which didn't work until > I discovered you had to connect to the system rather than the session bus. > Once I'd got the proxy, I tried to call the rfcomm_bind method as > suggested in the wiki. However, all I get back is an error saying that > this method doesn't exist on the com.nokia.btcond.request interface. > Calling any of the other methods results in the error > "com.nokia.btcond.invalid_dev", which is supposed to indicate an invalid > BDA from what I can tell, although the address I'm using is definitely > correct. > > Can anyone help me out here? As I said, I have no previous experience with > D-BUS programming, so I may well be doing something very wrong and just > haven't noticed yet. I'm using the Glib bindings for D-BUS since that was > what the example code used. If anyone has actually done this already I'd > be very interested to hear how you did it. I actually don't really have any experience, but it might be helpful to you to watch the output of "dbus-monitor --system" in an xterm. There you can at least partially follow the signals/commands that go over the dbus. Maybe you then gain some information how this is supposed to work. [Sorry, this Mail should have gone out sooner, but I was unable to send Mail for a while] Hope this helps, Simon -- simon at budig.de http://simon.budig.de/
- Previous message: [maemo-developers] Localization.
- Next message: [maemo-developers] Huge bundle O' year-end questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]