CAN-BUS READ Problem between Mega2560&Seeed_Arduino_CAN V2.0

Explain the Approach
i am trying to test Recieve and send DATA throw CAN bus between (Arduino Mega 2560 connected with Arduino CAN Shield V2.0) & (Software CANoe for detectinge the data) All the sent data comming from arduino will be displayed in CANoe.

I used the send and the recieve Example codes provided from the supplier: [Seeed_Arduino_CAN/examples at master · Seeed-Studio/Seeed_Arduino_CAN · GitHub]

and implement them together in Arduino to run a small program sothat i can test the send /Recieve commuication of the CAN BUS

The Data from arduino send succefuly to the CANoe and i can see it in the Monitor as it shown in the attachment.


enter image description here

The problem is:

I cannot read any data which comming from CANoe to the Arduino.

What i figure out:

if i print CAN_MSGAVAIL and CAN.checkReceive() always get:
CAN_MSGAVAIL =3
CAN.checkReceive()=4

Is this problem has omething to do with the library or i had issue in my connection?

Arduino CODE*

sketch_mar29a.ino (6,2 KB)

Hi, @ahmed_shoihy

To add code please click this link;

Can you also post a circuit diagram please?

Tom.... :smiley::+1: :coffee: :australia:

Are you sure you have your CANoe setup correctly to transmit? coz if that were the case I would expect to see the Tx msg in the 'Trace' window (or at least at TX error message is there was a problem)

the screenshot you shared only show Rx in trace window which suggest to me that your CANoe is not Tx'ing any message...

Please show you 'measurement setup'

2 Likes

Post a schematic of your setup, not a frizzy picture. Be sure to show all power, ground and termination resistors. Add links to technical information on all hardware devices.

1 Like

Thanks the problem is solved now. I check the network and there was no Tx cooming from CANoe actualy.
Now the send / Recieve Protokol working well.
Thanks alot :blush:

Ahmed

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.