-
Notifications
You must be signed in to change notification settings - Fork 714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of J1939, can-utils, RaspberryPi, ValueCan4 #467
Comments
Hello @Craxer01, J1939 is a higher level CAN protocol on top of CAN frames with an extended ID. You can use Maybe the J1939 traffic is on a different CAN bus on the OBD connector. How many CAN channels does the ValueCan 4 support? Last but not least, the ValueCan 4 CAN driver is not part of the Mainline Linux kernel, but the drivers supplied by the vendor seem to work here. regards, |
Hi. I know I can read regular CAN with (because it works fine):
If I add: sudo modeprobe j1939, am I already stating to use j1939? The frames I got with a PCAN, and that I would like to read are like: c560bd0x, 1823d0d9x, 18eaffd7x, 1821d0d9x, 1872d7d4x, 10ff2021x, 18ff25e4x I will have access to the vehicle in some hours but I want to have something that has good chances to work as I will have just a couple (maybe less) of hours to work on it. Thank you again. |
Does the vehicle send the J1939 messages on its own, or do you have to request them? |
It sends them by its own. |
If the device sends
and
Then you already receive j1939 messages. Try Thanks for the pointer to the intrepidcs website. I just wanted to mention, that if there is a problem with the driver (here seems to be everything OK) then you should ask the intrepidcs people, as the code is not part of the Linux kernel. Or better ask intrepidcs to bring their driver into the Linux kernel. 😸 |
Probably you want something like in this discussion: |
Thanks a lot for the reference. I saw it but honestly I didn´t read it because I thouhgt it wasn´t related but now that i think about it, maybe it is. |
woohoooo! it worked! |
Hooray! Can you summarize you working setup (for reference)? |
Yep! then I added the line modprobe can-j1939 to the modprobe´s:
That was it. Now I will work on filtering messages because the file is too big. I am recording about 8 hours. Now you can add the ValuCAN to the devices that work with can-utils !! |
Thanks for the summary! |
Hello.
I just started working with this system:
RaspberryPi 3 B+
ValueCan 4
I just need to show the CANframes and save to a file.
When I run:
sudo modprobe can-j1939 There are no errors or any other messages so I assume it is all fine.
I followed all the instructions and commands from intrepidcs and the system works fine for the regular/common OBD.
I can see CAN traffic and save to a log file.
These are the steps I followed:
sudo modprobe can
sudo modprobe can_raw
sudo modprobe can_dev
sudo insmod intrepid.ko **** I think this is to work with intrepidcs tools.
Then I run a deamon to detect intrepid tool connected.
Finally:
ip link set up can0
candump can0
And voila! This displays CAN frames but ONLY for "Regular" OBD *** connected to a Chevy.
If I try this on a j1939 vehicle nothing appears on the screen.
So I think I need to enable J1939.
My question is, what commands do I need for J1939?
Is this correct?
sudo modprobe can
sudo modprobe can_raw
sudo modprobe can_dev
sudo modprobe can-j1939
sudo insmod intrepid.ko
ip link set up can0
candump can0
Thanks a lot!
The text was updated successfully, but these errors were encountered: