Hi

Newly activated users can post here
Go4IT
Pro
Posts: 967
Joined: 08 Feb 2019, 12:25

Re: Hi

Post by Go4IT »

Sorry @Thomas1402, i totally forgott to fully activate you. Now you are in! :D
Go4IT
Pro
Posts: 967
Joined: 08 Feb 2019, 12:25

Re: Hi

Post by Go4IT »

Thomas1402, i once did what you want. May take a look here: https://mondeo-mk4.de/forum/thread/2044 ... ter-modul/
It's fairly simple to connect two MCP-shields to an Arduino. What is challenging is to get both to work at a high speed. MCP-Shields for the Arduino are connected by SPI (serial). Arduino has only one "native" SPI-Port (na, it's even not really native, more eumulated) at a cost of timers. I found a lib where i can use other pins to create a second SPI-port.

With this setup i managed to create a CAN-Filter device for the MM-CAN Bus, which needs to pass signals in both directions, but only filter some out or change their payload. But hey, MM-CAN is slow (125 kbit/s) by nature and not very high load. No chance to do this in MS-CAN or HS-CAN with Arduino.

It's all a bit tricky, so i really suggest to head to something with hardware-CAN controller(s) inside, like an STM32 oder LPC, if you don't only want to play around with it.
DGAlexandru
Pro
Posts: 364
Joined: 04 Aug 2019, 22:47

Re: Hi

Post by DGAlexandru »

Or Raspberry PI.. it has Linux with drivers for CAN (canutils).
Very easy to use, there are lot of examples; you don't need to be a Linux user, but it hepls if you are used with command line interface, have some scripting skills.
Go4IT
Pro
Posts: 967
Joined: 08 Feb 2019, 12:25

Re: Hi

Post by Go4IT »

I agree, RasPi with a CAN-Hat is a good choice, even, or espacially for,beginners.
User avatar
fryciu
Starter
Posts: 22
Joined: 27 Jul 2020, 19:12

Re: Hi

Post by fryciu »

Hi Thomas
Post Reply