Linux CAN drivers development
 help / color / mirror / Atom feed
From: Andre Naujoks <nautsch2@gmail.com>
To: Marvin Ludersdorfer <marvin.ludersdorfer@dintec.solutions>,
	"linux-can@vger.kernel.org" <linux-can@vger.kernel.org>
Subject: Re: Problem receiving > 8 byte UDS response when using istpsend
Date: Mon, 21 Nov 2022 17:11:35 +0100	[thread overview]
Message-ID: <49ce15b4-feaf-a519-9172-d0f59a9285ed@gmail.com> (raw)
In-Reply-To: <FR2P281MB165503FACCD9894C353ED4CE9F0A9@FR2P281MB1655.DEUP281.PROD.OUTLOOK.COM>

Am 21.11.22 um 13:08 schrieb Marvin Ludersdorfer:
> Hi,
> 
> I'm experiencing problems when trying to read out ECU parameters using istpsend when the response exceeds 8 bytes:
> 
> In one terminal, I run isotpdump -s 00000680 -d 00000780 -c -ta can0

Use isotprecv instead of isotpdump. isotpsend just sends the 3 bytes, 
you pass to it and then is done.

The FC should then be sent by the socket, which is opened by isotprecv.

E.g.
terminal 1: isotprecv -s 00000680 -d 00000780 vcan0  <anything else>
terminal 2: echo 22 f1 95 | isotpsend -s 00000680 -d 00000780 vcan0 
<anything else>

... your milage may vary though.

Regards
   Andre

> 
> In another terminal, I run echo 22 F1 95 | isotpsend -s 00000680 -d 00000780 can0 -p 0x00
> 
> In the first terminal, I receive only the FF, but no FC frame is sent (expected is a 11-byte response).
> 
> If I turn around the communication direction and run isotpsend -s 00000680 -d 0000780 can0 -D 255, the target ECU answers correctly by sending the expected FC frame.
> 
> 
> I would expect that isotpsend takes care of sending the FC frame in the first example as well to receive the full response - am I doing something wrong?
> 
> Any help would be highly appreciated!
> 
> Best regards,
> 
> Marvin Ludersdorfer
> 


  reply	other threads:[~2022-11-21 16:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <FR2P281MB165556E4F729AC3CDB50F6F69F0A9@FR2P281MB1655.DEUP281.PROD.OUTLOOK.COM>
2022-11-21 12:08 ` AW: Problem receiving > 8 byte UDS response when using istpsend Marvin Ludersdorfer
2022-11-21 16:11   ` Andre Naujoks [this message]
2022-11-21 16:45     ` Patrick Menschel
2022-11-22 12:52       ` Oliver Hartkopp
2022-11-22 16:24         ` Marvin Ludersdorfer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49ce15b4-feaf-a519-9172-d0f59a9285ed@gmail.com \
    --to=nautsch2@gmail.com \
    --cc=linux-can@vger.kernel.org \
    --cc=marvin.ludersdorfer@dintec.solutions \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox