Hal Layer polling not working

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Hal Layer polling not working

1,511件の閲覧回数
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 

ラベル(6)
0 件の賞賛
返信
2 返答(返信)

1,252件の閲覧回数
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 件の賞賛
返信

1,252件の閲覧回数
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 件の賞賛
返信