[Dev] /sys/class/sensors for sensord

Yong Li sdliyong at gmail.com
Tue Apr 14 00:42:05 GMT 2015


I also found another error messages related to the sensord, it seems that
the sensord cannot bind to a socket ? On the test PC, I connected an IIO
sensor

Mar 09 17:13:23 common_box sensord[190]: server.cpp:run(95)> Succeeded to
get systemd socket(3)
Mar 09 17:13:23 common_box sensord[190]:
csensor_event_dispatcher.cpp:run(46)> Starting Event Dispatcher
Mar 09 17:13:23 common_box sensord[190]: csocket.cpp:bind(120)> chmod
failed for socket(8), errno : 2 , errstr : No such file or directory
Mar 09 17:13:23 common_box sensord[190]:
csensor_event_dispatcher.cpp:run(54)> Listener Socket Binding failed in
Server
Mar 09 17:13:23 common_box sensord[190]: server.cpp:accept_client(61)>
Client acceptor is started
Mar 09 17:13:22 common_box sensord[190]: worker_thread.cpp:stop(105)>
Failed to stop, because current state(0) is not for STOP
Mar 09 17:13:22 common_box sensord[190]: worker_thread.cpp:stop(105)>
Failed to stop, because current state(0) is not for STOP
Mar 09 17:13:22 common_box sensord[190]: worker_thread.cpp:stop(105)>
Failed to stop, because current state(0) is not for STOP
Mar 09 17:13:22 common_box sensord[190]: worker_thread.cpp:stop(105)>
Failed to stop, because current state(0) is not for STOP


2015-04-13 20:04 GMT+08:00 Yong Li <sdliyong at gmail.com>:

> Thanks for your mail! I am reading the sensord source code now. I found
> the find_model_id function is using the "/sys/class/sensors/". If this
> function call is failed, all these sensors HAL will fail in these
> constructor functions. I encountered this issue on the PC with Tizen.
> Without the /sys/class/sensors, can I use the sensord ?
>
> 2015-04-13 18:05 GMT+08:00 윤기백 <kibak.yoon at samsung.com>:
>
>>  Hi, Mr. Yong Li.
>>
>>
>>
>> Thanks for your interest in the sensor framework.
>>
>> when sensor plugins are loaded, they find the one of three sysfs nodes,
>> /sys/class/input/input*/(input sysfs node, general) or
>> /sys/class/sensors/(it's a special node for some sensors) or
>> /sys/bus/iio/devices/iio:device*/(for iio subsystem).
>>
>> please ignore the error message related to /sys/class/sensors which means
>> that sensord could not find a sensor on device.
>>
>>
>>
>> please refer the below link if you'd like to know deeply about sensord.
>>
>> https://wiki.tizen.org/wiki/System:Sensord
>>
>>
>>
>> Thanks.
>>
>> Kibak.
>>
>>
>>
>> ------- *Original Message* -------
>>
>> *Sender* : Yong Li<sdliyong at gmail.com>
>>
>> *Date* : 2015-04-11 20:34 (GMT+09:00)
>>
>> *Title* : [Dev] /sys/class/sensors for sensord
>>
>>
>> Hi All,
>>
>>  I am learning the sensord project in the tizen-common project, I found
>> it is using the /sys/class/sensors file(find_model_id function in
>> sensor_hal.cpp). But I did not find this sysfs file after booting the Tizen
>> common on a PC, the sensord reports a lot of error messages. It seems that
>> the /sys/class/sensors is used for Android systems, how to use the sensord
>> on the Tizen system ?
>>
>> Thanks,
>> Yong
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tizen.org/pipermail/dev/attachments/20150414/b728c043/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 201504131905092_Z5JE7EUA.gif
Type: image/gif
Size: 13168 bytes
Desc: not available
URL: <http://lists.tizen.org/pipermail/dev/attachments/20150414/b728c043/attachment-0001.gif>


More information about the Dev mailing list