Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI-CAN Series 2 card not working beyond 125 Kbps

I have a couple of PCI-CAN series 2 cards that I need to configure at 500 Kbps. But when I do a loopback and try to connect the two CAN channels. I'am getting a warning canWarnStuffError(0x3FF6202B), I'am unable to see any messages being captured on the bus monitor thorough MAX. Also the cards seem to work only upto 125 Kbps. If anyone has an idea as to why this is happening it would be great.
These cards are configured on Windows XP with the latest CAN driver version 2.2
0 Kudos
Message 1 of 7
(5,083 Views)
You don't say much about your application... Are you programming in C or in Labview ? Are you using the frame api or the channel api ? What is the function that returns canWarnStuffError ? Are you able to confirm that the failure is only on the sending side or only on the receiving side ?

Using the frame api in C on Win2k and setting the following attributes with ncConfig before calling ncOpenObject on CAN0 open it at 500kbps in my program:

NC_ATTR_BAUD_RATE,500000
NC_ATTR_START_ON_OPEN,NC_TRUE
NC_ATTR_READ_Q_LEN,100
NC_ATTR_WRITE_Q_LEN,200
NC_ATTR_SINGLE_SHOT_TX,NC_FALSE
NC_ATTR_LOG_COMM_ERRS,NC_FALSE
NC_ATTR_CAN_COMP_STD,0
NC_ATTR_CAN_MASK_STD,NC_CAN_MASK_STD_DONTCARE
NC_ATTR_CAN_COMP_XTD,0
NC_ATTR_CAN_MASK_XTD,NC_CAN_MASK_XTD_DONTCARE

Most of
the parameters are specific to my application and I expect only NC_ATTR_BAUD_RATE to have any influence on the baud rate. I simply provide the other parameters for the sake of completeness.

You may also try to monitor the CAN signal using an oscilloscope if possible and try to measure the baud rate.
0 Kudos
Message 2 of 7
(5,083 Views)
Hello Vj

I hope you've selected 500 kbps in the MAX !

Well I got canWarnStuffError in my running system
when i remove the termination resistors.

If you have no one -->
At both ends of the CAN bus there must be a 120 Ohm
resistor between CAN_High and CAN_LOW

Maybe this warning will be still on
then check your cabling connection, but
normaly this will produce warning 0x....6B

Hope this helps

Juergen
0 Kudos
Message 3 of 7
(5,083 Views)
Check the transceivers on your board. Are they different? Perhaps it is a dual speed board . Then the second transceiver works only up to 125 KBaud.
Message 4 of 7
(5,084 Views)
You´re right man!
This is most important thing !!
I'll give you 4 stars

Greetings
Juergen
0 Kudos
Message 5 of 7
(5,083 Views)
Hi
I am first time using CAN .I just wants to know the complete functioning of transceiver in CAN
I am using High speed PCI series 2 CAN card .
If somebody knows it then plz explain.
 
Also explain how we calculate Arbitration ID  when we monitor the bus using MAX & what is Node ID
Please reply as soon as possible
Since it is very urgent.
 
Bye
0 Kudos
Message 6 of 7
(4,651 Views)

Hi,

try this and search the web for more basic information.

DirkW

0 Kudos
Message 7 of 7
(4,645 Views)