PX4 Rejects all the Commands with status 4

Hi
I am succesfully reading the mavlink telemetry data from 6c mini.
However when i try to send any command to the controller i get Command_ACK with status MAV_RESULT_FAILED (4).
For example, the controller gets succesfully restarted from groundControll , however when i execute Long Command with MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN and first parameter 1 i get the response.
I have checked other commands for sanity but all fails with same result.
What i am doing wrong and what can be the issue?

What PX4 version (or ArduPilot?) And what command with what params are you sending?

@JulianOes Hi
Thanks for your reply.
I did not put the target component id and target system id. As result there was response coming from device , but with error.
Now it works.
Thanks

1 Like