Other Parts Discussed in Thread: OPT3007
Hi, all
We have used opt3001 sensor on imx6dl platform, and using the driver with https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/iio/light/opt3001.c to read/write lux in our products.
we read the device node file of in_illuminance_input to get lux every 2 seconds in our program.
It can not work normally when the program run for serveral days, and I using cat command to get lux, the result is:
# cat in_illuminance_input
cat: read error: Connection timed out
using i2cget command to read the configuration register from opt3001, the result is:
i2cget -f 5 0x44 1 w
0x9fc0
From the result, I found POL and FC bits has been changed, in default, the POL is 0, and FC=00, but when it can't work normally, POL is 1, and FC=11
I analyzed the source code of opt3001.c and found POL and FC fileds of the configuration register is only changed in
So, I don't know which operation will change the value of POL and FC, and set them to unexpect value.
Best
Liang. Zhou