is there an external already existing that will send dbus messages?
Simon
hello,
i'm looking for that too, and can't find anything that uses dbus in puredata/externals folder but the input_noticer project with which you can't access dbus directly.
and maybe there is something else somewhere else...
a
On 07/10/14 21:14, Antoine Villeret wrote:
hello,
i'm looking for that too, and can't find anything that uses dbus in puredata/externals folder but the input_noticer project with which you can't access dbus directly.
I found the same thing ... but actually I only need to send a specific message on a bang, but with much tighter timing than calling a shell script ... so I will just try a system call to dbus-send in a simple external and see how that goes.
Simon
On 07/10/14 21:21, Simon Wise wrote:
on a bang, but with much tighter timing than calling a shell script ... so I will just try a system call to dbus-send in a simple external and see how that goes.
... not likely to help, since system() just calls sh anyway.
looks like I need to learn the dbus inteface properly
According to what I read, it seems that dbus uses /path/to/file to send / receive values So maybe we can use something like [binfile] or even [textfile] to read/write to dbus. But I may be on the wrong way... Anyway I'll be happy to learn what you found and how you manage to do that if you succeed (and where you're stuck if you don't)
a
-- do it yourself http://antoine.villeret.free.fr
2014-10-07 12:28 GMT+02:00 Simon Wise simonzwise@gmail.com:
On 07/10/14 21:21, Simon Wise wrote:
on a bang, but with much tighter timing than calling a shell script ...
so I will just try a system call to dbus-send in a simple external and see how that goes.
... not likely to help, since system() just calls sh anyway.
looks like I need to learn the dbus inteface properly
On 07/10/14 21:34, Antoine Villeret wrote:
According to what I read, it seems that dbus uses /path/to/file to send / receive values So maybe we can use something like [binfile] or even [textfile] to read/write to dbus. But I may be on the wrong way... Anyway I'll be happy to learn what you found and how you manage to do that if you succeed (and where you're stuck if you don't)
I'm looking at dbus-send.c to just use the method they use ... it isn't too long, and most of it is parsing the arguments and reading the environment (which I do not need for this case) .... if it turns out just sending to a file that is easier, all the infrastructure is set up already since dbus-send is working ... just shell is too slow to get the timing right.
Simon