PCAN Trace errors

Windows® Compatible Software for Displaying CAN Messages

PCAN Trace errors

Postby scaleguy » Mon 2. Oct 2017, 19:21

Hi forum,

I have a trace from PCAN-View that I am using to track down a bug. My setup is using an STR750 controller to communicate through PCAN\USB to PCAN-View and this is my trace:

Code: Select all
 
   235)    234788.0  Rx         012C  8  00 70 0D CD 06 A1 07 2B
   236)    235787.8  Rx         012C  8  00 70 0D CD 06 A1 07 2B
   237)    236787.8  Rx         012C  8  00 70 0D CD 06 A1 07 2B
   238)    237787.9  Rx         012C  8  00 70 0D CD 06 A1 07 2B
   239)    238787.8  Rx         012C  8  00 70 0D CD 06 A1 07 2B
   240)    239787.9  Rx         012C  8  00 70 0D CD 06 A1 07 2B
   241)    240787.8  Rx         012C  8  00 70 0D CD 06 A1 07 2B
   242)    241787.9  Rx         012C  8  00 70 0D CD 06 A1 07 2B
   243)    242787.8  Rx         012C  8  00 70 0D CD 06 A1 07 2B
   244)    243787.9  Rx         012C  8  00 70 0D CD 06 A1 07 2B
   245)    244787.8  Rx         012C  8  00 70 0D CD 06 A1 07 2B
   246)    245788.0  Rx         012C  8  00 70 0D CD 06 A1 07 2B
   247)    246787.9  Rx         012C  8  00 70 0D CD 06 A1 07 2B
   248)    247787.9  Rx         012C  8  00 70 0D CD 06 A1 07 2B
   249)    248787.9  Rx         012C  8  00 70 0D CD 06 A1 07 2B
   250)    249788.0  Rx         012C  8  00 70 0D CD 06 A1 07 2B
   251)    250788.0  Rx         012C  8  00 70 0D CD 06 A1 07 2B
   252)    251788.0  Rx         012C  8  00 70 0D CD 06 A1 07 2B
   253)    328550.1  Error      0004  4  01 02 01 00
   254)    328550.1  Error      0008  4  01 13 09 00
   255)    328550.2  Error      0008  4  01 13 11 00
   256)    328550.2  Error      0008  4  01 13 19 00
   257)    328550.2  Error      0008  4  01 13 21 00


I randomly lose CAN communication and cannot figure out why. I have attempted to trace the issue using the error messages but I must be interpreting them wrong.

I see the first two messages on lines 253 and 254 every time I lose communication. As far as I can tell, the first message on 253 means: Invalid data / function and No hardware found.

And the message on 254 means: Unknown / Invalid and No hardware / Client already connected. This makes no sense to me.. and I assume I am reading these error messages incorrectly. Can somebody help point me in the right direction ? Any suggestions would be great.

Thank you!
scaleguy
 
Posts: 2
Joined: Mon 2. Oct 2017, 19:15

Re: PCAN Trace errors

Postby M.Maidhof » Wed 4. Oct 2017, 09:07

Hi,

please see the following info on how to interpret errorframes from a trace file:

viewtopic.php?f=119&t=1321&p=3912#p3912

regards

Michael
M.Maidhof
Support
Support
 
Posts: 820
Joined: Wed 22. Sep 2010, 13:00
Location: Darmstadt, Germany

Re: PCAN Trace errors

Postby scaleguy » Wed 4. Oct 2017, 15:17

Thanks for the quick reply Michael!

I understand now that my error is due to Reserved bit 0 and ID.28 bis ID.21 which I am assuming are the bits 21-28 of the ID.

I get this error about once every one or two hours. I do not understand why this would happen almost randomly, and why the error would be in the higher ID bits, when I am using an 11-bit identifier.

Any idea? I have been working on this for some time and am not really sure where to go from here. It happens randomly and without any reason that I can see.

- Scaleguy
scaleguy
 
Posts: 2
Joined: Mon 2. Oct 2017, 19:15

Re: PCAN Trace errors

Postby M.Maidhof » Wed 4. Oct 2017, 15:59

Hi,

please have a look into the application note AN97076 from NXP:

https://www.nxp.com/docs/en/application ... N97076.pdf

there you will find more information about the error capture register of the SJA1000 CAN Controller.

If those error frames will only occure every hour, it looks like an EMC problem, which will disturb the CAN bus in that moment, and change/modify the physical CAN signal.

regards

Michael
M.Maidhof
Support
Support
 
Posts: 820
Joined: Wed 22. Sep 2010, 13:00
Location: Darmstadt, Germany


Return to PCAN-View