Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN calls freeze system

I have a system w/ a series 2 PXI CAN card.
 
I am communicating in both directions, receive @ 1000S/s and send at 100S/s
 
Randomly, my system completely locks up w/ no recovery except hard shutdown.
 
Occasionaly, before the lockup I get an NI CAN Error stating to look at the NICANERR.txt
as follows 

Any clues?

[OSINFO_SECTION]
OS=Microsoft Windows XP Workstation                                                                                                                                                                                                                                
Service_Pack=Service Pack 2 (Build 2600)

[DRIVER_VERSION_SECTION]
NICAN.DLL_VERSION=2.3.0.3079
NICANFRM.DLL_VERSION=2.3.1.3004
DRIVERS\NICANPK.DLL_VERSION=2.3.2.3001
NICANPU.DLL_VERSION=2.3.0.3071
NICANTSK.DLL_VERSION=2.3.1.3003
NICANCFQ.DLL_VERSION=2.3.1.3000
NCVI.DLL_VERSION=2.3.0.3078
NICAN_S1.NFW_VERSION=2030041
NICAN_S2.NFW_VERSION=2030043

[CURRENT_SECTION]
Section_Index=0

[INDEX_0]
Local_Time=
Err_Status=
Function=
[INDEX_1]
Local_Time= 11/03/2005 09:18:58.132
Err_Status= Status:0xa0fff002-Location:0x20000000-Internal:0x00fff000
Function= ncReadTimeLimited-CAN1::XTD419365280[INDEX_2]
Local_Time= 11/03/2005 09:04:10.199
Err_Status= Status:0xb14d0002-Location:0x30000000-Internal:0x014d0000
Function= CAN1 Warning:Reload firmware:ffffffff[INDEX_3]
Local_Time= 11/03/2005 09:04:16.808
Err_Status= Status:0xb23c0002-Location:0x30000000-Internal:0x023c0000
Function= ncOpenInterface-CAN1
[INDEX_4]
Local_Time= 11/03/2005 09:04:18.574
Err_Status= Status:0xb14d0002-Location:0x30000000-Internal:0x014d0000
Function= CAN1 Warning:Reset from FW eror in Open:ffffffff
[INDEX_5]
Local_Time= 11/03/2005 09:04:25.215
Err_Status= Status:0xb14d0002-Location:0x30000000-Internal:0x014d0000
Function= CAN1 Warning:Reload firmware:ffffffff
[INDEX_6]
Local_Time= 11/03/2005 07:42:39.950
Err_Status= Status:0xb23c0002-Location:0x30000000-Internal:0x023c0000
Function= ncOpenInterface-CAN1

 
0 Kudos
Message 1 of 6
(4,476 Views)

Hi NKirchner,

 

Please provide more information about your System. what kind of CAN device are you using (HS, LS XS). Which baudrate, how many channels, how many CAN boards are you using?

I know it is not that easy in your case, but it would be great if you could create a Spy Log file using the NI-Spy Software.

This tool comming with the driver, logs all API calls and you can save the file after stopping it in error case.

Thanks

 

DirkW

0 Kudos
Message 2 of 6
(4,467 Views)

P4 w/ HT Turned off 1Gig Ram

MXI-3 copper card wired to PXI chassis w/ CAN PXI-8461 and a few other cards(DIO, CTR, MIO).

Note: This system is identical to 4 other ones that have no problem, so it's not a compatibility issue w/ the other cards. Also the other systems are running the same software. Also we have already switched CAN cards, updated the driver, and have tried another new PC.

1 CAN board, using 1 port, w/ 1 device on the lines.

-Norm Kirchner

 

0 Kudos
Message 3 of 6
(4,463 Views)

Hi NKirchner,

 

have you tried to use an other MXI Bridge with this hanging system? perhaps there is something wrong with the MXI?

 

DirkW

0 Kudos
Message 4 of 6
(4,449 Views)

Replace the PCI MXI portion and the cable.

I have a sneaking suspicion that it might be error due to line noise on the CAN TX/RX lines.

I would have hoped that the system would not totally freeze up if there was comm errors but it's looking more and more likely

 

Have you seen this kind of behavior in that kind of situation?

0 Kudos
Message 5 of 6
(4,441 Views)
Hi Kirchner,

Are you saying that you have replaced the pci-MXI portion? If so, are you seeing the exaxt same results?

I don't think you should be seeing your system crash due to CAN noise.

-Matt S.

LabVIEW Integration Engineer with experience in LabVIEW Real-Time, LabVIEW FPGA, DAQ, Machine Vision, as well as C/C++. CLAD, working on CLD and CLA.
0 Kudos
Message 6 of 6
(4,416 Views)