Have anyone already ported this into 4. I strip the skb to contain only [dlc] bytes. I fitted j to existing ones. The difference with raw CAN is that j has an ‘ecu addressing’ scheme. You should try the same thing communicating with datagram, not stream over unix sockets. I’m really concerned, that there’s no possibility to have more than one ECU running on our multi-user system Traffic not destined for the ‘localhost’ should be dropped normally, but with this ‘engineering’ option, one can spy the bus for others traffic too.

Uploader: Braramar
Date Added: 16 November 2011
File Size: 18.64 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 28390
Price: Free* [*Free Regsitration Required]

And move this complexity to each individual user, with potential race conditions?

I think that linix not the intention of bind and connectas you don’t necessarily need to perform a bind before connect as you do to define the source address and the destination address. That is true, but I cannot introduce protocol violations for that reason.

I saw it done in Yocto lijux some kernels. Make it a constant that can be overridden via sockopt. My colleague and I have studied some time on those man pages.


In reply to this post by J19939 Hartkopp. We had ported it into 3. Post Your Answer Discard By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.

It took some time to me to get behind this fact and it was not very intuitive. I addressed a subset in this reply. Stack Overflow works best with JavaScript enabled.

can_higher_layer_protocols:j – CAN Wiki

Even when it’s a nice idea to handle all the address claiming infrastructure inside the kernel: This is a bad approach.

You’ll see what I mean. Hope this answers your question. IMO it’s very ‘system’ dependant, not application dependant.

J1939 Stack for Linux (Object)

The address claiming and name handling inside the kernel linx a heavy thing. I’m really concerned, that there’s no possibility to have more than one ECU running on our multi-user system As long as it is transparent to the user what’s going on The address claiming process itself with its policy is a userspace task. The kernel just follows the process and hold traffic during the process.


It was a key feature of the design.

I understand there was some changes happens in the 4. Oliver, I’m going through your remarks, implementing those that we agree. One might use sendto 2 also to send the Addres Claim.

Isn’t that the source address, indicated by ‘src’? It is a consequence of having the addressing concept. I tried lunux explain the thing here. Free forum by Nabble.

[PATCH v2 0/6] CAN: add SAE J1939 protocol

The kernel considers the arbitration, but does not act. For the rtnetlink operations to work, a 2.

Please use defines for these j values. This int field specifies the priority that will be used. In reply to this post by Oliver Hartkopp Oliver, Your comments are very ‘diverse’.

Author: admin