AnsweredAssumed Answered

iMX28 CAN condition control

Question asked by tionpro28 on Nov 6, 2013
Latest reply on Nov 14, 2013 by alejandrolozano

Hi, all!

I code the program for a board on the basis of the Freescale iMX287 processor. The Linux operating system is used with version 2.6.35 kernel.

I use SocketCAN library for work with the CAN module. I connect my board to another CAN device (USB PCAN) and successfully I can send and receive data. But I can't trace a state of the CAN bus.

When I break off the bus, or change baud rate of USB PCAN,  I don't receive any error messages. I’ tried the following commands  to evaluate  the state  of the CAN module:

 

~$ cat /proc/net/can/rcvlist_all

receive list 'rx_all':

  (any: no entry)

  device   can_id   can_mask  function  userdata   matches  ident

   can0      000    00000000  c038cbf8  c7d59c00        10  raw

  (can1: no entry)

 

~$ cat /proc/net/can/rcvlist_err

receive list 'rx_err':

  (any: no entry)

  device   can_id   can_mask  function  userdata   matches  ident

   can0      000    00000041  c038cbf8  c7d59c00         0  raw

  (can1: no entry)

 

The command ip shows the following:

~$ ip -stat link show can0

2: can0: <NOARP,UP,10000> mtu 16 qdisc pfifo_fast qlen 64

    link/[280]

    RX: bytes  packets  errors  dropped overrun mcast  

    0          0        0       0       0       0     

    TX: bytes  packets  errors  dropped carrier collsns

    20         10       0       0       0       0     

 

Can you please tell what the problem is in?

Outcomes