Hello, @Jeff-CF-Huang
Thanks for the feedback.
I could understand that :
“while [ 1 ]; do ./adc_stress.sh; sleep 0.1; done” is done in a process from a real scenario.
Since we ever suggest testing it the following way:
---------------------------------------------------------
echo 1 > /sys/bus/iio/devices/iio:device0/scan_elements/in_voltage4_en
echo 4096 > /sys/bus/iio/devices/iio:device0/buffer/length
echo 1 > /sys/bus/iio/devices/iio:device0/buffer/enable
while :
do
hexdump -e '"iio0 :" 8/2 "%04x " "\n"' /dev/iio:device0 | head -512
sleep 0.1;
done
echo 0 > /sys/bus/iio/devices/iio:device0/buffer/enable
-----------------------------------------------------------
May I know if the reason using the content of ./adc_stress.sh instead of the way above is what mentioned from your previous post: “Considering that other processes might use the ADC or the system might go into suspend mode, we will disable the ADC in advance after retrieving the value.”? Or some other considerations?
Thanks
Best Regards
Chenyin