D-Bus
From PlcWiki
Monitor all traffic on D-Bus for specified interfaces:
dbus-monitor --system type=signal type=method_call type=method_return interface='cz.clever.pmc' interface='cz.clever.dbus2dirq'
Policy file allowing anything to anybody (put this in /etc/dbus-1/system.d/
):
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> <busconfig> <policy context="default"> <allow send_destination="*" eavesdrop="true"/> <allow eavesdrop="true"/> <allow own="*"/> <allow user="*"/> </policy> </busconfig>
D-Bus call examples:
qdbus --system cz.clever.pmc_dbus2dirq / cz.clever.pmc.passMessage me myid contents
dbus-send --system --print-reply --dest=cz.clever.pmc_dbus2dirq / cz.clever.pmc.passMessage string:me string:myid string:contents
dbus-send --system --print-reply --dest=cz.clever.pmc_dbus2dirq / cz.clever.pmc.passMessage string:me string:myid array:byte:0x63,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x73