**** BEGIN LOGGING AT Wed Apr 25 03:00:06 2018 Apr 25 09:25:56 sir i was connected some gpio input pins and analog pins on beagleboneblack . but my BBB is restarting every time what is the issue Apr 25 09:29:33 prakash_: disconnect everything again, and then reconnect one after the other until it does show the behaviour, to isolate the problem Apr 25 09:29:40 maybe you're shorting some VCC Apr 25 09:30:39 okay Apr 25 10:27:49 though a short normally results in poweroff, not reboot Apr 25 11:11:08 or a short voltage drop, that triggers the brown out reset Apr 25 13:23:08 hello Apr 25 13:23:13 I have a BeagleBoard xM Apr 25 13:23:31 and I want to run a simple program bare metal Apr 25 13:24:00 where should I start to make it as fast and simple as possible Apr 25 13:24:41 is there any software that might help me? Apr 25 13:25:12 closest thing probably is just take uboot and see what it does Apr 25 15:54:18 KotH: brownout would trigger a pmic fault condition, which triggers poweroff Apr 25 16:13:54 zmatt: ah.. ok Apr 25 23:02:15 Hello beagle community! I just tried the latest debian image (Stretch 9.3). What is really bugging me right now is that C9 seems to break the WiFi network interface. I can either have WiFi or C9, but not both. Any thoughts? Apr 25 23:04:06 TekuConcept: uhh Apr 25 23:04:09 what do you mean? Apr 25 23:04:24 cloud9 should not have any influence on networking settings Apr 25 23:05:39 That's what I thought too, which is why I found it so strange. I tried a fresh install just to be sure: same thing Apr 25 23:05:59 what are you observing exactly? Apr 25 23:06:08 in what sense does cloud9 "break" wifi? Apr 25 23:07:51 First, to clarify: I setup my WiFi through the network interfaces and wpa_supplicant.conf files rather than through connmanctl 1) because I need it to connect on boot and 2) it's just easier to remember Apr 25 23:08:37 yeah ditto, although I use systemd-networkd rather than ifupdown Apr 25 23:09:26 In "/opt/cloud9/cloud9.service" I comment out the command as follows "EXECSTART=# server.js ". Then reboot. My WiFi connects as desired. Apr 25 23:10:04 but C9 no longer works as expected. Uncomment the line and C9 works again, but no WiFi. Apr 25 23:10:10 ehhhhh Apr 25 23:11:01 check journal to see what's going on during boot in the latter case? Apr 25 23:11:38 drats... forgot about the journals... Apr 25 23:12:26 also that's not an appropriate way to disable a service... you just created an invalid service file, hence starting cloud9 was no longer even a consideration Apr 25 23:12:30 I remember the wifi interface was established according to ifconfig. Even connmanctl said wifi was enabled. Apr 25 23:12:50 so in which sense was wifi not working? Apr 25 23:14:04 Only when the C9 service was running. (Or more accurately when the C9 service is "valid" - I tried alternative bash commands in place of the C9 server command.) Apr 25 23:15:59 I don't understand what you're saying Apr 25 23:16:45 you said "cloud9 works, but no wifi" yet "the wifi interface was established according to ifconfig" ... so in what sense was wifi not working? Apr 25 23:19:06 can you share the output of ifconfig (or preferably its modern replacement "ip addr") and the boot logs (journalctl -b-0 --no-pager) in this situation via pastebin.com ? (or some other paste service of your choice) Apr 25 23:19:19 please don't send private messages Apr 25 23:19:36 The wifi interface was enabled but no APs could be found. not even connmanctl> scan wifi; services found anything Apr 25 23:20:35 Out of curiosity, why not? I was trying to avoid bloating the main channel with lots of talk that seems to be between just the two of us. Apr 25 23:22:09 okay so you probably just misinterpreted the output of ifconfig Apr 25 23:22:36 so next question is what went wrong during boot, hence check boot log Apr 25 23:23:31 As I stated in the beginning. I am no longer running Debian 9.3. I downgraded back to Debian 8.4 which runs both C9 and wifi simultaneously. I won't have any logs on me unless I wipe and reinstall the latest image. Apr 25 23:24:19 and because asking questions and, with some luck, getting answers is the entire purpose of this channel. I'm not interested in monitoring yet another window. also it allows other people to offer suggestions if they have any, and the irc logs may be of use to others searching for answers Apr 25 23:24:26 you haven't stated that in the beginning Apr 25 23:25:22 and if you don't have the misbehaving setup available for debugging, there's obviously not really any hope of debugging it Apr 25 23:25:40 I did. Oh maybe I never hit "enter" hmm, sorry about that. Apr 25 23:26:31 Let me find a free microSD card and setup the bone really quick - should take < 3 min Apr 25 23:29:39 I do intend to go to sleep pretty soon. however, since apparently you never inspected the logs, maybe start with doing that and see if you can figure it out yourself :P I'm around here often enough if you end up needing more help Apr 25 23:32:12 That's okay, I was probing to see if this was a common problem with an easy fix or if this really was a bug in the image. Apr 25 23:32:29 no it sounds more like a bug introduced by your actions Apr 25 23:32:44 although it's not obvious to me how exactly Apr 25 23:33:53 I did a fresh install and changed the network settings - nothing else. No wifi. I then 'break' c9, wifi works. I fix c9, wifi doesn't work but c9 works again. Apr 25 23:35:01 If you believe I introduced the bug, it would have to be in the network interfaces. Apr 25 23:35:14 you didn't merely change network settings, you switched to a different network manager (ifupdown instead of connman) Apr 25 23:35:28 I never use ifupdown Apr 25 23:36:23 maybe I misunderstood what you said, I assumed that with "I setup my WiFi through the network interfaces" you meant /etc/network/interfaces Apr 25 23:36:26 My procedure is: 1) update /etc/network/interfaces 2) reboot Apr 25 23:36:37 exactly, that's the config file of ifupdown Apr 25 23:37:21 hmm, I thought you were referring to ifup and ifdown, which have never really worked for me. Apr 25 23:37:25 which also means you're actually using two network managers at the same time right now, which in general doesn't sound like a good idea Apr 25 23:38:06 those commands are used to bring interfaces up and down respectively when using ifupdown yes. ifup -a is invoked at boot when ifupdown is installed (and enabled) Apr 25 23:38:17 Out of curiosity, how would you disable a service from startup? Apr 25 23:38:29 systemctl disable whatever Apr 25 23:38:55 and that works for startup items as well? because I know that works for runtime Apr 25 23:39:24 enable/disable affects whether the service is started at boot Apr 25 23:39:33 start/stop is for starting/stopping a service right now Apr 25 23:40:44 okay then, when I get a fresh image up and going. I'll try "systemctl disable connmanctl" and see how that works, though I do have my doubts. I'll also check the boot logs as you suggested. Apr 25 23:42:35 that's not the name of the service Apr 25 23:42:45 it's probably just connman or maybe connmand Apr 25 23:43:12 right, it would be located in /etc/init.d Apr 25 23:43:31 if it's still an old sysv service then yes Apr 25 23:44:31 if there's .service file for it in /lib/systemd/system or /etc/systemd/system then that will take precedence Apr 25 23:45:02 you can of course just check with systemctl status connman rather than inspecting the filesystem Apr 25 23:46:38 okay Apr 25 23:51:03 ... Apr 25 23:51:05 Hello! Apr 26 00:02:35 I got the L298 and Motor Driver Board to work w/ the BBB. Apr 26 00:02:36 Boy! Apr 26 00:02:37 ... Apr 26 00:03:19 Adafruit_BBIO works as expected (as usual) for PWM and my pin hook-up. Apr 26 00:03:21 But... Apr 26 00:03:46 The software runs at lighting speed. Is there a way to slow down Python software on the BBB to make sure my motors do not take off? Apr 26 00:04:05 ... Apr 26 00:04:11 I will use pastebin. Apr 26 00:04:19 Sharing is caring. Apr 26 00:05:31 https://pastebin.com/QMPSvcC6 is the basic software but the "i in range (xx, xxx)" runs too quickly and is done. Apr 26 00:08:33 set_: 2000 is max forward speed Apr 26 00:08:39 OH! Apr 26 00:08:47 I need to slow down things! Apr 26 00:08:51 THank you! Apr 26 00:09:13 Your values should be between 1000 and 2000 Apr 26 00:09:31 I have geared, DC motors. Those things were going to turn into mush. Apr 26 00:09:45 XD Apr 26 00:09:47 Ha! Apr 26 00:10:11 TekuConcept: Hello, how are you today? Apr 26 00:10:38 I saw you convo. w/ zmatt and your ideas. Apr 26 00:10:56 connman got you down? Apr 26 00:11:08 yup Apr 26 00:11:20 BBG or BBBW? Apr 26 00:11:53 or USB dongle? Apr 26 00:12:09 Traditional Beaglebone Black Apr 26 00:12:11 BBG = BBGW Apr 26 00:12:12 Oh. Apr 26 00:12:24 so, you want WiFi w/ your BBB? Apr 26 00:13:10 I'm trying to get wifi to behave with C9 in the latest debian image (9.3). It works fine in 8.4 though. Apr 26 00:13:48 Oh. Apr 26 00:14:14 did zmatt walk you through the ip and set up of those ideas? Apr 26 00:14:22 ip ? Apr 26 00:14:54 I think Debian users and "higher ups" want to use ip instead of ifconfig for now. Apr 26 00:15:11 so, ip address would give you a list of addresses. Apr 26 00:15:48 Haha, oh I'm fully aware of the old and new of the wifi commands (ifconfig vs ip) I wrote a script that configures my bone into a full fledged wifi router. :) Apr 26 00:15:58 Oh. Apr 26 00:16:00 Yea boy! Apr 26 00:16:20 So, let me guess. You are just updating and trying to make the router current? Apr 26 00:16:23 habit just leads me to defaulting to the old because of how quickly I can type it out Apr 26 00:16:33 Yep. I got you. Apr 26 00:17:34 TekuConcept: I have no ideas on your issue. I am sorry. I just wanted to chat about something different than what I am going through. Apr 26 00:17:55 ... Apr 26 00:17:56 I'm setting up a make-shift temperature recorder for a greenhouse to measure the effects of temperature control. Apr 26 00:18:10 Oh. Apr 26 00:18:18 I have one of those. Apr 26 00:18:23 Score! Apr 26 00:18:44 Mine is done w/ the BBB but is probably cheaper than your might be. Apr 26 00:19:26 I did one w/ a TMP36 and Python. Apr 26 00:19:33 it's only a temporary setup to fine-tune things. ...alright not to start troubleshooting wifi Apr 26 00:19:44 Okay. Apr 26 00:23:10 I put the frequency on 20 out of 2000 and it slowed down, e.g. by a ms only. I think my software sucks now. I will have to work on it. Apr 26 00:24:14 poof! Apr 26 00:25:19 w/ Arduino's Servo class, you would write "servo.writeMicroseconds()" with value between 1000 and 2000. Apr 26 00:26:04 Oh. Apr 26 00:26:18 I will have to write a class or something. Apr 26 00:27:05 I use while True: instead of i in range(xx, xx): and received a similar response. Apr 26 00:27:07 It's been a long time since I used PWM on the bone, but I remember sending in the same values in the bash terminal. Apr 26 00:27:19 Oh. Apr 26 00:27:20 Okay. Apr 26 00:28:07 The only reason I think I am moving too quickly w/ the software ex. is b/c the loop or one and done ex. is done quickly, i.e. in milliseconds. Apr 26 00:28:20 Odd days! Apr 26 00:28:33 I will try your way too. Apr 26 00:30:32 brb...outside! Apr 26 00:36:56 set_: I can't even begin to imagine what you were trying to do with https://pastebin.com/QMPSvcC6 Apr 26 00:37:49 zmatt: I am just testing motors right now. Apr 26 00:37:59 TACO BIEN Apr 26 00:38:05 Yea boy! Apr 26 00:38:14 bien = good Apr 26 00:38:31 <<<< multi-lingual! Apr 26 00:38:33 Yo se. Apr 26 00:38:44 Oh? Apr 26 00:38:48 zmatt: you're still here! I've the kernel loaded. Apr 26 00:38:58 puzzles: Hello. Apr 26 00:39:01 set_: by turning them on, then off, then off, then off, then off, then off.... Apr 26 00:39:10 Hhahaha. Yea! Apr 26 00:39:23 I am leaning towards just starting out again. Apr 26 00:39:34 My software sucks. I know. Apr 26 00:39:44 It is a starter script. Apr 26 00:39:59 Un poquito. Apr 26 00:40:08 TekuConcept: yes, sleep is failing Apr 26 00:40:18 necisito practicar. Apr 26 00:40:33 also you probably meant to use a different word than "kernel", given that you didn't have any kernel-related issue Apr 26 00:40:58 Si. That's what it's all about. You've calling pwm.stop over and over in your loop. Apr 26 00:41:15 Oh. I thought I was just calling it once at the end. Apr 26 00:41:23 I need to move it back four spaces, dang. Apr 26 00:42:24 zmatt: yes, I'm just short handing left and right and it's going to get me into a lot of trouble soon. I meant image. Apr 26 00:43:01 puzzles: Too fast. The "I love Lucy!" print function is blazing fast now. Apr 26 00:43:02 set_: Significant whitespace is a cruel mistress. Good luck with your code. Apr 26 00:43:10 Thank you. Apr 26 00:43:18 nothing wrong with significant whitespace Apr 26 00:43:41 I will get this sucker cracking sooner or later. For now, too fast is only sufficient. Apr 26 00:44:01 (I used to be a curly-bracer, but I'm reformed. even though the languages I use in practice are still curly-brace) Apr 26 00:46:18 I have a passionate, burning hatred for Python and an irrational, flag-waving love for Ruby. I have no regrets. Apr 26 00:47:30 I also dislike python, no experience with ruby Apr 26 00:47:54 <<<<< go to python for electronics! Apr 26 00:48:16 I like ruby, but I'm more of a JS person my self Apr 26 00:48:25 ....... Apr 26 00:49:11 I program quite a bit in javascript for work. it is an atrociously awful language. Apr 26 00:49:54 * shrugs shoulds * to each his own I guess Apr 26 00:50:30 certainly. you can't help it that you have such poor taste ;-) Apr 26 00:51:02 nah, at least it's gotten better over time Apr 26 00:51:36 ouch - haha Apr 26 00:51:52 anyways, I've go the image running and no wifi Apr 26 00:52:51 like, when I first learned about the actual semantics of 'var' my reaction was "that can't possibly be true...". it was. fortunately we now have 'let' so that horror is now in the past Apr 26 00:54:04 zmatt: What is this I'm unaware of? ('let'); also connman showed no results from a scan. Apr 26 00:54:53 ehm, it's how you declare variables? let x = 42; Apr 26 00:55:41 huh, good to know Apr 26 00:56:23 (with sane behaviour you expect from a local variable declaration, unlike 'var' which extends to the entire enclosing function regardless of where in the function the statement occurs) Apr 26 00:59:24 `systemctl disable cloud9` has no effect, hmm Apr 26 01:01:56 still haven't checked the logs? Apr 26 01:02:20 any particular logs I should check other than those from dmesg and systemctl? Apr 26 01:02:42 btw, to see how broken 'var' is, see: http://rextester.com/CVODJ10057 and see how its output changes if you change the 'let' to 'var' Apr 26 01:03:03 uhh, journal is the only log you need Apr 26 01:04:35 the text files in /var/log are just various subsets of the information in journal, hence a waste of space and emmc writes (which is why I personally don't have rsyslog installed on beaglebones) Apr 26 01:05:32 puzzles: btw, if you like having a passionate opinion about programming languages and aren't yet aware of the semantics of 'var' in javascript, go check that link too ;) it's fun Apr 26 01:06:00 zmatt: From journalctl, it looks like I only have logs for Jan 28 and Nov 3... Apr 26 01:06:24 zmatt: Oh I already hate JS. Apr 26 01:06:25 TekuConcept: journalctl -b-0 prints all logs since startup Apr 26 01:06:54 wait... face-palm, the date is currently set to Jan 28 Apr 26 01:06:54 note that the date will be wrong unless/until the beaglebone has an opportunity to perform time synchronization Apr 26 01:07:05 right Apr 26 01:07:11 pass -o short-monotonic to get timestamps relative to boot Apr 26 01:07:11 I forgot Apr 26 01:08:01 puzzles: sure, but there's no such thing as having too many reasons to hate javascript ;) Apr 26 01:09:11 although at least this problem got fixed by the introduction of 'let' ... now all that needs to be done is to burn all old js code still using 'var' off the face of this earth Apr 26 01:10:37 Hahaha. That's one of the saddest deaths of a language, is an unrecoverable syntax error. Apr 26 01:10:53 ? Apr 26 01:11:28 zmatt: log looks a lot like what dmesg prints out. (in other words, eveything I see there, I also see in dmesg.) Apr 26 01:11:52 TekuConcept: journal includes all log information, including dmesg Apr 26 01:12:37 hmm, alright well what do you need me to look for exactly? I see the wifi dongle is successfully recognized. Apr 26 01:12:52 TekuConcept: look for what's going wrong with the startup of cloud9 Apr 26 01:12:57 or wifi Apr 26 01:13:08 sorry, wifi, since you said cloud9 was working right Apr 26 01:13:35 I don't know, looking for problems in logs isn't something you can describe, it's one of those "you know it when you see it" things :P Apr 26 01:14:32 puzzles: if you're getting a syntax error then something went wrong, my code snippet is syntactically valid regardless of whether 'let' or 'var' is used in line 8 Apr 26 01:15:14 zmatt: No I meant that figuratively. var is such a joke that JS will never fully recover. Apr 26 01:16:59 mmmm, I disagree on that one. since the introduction of 'let', the programmer is to blame if he or she continues to use var Apr 26 01:17:29 (js does have unrecoverable faults though, e.g. the awful semantics of numbers and strings) Apr 26 01:18:03 zmatt: right, I know what you mean; I do that stuff all the time with C/C++; (looking for problems in the logs) Apr 26 01:18:06 (e.g. (0x80000000 | 0) === -0x80000000 ) Apr 26 01:20:42 I really should get sleep Apr 26 01:26:45 Haha. That's awful. Apr 26 01:30:09 perl4ever Apr 26 01:41:18 ds2: I loved Perl once...then I tried to read my old code and got eye cancer. Apr 26 01:45:56 Zmatt: Disabled connman, problem still persisted. Logs suggested wpa_supplicant was trying to connect to the AP before the interface was ready. Set interface from auto to allow-hotplug. I now get wifi concurrent with C9, but only after cycling the usb dongle. Apr 26 01:47:32 ... Apr 26 01:47:34 Hey! Apr 26 01:48:03 I am using tightvnc and VNC Viewer and... Apr 26 01:48:18 How can I use the terminal in our distro? Apr 26 01:48:33 I type l and I get o. Apr 26 01:48:57 I need to use tkinter and I have no way to run my software. Apr 26 01:51:37 ... Apr 26 01:51:57 Is there a way to run a tkinter program on our BBB w/out a LCD cape or screen? Apr 26 01:54:30 set_: Will C9 not do the trick? Apr 26 01:54:37 Nope. Apr 26 01:54:53 C9 says I have no something or other. Apr 26 01:55:11 I forget what it stated. I will to see if I can figure out another way. Apr 26 01:55:18 On the bone (BBB)? Apr 26 01:55:23 Yep. Apr 26 01:55:24 BBB Apr 26 01:57:29 set_: perhaps "Language worker could not be loaded; some language features have been disabled" Apr 26 01:58:08 Oh. Apr 26 01:58:10 I will check. Apr 26 01:59:59 _tkinter.TclError: no display name and no $DISPLAY environment variable Apr 26 02:00:07 ^ This is what read back. Apr 26 02:00:28 Forget it. I have a lot of work to do on this project. Apr 26 02:00:36 I do not want to bug the room right now. Apr 26 02:01:04 set_ that be an X11 issue :) Apr 26 02:02:13 I see. **** ENDING LOGGING AT Thu Apr 26 03:00:03 2018