![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Hi
Re: Hi
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.
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.
-
- Pro
- Posts: 364
- Joined: 04 Aug 2019, 22:47
Re: Hi
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.
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.