PICAN 2 (MCP2515) - Raspberry Pi 3 -
Posted: Thu Jul 05, 2018 10:49 am
Hey Everybody,
I don't know why this is not working!
The Goal of my Project is to develop a CAN-Sniffer.
I have two devices that communicate with each other via a bus cable (Image: https://picload.org/view/dlgpogai/20180 ... 8.jpg.html). At this cable, I have each picked up on the CAN high and the CAN low and soldered to the DBus connector at points 2 (low) and 7 (high). Furthermore, I have a PiCAN 2 (MCP2515) and a Raspberry Pi 3 Model B. These two I have connected normally via the GPIO interface. Then I connected the DB9 connector to the DB9 connector of the PiCAN2 (Image: https://picload.org/view/dlgpoggr/20180 ... 5.jpg.html).
Now I mean that on the hardware side everything was done. The two devices communicate with each other and in the meantime the signals are also intercepted via the tapped cables.
Now to the software:
I tried almost everything, unfortunately without success. I just want to be able to use the commands candump and cansniffer, nothing more.
I have followed the steps in sequence:
First I followed the instructions on this page:
http://skpang.co.uk/blog/archives/1165 and https://elinux.org/Can-utils
It doesn't work. I can execute the commands without any problems, but nothing is displayed. It behaves as if nothing was connected. But I know that definite signals are transmitted via the cable. So I experimented a lot and followed the instructions in this video: https://www.youtube.com/watch?v=S1c5QhnjTmE
Now comes to me the following question: What exactly must be written in the files:
- /boot/config.txt,
- /etc/modules-load.d/modules.conf
- /etc/modprobe.d/raspi-blacklist.conf
There are many different suggestions and none helped me any further.
And even if I want to load modules via modules.conf, I get the following error message during reboot:
In addition, I have tried the software program Wireshark and also get here no CAN signals.
http://skpang.co.uk/blog/archives/1141
I would be very happy, if you could help me, because I think it should work.
If you need more information, please let me know.
Thanks,
strawberry-cake
I don't know why this is not working!
The Goal of my Project is to develop a CAN-Sniffer.
I have two devices that communicate with each other via a bus cable (Image: https://picload.org/view/dlgpogai/20180 ... 8.jpg.html). At this cable, I have each picked up on the CAN high and the CAN low and soldered to the DBus connector at points 2 (low) and 7 (high). Furthermore, I have a PiCAN 2 (MCP2515) and a Raspberry Pi 3 Model B. These two I have connected normally via the GPIO interface. Then I connected the DB9 connector to the DB9 connector of the PiCAN2 (Image: https://picload.org/view/dlgpoggr/20180 ... 5.jpg.html).
Now I mean that on the hardware side everything was done. The two devices communicate with each other and in the meantime the signals are also intercepted via the tapped cables.
Now to the software:
I tried almost everything, unfortunately without success. I just want to be able to use the commands candump and cansniffer, nothing more.
I have followed the steps in sequence:
First I followed the instructions on this page:
http://skpang.co.uk/blog/archives/1165 and https://elinux.org/Can-utils
It doesn't work. I can execute the commands without any problems, but nothing is displayed. It behaves as if nothing was connected. But I know that definite signals are transmitted via the cable. So I experimented a lot and followed the instructions in this video: https://www.youtube.com/watch?v=S1c5QhnjTmE
Now comes to me the following question: What exactly must be written in the files:
- /boot/config.txt,
- /etc/modules-load.d/modules.conf
- /etc/modprobe.d/raspi-blacklist.conf
There are many different suggestions and none helped me any further.
Code: Select all
uname -a(I also don't know if I have to load anything at the current kernel)Linux raspberrypi 4.14.50-v7+ #1122 SMP Tue Jun 19 12:26:26 BST 2018 armv7l GNU/Linux
And even if I want to load modules via modules.conf, I get the following error message during reboot:
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
In addition, I have tried the software program Wireshark and also get here no CAN signals.
http://skpang.co.uk/blog/archives/1141
I would be very happy, if you could help me, because I think it should work.
If you need more information, please let me know.
Thanks,
strawberry-cake