**** BEGIN LOGGING AT Mon Dec 12 03:00:00 2016 Dec 12 06:13:39 hi Dec 12 06:14:29 Hi I am trying to post my csv file to a url but I don't know what I am doing wrong. Here is my code: with open ('C:Users\albayakh\Documents\serial.csv', 'rb') as f: lkr = csv.reader(f) dataposter = lkr.csv.writer(u) Dec 12 06:15:51 url = 'https://www.dropbox.com/home/mvcc' #connection= webbrowser.open(url) u = urllib.request.urlopen(url) with open ('C:Users\albayakh\Documents\serial.csv', 'rb') as f: lkr = csv.reader(f) dataposter = lkr.csv.writer(u) Dec 12 06:27:11 wtf Dec 12 06:27:16 pastebin/etc Please. Dec 12 07:23:36 (also, what the hell did that have to do with beagleboards/beaglebones) Dec 12 07:24:47 also, unescaped backslashes in strings in what looks like python to me... yeah that'll work out well Dec 12 13:14:22 hi there. i got a problem with systemd. i want to activate my can0 after boot. Dec 12 13:15:08 here is my script. http://pastebin.com/dvRTC7Vb Dec 12 13:15:44 it works until line 14. when i want to ip link my can0 Dec 12 13:16:35 my virtual can cape is loaded Dec 12 13:16:49 when i enter the console and type manual the last lines everything is working Dec 12 13:17:22 maybe line 14 isnt executed with sudo rights. i thought systemd is run with root rights? Dec 12 13:45:43 is there a difference if i put my xxxxx.service in /lib/systemd/system/ or /etc/systemd/system = Dec 12 13:50:13 Hi channel! Dec 12 13:51:01 hi Dec 12 13:51:55 Though i will use classic methods as IRC. Got quite an issue with BBB (to be exact with settings ports input will pulldowns (so they all should be 0) however some of inputs are 0 some are 1. Is that a good place to search for help for dummies ?:) Dec 12 13:54:57 i am a dummie too, sometimes the pros answer your question ;) Dec 12 13:55:14 Ok i will explain in detail then :) Dec 12 13:58:33 My goal is to use header P8 as input.output bus. Left side of P9 header are to be input ports with logical 0 by default, right side are outputs with default 1. I have created my own cape based on univ-all where i set all left pins from P8 as 0x27 (input, pulldown) and right side of P8 as 0x17 (output, pullup). If i cat mux pins i see that their modes are correct (also if i cat slots file i see that my univ-all-00A2 was loaded, dmesg s Dec 12 13:59:16 Any idea why pins are floating, some of inputs are 0 some are 1, same with outputs (but here i can control value, so only inputs are playing for fool with me) Dec 12 14:02:55 the most trivial reason would be that there just is something conencted to those pins, like the hdmi output or such. Dec 12 14:50:35 Sorry guys i was disconnected. Well, the problem is that my overlay is the only one loaded (checked with cat slots), HDMI cable is not connected, system works from microSD card, wires are inserted into pins but not connected anywhere. Dec 12 14:51:27 So i would seriously expect to cat all inputs' value files and see 0 Dec 12 15:04:55 Hi I am trying to post a CSV file from my computer to a URL but my code is not working what am I doing worng? here is my code: url = 'https://www.dropbox.com/home' Dec 12 15:05:09 url = 'https://www.dropbox.com/home' Dec 12 15:05:24 kk: don't paste code here, use pastebin or such Dec 12 15:05:52 Hi Zmat Dec 12 15:05:53 ok Dec 12 15:06:00 also, if it's the same thing you pasted earlier... 1. what's this got to do with the beagleboard/beaglebone? 2. you got unescaped backslashes in your strings Dec 12 15:06:44 I pasted earler but my computer crashed so I could not see the responds Dec 12 15:08:03 Do you know where was my mistake please? which part? Dec 12 15:08:19 ensim: I have a utility 'show-pins' which can be used to verify pinmux, pull direction, and (for requested gpios) pin levels: https://github.com/mvduin/bbb-pin-utils Dec 12 15:10:03 ensim: the eMMC pins on P8 have pull-up resistors on the pcb Dec 12 15:10:37 @zmatt should I use urllip.request.urlopen or user urllib2.urlopen(url)? Dec 12 15:10:54 zmatt is there a way to disable them? Dec 12 15:12:15 kk: you're asking a question without any context, on a subject that appears unrelated to this channel, and seem to be ignoring or overlooking that I nevertheless already indicated a problem I spotted in your code Dec 12 15:12:24 ensim: soldering iron? Dec 12 15:12:34 :D Dec 12 15:12:45 zmatt: electric drill ,-) Dec 12 15:12:51 ok so it seems like i cant control all lights at home with 3.3V then :) Dec 12 15:12:51 also the eMMC probably have internal pull-ups on those pins as well Dec 12 15:13:02 ensim: why does the pull direction matter? Dec 12 15:13:17 if they're inputs you usually want pull-ups anyway Dec 12 15:13:24 (just like i said over an hour ago: "there just is something conencted to those pins") Dec 12 15:13:33 ok so how do i change state of those inputs?. should I connect them to GRD to get 0 ? Dec 12 15:13:37 yes Dec 12 15:14:33 does HDMI pins also have soldered resistors like eMMC ? Dec 12 15:14:53 ensim: hm, why not just have a long and through look at the schematic? Dec 12 15:14:59 *thorough Dec 12 15:15:25 i assume CPU schematic ? Dec 12 15:15:34 ensim: BBB schematic Dec 12 15:15:39 ensim: yes they do, and be careful to avoid externally pulling those in the opposite direction during power-on since they determine the boot configuration Dec 12 15:15:40 sorry not really electric guy :) Dec 12 15:16:27 zmatt, do you mean through capemgr ? Dec 12 15:16:40 LetoThe2nd i will look at the schema then Dec 12 15:16:41 i mean, thats the benefit of using hardware where the documentation is accessible Dec 12 15:16:41 no Dec 12 15:17:27 capemgr obviously has no influence over *external* pulls... it's not going to make a little hand appear out of your bbb wielding a soldering iron Dec 12 15:17:57 zmatt: why not? that would be super cool. Dec 12 15:17:59 zmatt, i will be extra careful then, but i think only time when it could actually happen would be when they turn off electicity and someone will try to turn light on. i will make workaround for that somehow. Dec 12 15:18:39 ensim: I'm not saying it's necessarily a problem, just something to be aware of :) Dec 12 15:19:02 also it means you can't/shouldn't use internal pulls to pull them all up Dec 12 15:19:12 since the internal pulls are too weak Dec 12 15:19:23 you'll need external pull-up resistors on those pins Dec 12 15:19:58 ensim: usually one does take into account the default electrical configuration, and the desired result, and the make sure all math up. so if the internal circuitry needs pull ups, and your circuit needs a low signal, then you have to add inverters. Dec 12 15:20:19 always speaking of the power on situation, of course. Dec 12 15:20:42 ensim: I'm guessing you want to connect switches/buttons to those inputs I guess? Dec 12 15:20:54 ok so shortly saying, capemgr wise I am all set, only difference would be that my nodeJs script must not assume all inputs are LOW (i will need to have that in configuration which pins are high and which are low by default). Where default is high (internal pullup) i will need to connect to GND to get low, and where low i will need to connect pin to 3.3V to get high ? Dec 12 15:21:03 zmatt correct Dec 12 15:21:45 use external pull-ups on all of them (except the eMMC pins since those already have pull-ups on the pcb) and connect switches between pin and ground Dec 12 15:22:07 https://postimg.org/image/761hcm3br/ Dec 12 15:22:19 that' Dec 12 15:22:26 that's what i would like to have Dec 12 15:22:45 so when i get interrupt on left (INPUT) i change state of OUTPUT Dec 12 15:22:58 wait I just said you can't pull them up externally, sorry Dec 12 15:22:59 eh Dec 12 15:23:11 is there a reason to use that pin layout specifically? Dec 12 15:23:18 it would be better to use the lcd pins as outputs Dec 12 15:23:24 that avoids a lot of trouble Dec 12 15:23:33 there's no reason - except cosmetic one Dec 12 15:23:55 that's a poor reason to get into headaches :) Dec 12 15:24:02 :D Dec 12 15:24:41 to summarize i need 30 ports that would be input and 30 output. didnt say about P9 but there are GPIO ports i would like to use too Dec 12 15:25:03 on the P8 tab of my spreadsheet ( https://goo.gl/Jkcg0w ) the boot config pins and eMMC pins are clearly marked in eye-stabbing colors Dec 12 15:25:50 using the lcd pins as outputs does not conflict with their function as boot config pins, using them as inputs however is risky Dec 12 15:26:21 if you need so many outputs, better use a bunch of shift registers or i2c port multiplexers. that couple of cents spent on semiconductors saves you a lot of headaches. Dec 12 15:26:31 s/outputs/inputs and outputs/ Dec 12 15:26:55 depends on the requirements regarding the GPIOs Dec 12 15:27:12 io expanders tend to be a lot more robust anyway Dec 12 15:27:38 zmatt: not a problem for me to re-wire it a bit and have HDMI pins as output. On that spreadsheet is it only pink that can cause issues or yellow too ? Dec 12 15:27:39 thinkfat: in that context we are very likely talking about random bitbanged HMI things anyways. Dec 12 15:28:09 ensim: specifically the yellow ones Dec 12 15:28:22 ensim: the pink ones are the eMMC pins, as indicated by the labels Dec 12 15:28:40 can those eMMC pins be used as inputs? Dec 12 15:28:58 no problem Dec 12 15:29:29 they're the ones with pull-up resistors on pcb, so that avoids the need for external pull-ups Dec 12 15:29:44 I recommend not relying on the internal pull-ups of the processor since they are very very weak Dec 12 15:29:58 it would make the inputs very sensitive to noise Dec 12 15:31:14 so what, 1kOhm resistor needs to go to wall switches for eMMC inputs ? Dec 12 15:31:26 uh what? Dec 12 15:31:45 you said there needs to be external pull up right ? Dec 12 15:31:53 sorry, as said not electrician guy :) Dec 12 15:32:09 I just said the eMMC pins already *have* pull-ups Dec 12 15:32:23 but they are very very weak ? Dec 12 15:32:54 they're 10Kohm according to the schematic Dec 12 15:32:55 ah the processor pullup Dec 12 15:33:27 so the processor pull up's are weak, but the ones soldered on eMMC ports are ok ? Dec 12 15:34:11 not super strong but they're fine probably, depends on the use case / situation obviously Dec 12 15:36:02 so setting eMMC pins to 2F will turn off internal processor pull up, and then i will only rely on pin pullup ? Dec 12 15:36:43 if i want to start a xxxxxx.service which is using the MacAddress of my device. Which service do i have to wait for? I have the following error: couldnt read /sys/class/net/wlan0/address Dec 12 15:36:44 you can leave the internal pull-up enabled or disable it, doesn't hugely matter. just don't configure them to internal pull-down Dec 12 15:37:21 BBGw_Rookie: hmm, that depends a little on the network manager being used Dec 12 15:37:46 BBGw_Rookie: wait, there's a page about that topic specifically somewhere.. Dec 12 15:37:54 my network manager is connman Dec 12 15:37:57 ok that's clear then. So connecting it to GND will make it 0?. So it seems that for some pins i will need to use GND and for others i will need to put 3.3v Dec 12 15:38:07 BBGw_Rookie: https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ Dec 12 15:39:11 ensim: I'd suggest treating all inputs the same: use pull-up, and connect switch/button between pin and ground Dec 12 15:40:11 thx zmatt, i will test it Dec 12 15:40:57 BBGw_Rookie: it doesn't include specific advice for connman, but hopefully it's helpful anyway Dec 12 15:41:03 I don't know anything about connman myself Dec 12 15:41:41 ok. my service doesnt need that i am online ... i only need the macaddress of my device Dec 12 15:41:49 zmatt, so you said on eMMC inputs i can use pins pullups (with ot without internal pullups), but there are pins that doesnt have pullups? Dec 12 15:42:01 I used: Requires=network.target Dec 12 15:42:06 but that doesnt work Dec 12 15:42:15 BBGw_Rookie: that's explained on the page I just linked Dec 12 15:42:55 it mostly helps to ensure your service is stopped before the network is taken down during shutdown Dec 12 15:45:33 ensim: sorry, I've already explained things pretty well I think, more than once. I have other stuff to do than teaching you electronics basics Dec 12 15:46:08 also, I'm having a bit of a deja-vu feeling here... were you here a while ago with exactly the same question, or was that someone else? Dec 12 15:46:31 could be someone else (really!) Dec 12 15:46:52 anyway thanks for your help, i will read it again and do step-by-step tryout Dec 12 15:49:52 zmatt: maybe another student in the same course with the same assignment :-) Dec 12 15:50:24 hehe Dec 12 16:04:23 Well, not student at all. just in the process of building house with my own hands and rather spending a lot of many on sterbox (intelligent house) Dec 12 16:04:48 i thought i will use raspberry or beaglebone to do the same. raspberry seemed easier, but didnt have enough ports Dec 12 16:05:06 and i am struggling another day/night to do anything with BBB, hence asked for help. Dec 12 16:05:10 :) Dec 12 16:24:59 ensim: been there, went the KNX route ;) Dec 12 16:30:08 In Poland (where i come from, only available in stock options are sterbox (www.sterbox.eu) and some Chineese controler based on PIC, both around 4-5 times more expensive than BBB and relay board :) Dec 12 16:30:25 thinkfat: ^^ Dec 12 17:16:01 hey. has anyone ever connected a mic module to the BBB? Dec 12 17:17:45 I got just got this sensor http://www.datasheetcafe.com/ky-038-pdf-arduino/ and i'm trying to connect it with some issues Dec 12 17:19:33 not even sure if it's possible to work with one of those. but performing an analog read presumably gives the voltage, which i'm assuming is between 0 and 1.8v Dec 12 17:19:45 how do i even get db data from that? Dec 13 01:56:54 Anyone have a link to a guide to driving a 12V DC motor using beaglebone/Python? **** ENDING LOGGING AT Tue Dec 13 03:00:00 2016