Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 148978

Forum Post: DCAN interface not working on Beagle Bone Black

$
0
0

Hi All,

I have enabled both DCAN0 and DCAN1 interfaces on BBB. I am using the canutils for testing the CAN interface, I am trying to transmit on CAN0 (./cansend can0 5AA#) and receive on CAN1 (candump can1) but I am unable to get any data on CAN1

The kernel log for CAN is as follows:

We have the following setup:

1. A Beagle bone black

2. Two CAN transceivers - SN65HVD232 (For CAN0 and CAN1)

3. A 120ohm terminating resistor ( CANH and CANL of both CAN0 and CAN1 are connected across the resistor).

We have followed the below steps-

1.Loading modules:

root@am335x-evm:~# modprobe can
[  195.500159] can: controller area network core (rev 20120528 abi 9)
[  195.506757] NET: Registered protocol family 29


root@am335x-evm:~# modprobe can-dev


root@am335x-evm:~# modprobe can-raw
[  244.549436] can: raw protocol (rev 20120528)

2. Setting bus restart type for both CAN0 and CAN1:

root@am335x-evm:~# ip link set can0 type can restart-ms 100

3.Setting bitrate and making both CAN interfaces up:

root@am335x-evm:~# ip link set can0 up type can bitrate 125000
[  370.223226] c_can_platform 481cc000.d_can can0: setting BTR=1c0b BRPE=0000

4. Sending data on CAN0

root@am335x-evm:~/install/bin# ./cansend can0 5A1#11.2233.44556677.88
root@am335x-evm:~/install/bin# [ 1585.887401] c_can_platform 481cc000.d_can can0: setting BTR=1c0b BRPE=0000

But I am unable to receive data on CAN1.


Viewing all articles
Browse latest Browse all 148978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>