**** BEGIN LOGGING AT Thu Apr 25 03:00:02 2019 Apr 25 03:30:56 argh. Apr 25 04:41:10 I cannot connect internet over USB how can I fix it? Apr 25 14:30:04 BeagleBone Blue, with 4 encoded micro-metal motors and Pixy 1 camera, programmed with Ada (code proven by SPARK) - 9:11 min video for anyone interested: http://knaldgas.dk/~pdj/DTU_RoboCup_Roadrunner_Finale_2019.mp4 Apr 25 14:33:06 The driving forth and back once in a while are the vehicle doing thorough calibration... must be improved for next year :) Apr 25 14:40:32 m Apr 25 16:30:38 Hello Apr 25 16:31:15 Is there any way, we can enable P9-24 and P9-26 pins for CAN communication on BBB rev C board? Apr 25 16:31:53 yes, although they default to i2c, you can simply reconfigure them to can function like any other pin Apr 25 16:32:03 Tried using device overlay tree and seems */slots are not working anymore.. 2013 posts are not working Apr 25 16:32:22 anything from 2013 is going to be extremely outdated Apr 25 16:32:31 config-pin P9.24 can Apr 25 16:32:44 and likewise for the other one Apr 25 16:32:48 All 4 UART ports are working fine..but need to somehow make one of these pins for making CAN communication Apr 25 16:33:17 my other boards Ardunio UNO and Pi boards are working fine on CAN line Apr 25 16:33:36 none of this infomation is useful to anyone helping you Apr 25 16:33:43 hi z-matt, I did that step too Apr 25 16:33:53 it shows can on the line Apr 25 16:34:09 (alternatively there's also an overlay you can use, if you prefer that to using config-pin) Apr 25 16:34:27 How to use through overlay? Apr 25 16:34:36 as I already tried with config-pin option Apr 25 16:34:50 both options should work equally fine Apr 25 16:34:58 what problem do you have exactly? Apr 25 16:35:35 ok, currently, Arduino is sending some messages and Pi is reading those messages on CAN line.. I would like BBB alos to read those messages Apr 25 16:35:59 (oh btw what I said earlier about them being configured as i2c isn't true for P9.24/26, I thought you were talking about P9.19/20) Apr 25 16:36:08 okay, and? Apr 25 16:36:13 Ok, the problem is when I type candump can1, it simply doesn't show anything Apr 25 16:36:29 hangs there forever,whereas the other controllers are reading messages Apr 25 16:36:40 you've configured the pins using config-pin and then configured the can1 interface? Apr 25 16:37:05 yes, used the following steps: 1. Apr 25 16:37:06 I have very little experience with can, but as far as I know those steps should suffice Apr 25 16:37:38 I will explain step by step step, what I did, please let me know, if I made any mistake Apr 25 16:38:34 first step: sudo config-pin p9.24 can sudo config-pin p9.26 can Apr 25 16:38:50 (I don't think config-pin requires sudo) Apr 25 16:38:52 step 2: udo nano /usr/bin/config_pins.sh Apr 25 16:39:26 (you should not put custom scripts in /usr/bin/ or /usr/sbin/, place them in /usr/local/bin/ or /usr/local/sbin/ instead) Apr 25 16:39:39 then entered following: #!/bin/bash config-pin p9.24 can config-pin p9.26 can Apr 25 16:40:01 Ok, Apr 25 16:40:08 I'd suggest you first just try to get the interface working manually before you try to automate it Apr 25 16:40:20 step 3: sudo chmod a+x /usr/bin/config_pins.sh Apr 25 16:40:39 step 4: sudo nano /lib/systemd/system/config_pins.service Apr 25 16:40:50 otherwise, if it doesn't work, you won't know if the procedure itself is wrong or if the automation thereof is wrong Apr 25 16:40:56 then added: [Unit] Description=Enable pin configuration at startup After=generic-board-startup.service [Service] Type=simple ExecStart=/usr/bin/config_pins.sh [Install] WantedBy=multi-user.target Apr 25 16:41:03 please don't paste multiline output into chat Apr 25 16:41:06 it becomes an unreadable mess Apr 25 16:41:14 use a paste service like pastebin.com Apr 25 16:41:32 and again, please just try to get it working manually first before you try to make a startup service for it Apr 25 16:41:55 ok,..sorry, the below link is what I used for enabling CAN..https://www.thomas-wedemeyer.de/beaglebone-canbus-python.html Apr 25 16:42:43 Everything works good no error in executing lines Apr 25 16:43:00 But, when I enter the candump can1, it simple hangs Apr 25 16:43:49 well that's going to make it tricky to debug, since you're using a procedure that evidently is known to work for someone Apr 25 16:44:05 the bitrate you've configured is the same as the other devices? Apr 25 16:44:31 yes..500000 Apr 25 16:46:06 maybe try candump -d -e -x for more diagnostics Apr 25 16:46:27 Ok..1 min..I will try now Apr 25 16:46:28 (followed by the interface name) Apr 25 16:46:44 can1 ? Apr 25 16:46:47 yeah Apr 25 16:46:53 what CAN transceiver are you using? Apr 25 16:47:28 SN65HVD231r CAN-driver Apr 25 16:48:14 ok Apr 25 16:49:35 where on the bus is the beaglebone located? at one of the ends of the line, or in the middle? does your bus have proper termination on both ends? Apr 25 16:49:53 or are you just doing point-to-point tests with two devices at any time? Apr 25 16:52:40 all the CAN lines are terminated with 120 ohm resisters Apr 25 16:53:05 "all the CAN lines" ? Apr 25 16:53:35 from UNO, Pi and BB CAN tranceiver Apr 25 16:53:45 CAN Hi and CAN Low lines Apr 25 16:54:36 that doesn't make any sense Apr 25 16:55:22 termination isn't on the individual wires, it's between them, and it must only be done at the two ends of the bus and not anywhere in between Apr 25 16:55:55 oh wait, I may be confusing low-speed and high-speed CAN Apr 25 16:56:20 yes, All CAN Hi and Low wires are connected on bread board and terminated with 120 ohm Apr 25 16:56:27 no I'm not, 500kbps is high-speed Apr 25 16:56:57 Ok, I can try with 125 kpbs Apr 25 16:58:01 http://www.ni.com/en-us/innovations/white-papers/09/can-physical-layer-and-termination-guide.html see figure 1 Apr 25 16:58:29 that's what I'd normally expect a multipoint bus to look like Apr 25 16:58:54 (the "stub" traces from each transceiver to the line need to be as short as possible) Apr 25 17:00:02 but I don't have a much experience with can, so I might be unaware of its particular needs Apr 25 17:01:38 still, if the can controller is receiving corrupted packets, that should at least be visible in a counter somewhere I'd expect Apr 25 17:01:39 Ok, I kind of gave the similar connection on the CAN line too Apr 25 17:02:19 How do we know that, the CAN pins are activated? Apr 25 17:02:44 you can check with config-pin, as the webpage you linked to indicates Apr 25 17:03:05 you could also double-check using my "show-pins" utility: https://github.com/mvduin/bbb-pin-utils/#show-pins Apr 25 17:04:29 it shows: P9_24 Mode: can Apr 25 17:04:52 as expected Apr 25 17:07:15 btw I'm not convinced that the setup as given on that webpage will guarantee the interface is brought up correctly at startup, although it should be fine when performing the steps manually Apr 25 17:08:04 so, would you like to change the path to /bin/local? Apr 25 17:09:31 /usr/local/bin you mean (or sbin would be more appropriate) ... I mean, that's certainly something you should do (/usr/bin is for package-managed programs, /usr/local/bin is for manually installed programs) Apr 25 17:09:41 but that's unrelate to any problem Apr 25 17:09:44 *unrelated Apr 25 17:10:51 but you shouldn't concern yourself with the startup files anyway, focus on getting it to work manually first Apr 25 17:11:01 Ok..and most of the CAN application websites are old and they are all following the overlay tree and executing .dts file Apr 25 17:11:27 I have followed the below link too..https://www.instructables.com/id/DIY-Beaglebone-CAN-Bus-Cape/ Apr 25 17:12:31 you can use the overlay if you want. just put /lib/firmware/BB-CAN1-00A0.dtbo in one of the uboot_overlay_addr4..7 variables in /boot/uEnv.txt and reboot Apr 25 17:12:41 that would replace the steps related to config-pin Apr 25 17:13:49 btw you just said "I kind of gave the similar connection on the CAN line too" .. what did you mean by that? since the previous description of your termination wasn't similar to it Apr 25 17:14:00 Ohh..But, May I know, how to add BB-CAN-00A0.dtbo into /uEnv.txt file? Apr 25 17:14:24 ? using whatever text editor you prefer? Apr 25 17:15:06 Just add a line with BB-CAN1_00A0.dtbo at the end is sufficient? Apr 25 17:15:17 did you read what I said at all? Apr 25 17:15:41 because I certainly didn't say "add a line with -CAN1_00A0.dtbo at the end" Apr 25 17:16:21 Yeah, I am reading..regarding CAN line termination, I have used Breadorad + line and - ve line Apr 25 17:16:35 "put /lib/firmware/BB-CAN1-00A0.dtbo in one of the uboot_overlay_addr4..7 variables in /boot/uEnv.txt" is what I said Apr 25 17:16:43 I have no clue what you're saying Apr 25 17:17:22 let me open uEnv.txt file.. Apr 25 17:18:35 just to clarify: https://www.kmpdrivetrain.com/wp-content/uploads/2017/05/CAN-Wiring-01.png Apr 25 17:19:27 more detailed: https://www.kmpdrivetrain.com/wp-content/uploads/2017/05/CAN-Bus-wiring-01.png Apr 25 17:19:43 yes sure, these termination, I feel it is good. I am just keeping all the ECUs within 5 cm distance Apr 25 17:20:05 okay, I guess in that case the topology doesn't relaly matter anyhow Apr 25 17:20:09 *really Apr 25 17:20:56 One thins is that, in those websites, they created a file with BB-DCAN1-00A0.dtbo, rather than BB-CAN1-00A0.dtbo Apr 25 17:21:17 BB-CAN1-00A0.dtbo is an already-existing standard overlay Apr 25 17:21:18 which one I should add to uEnv.txt? DCAN1 or CAN1 ? Apr 25 17:21:18 no need to create anything Apr 25 17:21:25 perfect Apr 25 17:21:29 I use that Apr 25 17:21:33 on addr 4 Apr 25 17:22:08 Do I have to remove # tag, after adding the above .dtbo file? Apr 25 17:22:29 yes, any line that starts with a # is a comment and will be ignored Apr 25 17:22:31 in uEnv.txt file? Apr 25 17:22:41 sure Apr 25 17:26:19 Do you need to reboot the bbb after adding CAN1 in uENV.txt? Apr 25 17:27:07 I literally said "and reboot". this is getting really annoying Apr 25 17:28:15 sorry..sorry Apr 25 17:41:48 I tried it, the BBB hangs at the same point (when I use candump) Apr 25 17:54:16 hi zmatt, it seems, there is something missing in the execution.. Apr 25 20:06:55 Hello Apr 25 20:07:28 is there anyone good at CAN communication protocol on BBB? Apr 26 02:54:51 zmatt: Do you have that gps3 'r' and 'w' to a file info. still or is it lost in the archives? Apr 26 02:56:43 I lost the dang info. somehow. Aw! **** ENDING LOGGING AT Fri Apr 26 02:59:56 2019