an interesting CAN driver issue



Hello All,

from past few days I was facing an intersting prob with CAN driver
implementation. I was using the Star12 Xgate processor. The CAN driver
was initialized properly and it was working with vector CAN Card XL.
The frames transmitted from the CAN controller were seen on the
Oscilloscope and the frames were appearing on the CANAlyzer Trace
window properly. Everything worked perfectly fine.
But when I replaced the vector CAN Card XL with CAN Card X, the frames
stopped appearing on the trace window. But they were present on the
CAN bus, I could verify the same with an oscilloscope. The code
downloaded on the ECU was same as it was in case of CANCardXL.

after so much debugging I found that the DLC register was creating the
problem. I wanted to transmit always an 8 bytes long frame. I was
putting the value of dlc as -->> DLC_Reg |= 0x08;
with this the frames were observed on the CAN CardXL. but not with CAN
Card X.

When I changed the implementation to -->> DLC_Reg |= 0x08; The CAN
Card X also worked fine. All frames started appearing on the CANalyzer
trace window.

In both the cases, there were no error frames, no error counter
increament, CANalyzer bus statistics window also showed the standard
data frames increamenting on the bus.

So can any one of you please point out the DLC value was responsible
for the frame reception on the CANalyzer trace window.

The same frame was not seen on CANCardX but on CANCardXL, it was
visible and in both the cases the oscilloscope was showing the frame
on the bus.

Please provide your feedback in understanding the root cause of the
problem.

Regards
Akhilesh

.



Relevant Pages

  • Re: ath0: ath_reset: unable to reset hardware; hal status 3
    ... I am having the same type of trouble with a Dynex card. ... Device timeout' on the main console screen. ... The card does not appear to reset itself. ... 84874 data frames received ...
    (freebsd-stable)
  • Re: Please Help - Desperate 1394 Performance Problems
    ... Typical reasons for dropped frames include badly fragmented capture disk, ... and bad driver software for your Firewire card. ... > It gives some things to look at with the firewire port performance. ...
    (rec.video.desktop)
  • Possibly related to ath0 Ierrs
    ... This means the antenna is actually built on to the ... Linux reports this Atheros card (and another that I also had similar ... 831 tx frames discarded prior to association ... 10 tx stopped 'cuz no xmit buffer ...
    (freebsd-net)
  • Re: TV picture loses frames/Sound drop out when 20 sec left of son
    ... A 7800 card should not drop frames even if processing 1080i HD TV programs. ... It may be the drivers for you audio card that are causing dropped frames ... Thanks for the answer - after I disabled all the enhancements, the sound ...
    (microsoft.public.windows.mediacenter)
  • Re: MPG file editing and audio sync problem
    ... What happen iis that the card and HDD can not keep up with the data ... as a result you periodically lose frames during ... Hauppauge but at least I get to burn my dvd without Problem. ...
    (microsoft.public.windowsxp.moviemaker)