Skip to contentSkip to conversation

using can-j1939

DISCUSSION Kurt Van Dijck 2 participants 3 messages Dec 1, 2011 – Dec 2, 2011 1 message not in the archive CAN network drivers

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 5 lines · Wolfgang Wagner

Hi,

thank you very much for your fast response. Glad that you will help me.

I want to run the can-j1939 for linux on a Phytec phycore MPC5121e with kernel release 2.6.33.5-rt2x-ptx-pcm046-3.

I'm not that much used with specific drivers & releases. I included linux-can mailing list, maybe they can help to use out-of-tree CAN modules on your system.

Quoted 2 lines

I managed to download the 3 thing you told me, but now I don't know to move on - I am really desperated because I can't find any proper documentation.

Did you read Documentation/networking/can/j1939.txt from the can-j1939-modules?

The Documentation is a currently a weak point. I've had some busy months, and j1939 dissappeared from my priorities since our system is working properly.

Oliver Hartkopp has already proposed to work out some use-cases, but as said, I've not found time for that yet.
Maybe this is a good opportunity to do so...

Kurt Van Dijck

Quoted 55 lines

I would be really pleased about your help!

Kind regards,

Wolfgang Wagner

-------- Original-Nachricht --------
Datum: Thu, 1 Dec 2011 10:07:03 +0100
Von: Gitorious <[email protected]>
An: [email protected]
Betreff: New message: Re: j1939

Hello wutzol

Kurt Van Dijck has sent you a message on Gitorious:
----------------------------------------------------

Hi,

Thanks for your interest in can-j1939 for linux.
In order to use our can-j1939 for linux, you will need 3 things:
* can-j1939 kernel stack on https://gitorious.org/~kurt-vd/linux-can/can-j1939-modules
I've had a patchset to patch the net-next-2.6 linux branch, but it is a bit outdated.
* can-j1939 utilities on https://gitorious.org/~kurt-vd/linux-can/can-j1939-utils
This branch of can-utils contains some additional j1939 specific programs
* iproute2-j1939 on https://gitorious.org/~kurt-vd/linux-can/iproute2-j1939
This replaces iproute2, and adds j1939 specific commands:
* turn j1939 on for a specific can device
* manage j1939 addressing info for a can device

Since linux-can moved to gitorious only recently, I'm not sure all my repositories are already up to date. I will check that.

In the kernel modules, a Documentation/networking/j1939.txt (or similar) is provided. I'll be interested in helping you using the j1939 stack. Therefore, you may participate in [email protected] (linux-can mailing list) or email me directly (you'll find my email in the git repositories).

Kind regards,
Kurt Van Dijck

----------------------------------------------------
View and reply to this message at https://gitorious.org/messages/118259

PLEASE DO NOT reply to this email directly as it will go nowhere. Instead, use the above link to reply.

Signature · 2 lines
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!		
Jetzt informieren: http://www.gmx.net/de/go/freephone
#2 lore raw

Wolfgang,

Quoted 1 line

Did you read Documentation/networking/can/j1939.txt from the can-j1939-modules?

In order to not overload you too much, can you (high-level) describe what you're about to do?
* using dynamic address claiming vs. static addresses
* writing own programs vs. using some predefined cansend/candump.
* sending & receiving vs. receive only.
....

Kind regards,
Kurt Van Dijck

#3 lore raw
In reply to Kurt Van Dijck
Quoted 12 lines · Kurt Van Dijck
Quoted 5 lines · Wolfgang Wagner

Hi,

thank you very much for your fast response. Glad that you will help me.

I want to run the can-j1939 for linux on a Phytec phycore MPC5121e with kernel release 2.6.33.5-rt2x-ptx-pcm046-3.

I'm not that much used with specific drivers & releases. I included linux-can mailing list, maybe they can help to use out-of-tree CAN modules on your system.

Quoted 2 lines

I managed to download the 3 thing you told me, but now I don't know to move on - I am really desperated because I can't find any proper documentation.

Did you read Documentation/networking/can/j1939.txt from the can-j1939-modules?

Quoted 7 lines

The Documentation is a currently a weak point. I've had some busy months, and j1939 dissappeared from my priorities since our system is working properly.

Oliver Hartkopp has already proposed to work out some use-cases, but as said, I've not found time for that yet.
Maybe this is a good opportunity to do so...

Yeah. Some things continuously pop up after some time :-)

@Wolfgang W.: We had a quite interesting and long discussion about Kurts suggested implementation. Especially on how to deal with address claiming. Currently the AUTOSAR J1939 specifications nearly ignore the AC which provides the possibility of having a simple PDU interface.
But if we want to do AC the discussion comes up how much of it we put into the kernel-space and how much we do in user-space (e.g. with an AC daemon).

I think Kurt also asked you about your planned setup. Is address claiming also part of it?

Regards,
Oliver