大家好,最近在用MX6Q的CAN总线,按照“How to enable CAN bus on i.MX6Q SabreSD.pdf” 配置了代码。将两台机器CAN对接(CANH-->CANH, CANL-->CANL), 然后进行测试:
BORAD1:
ip link set can0 up type can bitrate 250000
busybox ifconfig can0 up
cansend can0 -i 25 -v 34 45 56
显示:
interface = can0, family = 29, type = 3, proto = 1
id: 25 dlc: 3
0x22 0x2d 0x38
BOARD2:
ip link set can1 up type can bitrate 250000
busybox ifconfig can1 up
candump can1 --filter 25:
显示:
id: 0x00000019 mask: 0x00000000
interface = can1, family = 29, type = 3, proto = 1
就是这样can1收不到任何信号,从示波器上量CAN0的TX发现没有信号,现在也不知道哪里出了问题,希望
有人能帮忙指点一下,我的CAN芯片是TLE6250 |