CAN-bus + arduino, how is work?

Hi,
I have an Arduino UNO (ATmega328P), CAN bus shield v2 (Chip MCP2515, DFRobot) and original OBDII to DB9 cable.
The OBDII connects to the vehicle. I'm running on Arduino IDE. I open the sketch that i got with CAN bus shield (MCP_CAN): Receive-check, receive-interrupt, Send, ... and upload in to Arduino.
NOTHING HAPPENS, I do not know how it works? The virtual serial monitor just writes: CAN bus DFRobot initialization OK.
The Arduino and CAN bus shield are connected directly to each other.
How do I display CAN data to my 2.8 inch TFT display with touch (Velleman ILI9341)?
I'm asking for help!
Thank you
:frowning:

How do I display CAN data to my 2.8 inch TFT display with touch (Velleman ILI9341)?

Step 1: Put the 2.8 inch TFT display with touch (Velleman ILI9341) in a box. Mail the box to a friend.
Step 2: Get the CAN bus shield/communication working.
Step 3: Have your friend send the 2.8 inch TFT display with touch (Velleman ILI9341) back to you.

Do NOT try to get 47 things working at the same time. DO try to get ONE thing at time working.

OK, forget the TFT display.

I just want to read the CAN data from the my vehicle (ID) when the position of the hand brake is activated, then the Can-bus shield must be programmed to send a signal to the Arduino input pin at that point and finally to have an Arduino activated external relay via output pin.
That's all.
I do not want to do 47 operations at the same time, only ONE!
Thank you

check the canbus shield DB9 against the
pin out - it should be
pin 2 CAN_L bus line dominant low (CAN-)
pin 7 CAN_H bus line dominant high (CAN +)
some earlier shields use a different DB9 pinout

use an oscilloscope to check that the CAN high and low signals look OK

I find a CAN-USB dongle for a PC useful in debugging

The pin assignment your wrote is the fault. I bought original DB9 adapter cable on OBDII. for Arduino. Pinout on DB9: pin1 and 2 = ground; pin9 = +Power; pin3 = Can H; pin5 = Can L.

My CAN-bus shield (See DFRobot diagram) has the same pin assignment.
Everything it's OK, but I do not know why it does not load data from the vehicle.
I think the problem is sketch because I did not load well the CAN-bus shield library?!?

I think the problem is sketch because I did not load well the CAN-bus shield library?!?

But you are still keeping the sketch, and the link to the library, a deep dark secret. How's that working for you?