I cannot send canbus protocal from 'send_blink' to 'receive_blink '?

Hello you guy,

I cannot send canbus protocal from 'send_blink' to 'receive_blink '?

I've tried to test canbus communication by example 'send_blink' to 'receive_blink '.
I used DUE, MEGA2560 and two can bus shield as this wiring.

Please suggest us is it correct? How dose it solve? The ID from receriver(serial monitor) is 0x1fffffff. it's not 0x70 from sender.

Thanks

waseda

MCP2515 is a 5v device. The Due is a 3.3v device. You have probably damaged the Due SPI MISO line (or whatever input signal line you are using).
Also SPI pins on Mega/Due boards are different to those on the Uno.

Thanks to Mikb55

Now I change this wiring for UNO sending to Mega2560 via CANBUS.
And I rewire the SPI pin of MEGA2560 as attached pic.

I found that there are CANBUS signal in oscilloscope, but the serail monitor is fail. it cannot init the canbus.

I think that probably it's incorrect for SPI bit rate in MEGA2560. Because crystal clocl are different between
UNO and MEGA2560. Now I try to check where the SPI bit rate can be configured. There are not here.

Please suggest me again??

Thanks

waseda

For each Arduino/MCP2515 pair do a loopback test to prove that the SPI communication works.

mikb55:
For each Arduino/MCP2515 pair do a loopback test to prove that the SPI communication works.

Thanks, Loop back for SPI test? Please explain me again?

But i've tested already the spi test between uno and mega2560. Uno can send spi to mega with new spi pin.