4 channel CAN-FD logger with Raspi5

CAN FD Interface for M.2 (PCIe)
Flyget
Posts: 13
Joined: Tue 13. Feb 2024, 09:04

4 channel CAN-FD logger with Raspi5

Post by Flyget » Tue 13. Feb 2024, 09:13

Hey guys,

i need to make a simple four channel CAN-FD logger for internal use, which just collects the data from the bus lines and saves it to an *.csv file.
Have you already tested your M.2 card with 4 CAN-FD channels and the new raspi5 with a M.2 hat (e.g. "pineberry bottom")? Or can you see any hardware/driver problems here?

Thanks, best regards,
Fabian

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: 4 channel CAN-FD logger with Raspi5

Post by PEAK-Support » Tue 13. Feb 2024, 09:18

In principle it should be no problem on Windows and on Linux.
If you use our PCAN-Basic API (available on Windows and on Linux when using the CharDev driver), you have the option to generate a TRACE file out of the box - it is part of the API.
It also support own Log-Format (see Documentation of the PCAN-Basic API - Parameter Documentation (PDF File) )
If you do not want to use the ASCI based TRC Format (free converters to CSV are available) you also could directly create your own CSV Format.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Flyget
Posts: 13
Joined: Tue 13. Feb 2024, 09:04

Re: 4 channel CAN-FD logger with Raspi5

Post by Flyget » Tue 13. Feb 2024, 09:28

Wow, thanks for your fast reply!
I already used your API in different projects with the USB adapters which worked fine. Just wasn't sure about the M.2-PCIe thing but thought too it should work. I will give it a try!

Thanks!

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: 4 channel CAN-FD logger with Raspi5

Post by PEAK-Support » Tue 13. Feb 2024, 13:57

Hello,
found this for the Pineberry Pi PCIe Adapter

Tailored for the Raspberry Pi 5: Specifically designed to complement the latest Raspberry Pi 5 single-board computer
Expanded Compatibility for NVMe Drives: Supports NVMe (M-key) drives in M.2 format sizes 2230, 2242, and 2280
Support for PCIe x1 Interface: Compatible with PCIe x1 interface in both Gen2 and Gen3 standards


As we support M-Key with PCIe x1 lane it should work! But we will also test it here ASAP to be sure too...
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Flyget
Posts: 13
Joined: Tue 13. Feb 2024, 09:04

Re: 4 channel CAN-FD logger with Raspi5

Post by Flyget » Tue 13. Feb 2024, 14:23

Hello,

when you can test it, that would be absolutly perfekt! Do you have a rough timetable when you get the time for this test?

Best regards,
Fabian

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: 4 channel CAN-FD logger with Raspi5

Post by PEAK-Support » Wed 14. Feb 2024, 08:37

As we have just ordered a RPI5 PCIe / M.2 Adapter, it will need some days until we have received the parts and setup the Test.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Flyget
Posts: 13
Joined: Tue 13. Feb 2024, 09:04

Re: 4 channel CAN-FD logger with Raspi5

Post by Flyget » Wed 14. Feb 2024, 09:34

Ah, no hurry! Just wanted to know if we speek about days, weeks or months ;-)

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: 4 channel CAN-FD logger with Raspi5

Post by PEAK-Support » Wed 14. Feb 2024, 09:38

___ :D days 8-) ___
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: 4 channel CAN-FD logger with Raspi5

Post by PEAK-Support » Fri 23. Feb 2024, 10:17

We have tested the Adapter (M.2) and it works without any problem with our M.2 CAN FD cards.
We use on a RPi 5 the official Raspberry Pi OS 64 Bit. You need to add to the /boot/firmware/config.txt the following lines:

Code: Select all

# Enable the PCIe external connector
dtparam=pciex1

# Force the GEN Speed to GEN1
dtparam=pciex1_gen=1
Reboot and, if the Device is plugged in, you could simply test with

Code: Select all

pi@TestDevice: ~$ lspci
...
0000:00:00.0 Network Controller: PEAK-System Technik GmbH Device 001a (rev 01)
....
After that you could install the driver and configure for your need (CharDev or NetDev)
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Flyget
Posts: 13
Joined: Tue 13. Feb 2024, 09:04

Re: 4 channel CAN-FD logger with Raspi5

Post by Flyget » Fri 23. Feb 2024, 10:52

Thank you very much for your effort! Nice Support!

Sounds great, I will order my pi5 and adapter!

Best regards,
Fabian

Post Reply