From: Oliver Hartkopp <socketcan@hartkopp.net>
To: Mahesh.Maharjan-EXT@continental-corporation.com
Cc: linux-can@vger.kernel.org
Subject: Re: ISOTP-implementation
Date: Tue, 25 Sep 2012 21:44:37 +0200 [thread overview]
Message-ID: <506209A5.6050900@hartkopp.net> (raw)
In-Reply-To: <OFA6F22965.64945A5F-ONC1257A80.00311F72-C1257A80.00314FED@continental-corporation.com>
On 21.09.2012 10:58, Mahesh.Maharjan-EXT@continental-corporation.com wrote:
> In socketCan implementation with ISOTP_can, I want to know few things. As
> far. ISOTP is point to point. But , as in BCM and RAW, Is it possible to
> create multiple sockets for ISO-TP ??
You can open as much ISO-TP as you like.
Each ISO-TP socket should be bound to a different src-ID / dst-ID pair so that
they don't interfere.
> Or creating each socket with Message object for reading and writing
No. Once bound to a specific src/dst identifier, the connection is defined
properly. You can send and receive on that socket then.
See this example:
https://gitorious.org/linux-can/can-utils/blobs/master/isotptun.c
> Now If I want to implement with ISOTP with InterProcess Com system !! .
> which might have multiple PDU..
One write() syscall -> one ISO-TP PDU is sent
One ISO-TP PDU is received -> one read() syscall get's the PDU
> Suppose , In receiving side , I might have
> single master PDU and multi Slave PDU ..
???
The ISO-TP socket can only deal with point-to-point connections - due to the
two needed CAN Identifiers.
If you think about functional diagnosis requests: Use the raw socket to send
these requests that are fitting into one CAN frame ...
> So what could be idea.. if I
> want to use Socketcan ISO-TP standard Socketcan. and I check in isotp.c
> file., But could able to figure out , how it realize with Socket and
> ISO-TP standard.
Did you read the source of all the ISO-TP tools?
https://gitorious.org/linux-can/can-utils/trees/master (isotp*.c)
And did you read this:
https://gitorious.org/linux-can/can-modules/blobs/master/README.isotp
??
Regards,
Oliver
next prev parent reply other threads:[~2012-09-25 19:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-21 8:58 ISOTP-implementation Mahesh.Maharjan-EXT
2012-09-25 19:44 ` Oliver Hartkopp [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-10-02 8:33 ISOTP-implementation Mahesh Maharjan
2012-10-04 18:33 ` 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=506209A5.6050900@hartkopp.net \
--to=socketcan@hartkopp.net \
--cc=Mahesh.Maharjan-EXT@continental-corporation.com \
--cc=linux-can@vger.kernel.org \
/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.