Hal Layer polling not working

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Hal Layer polling not working

1,015 次查看
aravinthkumarja
Senior Contributor II

Hi All,

I'm using light sensor in Android 6.

If i'm giving

=> cat /sys/class/i2c-dev/i2c-1/device/1-0045/iio:device0/in_illuminance_input 

I'm getting current lux value. same value updated on android application also. But in application it's not updating continuously.

When ever i'm giving the "cat /sys/class/i2c-dev/i2c-1/device/1-0045/iio:device0/in_illuminance_input " in that time only it's updating.

What can i do to poll to read the data continuously???

Regards,

Aravinth 

0 项奖励
回复
2 回复数

756 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Aravinth

is it working in linux. One can try to debug it, use as help

documentation on

http://events.linuxfoundation.org/sites/events/files/slides/lceu15_baluta.pdf 

Chapter 2. Industrial I/O core 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

756 次查看
aravinthkumarja
Senior Contributor II

I fixed this issue. I did some changes on opt3001 light sensor driver code. Now it's working fine.

Thanks,

Aravinth

0 项奖励
回复