From: Oliver Hartkopp <socketcan@hartkopp.net>
To: Mahesh Maharjan <mahesh.maharjan@web.de>
Cc: linux-can@vger.kernel.org
Subject: Re: ISOTP-implementation
Date: Thu, 04 Oct 2012 20:33:58 +0200 [thread overview]
Message-ID: <506DD696.5090906@hartkopp.net> (raw)
In-Reply-To: <trinity-e227a661-0fd3-43e4-80ac-b4854f33afba-1349166829591@3capp-webde-bs17>
On 02.10.2012 10:33, Mahesh Maharjan wrote:
>
> Thank you Oliver providing me some guideline to use ISO-TP socketCan for multiple socket.
> In my previous queries- I think, I could not able to describe my problem properly.
> While working with RAW socket in Imx6, I was having problem with frame lost during the Tx. So, I was thinking to use multiple socket to minimise the lost of can frame in ISOTP also.
Can you be a bit more detailed please?
Frames usually do not get lost - unless the driver is faulty OR you did not
check the return values for the raw socket you've been using ??
>
> Another important things about Point to Point(ISOTP), as you wrote me;
> One write() syscall -> one ISO-TP PDU is sent
>
> One ISO-TP PDU is received -> one read() syscall get's the PDU
>
> Would you please provide some further guide line on it, whether I can use some acknowledge between read Or writing frames. So I would prefer to know get inform with complete tranmsmission Complete or Received Complete...
ISO-TP is an unreliable datagramm protocol, like UDP/IP.
The PDU loss has therefore to be detected by a higher layer. E.g. the UDS
diagnosis service has it's own timeout for application message timeouts.
So send a ISO-TP PDU, assume it gone ok and wait for an application layer
answer (with timeout).
Did you follow this hint?
https://gitorious.org/linux-can/can-modules/blobs/master/README.isotp#line212
Regards,
Oliver
next prev parent reply other threads:[~2012-10-04 18:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-02 8:33 ISOTP-implementation Mahesh Maharjan
2012-10-04 18:33 ` Oliver Hartkopp [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-09-21 8:58 ISOTP-implementation Mahesh.Maharjan-EXT
2012-09-25 19:44 ` ISOTP-implementation Oliver Hartkopp
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=506DD696.5090906@hartkopp.net \
--to=socketcan@hartkopp.net \
--cc=linux-can@vger.kernel.org \
--cc=mahesh.maharjan@web.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.