**** BEGIN LOGGING AT Fri Mar 06 02:59:58 2015 Mar 06 03:00:07 it looks like it opens the file, reads it, and closes it again Mar 06 03:00:12 via sysfs Mar 06 03:00:25 (i.e. the slowest possible way on earth to read the ADCs) Mar 06 03:00:48 why'd they bothered doing this in C rather than in python... Mar 06 03:00:52 https://github.com/adafruit/adafruit-beaglebone-io-python/blob/master/source/c_adc.c Mar 06 03:01:25 that adafruit wrapper is woeful from the bit i saw Mar 06 03:01:44 so...when it throws that error, it's cuz that file is already in use by something else? Mar 06 03:01:47 the i2c one was a shit layer over smb that just swallowd erors Mar 06 03:02:01 anyone know what file would be? Mar 06 03:02:04 Evan__: I have no idea why you're getting that error, it doesn't make much sense Mar 06 03:02:51 it's also possible an incompetent driver author used EAGAIN appropriately Mar 06 03:02:59 *inappropriately Mar 06 03:03:39 anyone know of a way to read the scripts that are executed during boot? Mar 06 03:03:57 which scripts are you referring to? Mar 06 03:04:42 i guess i'm not entirely sure...whatever script is responsible for setting up either that BBIO ADC library or the analog inputs for the board. Mar 06 03:04:45 syslog or dmesg should capture most of the output Mar 06 03:05:24 Evan__ I don't believe there are Any 'setup' scripts (which would normally reside in /etc/init.d) for the ADC or GPIOs Mar 06 03:05:26 Evan__: the ADC library doesn't require any setup, it literally just opens the relevant readout file in sysfs, reads it, and closes it again... you could just as easily do it from python Mar 06 03:05:43 zmatt +1 Mar 06 03:06:30 it does seem to try to load a cape for it, but I don't think that's needed (at least iirc the ADC entries were there without doing so) Mar 06 03:06:55 do you know where that readout file would be located? Mar 06 03:07:05 grr, can't reach the bbb at the office to check (it still has a reasonably normal install) Mar 06 03:07:42 hold on, I'll boot the one here Mar 06 03:07:51 Thanks! Mar 06 03:08:18 but I'm using a very recent debian so I'm not sure if things are the same on a typical BBB Mar 06 03:08:47 would it make a difference between versions? B/C Mar 06 03:09:00 no Mar 06 03:09:05 I'm using debian as well, set it up a couple months ago... Mar 06 03:09:53 ah, crap it's not in this mainline dts (and no overlays yet in this 3.19.0-bone3 kernel) Mar 06 03:10:16 can anyone else hunt for it? saves me from having to switch to a 3.8 kernel :P Mar 06 03:10:22 I see your point curiosity made me cry err look at the library ... if you can call it that. would the default boot for the B work? I have 3 sitting next too me :D Mar 06 03:10:25 I think /sys/bus/iio/devices/* Mar 06 03:10:50 let me look... Mar 06 03:10:58 or maybe class instead of bus Mar 06 03:11:03 would cat /sys/bus/iio/devices/AIN0 etc work? Mar 06 03:11:17 no I don't think the files are called that Mar 06 03:11:29 just look around in sysfs :P Mar 06 03:11:49 once you found the adc, the right files to open are iirc fairly obvious Mar 06 03:12:21 in /sys/bus/iio/devices/* i have a bunch of files called "in_voltageX_raw" where x is from 0 to 7. Looks like that might be it Mar 06 03:13:19 yup, you can also resolve the symlink and look around in the neighbourhood (e.g. the parent) to see if there's anything interesting there Mar 06 03:13:36 depending on the driver version there may be config stuff Mar 06 03:13:49 but iirc you could simply cat the voltage from the file Mar 06 03:14:18 and normally with sysfs entries you can get a fresh reading by seeking to offset 0 (rather than having to close and reopen) Mar 06 03:14:40 note btw that still, sysfs is slow as fuck, it's meant for configuration -- not any significant amount of data transfer Mar 06 03:15:24 Yeah, i'm only reading the value from voltage divider to adjust the position of a servo so speed isn't a huge concern Mar 06 03:15:40 though with this ADC driver it doesn't matter much probably, I read somewhere it has an abysmal max sample rate Mar 06 03:16:13 Hmmm I guess you could use it for measuring thermistors and humidity sensors that are filtered heavily. Mar 06 03:17:42 there's also http://processors.wiki.ti.com/index.php/AM335x_ADC_Driver%27s_Guide but iirc many of the stuff they describe there wasn't present on the BBB I inspected, it's possible only parts of it are mainlined Mar 06 03:18:22 wtf, I hope those limitations aren't still true, because they're really sad Mar 06 03:18:46 just get an arduino to do the ADC and i2c the data across ;) Mar 06 03:18:48 max 8 Ksps, no simultaneous capture on multiple channels, wtf Mar 06 03:18:57 the hardware can do up to 1.6 Msps Mar 06 03:19:11 zmatt .. the drivers are abysmal Mar 06 03:19:15 no shit Mar 06 03:19:19 TI need a nuke. Mar 06 03:19:44 time to mmap() /dev/mem again I guess :P Mar 06 03:19:48 path of least resistance. I didn't use TI supplied 'grace' poo for msp430 for that very reason. Mar 06 03:20:57 Evan__ .. don't let us put you off though, if it works for your application adequately ..... ;) Mar 06 03:20:57 yeah I've seen some TI driver code... like whoever wrote the Starterware UART driver and example should consider a different profession than embedded programming, gardening maybe Mar 06 03:21:13 zmatt ... skydiving without a parachute?! rofl .. Mar 06 03:21:52 so...i think i'm still a little confused about how to read the voltge values from the files in /sys/bus/iio/devices/*. Are the in_voltage0_raw files just text files? Mar 06 03:21:59 yup Mar 06 03:22:13 seriously .. the Bad embedded programmers can all go live on that planet with lawyers and the other lot (hhgttg ref) Mar 06 03:22:14 and you read those by... Mar 06 03:22:17 almost everything in sysfs is plaintext Mar 06 03:22:33 you read them like any other text file Mar 06 03:22:39 in the shell just cat 'em Mar 06 03:23:04 in any programming language, treat them as regular text files Mar 06 03:23:07 crap can't find my tty to serial cable ... Mar 06 03:23:45 GenTooMan .. bought a new one this week after exactly that problem Mar 06 03:24:00 often worth keeping 2/3 :) Mar 06 03:24:25 when i do cat /sys/bus/iio/devices/iio:device0/in_voltage0_raw, i get another error "resource temporarily unavailable" Mar 06 03:24:48 what distro and kernel version? Mar 06 03:25:08 and at the very least that means the driver was incompetently written Mar 06 03:25:15 but we knew that already :P Mar 06 03:25:40 in python: fp = open(blah,'r'); value = float(fp.read()) Mar 06 03:25:53 what else is in /sys/bus/iio/devices/iio:device0 ? there may be something you need to configure or enable for things to work around Mar 06 03:26:00 or Mar 06 03:26:06 linux version 3.8.13-bone50 Mar 06 03:26:18 debian 4.6.3-14 Mar 06 03:26:29 given that apparently the driver doesn't support multiple readers, maybe some program is already reading the ADCs and thereby keeping them busy? Mar 06 03:28:21 Mar 06 03:28:30 debian 4?? Mar 06 03:28:44 thought we were on 7.8 ? Mar 06 03:29:05 that directory also has "dev" "name" "power" "subsystem" and "uevent" Mar 06 03:29:11 or perhaps that the image name :) Mar 06 03:29:27 Evan__: ok, no config Mar 06 03:29:32 that's what I remembered Mar 06 03:30:00 how can we tell if something else is already reading the ADCs? Mar 06 03:30:44 I've got blink lights (sigh) sorry I have 2 units from work blinking at me along with a BBB and well lets just say it looks like christmas tree lights suddenly here Mar 06 03:31:23 bone50 .. that's also pretty old Mar 06 03:31:42 the beagleboard/linux github has no tag older than -bone62 :/ Mar 06 03:32:31 bummer...i didn't think the installation was that old...would updating help? Mar 06 03:32:36 zmatt .. I was just gonna say that Mar 06 03:32:39 just checkin the github Mar 06 03:34:53 https://github.com/RobertCNelson/bb-kernel/tree/3.8.13-bone50 Mar 06 03:35:08 ok let's see what the adc driver in there looks like... Mar 06 03:35:49 AFU Mar 06 03:36:05 I have a debian image on my sd and my bbb is running nicely, any suggestions for which toolchain I should install for qt creator? Mar 06 03:36:40 the stock ADC driver can only be described as AFU Mar 06 03:37:06 ds2: alternatives? :) Mar 06 03:37:17 AFU? Mar 06 03:37:25 Almost Freaking Useless? Mar 06 03:37:39 all forked up Mar 06 03:37:46 GenTooMan . no, thats the musb ;P lol Mar 06 03:38:02 all fucked up? got it :) Mar 06 03:38:18 should be CFU .. completely *** Mar 06 03:38:19 Well it was thrown together looks like Mar 06 03:38:24 veremit: write your own or fix it... it is on the GSoC project list Mar 06 03:38:37 not CFU... parts of the code can be salvaged Mar 06 03:38:39 ds2: good candidate for GSoc Mar 06 03:39:00 to be honest, I don't see why you'd do this in kernelspace at all Mar 06 03:39:12 zmatt .. simplicity?! lol Mar 06 03:39:12 I don't see any reason to NOT do it in kernel space Mar 06 03:39:45 I downloaded the gcc-linaro toolchain, do I just unpack it and point qt at the folder? it's huge Mar 06 03:39:53 you could hack up the driver to get it to give you data Mar 06 03:39:55 TI has a wireless stack called simpliciTI ... don't mention that in polite conversation though Mar 06 03:39:56 unfortunately i don't have the time (or know-how) to rewrite it? is teh same ADC driver used in later images? Mar 06 03:39:57 twoten .. yes it will be huge :p Mar 06 03:40:03 I did it for my needs Mar 06 03:40:05 ds2: kernel programming has a high entry-barrier Mar 06 03:40:19 zmatt .. I don't think linux was really written with real-time IO in mind ... Mar 06 03:40:22 zmatt: kernel programming has one of the lowest entry barrier of all the things I have tried Mar 06 03:40:38 ds2: I would politely disagree :) Mar 06 03:40:40 maybe I can toss out the mips and Z80 stuff, 6502 ... Mar 06 03:40:46 but its reasonably well documented :D Mar 06 03:40:51 most of the app crap has much much much higher barriers of entry Mar 06 03:40:59 ds2: o.O Mar 06 03:41:07 that includes, Android, X, QT, etc.... Mar 06 03:41:17 kernel is nothing but straight forward Mar 06 03:41:17 * veremit continues to disagree lol Mar 06 03:41:27 but i guess its what you're used to :p Mar 06 03:41:35 write C and it works. non paradym dejour to fight with Mar 06 03:41:59 ds2: its a pity more people don't write C .. Mar 06 03:42:09 its a bit "old-fashioned" these days Mar 06 03:42:32 mostly C++ here (though most C++ programmers would have trouble recognizing it as such ;) Mar 06 03:42:48 I like c, but first I'll have to malloc some memory Mar 06 03:43:08 (given that my code generally has zero dependency on libstdc++) Mar 06 03:43:14 twoten .. dont' forget to Free afterwards ;) Mar 06 03:43:17 what if there was a way to kill any process using the ADC resources so my python program could use them instead? Mar 06 03:43:45 Evan__: maybe lsof? Mar 06 03:44:06 oi zmatt forgot about that! great tool that. Mar 06 03:44:27 is that a command? Mar 06 03:44:44 I can't imagine there are any 'processes' besides your app using the ADC .. except for the core processor functions which you cannot access Mar 06 03:45:01 * zmatt will probably look into directly fiddling with the ADC from userspace in very nearby future since cow-orker was complaining about the low sample rate Mar 06 03:45:22 but even then .. most micro's have a registered buffer so it can write whilst you're reading for exactly this reason Mar 06 03:45:46 how fast a sample rate does the coworker need? Is he doing something like SDR with the converter output? :D Mar 06 03:45:46 even if i kill my python program and restart it, i get the same "resource temporarily unavailable" message. Only restarting the board fixes it. Mar 06 03:45:49 something fishy is going on .. and the driver is probably the problem Mar 06 03:46:08 I suspect its hanging accessing something and doesn't "let go" Mar 06 03:46:23 hence a hard reset is required Mar 06 03:47:16 what toolchain should I use? (bbb newbie) Mar 06 03:47:27 or the python program is just leaving a child process :P Mar 06 03:47:31 or something Mar 06 03:48:03 twoten .. you can build your own ;P or use linaro Mar 06 03:48:35 I'm looking at the driver though ... the only EAGAIN I see is on timeout waiting for the adc to sample Mar 06 03:48:46 which is already a very wrong use of the error code Mar 06 03:49:10 :( i really just need a quick and dirty fix for this... Mar 06 03:49:15 I have linaro unpacked already on rootfs, what do I do next? Mar 06 03:49:31 Evan__: are you sure you're not just leaving behind some process? Mar 06 03:49:43 still running and polling the adc Mar 06 03:49:43 how can i check that? Mar 06 03:49:55 euh, ps f -fe usually gives a nice view Mar 06 03:51:12 is there anything that would indicate its using the ADC driver? what should i be looking for? Mar 06 03:51:35 "man lsof" Mar 06 03:51:37 sorry I cannot help you and I'm have concious too :D Mar 06 03:51:42 veremit: you're cruel Mar 06 03:51:52 me? no... lol Mar 06 03:52:01 that's like saying "man screen" or such Mar 06 03:52:27 (ok, lsof is still quite a bit shorter, but still) Mar 06 03:52:30 fuser is the other 'process' test tool Mar 06 03:52:46 ?anyone help twoten? Mar 06 03:53:11 twoten .. are you cross-compiling or on host ? Mar 06 03:53:14 not seeing anything immediately obvious from ps f -fe Mar 06 03:54:08 holy crap .. man lsof is a frickin book .. *facepalm* ok scratch that Mar 06 03:54:08 ok, I'm not getting anywhere staring at this driver... I don't know the kernel well enough, I don't know the iio framework at all, and I don't really know that much about the ADC yet either :P Mar 06 03:54:17 veremit: hehehehehe Mar 06 03:54:32 now you understand my comment :) Mar 06 03:54:40 zmatt : point noted :p Mar 06 03:55:49 zmatt , Evan__ .. maybe http://www.thegeekstuff.com/2012/08/lsof-command-examples/ is more appropriate .. :p Mar 06 03:56:18 I have a wheezy laptop with emdebian installed, and qt runs fast enough on the bbb that I thought to make it a standalone dev system too Mar 06 03:56:38 maybe I'm delirious Mar 06 03:57:02 twoten .. I would suggest that building/compiling apps is quicker on a meatier system :) but it is doable .. you'lljust be waiting longer :) Mar 06 03:57:52 and if I start dropping big qt components in there it will slow down fast Mar 06 03:58:00 I don't have lsof installed and can't currently connect the bone to the interwebs...sorry Mar 06 03:58:05 twoten .. can you not run qt creator direct on the beagle .. how does that work? Mar 06 03:58:12 Evan__ .. bugger. Mar 06 03:58:26 twoten .. if you have gcc and qmake installed .. should work? Mar 06 03:58:28 C++ is a major can of worms Mar 06 03:58:30 ive used an odroid as a dev system, not sure id have the patience for doing so on the beagle.. its cruelty to small animals Mar 06 03:58:43 bwarff: :) Mar 06 03:58:49 yes, qt on the bbb needs a tool chain, qt on the wheezy laptop has one already Mar 06 03:59:01 twoten .. apt-get install build-essential ? Mar 06 03:59:07 <--gets stuck debugging other people's mystery crash from using C+ Mar 06 03:59:17 ds2: gdb ftw :P Mar 06 03:59:26 did that, up to date qt says no compiler that I can see Mar 06 03:59:45 gdb is a PITA on Android Mar 06 03:59:51 yes, native C++ Mar 06 04:00:25 twoten .. did you read this (take with pinch of salt .. may be outta date..) .. http://derekmolloy.ie/beaglebone/qt-with-embedded-linux-on-the-beaglebone/ ? Mar 06 04:01:13 I'm half way through, he strays a lot off topic Mar 06 04:01:19 *nods* ok Mar 06 04:01:36 ds2: C++ is vile and evil, but I'm addicted to the syntax sugar it brings :$ Mar 06 04:01:50 I'll plug away, I'm making great gains Mar 06 04:01:57 plus, some sad excuse of a bit of type inference in later versions Mar 06 04:02:01 i used to hate c++ but if you avoid the smelly bits it can just be a cleaner c Mar 06 04:02:13 Alright, i'm gonna have to give up for the night. thanks for the help folks! Mar 06 04:02:30 zmatt: memory corruptions in C++ is downright nasty Mar 06 04:02:34 same here Mar 06 04:02:43 things happen without things being written to happen Mar 06 04:02:48 well most of my C++ is baremetal code where I never bothered to assign a memory region as heap, hence no malloc() or new Mar 06 04:02:56 somehow that makes memory corruption less common Mar 06 04:02:57 ;) Mar 06 04:03:24 but Mar 06 04:03:44 tracking memory corruption is exactly something watchpoints are very useful for Mar 06 04:04:02 there are so many implicit ways memory allocation can happen Mar 06 04:04:06 twoten .. google is letting me down .. seems the preferred way is to cross-compile .. Mar 06 04:04:13 inhereited classes can be doing crap Mar 06 04:04:33 ds2: well, I know that's not happening in my code since I'd get a linker error :P Mar 06 04:04:42 watchpoints works if you can get the problem to happen with a debugger attached Mar 06 04:05:01 you can use watchpoints even without jtag Mar 06 04:05:08 zmatt: you also don't have a team of folks insisting on using the nastier features Mar 06 04:05:23 twoten .. I can see a couple of options with angstrom/yocto .. but you'd have to translate the package names and tools :/ Mar 06 04:05:30 as long as dbgen is asserted, linux has armv7 watchpoint support apparently Mar 06 04:05:31 zmatt: have you tried attaching debuggers to native code on Android? Mar 06 04:05:52 twoten .. if it were me .. I think I'd just grab the 'cross-compile' route .. seems fairly well-trodden now :) Mar 06 04:06:09 ds2: sounds ... like hell .. lol Mar 06 04:06:20 ds2: http://www.spinics.net/lists/linux-omap/msg116038.html Mar 06 04:06:50 "it SHOULD work .. " ahahaha :\ Mar 06 04:06:51 ds2: I actually managed to get DBGEN asserted on am335x by self-jtagging via the control module, and someone else got it to work also on omap3 (openpandora) Mar 06 04:07:15 ds2: (he wanted watchpoints, that's how this thread got started) Mar 06 04:09:10 I'm really proud of the technique I discovered, it's so gross :D Mar 06 04:15:05 veremit: I'll compile on the laptop then shoot the code over, I got webmin working on the bbb, very nice Mar 06 04:15:27 twoten : good good :) Mar 06 04:25:21 a simple solution for the ADC would really be to hook it up to DMA to cyclically overwrite some fixed buffer in memory, and allow it to be mmap()ed for readout Mar 06 04:25:57 gets you the freshest ADC values at any time just by reading memory, and no irqs that need to be serviced at all Mar 06 04:34:28 zmatt : sounds sensible enough Mar 06 04:34:40 double-buffer just in case Mar 06 04:35:10 double-buffer is useless unless you intend to synchronize to the adc sampling Mar 06 04:35:15 which opens up a whole can of worms Mar 06 04:38:00 well you don't want to get blocking issues, is what I'm thinking ... Mar 06 04:38:17 but perhaps dma will get round that anyway .. never used it myself Mar 06 04:38:32 who blocking on what? Mar 06 04:38:39 i have pcm1680 (converts I2S to parallel data ), can i use it directly on the BeagleBone I2S pins to get the audio output, by default ? without any EEPROM ? Mar 06 04:38:45 dma just copies data from adc to buffer (on adc's signal) Mar 06 04:39:04 you just read the buffer whenever you like Mar 06 04:39:23 new samples overwrite the previous ones (for the same channel) Mar 06 04:42:22 any idea with tha ? Mar 06 04:43:09 *that ? Mar 06 04:43:54 ZeekHuge .. for input/output .. you've confused me .. Mar 06 04:44:05 zmatt .. ok my bad somewhere :p Mar 06 04:48:14 ZeekHuge .. my understanding is the I2S bus contains the audio data .. although, perusing the datasheet (particularly p29) .. seems to suggest there is an option for a codec maybe? Mar 06 04:51:14 ZeekHuge .. looking myself also at http://www.edn.com/design/consumer/4390981/Common-inter-IC-digital-interfaces-for-audio-data-transfer- Mar 06 04:51:34 I should think that would Just Work(tm) Mar 06 04:57:00 ZeekHuge .. oh my bad. . that chip has multiple i2s channels on it . . ok. Mar 06 05:01:15 ZeekHuge .. and my final contributin for tonight .. http://processors.wiki.ti.com/index.php/Sitara_Linux_SDK_Audio_DAC_Example .. good luck! :) Mar 06 05:02:00 since it's all tI stuff .. should be pretty noddy Mar 06 05:03:46 nite all I-) Mar 06 05:37:28 HI Mar 06 05:37:54 hi friends, Mar 06 05:53:36 hmmm? use the FIFO Mar 06 06:25:27 hi , i need to connect my waveform generator to my beaglebone and display the voltage values Mar 06 06:25:46 can it be done via connecting it to ADC pins of BBB Mar 06 06:25:48 ? Mar 06 06:50:18 hi Mar 06 06:50:29 I'm wanting to get started in beagle development Mar 06 06:50:43 I'm mainly interested in contributing to Minix3 on the beagle products Mar 06 06:50:58 and potentially OpenBSD, or FreeBSD/NetBSD Mar 06 06:51:32 I'm wondering which beagle board guide books I should read, and what version of which beagle board / bone I may want to check out? Mar 06 06:51:59 let me read the /topic too Mar 06 06:52:35 most likely you will want to get a BBB Mar 06 06:53:03 oh cool Mar 06 06:53:10 is revision C a good version? Mar 06 06:53:32 it's the only revision you can get Mar 06 06:53:51 ah ok Mar 06 06:54:09 hum.. so I wonder which kit I should get for it Mar 06 06:54:34 I'm mainly concerned with: installing an OS on it. networking. and possibly a wifi device. Mar 06 06:54:49 kernel work? Mar 06 06:54:55 should I get one of the starter kits for it? Mar 06 06:54:57 indeed kernel work Mar 06 06:55:01 and tinkering Mar 06 06:55:16 do you own a 3.3V reference level UART cable? Mar 06 06:55:19 also, I may get two BBB's one for a personal irssi + ssh server and one for tinkering with Mar 06 06:55:25 hum.. let me check I may Mar 06 06:55:31 I got some ardunio stuff recently Mar 06 06:55:40 commonly referred to as "FTDI cables" Mar 06 06:56:01 note that arduino uses 5V reference, but some cables either have a jumper or a switch Mar 06 06:56:52 hum.. I guess I actually don't have any of those cables Mar 06 06:57:09 so I"m here http://www.element14.com/community/community/designcenter/single-board-computers/next-gen_beaglebone?CMP=TI-HomePage-BBB Mar 06 06:57:20 I wonder which kit I should consider getting Mar 06 06:58:11 or maybe even one of the kits on amazon Mar 06 06:58:35 I was looking at this one http://www.amazon.com/Ultimate-BeagleBone-Black-Development-Kit/dp/B00O27WCDU/ref=sr_1_6?ie=UTF8&qid=1425625100&sr=8-6&keywords=beagle+bone+black Mar 06 07:05:54 if you go for convenience, sure Mar 06 07:06:18 ok Mar 06 07:06:36 so what are the minimum pieces I need to just install a server of beagle bone black? Mar 06 07:06:53 I know I want a case, and the motherboard of course, + power supply, and USB cabe. Mar 06 07:06:58 what are the other essentials Mar 06 07:07:03 I will be using ether net for my server Mar 06 07:07:54 for the server that's all you need Mar 06 07:08:11 for kernel work you will need a "FTDI usb thing" Mar 06 07:09:41 would the amazon link I just posted provide that? Mar 06 07:09:59 is that the cable, or the extension chip device, you are referring to? Mar 06 07:10:16 usb to 3.3V serial, for the console Mar 06 07:10:59 (it still pisses me off they didn't connect the hw cts/rts... they're not even in use for a different purpose, but left not-connected on both serial header and processor) Mar 06 07:11:44 zmatt: yeah, but just the cable? or do I need a BBB extension device? http://www.amazon.com/3-3V-Debug-Cable-BeagleBone-Black/dp/B00FA7LD0Y/ref=sr_1_1?ie=UTF8&qid=1425625876&sr=8-1&keywords=beagle+bone+black+ftdi <- is this fine? Mar 06 07:11:51 eek, I'll use tinyurl next time Mar 06 07:12:00 I forgot amazon links are ultra long Mar 06 07:13:29 you may want to read the comments Mar 06 07:13:59 ah Mar 06 07:14:02 yeah, it sucks Mar 06 07:14:43 it looks like this is a clone of the FTDI cable... not sure how you could botch that considering how few components it has, yet... Mar 06 07:15:51 even worse, might be using fake ftdi chip Mar 06 07:15:58 any USB-serial cable with 3.3V should work Mar 06 07:16:03 even with a fake FTDI ;) Mar 06 07:16:24 unless you are using those ftdi drivers which set usb vid/pid to zero Mar 06 07:16:46 someone ported that to linux, it was hi-larious Mar 06 07:16:52 lol Mar 06 07:16:54 haha Mar 06 07:16:56 I don't know a good vendor site from where I can purchase a good cable Mar 06 07:17:01 I'm searching Mar 06 07:17:22 of course, there's a linux program to reset pid/vid on those fake chips, but still Mar 06 07:18:26 tbr: someone did submit a patch to recognize bricked devices -> https://www.mail-archive.com/linux-usb@vger.kernel.org/msg50762.html Mar 06 07:18:49 oh I searched the products on the beagleboard.org Mar 06 07:19:59 TL-232R-3V3-WE Mar 06 07:20:03 ^ would this model work? Mar 06 07:20:35 or perhaps TTL-232R-3V3 Mar 06 07:20:54 the first one has individual wires. the second one has an adapter it looks like Mar 06 07:20:58 -WE is wire-end.... if you lke soldering :P Mar 06 07:21:18 http://elinux.org/Beagleboard:BeagleBone_Black_Serial Mar 06 07:21:25 you can find links to the right cable there Mar 06 07:21:27 oh I would prefer to not solder Mar 06 07:21:32 ah let me check it out Mar 06 07:22:18 ah cool thanks Mar 06 07:22:21 so I'm looking at http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm Mar 06 07:22:43 adj: https://plus.google.com/111049168280159033135/posts/BMr8stMQ9FJ Mar 06 07:22:47 there's also the link at the bottom on the page if you want something that sticks out less Mar 06 07:22:51 https://www.tindie.com/products/spirilis/beaglebone-black-ftdi-friction-fit/ Mar 06 07:23:44 (normal ftdi cable pretty much excludes the possibility of plugging in any cape) Mar 06 07:24:22 ah ok Mar 06 07:24:52 no experience with it though, it looks... finnicky Mar 06 07:25:44 hum.. Mar 06 07:26:09 http://www.ftdichip.com/Support/Documents/DataSheets/Cables/DS_TTL-232R_CABLES.pdf Mar 06 07:26:13 how does this one look? Mar 06 07:26:50 TTL-232R-3V3 you mentioned is the correct one Mar 06 07:27:44 (without any suffix) Mar 06 07:30:04 http://tinyurl.com/o2n9ns9 Mar 06 07:30:10 zmatt: ^ how does this look? Mar 06 07:35:26 everytime i try to connect my analog input to PIN40 and run the program , it says , "invalid or locked AIN file" Mar 06 07:36:24 help anyone Mar 06 07:41:22 hi Mar 06 07:41:43 i get "space on sd card" error Mar 06 07:41:45 tars01: "the program"? Mar 06 07:41:53 when trying to install ftp server Mar 06 07:41:59 how can this be fixed? Mar 06 07:42:10 ErikO: which distro are you running on the board? Mar 06 07:42:24 1.7 gid debian Mar 06 07:42:31 from 2014 Mar 06 07:42:35 got it from the site Mar 06 07:42:44 i am running a sample program tbr Mar 06 07:42:49 and you're running from SD or microSD? Mar 06 07:42:57 micro Mar 06 07:43:12 tars01: well, we know nothing about your sample program, how about reading the ADC value directly from sysfs? Mar 06 07:43:13 it 8 gig card Mar 06 07:43:34 ErikO: ok, then you probably just need to resize the filesystem/partition Mar 06 07:43:46 how? Mar 06 07:43:48 there is probably even a ready to use script on the card Mar 06 07:44:04 why is not done so from the start? Mar 06 07:44:12 where is the scirpt? name? Mar 06 07:44:36 ErikO: here, I googled this for you: http://elinux.org/Beagleboard:Expanding_File_System_Partition_On_A_microSD Mar 06 07:44:44 i did that Mar 06 07:44:49 that fails Mar 06 07:45:18 can you be more verbose? Mar 06 07:45:27 keep in mind that we don't see your screen Mar 06 07:46:12 is ftp server installed by default? Mar 06 07:46:28 and vsftpd ? will it work on beaglebone... original Mar 06 07:46:29 ? Mar 06 07:47:55 hardware runs software, yes Mar 06 08:38:25 oh wow, the adc actually has a separate data port for DMA transfers... why the fuck doesn't the kernel driver use DMA Mar 06 08:43:57 I think the adc can genuinely sustain 1.6 Msps, yet people are having trouble getting above 1 ksps Mar 06 08:45:50 zmatt: oh, interesting :) Mar 06 08:46:13 I guess someone within TI wrote the current driver and nobody bothered to look at it Mar 06 08:47:33 or they looked at it and thought AAAAAGH MY EYES Mar 06 08:49:45 yes, vendor kernel code, keeping the suppliers of mindbleach™ in business, ever since linux 1.x Mar 06 08:49:59 hehehehe Mar 06 09:32:16 What is the maximum datatransfer rate of USB in BeagleBone Black Mar 06 09:33:19 when i connect my webcam with BBB and trying a program it says "select timeout" Mar 06 09:33:28 and no image is captured Mar 06 09:33:32 probably a power issue Mar 06 09:33:58 BBB can't supply as much as some devices want Mar 06 09:34:04 use a powered hub Mar 06 09:35:25 i tried but the camera is on and the output in terminal is "select timeout" with VIDIOC_QUERYMENU: Invalid argument Mar 06 09:36:28 for every frame "select timeout" appears Mar 06 09:36:50 jim__: does the cam work in your linux pc? Mar 06 09:37:25 yes I am having fedora 20 in PC. it works well in that Mar 06 09:37:37 i used cheese in PC Mar 06 09:38:23 i am working with OpenCV in BBB Mar 06 09:38:44 what resolution are you trying and what kernel are you running? Mar 06 09:39:47 i have a doubt about the "exclusive-use" syntax in the dts files. after the pin list declaration, which is pretty clear, i find another list, often commented as "/* the hardware IP uses */" which is not fully clear to me. in details, what are the correct values to choose from, that should be put there? and what does "IP" stands for in the comment? Mar 06 09:40:12 Hi, do you know how to make a fedora image boot with an uenv.txt? fedora21 doesn't come with a uEnv.txt and requires the user to push the boot button Mar 06 09:42:30 I am using the same Debian OS which comes with BBB. I just tried the videocapture OpenCV code. I didn't specify any resolution. I am using logitech c270 webcam Mar 06 09:42:51 jim__: uname -a? Mar 06 09:44:20 you want me to type that and tell the details? Mar 06 09:44:33 yes Mar 06 09:45:43 ok pls wait im connecting my board Mar 06 09:47:01 Linux beaglebone 3.8.13-bone47 #1 SMP Fri Apr 11 01:36:09 UTC 2014 armv7l GNU/Linux Mar 06 09:47:20 i got that line Mar 06 09:48:42 jim__: ok personally I'ld try to a new kernel and/or check the cam resolution or lower it. Lowering the resolution is a good thing anyway for cpu intensive opencv tasks Mar 06 09:50:08 ok. i'll reduce the resolution and try. New kernel means? changing the os using new boot image? Mar 06 09:51:55 jim__: try http://elinux.org/BeagleBoardDebian Mar 06 09:55:20 ok. i tried with 640x480 same error. but works with 320x240. Mar 06 09:56:25 hmm 640x480 should usually do... Mar 06 09:57:32 where is the problem? Mar 06 10:56:46 ok I ordered a couple of bbb Mar 06 10:56:50 and that cable Mar 06 10:56:54 I can't wait Mar 06 10:57:15 and apparently I discovered I already had a cable after I ordered one Mar 06 11:00:49 zacts good you will jave two now Mar 06 11:01:10 zacts are sure that the cable you already have supports 3,3V? Mar 06 11:01:25 woglinde: hum.. I belive it's 3.3v Mar 06 11:01:27 infact we are speaking about the serial cable Mar 06 11:01:31 but, I'll have to double check. Mar 06 11:01:37 the new one I ordered is for sure 3.3v Mar 06 11:01:46 and verified here to be the correct cable Mar 06 11:02:11 I have a cheap one where I can switch btw. 3,3 and 5 Mar 06 11:09:05 oh nice Mar 06 11:26:14 hoi woglinde Mar 06 11:26:23 komme stei? Mar 06 11:41:18 has the -@ patch been accepted upstream to dtc? or should i still use rcn's dtc.sh script to install it on a bbb? Mar 06 11:54:56 samael: no, use rcn's script Mar 06 11:56:53 hi koth long time not seen Mar 06 11:58:13 woglinde: yes,... i ended up in a 3rd wordl country, where internet is "neuland" Mar 06 11:58:29 romania? Mar 06 11:58:36 almost Mar 06 11:58:40 germany Mar 06 11:59:06 so no choclate Mar 06 12:00:23 actually, local karstadt has läderach (under its german brand name) Mar 06 12:00:49 alternatively i can just go to karlsruhe and get some real läderach there Mar 06 12:23:21 <_av500_> woglinde: saarbrücken, not really germany Mar 06 13:17:25 av500 its france right? Mar 06 13:33:04 hello everyone ... i have a question ... how can i install opencv on my stock BBB ? Mar 06 13:33:36 my os for BBB is angstrom ! Mar 06 13:35:17 you'd probably want to reflash with debian Mar 06 13:35:26 not just because of opencv Mar 06 13:36:50 tbr: so debian already has opencv ? Mar 06 13:37:21 debian is currently the best supported distribution on the bbb Mar 06 13:37:38 also it should have _a_ version of opencv Mar 06 13:38:09 okay ... let me check Mar 06 13:40:12 tbr its not the latest Mar 06 13:40:23 and normaly you want the latest opencv version Mar 06 13:42:07 woglinde: yes, hence the _a_, but if he needs to build opencv for the bbb, then cross-compiling for debian should be easier Mar 06 13:42:42 easier if you are into it Mar 06 13:42:44 ;) Mar 06 13:55:35 guy ... opencv comes preinstalled in the new angstrom distribution Mar 06 13:55:49 i just ran a program and its running fine Mar 06 13:56:20 its opencv version -2.4.2 Mar 06 14:17:26 Hi, I am having a problem with GUI of Beagle Bone Black. I did VNC to BBB with ultraserver viewer but could not find any interface to open a terminal. Shortcut key of ctrl+alt+T does not work either. Could somebody help me with this? Mar 06 14:18:22 does the default image even run vnc or an x server? Mar 06 14:18:31 also, why C-M-t ? Mar 06 14:18:39 that combination shouldnt do anything Mar 06 14:18:54 maybe it does in some display manager? Mar 06 14:19:08 like unity or such Mar 06 14:19:35 also, using the nick "mit" as a student of umich is kind of confusing Mar 06 14:20:42 thanks, what do you mean why C-M-t? Mar 06 14:20:53 sorry for the confusion, mit is for mitch Mar 06 14:21:20 ctrl+alt+T = C-M-t Mar 06 14:21:31 in the language of the gods ;) Mar 06 14:23:09 I see :). I did following on BBB so I think the vnc is running. x11vnc -bg -o %HOME/.x11vnc.log.%VNCDISPLAY -auth /var/run/lightdm/root/:0 -forever Mar 06 14:24:09 I am using ultravnc viewer on my laptop and x11vnc on BBB. Mar 06 14:24:34 look at the log file Mar 06 15:03:38 Hey, does anyone know if there is an debian linux image for the BB that has hibernation enabled? Mar 06 15:04:20 I'd be surprised if that worked, or even simple S3 Mar 06 15:04:44 (I haven't tried and don't know) Mar 06 15:05:15 What do you mean with S3? Mar 06 15:06:35 sleep state Mar 06 15:06:50 Hibernation should be possible in general. It's just that I only find people talking about compiling your own kernel. Unfortunatly I can't do that. I need to install a lot of beaglebones and need to keep them up to date. I don't want to compile my own kernels and distribute them to alle devices. Mar 06 15:08:43 you could always ask rcn if he could enable that feature in his kernels Mar 06 15:09:02 it would make it more likely if you'd be able that it is actually going to work Mar 06 15:11:40 the developer? Mar 06 15:12:54 no, the philosopher Mar 06 15:20:51 sim__: yes, the guy who maintains the debian images for the BBB Mar 06 15:26:15 speaking of the devil :) Mar 06 15:28:27 sim__, the "3.14" kernel supports "suspend to ram"... If you want hibernate, start down that path.. otherwise good luck! Mar 06 16:25:11 help !! i am reading my ANI pins and its giving me a random value Mar 06 16:25:42 i havent connected anything on those ports Mar 06 16:26:42 <_av500_> connect something Mar 06 16:27:39 i want to connect my signal generator to my probes , its still giving the same output Mar 06 16:32:41 when i connect my signal generator pins to it , it gives a error "Error while reading AIN port. Invalid or locked AIN file.'orarily unavailable: ' Mar 06 17:19:20 IOError: [Errno 11] Resource temporarily unavailable: 'Error while reading AIN port. Invalid or locked AIN file.' Mar 06 17:19:30 what does this error mean ? Mar 06 19:23:29 hi nerdboy Mar 06 19:24:50 nerdboy: we have another gsoc chat IRC channel at #beagle-gsoc Mar 06 20:26:47 yay, another channel tab... Mar 06 20:46:29 :-D Mar 06 21:13:35 Anybody know if there is a ready made BBB app for say, displaying pics as a slideshow ? Kind of like one of those "picture frames" ? Mar 06 21:14:06 I would think it could be a simple mount the SD card and play the pic files in a timed manner Mar 06 21:15:26 run debian and xscreensaver? Mar 06 21:15:40 has several photo display modules... Mar 06 21:15:59 Ahhh ! That's it ! Mar 06 21:15:59 well, anything with X would do... Mar 06 21:16:24 I'll take a look at that which kinda sounds what I was thinking of... Just thinking of cool apps for anybody Mar 06 21:16:59 thanks Mar 06 21:17:52 <_av500_> remember, its linux Mar 06 21:21:46 I didn't think of a "screensaver".... Not that we really need those to save our CRTs anymore but that would probably work fine for this Mar 06 21:22:32 <_av500_> saving CRTs was overrated back then Mar 06 21:22:38 <_av500_> flying toasters FTW! Mar 06 21:23:29 beagle powers flying toasters? Mar 06 21:23:37 oh, the screensaver, I see Mar 06 21:23:37 night Mar 06 21:25:53 <_av500_> nite nite Mar 06 21:25:58 <_av500_> dltbbby Mar 06 21:33:09 +1 to flying toasters. Mar 06 21:35:37 <_av500_> :) Mar 06 21:37:58 +2 to talking flying toasters ... Mar 06 22:11:10 +3 to virtual flying toasters that explode? Mar 06 22:14:25 +1 to GenTooMan :) Mar 06 22:15:39 you guys getting nostalgic for OS6 and tiny b&w displays? Mar 06 22:16:31 * nerdboy points out the toasters are older than windows 3... Mar 06 23:46:37 hey guys, which programming language do you all suggest I start with on the beaglebone? Is there much libraries for mono setup already? Mar 06 23:52:24 test Mar 06 23:54:53 bonescript is an obvious one... Mar 06 23:55:18 there python sensor/gpio interfaces Mar 06 23:59:05 thanks nerdboy, hmm, maybe I'll try creating my own mono library for interfacing GPIO Mar 07 00:01:20 and you would do that because you're a masochist? or something else? Mar 07 00:17:08 why mono and why c# ?? Mar 07 00:17:24 thats gonna take a lot of (unnecessary) effort .. Mar 07 00:22:39 woohoo, found something cool, http://www.microsoft.com/net/multiple-platform-support Mar 07 00:23:33 only board I seen thats .net is the netduino .. uses something like .netexpress or whichever. Mar 07 00:40:44 * nerdboy can't believe someone said "cool" and "microsoft" in the same sentence... Mar 07 00:41:08 "he said b00b!" "hehehe" Mar 07 00:41:45 * nerdboy does lame b&b impression Mar 07 00:44:51 dotnet is accidently cool i think, java done right. **** ENDING LOGGING AT Sat Mar 07 02:59:58 2015