From: Oliver Hartkopp <socketcan@hartkopp.net>
To: Alex Layton <alex@layton.in>,
linux-can <linux-can@vger.kernel.org>,
Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Subject: Re: can-j1939 API
Date: Mon, 02 Nov 2015 13:14:58 +0100 [thread overview]
Message-ID: <563753C2.3030109@hartkopp.net> (raw)
In-Reply-To: <20151029233806.GA12740@airbook.vandijck-laurijssen.be>
On 30.10.2015 00:38, Kurt Van Dijck wrote:
>> From: Oliver Hartkopp <socketcan@hartkopp.net>
>> To: Alex Layton <alex@layton.in>, Kurt Van Dijck
>>> Yep, I can follow that argument.
>>> When I get to it, I'll change that.
>>> It also implies I can drop iproute2-j1939 branches completely.
>>>
>>
>> Just to be sure I understood it correctly:
>>
>> No iproute2-j1939 branch -> no address support for j1939 in iproute
>> -> no address support in af_can.c ?? \o/
>
> indeed.
> Next to the address support, I also would then drop the link status
> support (i.e. ip link set can0 j1939 on/off).
ok
>> So you would automatically take care of SA/Name when a j1939 socket is created
>> with the according address information (== per-socket), right?
>
> All SA or Name info comes via that way, indeed.
> Any can-j1939 socket (regardless the user) could bind to a new SA or Name.
This is what I would expect :-)
As Alex is only using SA in his implementation: Is the name still mandatory as
j1939 address information?
> 'per socket' is a bit dubious. In contrast to Alex, I would not restrict
> a specific SA or Name to a single socket for reasons I gave earlier.
If I understand you correctly the first socket which is giving his address
information enables the j1939 address (claiming) handling inside the Kernel,
right?
Btw. is it possible to create two processes on the same Linux box which
implement two different j1939 nodes (e.g. engine and trailer) that can
communicate with each other both using the *same* CAN interface (can0 or vcan0)??
Regards,
Oliver
next prev parent reply other threads:[~2015-11-02 12:15 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <linux-can/can-utils/pull/7@github.com>
2015-09-28 6:53 ` [can-utils] J1939 v6 (#7) Marc Kleine-Budde
2015-09-29 12:15 ` Kurt Van Dijck
2015-09-30 15:26 ` Aaron Clarke
2015-09-30 23:38 ` Kurt Van Dijck
[not found] ` <linux-can/can-utils/pull/7/c144149208@github.com>
2015-09-29 18:46 ` Marc Kleine-Budde
2015-09-29 19:49 ` can-j1939 API Kurt Van Dijck
2015-09-29 20:10 ` Austin Schuh
2015-10-15 22:04 ` Alex Layton
2015-10-16 19:36 ` Patrick Menschel
2015-10-18 2:42 ` Kurt Van Dijck
2015-10-19 3:41 ` Patrick Menschel
2015-10-19 6:07 ` Oliver Hartkopp
2015-10-19 9:52 ` Kurt Van Dijck
2015-10-19 16:53 ` Alex Layton
2015-10-19 20:57 ` Kurt Van Dijck
2015-10-19 21:31 ` Kurt Van Dijck
2015-10-22 16:39 ` Alex Layton
2015-10-18 2:32 ` Kurt Van Dijck
2015-10-19 16:53 ` Alex Layton
2015-10-19 20:44 ` Kurt Van Dijck
2015-10-22 16:39 ` Alex Layton
2015-10-23 11:14 ` Kurt Van Dijck
2015-10-29 19:33 ` Oliver Hartkopp
2015-10-29 23:38 ` Kurt Van Dijck
2015-11-02 12:14 ` Oliver Hartkopp [this message]
2015-11-02 12:29 ` Kurt Van Dijck
2015-11-02 13:18 ` Oliver Hartkopp
2015-11-11 19:48 ` Kurt Van Dijck
2015-11-10 21:58 ` Yang
2015-11-11 18:49 ` Kurt Van Dijck
2015-11-17 6:01 ` Yang Wang
2015-11-17 8:43 ` Kurt Van Dijck
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=563753C2.3030109@hartkopp.net \
--to=socketcan@hartkopp.net \
--cc=alex@layton.in \
--cc=dev.kurt@vandijck-laurijssen.be \
--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 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).