(1)PCAN send msg to TCAN works well, Tcan can rececive the msg. Cycle time=50ms (2)TCAN send msg to PCAN works well, Pcan can receive the msg. Cycle time=50ms (3)PCAN send msg to TCAN and TCAN send msg to PCAN , At first,PCAN view receive the msg but shows Busheavy and several seconds later BUS-OFF. TCAN can receive messages from PCAN before PCAN BUS-OFF
The scope picture will alternately form (1) to(2)to(1)to(2)……
And when use pcan basic-api c# program, receive STATUS 0x00 00 00 10
This is possibly a bitrate mismatch,
please check the bit-timings of both your CAN-Nodes (PCAN-USB, TCAN1042) and see if
Please report back to me if this resolved the issue.
bitrate is right,125k
I do the test again
Tcan can send msg to Pcan--->Pcan can receive
Pcan can send msg to Tcan<--Tcan can receive
when two sides send msgs together, bus-off occurrrrrrrr
a bit more
I have two Pcan-USB
one shows bus-heavy and seconds later bus-off.
the other shows bus-heavy and seconds later bus-off and seconds later bus-heavy...bus-off...bus-heavy....bus-off...bus-heavy...
Can you please test the following, so we can assess the issue further?
Use both your PCAN-USBs with PCAN-View at 125k and connect them to each other,
make sure to use either terminated cable or a termination of 120 Ohms on both Bus-ends.
Can you establish a communication between your PCAN-USBs using this method?
Please report back to me with your findings.
Thank you for your quick reply.
So, we did establish that the communication of the PCAN-USB itself works.
The Bitrate still seems to be the issue here.
There is more to CAN-Timing than the resulting speed (125Kbit/s). Most likely
the 125Kbit/s CAN-Timing of your TCAN1042 does not match the 125Kbit/s CAN-Timing of your Application (This could be due to the used clock-frequency, the setting of Tseg1, Tseg2, BRP and SamplePoint).
Please do the following:
Please check the documentation of your TCAN1042 for the exact CAN-Timing used at 125Kbit/s.
Once you have aquired this information you can create a custom Bitrate in PCAN-View:
And test communication between PCAN-View (Using PCAN-USB) and the TCAN1042 with that custom Bitrate.
Please note the resulting register-value, you can use it to add another possible bitrate to PCAN-basic in the next step.
Open up your PCANBasic-header file (you'll find it in the "include"-folder of the PCANBasic Package, see where your included header file is located):
And add your custom Bitrate in the header file.
In your PCANBasic applications, make sure that you use the new custom bitrate instead of the current one.
I changed my mcu setting as Pcan view
We are glad you could resolve the issue.
- closed -