Hal Layer polling not working

cancel
Showing results for 
Search instead for 
Did you mean: 

Hal Layer polling not working

371 Views
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 Kudos
2 Replies

112 Views
igorpadykov
NXP TechSupport
NXP TechSupport

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 Kudos

112 Views
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 Kudos