Cansend command via P1

Hi there!

I have a question about sending can messages with P1 via cansend command.
I have a command to start the engine:
7E1 07 AE 31 06 00 00 00 00

As I figured out (maybe I’m wrong) the 7E1 is the can id, then the data, so I use this command on P1:
cansend can0 7E1#07AE310600000000
But nothing happens, no error messages. Am I doing something wrong?
Can communication is ok, since I can see the candump.

I don’t know your vehicle, but that cansend command looks right if the information you have is right, sending on the can0 interface with ID 7E1 with a data payload 8 bytes.

Have you used an ip link command to set up your P1 to match the car’s CAN data link? If not, you might be transmitting at the wrong baud rate.

Have you tried candump can0 to check whether you can see anything on the CAN network? Yep, I’ve set the correct (500k) baud rate since I can see the candump.
I’ve set up the can0 like this:
sudo ip link set can0 type can bitrate 500000
sudo ifconfig can0 up