linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* cansend uses wrong ID and gives wrong Payload, candump works fine
@ 2012-11-06 12:23 Pascal
  2012-11-06 12:27 ` Marc Kleine-Budde
  0 siblings, 1 reply; 3+ messages in thread
From: Pascal @ 2012-11-06 12:23 UTC (permalink / raw)
  To: linux-can

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cansend uses wrong ID and gives wrong Payload, candump works fine
  2012-11-06 12:23 cansend uses wrong ID and gives wrong Payload, candump works fine Pascal
@ 2012-11-06 12:27 ` Marc Kleine-Budde
  0 siblings, 0 replies; 3+ messages in thread
From: Marc Kleine-Budde @ 2012-11-06 12:27 UTC (permalink / raw)
  To: Pascal; +Cc: linux-can

[-- Attachment #1: Type: text/plain, Size: 851 bytes --]

On 11/06/2012 01:23 PM, Pascal wrote:
> 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

-- 
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   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cansend uses wrong ID and gives wrong Payload, candump works fine
@ 2012-11-06 12:35 Pascal
  0 siblings, 0 replies; 3+ messages in thread
From: Pascal @ 2012-11-06 12:35 UTC (permalink / raw)
  To: linux-can

Nevermind. 

I used as second side a PCAN-View. 

I got confused because of a old tutorial which used the code in another way. 
cansend works fine if you are using it properly like. 

cansend can0 10 20 10 20 -i 10 which sends a 10,20,10,20 on ID 10. 

Sorry for the disturbance ;-) 

Thanks anyway, best regards from India,
Pascal


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-06 12:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-06 12:23 cansend uses wrong ID and gives wrong Payload, candump works fine Pascal
2012-11-06 12:27 ` Marc Kleine-Budde
  -- strict thread matches above, loose matches on Subject: below --
2012-11-06 12:35 Pascal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).