So our system locked up again. When we follow 
http://processors.wiki.ti.com/index.php/AM335x_ADC_Driver%27s_Guide

We get:

Code hier eingeb

machinekit@beaglebone:~# ls -al /sys/bus/iio/devices/iio:device0/

drwxr-xr-x    5 root     root            0 Jan  1 00:00 .
drwxr-xr-x    4 root     root            0 Jan  1 00:00 ..
-r--r--r--    1 root     root         4096 Jan  1 00:00 dev
-r--r--r--    1 root     root         4096 Jan  1 00:00 in_voltage0_raw
-r--r--r--    1 root     root         4096 Jan  1 00:00 in_voltage1_raw
-r--r--r--    1 root     root         4096 Jan  1 00:00 in_voltage2_raw
-r--r--r--    1 root     root         4096 Jan  1 00:00 in_voltage3_raw
-r--r--r--    1 root     root         4096 Jan  1 00:00 in_voltage4_raw
-r--r--r--    1 root     root         4096 Jan  1 00:00 in_voltage5_raw
-r--r--r--    1 root     root         4096 Jan  1 00:00 in_voltage6_raw
-r--r--r--    1 root     root         4096 Jan  1 00:00 in_voltage7_raw
-r--r--r--    1 root     root         4096 Jan  1 00:00 name
drwxr-xr-x    2 root     root            0 Jan  1 00:00 power
lrwxrwxrwx    1 root     root            0 Jan  1 00:00 subsystem -> 
../../../../../../bus/iio
-rw-r--r--    1 root     root         4096 Jan  1 00:00 uevent

en...

So the lines "buffer", "mode" and "scan_elements" are missing.

So trying to read a oneshot value gives:

machinekit@beaglebone:~# cat /sys/bus/iio/devices/iio\:device0/in_voltage0_raw
Resource temporarily unavailable


After a "sudo reboot", the "iio:device0" was missing, it came back only 
after starting machinekit.
Now the "in_voltageX_raw" shows the values.

Really hope this helps!



-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to