Re: [beagleboard] Re: Reading from ADC hangs

2015-03-02 Thread malaakso
Hi, On Monday, March 2, 2015 at 8:04:40 PM UTC+2, Dajiang He wrote: > > Hi > > following ur guide, it almost worked. > > However, when issuing command > > echo 1 > /sys/bus/iio/devices/iio\:device0/buffer/enable >> > System gives me error: echo: wrrite error: Invalid argument > I already use root

[beagleboard] Re: Reading from ADC hangs

2015-03-02 Thread malaakso
On Thursday, February 26, 2015 at 5:18:51 PM UTC+2, dajia...@gmail.com wrote: > > Hi, > > How come in my system, there is no /sys/bus/iio/devices/iio:device0? > Under /sys/bus/iio/devices/, there is only one file iio_sysfs_trigger, > which is a symbolic link to some other directory. > Is there

[beagleboard] Re: Reading from ADC hangs

2015-02-25 Thread malaakso
Thanks for the suggestion. I'll keep that in mind if I need higher sampling rates. However, I did find a way to read ADC through IIO so that it doesn't hang. First set up the channels and the buffer through sysfs: echo 1 > /sys/bus/iio/devices/iio\:device0/scan_elements/in_voltage0_en echo 256

[beagleboard] Reading from ADC hangs

2015-02-23 Thread malaakso
Hi, I enabled tscadc in the dts-file and then tried to read the ADC from command line: ubuntu@arm:/sys/bus/iio/devices/iio:device0$ cat in_voltage* 3961 3581 3933 2233 2272 3400 3187 3816 ubuntu@arm:/sys/bus/iio/devices/iio:device0$ cat in_voltage* 3960 3588 3936 2454 2500 2891 and here it hang

Re: [beagleboard] USB-RS232 adapter problem in 3.14.xx

2015-01-19 Thread malaakso
On Friday, January 16, 2015 at 5:34:29 PM UTC+2, RobertCNelson wrote: > > On Fri, Jan 16, 2015 at 2:53 AM, > > wrote: > > Hi, > > > > I have a simple C program which writes something to a serial port and > then > > reads an answer, every 5 ms or so. I'm using an FTDI USB-to-RS232 > adapter

[beagleboard] USB-RS232 adapter problem in 3.14.xx

2015-01-16 Thread malaakso
Hi, I have a simple C program which writes something to a serial port and then reads an answer, every 5 ms or so. I'm using an FTDI USB-to-RS232 adapter connected to BBB at 115200 bps. In 3.8.13-bone63 this works fine, but there are some reasons I need to use a later kernel. I upgraded to the