Skip to contentSkip to conversation

cansend uses wrong ID and gives wrong Payload, candump works fine

DISCUSSION Pascal 2 participants 2 messages Nov 6, 2012 CAN network drivers

lore
Share & tools
lore

Pascal

author
#0 lore raw

Hello,

I test the canutils. I can use candump and read CAN Messages correctly which I send throug a PEAK CAN from another machine.
If I try to send a message back using: "cansend can0 500#1E.10.10" which from my understanding should give my a Message on ID 500 with Paylod 1E 10 and 10 I receive on ID 1 with DLC 1 Payload F4.

Is this a common issue?
I use a craneboard with Angstrom.

Best regards from India,
Pascal

#1 lore raw
Quoted 10 lines · Pascal

Hello,

I test the canutils. I can use candump and read CAN Messages correctly which I send throug a PEAK CAN from another machine.
If I try to send a message back using: "cansend can0 500#1E.10.10" which from my understanding should give my a Message on ID 500 with Paylod 1E 10 and 10 I receive on ID 1 with DLC 1 Payload F4.

Is this a common issue?
I use a craneboard with Angstrom.

Are you using the same "cansend" programm on both sides?

What's the output of "cansend --help"?

Marc

Signature · 4 lines
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |