Arduino Ethernet with CAnBus shield can work together?

Hello ,
I’m trying to read canbus data using this guide

I only have Arduino Ethernet and Arduino Mini Pro .

the Ethernet is the receiver and the pro mini is the transmitter.

I have only change the CS to pin8
and when I run the code the receiver stop here :

CAN BUS Module Initialized!
Time PGN ByteM0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7

So I know he “found” the device …

but he can’t read nothing

any idea why ?

Thanks ,

this is the receiver code:

// Henry's Bench
// 1st CAN Network - CAN RECEIVE

#include <SPI.h>
#include <SoftwareSerial.h>
#include <Wire.h>
#include "mcp_can.h"
#include <mcp_can_dfs.h>

int PowerLED = 5; //power led

long unsigned int rxId;

unsigned long rcvTime;

unsigned char len = 0;
unsigned char buf[8];

const int SPI_CS_PIN = 8;

MCP_CAN CAN(SPI_CS_PIN);                                    // Set CS pin

void setup()

  for (int i = 0; i < 5; i++)
    delay (100);

  Serial.println(F(__FILE__)); //print the file name
  Serial.println( "Done!");

  while (CAN_OK != CAN.begin(CAN_250KBPS))              // init can bus : baudrate = 500k
    Serial.println("CAN BUS Module Failed to Initialized");
  Serial.println("CAN BUS Module Initialized!");

void loop()

  if (CAN_MSGAVAIL == CAN.checkReceive())           // check if data coming
    rcvTime = millis();
    CAN.readMsgBuf(&len, buf);    // read data,  len: data length, buf: data buf

    rxId = CAN.getCanId();

    Serial.print(rxId, HEX);

    for (int i = 0; i < len; i++) // print the data
      if (buf[i] > 15) {
        Serial.print(buf[i], HEX);
      else {
        Serial.print(buf[i], HEX);

      //Serial.print(buf[i], HEX);


Did you remember to set the Arduino Ethernet slave select pin (Pin 10?) to OUTPUT and HIGH to keep the Ethernet chip from trying to use the SPI bus? If the Arduino Ethernet has an SD Card slot like the Ethernet Shield you should do the same for Pin 4.

I will try to it and see if it's solva the problem

another question -
If I want to use the ethernet+Canbus , can I do it?