Title: Samsung Enterprise Portal mySingle

Hi,

 

You should be able to find sensor sysfs nodes in one of the 3 locations below (this could vary based on kernel being used). The sensor sysfs file location can vary.

 

1)/sys/class/input/input*/(input sysfs node, general) 

or

2)/sys/class/sensors/(it's a special node for some sensors)

or

3)/sys/bus/iio/devices/iio:device*/(for iio subsystem)

 

Please use tizen build (not gcc) for building the test applications as rpm. Please enable building test folder from packaging/sensord.spec.

 

For more information on general Tizen build refer to following links.

https://source.tizen.org/documentation/reference/git-build-system/configuration-file

https://source.tizen.org/documentation/reference/git-build-system/usage/gbs-build

 

Regards,

Ram

 

------- Original Message -------

Sender : Yong Li<[email protected]>

Date : Apr 18, 2015 11:51 (GMT+05:30)

Title : Re: Re: Re: [Dev] /sys/class/sensors for sensord

 

Thanks Ram for your detailed information! Since I am using a PC for the test, I cannot get the /sys/class/sensors folder. I will try to find a ODroid board or the RD-PQ device. The RD-PQ device should be a Galaxy S3, and it can support the /sys/class/sensors, am I correct?

During my test, I found another issue will "libsensor segfault":

The sensord is running okay, but I cannot execute the test/sensor-test application. The error message is segfault in libsensor.so.

After debugging, I found this issue is related to the gcc tools. It works with one gcc but failed in another(all the same version gcc 4.9.2, but with different configuration). 

The root cause is event_listener is NULL in the init_client function in client.cpp. It seems that the csensor_event_listener &event_listener is NULL when the init_client function is called. 

Which gcc options can cause this kind of behavior? 


2015-04-17 9:00 GMT+08:00 Ramasamy Kannan <[email protected]>:

Hi,

 

You would find the path in a Tizen OS supported device.

 

"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). "

 

The new 'sensord' sensor framework code was released 2 months ago for tizen-common. The common profile build is currently supported for the ODroid board and unfortunately this board does not support any sensors. But the sensors could be interfaced from another external board using the GPIO pins(by adding the needed code in kernel and sensord plugin) if you would like to use the ODroid board. 

 

If you have a Tizen mobile RD-PQ development target you could use the images from http://download.tizen.org/releases/2.3/2.3-mobile/tizen-2.3-mobile_20150311.3/images/target/

 

Regards,

Ram

 

------- Original Message -------

Sender : Yong Li<[email protected]>

Date : Apr 16, 2015 05:54 (GMT+05:30)

Title : Re: Re: [Dev] /sys/class/sensors for sensord

 

Thanks for your mail! I am using the tizen-common_201504XX RAW image + PC to test the sensord, is there any difference compared with the Tizen 3.0?

I found my problem is not related to IIO devices, it is I cannot find the /sys/class/sensors folder on my PC. It seems that the kernel does not support this "the sensors class support". After searching, I found it is supported on some Android devices.

I would like to know how are you testing the sensord during the developing process? Which platform/device are you using? 

2015-04-16 7:32 GMT+08:00 Ramasamy Kannan <[email protected]>:

Hi,

Eventhough the IIO related plugin code  is added for Tizen in 2.3 release, the batch mode support in framework and IIO plugin driver interface is being developed and will be supported for Tizen sensor framework only in the 3.0 release.

Only non IIO sensor mode will be supported in the sensor framework till then.

Regards,

Ram

 

------- Original Message -------

Sender : Yong Li<[email protected]>

Date : Apr 14, 2015 06:12 (GMT+05:30)

Title : Re: [Dev] /sys/class/sensors for sensord

 

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 <[email protected]>:
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 윤기백 <[email protected]>:

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<[email protected]>

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





_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev

Reply via email to