Skip to content

Failed to receive signal from dbus-send (CLI) #488

Answered by sangelovic
lctasca asked this question in Q&A
Discussion options

You must be logged in to vote

@lctasca You are on the right track -- you need to provide a sender when emitting the signal with dbus-send, so the dbus-send connects to dbus-daemon in the name of that service:

dbus-send --system --type=signal --sender=com.test.CanInterfaceFctTests /com/test/can_interface_fct_tests com.test.CanInterfaceFctTests.TestDigitalInputs byte:0 boolean:false string:"Test"

The client, when registering to a signal, provides a filter condition that is based on sender, object path, interface name and signal name. Since you've specified the latter three, but no sender, the condition did not match the signal and thus the callback was not called.

Let me know if that helped.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@lctasca
Comment options

@sangelovic
Comment options

@lctasca
Comment options

@sangelovic
Comment options

Answer selected by lctasca
@lctasca
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #487 on April 19, 2025 21:41.