2016-03-25 00:04:56

by Travis Griggs

[permalink] [raw]
Subject: good dbus command line tool for embedded exploration of the ble api?

I just started transitioning from 5.37 to 5.38. 2 or so months ago, I had gotten an Arm single board computer acting as a peripheral based on copying/guesswork from how example-advertise and example-gatt-server work. I’m trying to resurrect that work. But one thing I think I need to understand better is how dbus works. I’m looking for some kind of command line tool that I can use in this environment to explore the bus layout and get a feel for how it all fits together. Does someone have a good recommendation, preferably something that’s available as debian (jessie) package. I had seen a reference to qdbus, but it looks like it would drag in the entire Qt framework. If there was something for python(3) that explained the jst of dbus and how to explore it with python, I could just use that, but the python dbus docs I’ve found haven’t done a lot to help me. Thanks for any hints, tips, etc.


2016-03-31 07:51:41

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: good dbus command line tool for embedded exploration of the ble api?

Hi Travis,

On Fri, Mar 25, 2016 at 10:09 PM, Travis Griggs <[email protected]> wrote:
>
>> On Mar 24, 2016, at 5:04 PM, Travis Griggs <[email protected]> wrote:
>>
>> I just started transitioning from 5.37 to 5.38. 2 or so months ago, I had gotten an Arm single board computer acting as a peripheral based on copying/guesswork from how example-advertise and example-gatt-server work. I’m trying to resurrect that work. But one thing I think I need to understand better is how dbus works. I’m looking for some kind of command line tool that I can use in this environment to explore the bus layout and get a feel for how it all fits together. Does someone have a good recommendation, preferably something that’s available as debian (jessie) package. I had seen a reference to qdbus, but it looks like it would drag in the entire Qt framework. If there was something for python(3) that explained the jst of dbus and how to explore it with python, I could just use that, but the python dbus docs I’ve found haven’t done a lot to help me. Thanks for any hints, tips, etc.
>
> I thought I’d report that I did find mdbus2. Which is very light on dependencies. It can send show the topology and send messages. But I’m not sure how to make it access properties. And I did discover dbus-monitor thanks to Barry Byford, which seems to be good for watching traffic, though I couldn’t figure out to how to use it to explore what was there.--

Have you tried d-feet?

--
Luiz Augusto von Dentz

2016-03-25 20:09:31

by Travis Griggs

[permalink] [raw]
Subject: Re: good dbus command line tool for embedded exploration of the ble api?


> On Mar 24, 2016, at 5:04 PM, Travis Griggs <[email protected]> wrote:
>
> I just started transitioning from 5.37 to 5.38. 2 or so months ago, I had gotten an Arm single board computer acting as a peripheral based on copying/guesswork from how example-advertise and example-gatt-server work. I’m trying to resurrect that work. But one thing I think I need to understand better is how dbus works. I’m looking for some kind of command line tool that I can use in this environment to explore the bus layout and get a feel for how it all fits together. Does someone have a good recommendation, preferably something that’s available as debian (jessie) package. I had seen a reference to qdbus, but it looks like it would drag in the entire Qt framework. If there was something for python(3) that explained the jst of dbus and how to explore it with python, I could just use that, but the python dbus docs I’ve found haven’t done a lot to help me. Thanks for any hints, tips, etc.

I thought I’d report that I did find mdbus2. Which is very light on dependencies. It can send show the topology and send messages. But I’m not sure how to make it access properties. And I did discover dbus-monitor thanks to Barry Byford, which seems to be good for watching traffic, though I couldn’t figure out to how to use it to explore what was there.