**** BEGIN LOGGING AT Wed Mar 18 02:59:58 2020 Mar 18 03:01:03 Evening... Mar 18 03:06:53 good evening Mar 18 03:07:10 What's goin on? Mar 18 03:07:25 not much Mar 18 03:07:49 Looking for set_ or zmatt... Mar 18 10:51:08 m Mar 18 12:21:53 Hello, I have bought my first Beaglebone, it's a BBB. The first time it worked fine by powering it up by USB. Now when I plug the USB, PWR LED is on, the rest of the LEDS lit up and all of the LEDS then are off. If I push the power button the same happens again. what could be wrong? Mar 18 12:22:44 uniqdom: maybe your usb port can't supply enough power? are you using the cable that came with the bbb? (since a crappy cable could also cause problems) Mar 18 12:23:24 oh it worked fine the first time, hmm... so what did you do between when it worked and when it didn't? Mar 18 12:23:24 I'm using a phone USB charger, I will try with another cable Mar 18 12:23:38 a phone charger should be able to supply more than enough Mar 18 12:23:58 do you have anything attached to the P9/P8 expansion headers? Mar 18 12:25:16 zmatt: nothing was atached to the expansion headers. I think that I was using the same cable, but by changing it, it is working now, thanks :) Mar 18 12:26:15 was it the original cable that came with the bbb or a random one? I thought they shipped the bbb with a decent cable Mar 18 12:28:16 it was a second hand bbb, it didn't came with a cable Mar 18 12:28:23 ah ok Mar 18 14:50:33 Hello, what's the default behavior after power up of GPIOs in a BBB? Mar 18 14:50:37 are they INPUTS or OUTPUTS? Mar 18 14:50:51 does it depend of the pin number? Mar 18 14:53:36 I will be using this four pins: GPIO77=P8_40=LCD_DATA7, GPIO75=P8_42=LCD_DATA5, GPIO73=P8_44=LCD_DATA3, GPIO71=P8_46=LCD_DATA1 Mar 18 14:53:57 Is the LCD enabled by default? Mar 18 15:00:12 uniqdom: lcd is enabled by default yes (since these pins are shared with the hdmi framer). you need to disable video in /boot/uEnv.txt to ensure those pins default to gpio (high-Z with weak pull up or down) Mar 18 15:01:40 but be careful with using the lcd data pins for other purposes: they are also used as strapping options for bootrom, so some of them must have a specific level during power-on (at the release of power-on-reset) or the system won't boot Mar 18 15:02:23 see the P8 tab of my pins spreadsheet: https://goo.gl/Jkcg0w Mar 18 15:03:05 (these pins have 100 kΩ resistors on board to pull them in the right direction, but if you're not careful you can easily override those with externally connected hardware) Mar 18 15:06:07 e.g. of the four pins you mentioned, P8.42 and P8.44 are pulled up while P8.40 and P8.46 are pulled down. P8.42 isn't that important, but the other three need to have those levels at power-on Mar 18 15:06:40 this is generally not too difficult to ensure, but you just need to be aware of it Mar 18 15:06:58 zmatt: thanks a lot for that info. I was given a task where I have to control some relays with those pins. I think that they will have to redesign the PCB. Mar 18 15:07:34 I'm just doing the python programming part Mar 18 15:08:14 are they using transistors or FETs to drive the relays? Mar 18 15:08:45 let me ask them Mar 18 15:21:19 uniqdom_: ? Mar 18 15:22:54 zmatt: sorry... they have answered just now. they will be controled with transistors Mar 18 15:23:00 bjt Mar 18 15:37:40 uniqdom_: ok, then for the ones that need to be default high my suggestion would be to use a 10K series resistor on the base of the NPN transistor and 1K pull-up on the beaglebone side. this would however cause the relay to be active by default, so an alternative would be to use a PNP to make it active-low but then the voltage for the relay would be 3.3V and I don't know if that's enough. schematics ... Mar 18 15:37:46 ...for both versions: https://photos.app.goo.gl/mzLqZNp5KtavcTEd9 Mar 18 15:38:10 or just use different pins Mar 18 15:38:39 zmatt, thanks they will change the pins Mar 18 15:39:48 yeah just avoiding the four pins that need to be high at power on works too of course :) Mar 18 15:41:49 yes, they are going to use p8_12, p8_14, p8_16 and p8_18 Mar 18 17:22:52 zmatt: let me know if anyone wants to be involved in gsoc that you run across. Mar 18 17:23:10 I just direct them to #beagle-gsoc Mar 18 17:23:51 it's a bit annoying that people who are interested in gsoc never say so but always use some vague wording like asking "how to contribute" Mar 18 19:36:19 zmatt: jkridner[m]: you need some triage questions :P Mar 18 20:55:03 nah gsoc people are still easily recognizable exactyly due to that strange and vague question on "how to contribute" Mar 18 21:12:59 zmatt: lol ok :) you're already got a filter set :p Mar 18 21:13:19 The Force is Strong with You XD Mar 18 21:18:26 hey Mar 18 21:18:49 anyone solve the mystery of sharing internet over usb Mar 18 21:18:56 for BBB Mar 18 21:19:16 I can ssh but my BBB cannot see the internet Mar 18 21:20:57 yeah sharing internet to the bbb via usb is rather fiddly. consider using ethernet instead. if your computer is connected to internet via wifi but also has an ethernet port, then try enabling internet sharing to the ethernet port and connect the bbb to that Mar 18 21:22:49 kk Mar 18 21:23:33 that way you won't have to fiddle with network settings on the bbb (and risk losing the ability to ssh to the bbb) Mar 18 21:24:01 zmatt: yeah that is what happened to me last time and I had to flash Mar 18 21:26:51 if something like that ever happens while you have important data on the bbb, know that problems like these are always fixable without reflashing. reflashing may be easier/faster though, especially if you don't have much experience Mar 18 21:35:03 i was not in too deep Mar 18 21:35:41 made a bit of progress with the serial ports Mar 18 21:36:24 is there a way I can configure the pins from code. right now I would need a shell script to configure the pins and then run my program Mar 18 21:37:52 yeah all config-pin does is write some values to sysfs properties. you can also write those directly from your code. this is an example I wrote for doing so in python: https://pastebin.com/MKtWJ8G8 Mar 18 21:38:16 alternatively you can use an overlay to configure the hardware, in which case the kernel will set everything up for you during early boot Mar 18 21:38:50 I have a project that makes overlays a bit nicer/easier to write, along with some examples: https://github.com/mvduin/overlay-utils Mar 18 23:03:54 I got a funny Cape. Mar 18 23:03:58 Yea boy! Mar 18 23:04:14 It seems these people put a cape together for screw terminals. Mar 18 23:04:48 Now, I can make some connections that will stick b/c of the screws. Mar 18 23:06:09 Now, I must see if the darn thing works. Mar 18 23:11:49 I thought capes with screws were available. Mar 18 23:12:05 "What is your IP Address?" Mar 18 23:12:07 Ha. Mar 18 23:13:03 Ha. I got my wifi dropping issues resolved by disabling HDMI is /boont/uEnv.txt Mar 18 23:14:46 [x] doubt Mar 18 23:15:28 Apparently the HDMI generates signals that cause head aches for wifi. I'm not using HDMI so I disabled it Mar 18 23:16:02 that theory might have sounded plausible except that there's no video output on hdmi unless you have a monitor plugged in Mar 18 23:16:32 it needs to query the monitor's EDID before it can select a resolution and enable the video output Mar 18 23:17:12 Well I got this info from Beaglebone group on Google. I also moved the USB hub about 6" away. Mar 18 23:17:38 so maybe you just moved your usb hub to a location with better reception Mar 18 23:18:37 Well I can test that thoory by moving it back Mar 18 23:19:21 KenUnix: https://xkcd.com/1457/ Mar 18 23:19:39 zmatt, why is BBB doing this about every 15 minutes" Mar 18 23:19:49 "this" ? Mar 18 23:19:55 Mar 18 18:49:24 beaglebone connmand[706]: ntp: adjust (slew): +0.040431 sec Mar 18 23:20:46 better questions are 1. why is _connman_ doing that of all things 2. why does it feel the need to write a log message about it? Mar 18 23:21:33 yeah it seems connman is also an ntp client... weird Mar 18 23:21:49 Pinapple haha. Mar 18 23:21:54 and not a great one apparently since it doesn't do frequency adjustment Mar 18 23:22:49 It just did it again. I'm doing a tail -f Mar 18 23:22:53 Mar 18 18:49:24 beaglebone connmand[706]: ntp: adjust (slew): +0.040431 sec Mar 18 23:24:21 Mar 18 19:23:32 beaglebone connmand[706]: ntp: adjust (slew): -0.015048 sec Mar 18 23:25:33 it makes sense that it's doing an adjustment every so often (at least, it makes sense for a dumb ntp implementation)... it doesn't make sense that it's adjusting forward and then later adjusting backwards Mar 18 23:26:12 my guess would be it's just a terrible ntp implementation Mar 18 23:26:20 we're using chrony and I'm quite happy with it Mar 18 23:26:33 Is there a setting for that adjustment? Mar 18 23:26:51 no idea, I don't use connman Mar 18 23:27:59 the +0.040431 per 15 minutes seems about right though... that's about 45 ppm frequency deviation which is about what I find on every beaglebone (they seem to have a slight but systematic frequency error on the main oscillator for some reason) Mar 18 23:33:33 but a proper ntp client will measure that frequency deviation and adjust the system clock frequency to compensate Mar 18 23:33:42 instead of doing a time correction every 15 minutes Mar 19 00:00:03 Thanks, zmatt ever used Linux Mint? Mar 19 00:00:51 nope Mar 19 00:02:54 I know its based on Ubuntu but it seems more refined. Also MS got back to me re: swapping hard drive question. They said as long as it starts it will try and correct any wrong/missing drivers. All I might need is the CAD code wor. Mar 19 00:05:14 I tried downloading MS's new anti-virue package for Linux. It got stuck at one point pt-get install mdatp Mar 19 00:07:54 Well aparently the space between BBB and wifi has no bearing. It must me the disabled HDMI. Mar 19 00:13:21 or something else Mar 19 00:21:36 I re-enabled HDMI. Moved USB back where it was. I Dunno.. Mar 19 00:24:49 did you move any pineapple? Mar 19 00:31:10 Yea! under my butt Mar 19 00:32:42 Yep there it goes got three lines Mar 19 00:32:49 Mar 18 20:28:08 beaglebone connmand[693]: wlan0 {add} route 212.227.81.55 gw 192.168.55.1 scope 0 Mar 19 00:33:11 Mar 18 20:28:12 beaglebone connmand[693]: Online check failed for 0x1324a78 CALnet Mar 19 00:33:30 Mar 18 20:28:12 beaglebone connmand[693]: wlan0 {del} route 212.227.81.55 gw 192.168.55.1 scope 0 Mar 19 00:36:16 Why is it trying to go to 212.227.81.55 ???? Mar 19 00:37:43 nslookup - 55.81.227.212.in-addr.arpa name = ipv4.connman.net Mar 19 00:40:24 403 Forbidden to that IP Mar 19 00:42:13 Now getting other time related messages Mar 19 00:42:18 Mar 18 20:28:41 beaglebone systemd[1535]: Time has been changed Mar 19 00:44:07 Would it be safe to say this is in Germany:: Mar 19 00:44:11 ear6.Frankfurt1.Level3.net Mar 19 00:58:03 what's pineapple Mar 19 01:34:11 MattB0ne: it was a reference to https://xkcd.com/1457/ Mar 19 01:38:21 is there glob for c++ zmatt I am trying to port your python in to c++ Mar 19 01:39:02 MattB0ne: you can also just hardcode the actual paths, the downside is that it'll be less portable across kernel versions Mar 19 01:39:54 right, o guess I could just build the string up Mar 19 01:40:07 I* Mar 19 01:40:10 so my use of glob is just a somewhat ugly hack to work around that Mar 19 01:40:22 a better solution would be to use an udev rule to create symlinks in a consistent place Mar 19 01:42:40 glob() does exist in C btw, but it's not as simple to use as in python obviously **** ENDING LOGGING AT Thu Mar 19 03:00:02 2020