Certainly, BB-CAN01-00A0 enables dan1 peripheral, not can0. However, as I know, you should enable ‘can0(not dcan1 or can1)’ when you enable the can network stack via ifconfig. Please refer this links. The ‘how-to’ in this link still works well: https://electronics.stackexchange.com/questions/195416/beaglebone-black-can-bus-setup
Best regards Heecheol Yang. 보낸 사람: Robert Heller<mailto:[email protected]> 보낸 날짜: 2019년 7월 22일 월요일 오후 11:41 받는 사람: [email protected]<mailto:[email protected]> 참조: BeagleBoard<mailto:[email protected]>; Robert Heller<mailto:[email protected]> 제목: Re: [beagleboard] CAN Not Working (P9_24, P9_26, P9_19, P9_20 - Beaglebone Black Enhaced) At Sun, 21 Jul 2019 18:38:10 -0700 (PDT) [email protected] wrote: > > > > > Kernel version: 4.19.31-ti-r19 > OS: Ubuntu 18.04.2 LTS > BB Board: Beaglebone Black Enhanced (Sancloud) > > Hello, > > I am trying to use P9_24 and P9_26 for CAN (controller area network). The > following are the steps I am taking to enable the pins and attempt to send > messages over CAN: > > config-pin P9_24 can > config-pin P9_26 can > sudo ip link set can0 up type can bitrate 500000 > sudo ifconfig can0 up I think you need can1 here, not can0. *I* got things to work with my LCC CAN Cape board (https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.pcbway.com%2Fproject%2Fshareproject%2FLCC_CAN_Cape_for_Beagle_Bone_Black.html&data=02%7C01%7C%7C03d6162b2c7e4356cf4808d70eb2a28c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636994032698061898&sdata=6wqTMeEc072CEcMbLJA2SAlseQdNhLBKtNTauLlxmbE%3D&reserved=0). I have its eeprom set to load /lib/firmware/BB-CAN1-00A0.dtbo at boot time, I can then configure can1 and it works just fine. I think BB-CAN1-00A0.dtbo does a little more than merely what config-pin does. I'd suggest editint /boot/uEnv.txt to load the BB-CAN1-00A0 overlay and then configuring can1... > cangen can0 -i -g 100 -v > > cangen shows that it is generating messages, but when I view the voltage > levels of P9_24 and P9_26 under and oscilloscope, there is no change in > voltage. The voltage remains at 3.1V-3.2V. > > When I query the pins, the configuration is correct: > > config-pin -q P9_24 > P9_24 Mode: can > config-pin -q P9_26 > P9_26 Mode: can > > > If I change the pin configuration to "gpio" for example, I can see a > voltage change in the oscilloscope for both pins accordingly. I have tried > to configure P9_19 and P9_20 for CAN as well and I have the same results. > > Does anyone have any idea tips on how to get the BB to send CAN messages? > Do I need to configure anything else before it works? > > (I do have a CAN transceiver which will interface on the CAN bus, but I was > not able to see messages from the BB on the CAN bus, which lead me to debug > the voltage at the BB I/O pins first before debugging it over to the > transceiver. It appears my issue is that the BB pins are not transmitting > anything currently.) > > Thanks for the help! > -- Robert Heller -- 978-544-6933 Deepwoods Software -- Custom Software Services https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.deepsoft.com%2F&data=02%7C01%7C%7C03d6162b2c7e4356cf4808d70eb2a28c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636994032698061898&sdata=lzEv6cpWQB4HRnpRCxfAPOeGBPaYCkjHHLkkikfJ3Jo%3D&reserved=0 -- Linux Administration Services [email protected] -- Webhosting Services -- For more options, visit https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fbeagleboard.org%2Fdiscuss&data=02%7C01%7C%7C03d6162b2c7e4356cf4808d70eb2a28c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636994032698071891&sdata=3DeG4BYgTWuEsHk0bzVa3SHCeKUDL6tIExjGQWqe5I8%3D&reserved=0 --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fbeagleboard%2F20190722144027.E0AB526C0173%2540sharky3.deepsoft.com&data=02%7C01%7C%7C03d6162b2c7e4356cf4808d70eb2a28c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636994032698071891&sdata=InpXxrvhiL5yCZ5GELDL1Tfi3EKR963yIWGlSiYI3e4%3D&reserved=0. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/MN2PR14MB2605EDADD193C3E37EF01EB1E6C40%40MN2PR14MB2605.namprd14.prod.outlook.com.
