Skip to contentSkip to conversation

Presenting duplicate channels for hid sensor light

DISCUSSION Pandruvada, Srinivas 2 participants 2 messages Dec 11, 2016 IIO

lore
Share & tools
lore
#0 lore raw

SGkgSm9uYXRoYW4sDQoNCkhJRCBzZW5zb3IgZGVmaW5lcyBjb21tb24gaWxsdW1pbmFuY2UgZmll bGQgd2hpY2ggY2FuIGJlIG91dHB1dCBmcm9tDQpsaWdodCBzZW5zb3IgYW5kIGNvbG9yIHNlbnNv cnMuIEN1cnJlbnRseSB3ZSBhcmUgcHJlc2VudGluZyB0aGlzIGFzDQppbnRlbnNpdHkuDQpUaGVy ZSBhcmUgc29tZSB1c2VyIHNwYWNlcyBleHBlY3Rpbmcgb25seSBpbGx1bWluYW5jZSBhdHRyaWJ1 dGUgZm9yDQpyZWFkaW5nIHRoaXMgYW5kIGdldHRpbmcgcmVxdWVzdCB0byBhZGQgdGhpcy7CoA0K VGhlIG9ubHkgb3B0aW9uIEkgc2VlIGlzIHRvIGFkZCBhIGR1cGxpY2F0ZSBjaGFubmVsLg0KDQpX aGF0IGRvIHlvdSB0aGluaz8NCsKgDQoNClRoYW5rcywNClNyaW5pdmFz

maintainer
#1 lore raw
Quoted 10 lines · Srinivas

Hi Jonathan,

HID sensor defines common illuminance field which can be output from light sensor and color sensors. Currently we are presenting this as intensity.
There are some user spaces expecting only illuminance attribute for reading this and getting request to add this.
The only option I see is to add a duplicate channel.

What do you think?

Hi Srinivas,

This isn't the first time we have run into this sort of issue.

As you say, presenting a duplicate channel is pretty much the only option as we can't break userspace by removing the old one.

As long as it is actually in the right units etc for illuminance, feel free to add the channel. If things get 'interesting' for buffered output it may be necessary to only have one of them available via that interface. Obviously this could be worked around but it is probably more trouble that it is worth to do so!

Jonathan

Quoted 5 lines

Thanks, SrinivasN�����r��y���b�X��ǧv�^�)޺{.n�+����{��*"��^n�r���z���h����&���G���h�(�階�ݢj"���m�����z�ޖ���f���h���~�mml==