Page 1 of 1

Not able to see CAN RX messages on my trace window

Posted: Mon 19. Sep 2022, 09:49
by Sucheta
Hello,

Good morning!

I have interfaced Arduino CAN with PCAN using DB9 connector. I tried sending a CAN message from Arduino to PCAN. But the CAN message sent by Arduino can't be seen in my Trace window of PCAN view, though i can see the Red light on my TX LED on CAN bus shield V2 (connected to Arduino)

More information:

1. i have checked the baudrate and its 500kbps on both ends
2. 120 ohm not connected on PCAN side.
3. TX led of Arduino CAN is red

Can you please guide in what is the mismatch or where should i correct for it to receive RX messages as well

Attaching the Screenshot for your reference:
PCAN_View_Screenshot.PNG
PCAN_View_Screenshot.PNG (151.25 KiB) Viewed 3629 times
Awaiting your reply.

Kind regards,
Sucheta

Re: Not able to see CAN RX messages on my trace window

Posted: Mon 19. Sep 2022, 11:16
by PEAK-Support
Please use a terminated CAN Cable (120 Ohm on each end) and measure if your CAN Network really have the needed 60 Ohm.
As you did not send the complete screen, we do not see the Status Line of the PCAN-View, and so do not see if you have physical communication problems.
Please check if you have Error Frames / Bus Status Changes when sending a single CAN Frame. We also need to know which CAN Interface from us do you exactly use ? (part number!)
Keep in mind that both CAN Nodes (our CAN Interface and your used CAN-shield) need to be configured with the exact same BUS Timings. 500k is not 500K ! (See Sample Point etc.)

Re: Not able to see CAN RX messages on my trace window

Posted: Tue 20. Sep 2022, 10:40
by Sucheta
Good Morning,

Thankyou so much for the reply.

I have now connected 120 ohm resistor as well along PCAN hardware.

Attached is the screenshot of the pcan view trace window full screen.
PCAN_view_tracewindow.PNG
PCAN_view_tracewindow.PNG (218.95 KiB) Viewed 3610 times
I have also attached serial monitor screen of arduino and code as well for your reference.

Am not able to receive any RX message on my PCAN

Kindly please guide me with this
Awaiting your reply

Thanks a lot and regard
-Sucheta

Re: Not able to see CAN RX messages on my trace window

Posted: Tue 20. Sep 2022, 10:49
by PEAK-Support
You still have a physical problem - take a look at the status line of the PCAN-View !

- Bitrate does not fit (as i wrote you need to know the exact timing details - 500k could be configured with douzen different timings!)
- Termination is not 60 Ohm in sum
- CAN-H / CAN-L switched
- one CAN node is in Listen Only / non active Mode ( a CAN Busd need always 2 active nodes to work)

Please understand that we could not do any support for Arduino Hard & Software - contact the CAN shield manufacturer