Re: [maemo-developers] btcond / d-bus problems
Andrew Ramsay ([EMAIL PROTECTED]) 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 -- [EMAIL PROTECTED] http://simon.budig.de/ ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] btcond / d-bus problems[MESSAGE NOT SCANNED]
On Wed, 28 Dec 2005, Johan Hedberg wrote: On Wed, Dec 28, 2005, Andrew Ramsay wrote: Is there anything obviously wrong with that? Nothing obvious, except that you should be passing a pointer to the string (i.e. char **) when calling get_args (and when done with the returned string free it with dbus_free). However, that shouldn't cause the problem you're describing. Do you get the same result if you use dbus-send from the command line: dbus-send --system --type=method_call --print-reply \ --dest=com.nokia.btcond /com/nokia/btcond/request \ com.nokia.btcond.request.rfcomm_bind string:00:02:76:C0:56:A4 string:SPP Johan Running that gives me exactly the same error as the programmatic method. I'm about to try reflashing the N770 with the last software update file, in case something I've done to it is causing the problems. Andrew ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
[maemo-developers] btcond / d-bus problems
I've been trying to connect a Nokia LD-1W Bluetooth GPS unit to an N770 programmatically. The manual method on the wiki (hcitool scan + rfcomm bind dev bda) works fine, but I haven't been able to get anywhere with the btcond D-BUS interface linked from the wiki page. I've got no real experience of using D-BUS, which may well be part of the problem, but I've tried lots of different things now and none of them are working. 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. Andrew ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers