kibak.yoon [Wed, 5 Apr 2017 05:42:25 +0000 (14:42 +0900)]
sensord: implement sensor_manager class for clients
- sensor_manager provides:
- store sensor information and manages all sensor handles
- check whether the sensor is supported or not
- [TBD]listen an event that the application sensor is connected or disconnected
Change-Id: Icd38a74058170162bbfa8c7df6d1bdcc41d80e2d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Wed, 5 Apr 2017 04:50:49 +0000 (13:50 +0900)]
sensor: api: implement internal api using classes
- check invalid parameters.
- call proper operations/functions.
Change-Id: I61b9813a3f77cfd116a8ea72ee417f4cb7356640
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Wed, 5 Apr 2017 04:06:01 +0000 (13:06 +0900)]
sensord: api: add skeleton code of internal apis
- sensor_manager can stores and manages all of sensors.
- sensor_listener can listen sensor event and modify sensor configuation
(interval, option, batch_latency, attributes and so on)
- rename client.cpp to sensor_internal.cpp
Change-Id: I15b74b777ba70d9c7b7d7a2c597fabf91f259b2c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Wed, 5 Apr 2017 03:21:11 +0000 (12:21 +0900)]
sensord: clean up sensor_info class to support URI as name
- sensor_info class has sensor information and
can support serialize/deserialize information between client and server.
- URI(type and name) is supported
- TODO-LIST
- some information is redundant or requires a clear distinction
Change-Id: I3f40376f37cccbb003d865b7558b5fc55a3b141f
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Wed, 5 Apr 2017 01:50:34 +0000 (10:50 +0900)]
sensord: add util functions to sensor:utils namepsace
- change sensor_type_t to uri
- get timestamp
- get client name
Change-Id: I3aabf426176306b31a61c4da987281f19664ac62
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Wed, 5 Apr 2017 01:29:52 +0000 (10:29 +0900)]
sensord: ipc: add unit testcases
- test a connection between ipc_client and ipc_server
- test 2 clients
- test 100 clients
- test 1 client with 2 channels
- test 30 clients with large message
- test 3 normal client and 1 client with small recv buffer
- test 3 normal client and 1 client witch sleeps 10 seconds
Change-Id: I33b2e782872b51d42fc4a68b84bd5d6fe758964f
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Wed, 5 Apr 2017 01:19:13 +0000 (10:19 +0900)]
sensord: remove build warnings in ipc-utils
- warning: control reaches end of non-void function [-Wreturn-type]
- warning: ignoring return value [-Wunused-result]
Change-Id: Id172b9e32bfe45543b16dc9a0726bc1cc0c11441
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Wed, 5 Apr 2017 00:57:43 +0000 (09:57 +0900)]
sensord: ipc: add ipc_server class
- ipc_server class is a helper for server
- ipc_server class that makes it easy to bind/listen/accept a channel to use
for server.
- it creates and bind/accepts socket/channel/channel_event_handler
Change-Id: If79e27a6babcf73126b56f65e750176a9ddd5c78
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Tue, 4 Apr 2017 12:30:31 +0000 (21:30 +0900)]
sensord: ipc: add ipc_client class
- ipc_client class is a helper for client.
- ipc_client class that makes it easy to connect a channel to use for clients.
- it creates and connects socket/channel/channel event_handler.
Change-Id: If75a4ab542d3623a785ccf8bccbd66628b9646db
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Tue, 4 Apr 2017 12:15:45 +0000 (21:15 +0900)]
sensord: ipc: add channel class
- channel class is a nexus to a socket which is capable of I/O operations,
such as read, write, connect, and bind.
- channel class provides:
- the current state of the channel.
- the configuration parameters of the channel.
- the I/O operations that the channel supports.
- channel class can support synchronous/asynchronous send/read call.
- channel_handler:
- is called by all I/O events(connect/disconnect/read and error)
Change-Id: I85365e7cb443e969653353a83f8110ab690c4303
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Tue, 4 Apr 2017 12:02:29 +0000 (21:02 +0900)]
sensord: ipc: add message class
- this class is a helper class for enconding/decoding the byte data.
- message object includes the message header automatically.
- this header provides message id/type/size/error.
Change-Id: I03dc830baebf7a9bceac97013e9931f333f8f9d2
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Tue, 4 Apr 2017 11:13:14 +0000 (20:13 +0900)]
sensord: ipc: add event_loop class
- event_loop class is a wrapper of g_main_loop.
- event_loop class has the role of I/O multiplexing.
- event_handler interface can be added to event_loop.
- it would be better to make event_loop interface to use the other main_loop..
but now, it is not necessary yet.
- todo-list
- add/remove idle handler
Change-Id: I74dd0636d43319e64fa2701f9b3c662e3f31c575
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Tue, 4 Apr 2017 09:43:36 +0000 (18:43 +0900)]
sensord: ipc: add socket class
- socket class is a wrapper class of unix domain socket
- supported socket types : stream_socket, seqpacket_socket
- TC : $ sensorctl test auto ipc_socket
- [PASS] sensor_ipc_socket.socket_p_0
- [PASS] sensor_ipc_socket.socket_p_10
- [PASS] sensor_ipc_socket.socket_p_1000
Change-Id: I2cb7fcb360d4a9a0c87c77d3e2b39c2bb0c06380
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Tue, 4 Apr 2017 09:22:21 +0000 (18:22 +0900)]
sensord: clean up command-related types and log-related files
- remove sensor_log.cpp
- rename command_common.h to command_types.h
Change-Id: I01635838c0a11f466b183b3766ee013a19dee6b8
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Tue, 4 Apr 2017 09:09:50 +0000 (18:09 +0900)]
sensord: clean up cmake configurations
- fix typos
- use uppercase letters in commands
- use CMAKE_LD_LIBS macro to link dl library
- the sensord executable binary no longer contains a sensor code
Change-Id: I23dbdfea814ef2961eea63e8eec9e85e2a88f9eb
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Tue, 4 Apr 2017 09:02:53 +0000 (18:02 +0900)]
sensorctl: modify sensorctl to fix some issues
- prints sensor information with their types
- change is_running type from bool to std::atomic<bool>
- change sensor name from auto_rotation to rotation only
- if there are two or more sensors of the same type, you can select them
Change-Id: If277104ea324c1ae0da675a6e50ce677a8bbc6c9
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Tue, 4 Apr 2017 08:34:07 +0000 (17:34 +0900)]
sensord: change sensord systemd socket files and name
- change socket file name from sensord_command.socket to .sensord.socket
- change socket file location from /tmp/ to /run/
- remove sensor_event.socket(useless)
Change-Id: If855c7a3f4c45778b309c8a932a6da1eb17519ca
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Tue, 4 Apr 2017 08:06:05 +0000 (17:06 +0900)]
sensord: remove sensor_common.h
- sensor_common.h is not really meaningful.
- move definitions from sensor_common.h to sensor_types.h.
Change-Id: I458bd6f9400ccef31063c524e9a74555f234f84d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Thu, 9 Feb 2017 11:18:20 +0000 (20:18 +0900)]
sensord: refactoring: remove regacy code
Change-Id: I4ed2735fd80ab5c9345a03d87ce312c00502c3e2
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Mon, 19 Dec 2016 13:52:37 +0000 (22:52 +0900)]
sensord: refactoring sensorctl for testing modules
- To refactoring, there was the following changes.
* add test_bench to create testcases easily
* clean tester/injector/info/loopback files
- testing command examples
$ sensorctl test accelerometer /* test accelerometer sensor manually */
$ sensorctl test auto all /* test all testcases automatically with full-log */
$ sensorctl test auto socket 0 /* test socket module automatically without full-log */
$ sensorctl info all
$ sensorctl inject
Change-Id: Ie888c81f85d282eab77a8e1227d26710a85e9c61
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Mu-Woong Lee [Tue, 3 Jan 2017 09:42:50 +0000 (18:42 +0900)]
Add dummy libsensord package to fix build unresolvable issues
Change-Id: I33c0c0c4ce4cf739587ca7363970a376e360b4bf
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
Mu-Woong Lee [Tue, 3 Jan 2017 07:32:08 +0000 (16:32 +0900)]
Add vconf & gio-2.0 to the package config
This is for backward compatibility.
A package uses vconf, which is indirectly required by sensord-devel.
Change-Id: I45f04a02f72323637bb026f5449cf2afc147e30d
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
Mu-Woong Lee [Mon, 2 Jan 2017 11:21:17 +0000 (20:21 +0900)]
Remove profile build dependency
Instead of the four packages, sensord, libsensord, libsensord-devel, and sensor-hal-devel,
the following packages are produced:
- sensord : dummy internal API library, which completely disable all sensor listener features
- sensord-genuine : working internal API library and the sensor service daemon
- sensord-devel : internal API headers and the pc file
- sensor-hal-devel : API headers for Sensor HAL
Change-Id: Ie3529d6e5eba0554fd86b4d7f95ea9726db00aa4
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
Mu-Woong Lee [Mon, 2 Jan 2017 06:47:05 +0000 (15:47 +0900)]
Merge branch 'tizen_3.0' into devel/tizen
* tizen_3.0:
sensord: add dummy api library for tv profile
sensord: accumulate pedometer data
sensord: version up 2.0.9
sensord: fix incorrect return type
sensor: enable pedometer sensor
sensor: fix return value from false to 0
sensord: add pre_start() that should be executed before starting regardless of clients
sensord: change log level from error to warning for the warning case
sensor: change the hard coded path for supporting 64bit platform
Set SmackProcessLabel to System
sensord: store unknown rotation event when auto_rotation sensor starts
Fix for build errors of packages that are using deprecated sensor api
Change-Id: I2ebe48403561de6312824deed5bc8fac18c1cef2
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
kibak.yoon [Mon, 2 Jan 2017 05:39:03 +0000 (14:39 +0900)]
sensord: add dummy api library for tv profile
Change-Id: I610a6a2e43e475b20e96432d47b68aebe7785655
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Wed, 28 Dec 2016 06:38:07 +0000 (15:38 +0900)]
sensord: accumulate pedometer data
- accumulated pedometer data should be provided to client
Change-Id: Ib9a4bb5325867e1e55f1e8c9b9a32609915dbd08
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Tue, 13 Dec 2016 11:04:01 +0000 (20:04 +0900)]
sensord: version up 2.0.9
Change-Id: I4d12ec6c0c12890c58407657dca42621cc128819
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Tue, 13 Dec 2016 10:50:03 +0000 (19:50 +0900)]
sensord: fix incorrect return type
- int to size_t
Change-Id: Ia1d5b0308e2a9a546c1980d0bb1896a1e4a88204
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Tue, 13 Dec 2016 09:35:45 +0000 (18:35 +0900)]
sensor: enable pedometer sensor
- pedometer sensor needs healthinfo privilege
Change-Id: I9ac4e2079fd0a6e640c92b63ce13f3c3f1c81ed0
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Tue, 13 Dec 2016 07:47:53 +0000 (16:47 +0900)]
sensor: fix return value from false to 0
Change-Id: Icb84d1ec8f8e20b29f02dc86807a4fe535c79455
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Sat, 10 Dec 2016 05:57:24 +0000 (14:57 +0900)]
sensord: add pre_start() that should be executed before starting regardless of clients
Change-Id: I1cd8a70cdfcb5f838c94a1da7fced99835fbf872
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Tue, 6 Dec 2016 01:52:37 +0000 (10:52 +0900)]
Merge branch 'devel/tizen' into tizen_3.0
* devel/tizen:
sensord: install required header files instead of all header files
Change-Id: I4c38df41e4b80ef81b9dbde6db7245f2b9e769a9
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Tue, 6 Dec 2016 01:43:02 +0000 (10:43 +0900)]
sensord: install required header files instead of all header files
Change-Id: Ib826fe1e3464a560f58e5868c64fd4e2cf9a8136
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Fri, 2 Dec 2016 10:28:57 +0000 (19:28 +0900)]
Merge branch 'devel/tizen' into tizen_3.0
* devel/tizen:
sensord: fix compiler warnings
[BugFix] Reset Sensor Fusion Backend if it returns NaN because of inconsitent input and high error
sensord: change file permission to remove execute permission
sensord: add internal sensor types
sensord: add sensorctl instead of original sensor-test
sensord: change variable name of attribute-related functions
sensord: add select before sending the event
sensord: set socket_type when connection of client is accepted
sensord: change socket type from stream to seqpacket
sensord: add get wristup dbus interface
sensord: add attributes and types to hal_types.h
sensord: remove an useless event suffix name
sensord: create file for macros
sensord: change log level from error to warning for the warning case
Conflicts:
src/shared/csocket.cpp
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Change-Id: I0c5e8cc7717a9d85cddfd42d897fd20b81aba8da
kibak.yoon [Fri, 2 Dec 2016 09:44:25 +0000 (18:44 +0900)]
sensord: fix compiler warnings
Change-Id: I6c702882e120c470ac69d6b0d510021d49ceb15c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Akhil [Wed, 30 Nov 2016 13:16:08 +0000 (22:16 +0900)]
[BugFix] Reset Sensor Fusion Backend if it returns NaN because of inconsitent input and high error
Change-Id: I29fe84898d32f710cb914748d3111edfb2da38b7
Signed-off-by: Akhil <akhil.kedia@samsung.com>
kibak.yoon [Thu, 24 Nov 2016 09:13:36 +0000 (18:13 +0900)]
sensord: change file permission to remove execute permission
Change-Id: I5cce417208269fdbae3899f643089ff1fbd990e5
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Thu, 24 Nov 2016 12:07:39 +0000 (21:07 +0900)]
sensord: add internal sensor types
Change-Id: Ieacf15fdceb421dbc8e7912d137fcae52462a948
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Thu, 24 Nov 2016 12:03:25 +0000 (21:03 +0900)]
sensord: add sensorctl instead of original sensor-test
- this sensorctl is an initial version for the sync,
it will be updated to the latest version as soon as possible.
Change-Id: Ie532efaecf73fc742810c9b6ce53085ac8e75817
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Thu, 24 Nov 2016 12:00:14 +0000 (21:00 +0900)]
sensord: change variable name of attribute-related functions
- change name from value_len to len
- change name from attribute to attr
Change-Id: I7a2513f207c34fd564100b6bdd1d4f2798845ca8
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Wed, 16 Nov 2016 15:04:29 +0000 (00:04 +0900)]
sensord: add select before sending the event
because check client fd is writable or not, select() is added.
Change-Id: I3189b314ec574fa8201dc79e33b91ad2e7f82deb
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
minsoo kim [Mon, 7 Nov 2016 11:04:12 +0000 (20:04 +0900)]
sensord: set socket_type when connection of client is accepted
Currently, stream socket is used for command and sequence packet socket is
used for sensor event. but when server accepts any connection of client
server creates socket object with default socket type.
so client socket which is accepted by server must set proper socket type,
not default.
Change-Id: I789ff247a37a8048e9e4657997ac55a603b484e9
Signed-off-by: minsoo kim <ms203.kim@samsung.com>
kibak.yoon [Thu, 27 Oct 2016 15:26:34 +0000 (00:26 +0900)]
sensord: change socket type from stream to seqpacket
Change-Id: I3ecc7f26e9917b29dfeaf4a9164012bf3df2c8f2
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
minsoo kim [Thu, 6 Oct 2016 07:09:30 +0000 (16:09 +0900)]
sensord: add get wristup dbus interface
SENSORD_BUS_NAME : "org.tizen.system.sensord"
SENSORD_OBJECT_PATH : "/Org/Tizen/System/SensorD"
SENSORD_INTERFACE_NAME : SENSORD_BUS_NAME
WRISTUP_ALGO_METHOD : "wristup_algo"
Change-Id: Ic7992b874b2456da2ede823de6bb7ffeb579f1a0
Signed-off-by: minsoo kim <ms203.kim@samsung.com>
kibak.yoon [Thu, 24 Nov 2016 09:21:34 +0000 (18:21 +0900)]
sensord: add attributes and types to hal_types.h
Change-Id: I0e9be365468a59ea948f6cdea1356fe46ae75979
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
hs81.go [Tue, 4 Oct 2016 01:46:41 +0000 (10:46 +0900)]
sensord: remove an useless event suffix name
Change-Id: Ia16741513429196bdbb1063e9a7dcdce62f8a41b
Signed-off-by: hs81.go <hs81.go@samsung.com>
minsoo kim [Mon, 12 Sep 2016 12:54:55 +0000 (21:54 +0900)]
sensord: create file for macros
Change-Id: I44a8199875c059ac11e772afe1e6b47c5a0a8b65
Signed-off-by: minsoo kim <ms203.kim@samsung.com>
kibak.yoon [Wed, 9 Nov 2016 08:41:46 +0000 (17:41 +0900)]
sensord: change log level from error to warning for the warning case
- when applications access not-supported sensors, it doesn't need to
print error level logs.
Change-Id: I1d98d0ebd85bf3d12a673e320a39d2942d53cc9a
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
(cherry picked from commit
b596e1f1297a7fe6d3e14c43ac81e827fa84c5fd)
kibak.yoon [Wed, 9 Nov 2016 08:41:46 +0000 (17:41 +0900)]
sensord: change log level from error to warning for the warning case
- when applications access not-supported sensors, it doesn't need to
print error level logs.
Change-Id: I1d98d0ebd85bf3d12a673e320a39d2942d53cc9a
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Thu, 3 Nov 2016 09:37:09 +0000 (18:37 +0900)]
Merge branch 'devel/tizen' into tizen_3.0
* devel/tizen:
sensord: fix the bug that handles are pushed to a list regardless of return value
sensor: change the hard coded path for supporting 64bit platform
Change-Id: I0ca530039dd72515b9e5ae5ee00457ce07ddda4f
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Thu, 3 Nov 2016 08:48:16 +0000 (17:48 +0900)]
sensord: fix the bug that handles are pushed to a list regardless of return value
Change-Id: Ibf13b5262ae66274b758b065822c634959f5bbbb
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Wed, 26 Oct 2016 06:36:07 +0000 (15:36 +0900)]
sensor: change the hard coded path for supporting 64bit platform
Change-Id: Ie1940344d79527a4fe153491a566b32da46c9f2d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
(cherry picked from commit
cd55494de5ac23eb814961293e28eaac24c75846)
kibak.yoon [Wed, 26 Oct 2016 06:36:07 +0000 (15:36 +0900)]
sensor: change the hard coded path for supporting 64bit platform
Change-Id: Ie1940344d79527a4fe153491a566b32da46c9f2d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Wed, 28 Sep 2016 05:30:27 +0000 (14:30 +0900)]
Merge branch 'devel/tizen_3.0' into tizen
* devel/tizen_3.0: (24 commits)
sensord: version 2.0.8
sensord: enable rv/gesture sensors in CMakeLists
[face_down_sensor] increasing the window size to increase detection rate
sensord: return false if the size of id is 0
sensord: fix socket issue when client cannot receive the event
sensord: change an input value name of set_attribute function
sensord: call external sensor service run
sensord: fix the problem that attribute is not restored properly
sensord: delete batch latency/attribute when client is terminated unexpectedly
sensord: license: remove unnecessary scripts(license conflict)
sensord: change the default axis policy from DEVICE_ORIENTED to DISPLAY_ORIENTED
Change the order of the member variables of rv_sensor to fix a build warning
Version 2.0.7
Fix the external sensor worker to handle NULL payload properly
Remove unnecessary header inclusion from face_down_alg_impl
Face Down Gesture Sensor
Gyroscope RV Sensor
Magnetic RV Sensor
Rotation Vector Sensor
Moved Fusion Backed from sensor_fusion folder to rotation_vector folder
...
Change-Id: I29e0ce5f16f24a52aa599edf40d675bbf85829b8
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Wed, 28 Sep 2016 05:28:47 +0000 (14:28 +0900)]
sensord: version 2.0.8
Change-Id: I4f09f8202b551b1c0ed367998ffad47ff5bb08b2
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Mu-Woong Lee [Wed, 28 Sep 2016 05:26:17 +0000 (22:26 -0700)]
Merge "sensord: enable rv/gesture sensors in CMakeLists" into devel/tizen_3.0
Mu-Woong Lee [Wed, 28 Sep 2016 05:25:48 +0000 (22:25 -0700)]
Merge "sensord: return false if the size of id is 0" into devel/tizen_3.0
Mu-Woong Lee [Wed, 28 Sep 2016 05:25:26 +0000 (22:25 -0700)]
Merge "sensord: fix socket issue when client cannot receive the event" into devel/tizen_3.0
Mu-Woong Lee [Wed, 28 Sep 2016 05:24:58 +0000 (22:24 -0700)]
Merge "sensord: change an input value name of set_attribute function" into devel/tizen_3.0
Mu-Woong Lee [Wed, 28 Sep 2016 05:24:23 +0000 (22:24 -0700)]
Merge "sensord: call external sensor service run" into devel/tizen_3.0
Mu-Woong Lee [Wed, 28 Sep 2016 05:23:14 +0000 (22:23 -0700)]
Merge "sensord: fix the problem that attribute is not restored properly" into devel/tizen_3.0
Mu-Woong Lee [Wed, 28 Sep 2016 05:22:31 +0000 (22:22 -0700)]
Merge "sensord: delete batch latency/attribute when client is terminated unexpectedly" into devel/tizen_3.0
Mu-Woong Lee [Wed, 28 Sep 2016 05:22:13 +0000 (22:22 -0700)]
Merge "sensord: license: remove unnecessary scripts(license conflict)" into devel/tizen_3.0
Mu-Woong Lee [Wed, 28 Sep 2016 05:20:16 +0000 (22:20 -0700)]
Merge "sensord: change the default axis policy from DEVICE_ORIENTED to DISPLAY_ORIENTED" into devel/tizen_3.0
kibak.yoon [Wed, 28 Sep 2016 04:54:50 +0000 (13:54 +0900)]
sensord: enable rv/gesture sensors in CMakeLists
* remove the unused macro for motion sensor
Change-Id: I198014b1355cc395891c403fe1f2c385b40cada1
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
akhilkedia94 [Wed, 28 Sep 2016 03:45:34 +0000 (12:45 +0900)]
[face_down_sensor] increasing the window size to increase detection rate
Change-Id: I7095440151ff4117442f0d0f2d8e22717a2b3a97
Signed-off-by: akhilkedia94 <akhil.kedia@samsung.com>
kibak.yoon [Mon, 18 Jul 2016 11:19:11 +0000 (20:19 +0900)]
sensord: return false if the size of id is 0
- If the size of ids is zero, it doesn't need to process the next works.
- It doesn't make a problem although it is not fixed.
but it would be better to reduce the unnecessary work.
Change-Id: I2187d738ee90bae47cb4276b39b5651afa771b97
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Tue, 20 Sep 2016 15:41:28 +0000 (00:41 +0900)]
sensord: fix socket issue when client cannot receive the event
if client is blocked because of some reason, e.g., works heavy in mainloop,
sensor daemon is also blocked about sending sensor event.
Change-Id: I35ec9f43065594f55e413244470c74fc1c3f2ff1
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
hs81.go [Thu, 1 Sep 2016 06:20:22 +0000 (15:20 +0900)]
sensord: change an input value name of set_attribute function
because a name is not clear which is 'value_len' in set_attribute function
so 'value_len' is changed to 'len'.
Change-Id: I19caa23268e451653139c2b5f5c73af22edffe95
Signed-off-by: hs81.go <hs81.go@samsung.com>
minsoo kim [Mon, 1 Aug 2016 09:38:51 +0000 (18:38 +0900)]
sensord: call external sensor service run
during code refactoring, external sensor
service running call is removed. after that external sensor
client can't recieve command.
Change-Id: I25f10790458782518ad732aa4b47af699f59f1f9
Signed-off-by: minsoo kim <ms203.kim@samsung.com>
kibak.yoon [Wed, 31 Aug 2016 02:45:10 +0000 (11:45 +0900)]
sensord: fix the problem that attribute is not restored properly
if command including "0", e.g., command is "-63, 23, 50, 0, 0, 0, 0", is
sent to sensord, just "-63, 23, 50" command is stored to cache.
because std::string recognize 4th character as NULL termination.
so value and value_len should be stored to cache.
Change-Id: Ib04afa1f9824a679b546ce9c284b91d389172a82
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Mon, 8 Aug 2016 10:18:58 +0000 (19:18 +0900)]
sensord: delete batch latency/attribute when client is terminated unexpectedly
- if client stops sensor explicitly, batch latency and attributes are deleted
from client information. but client is terminated unexpectedly, they are
not deleted.
Change-Id: I61475ba5979d83e17d725e3621c479640c55d86e
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Mon, 25 Jul 2016 11:10:47 +0000 (20:10 +0900)]
sensord: license: remove unnecessary scripts(license conflict)
Change-Id: Ifd272badf02b30f0fd06835f5eadc965b36162f5
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Mon, 25 Jul 2016 05:30:57 +0000 (14:30 +0900)]
sensord: change the default axis policy from DEVICE_ORIENTED to DISPLAY_ORIENTED
Change-Id: I72268fd085d82943182a0287c62c7d59905c51f3
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Mu-Woong Lee [Wed, 7 Sep 2016 11:07:21 +0000 (20:07 +0900)]
Change the order of the member variables of rv_sensor to fix a build warning
Change-Id: Ifa28a42d379118d039446c5f3dab61f678885879
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
Mu-Woong Lee [Wed, 7 Sep 2016 06:55:11 +0000 (15:55 +0900)]
Version 2.0.7
Change-Id: Id06dd0f98fb13a37c405c07d88237af1c62ae557
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
Mu-Woong Lee [Tue, 6 Sep 2016 03:47:39 +0000 (12:47 +0900)]
Fix the external sensor worker to handle NULL payload properly
Change-Id: If425d87b5cae885ee972fdb16edd9b30c9987182
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
Mu-Woong Lee [Tue, 6 Sep 2016 03:59:04 +0000 (12:59 +0900)]
Remove unnecessary header inclusion from face_down_alg_impl
Change-Id: I3d5ec7e8673498d16e06c830e70964829b8b9d8f
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
akhilkedia94 [Fri, 29 Jul 2016 07:53:35 +0000 (16:53 +0900)]
Face Down Gesture Sensor
Detects the face down gesture defined as -
The phone being face up (<20 degrees from screen pointing vertically upwards) and
then face down (<20 degrees from vertically downwards) in 2 second.
Change-Id: I8045109a3266baaa11ab0316e07857474a5b1e8b
Signed-off-by: akhilkedia94 <akhil.kedia@samsung.com>
akhilkedia94 [Tue, 16 Aug 2016 11:40:06 +0000 (20:40 +0900)]
Gyroscope RV Sensor
Created a Rotation Vector Sensor which uses only accel and gyro
Note - In lines 288-290 of src/sensor/rotation_vector/fusion_utils/
orientation_filter.cpp, the fusion backend does not update the quaternion
if acceleration and gyroscope values are higher than a very low threshold.
While this may improve performance in high noise situations, doing so
causes the sensor to not update its values in most common-use scenarios.
I would hence recommend to remove the 3 if conditions in the lines above.
Change-Id: I0b96e6235c52f76195529b918bd54e29bf946631
Signed-off-by: akhilkedia94 <akhil.kedia@samsung.com>
akhilkedia94 [Tue, 16 Aug 2016 11:33:00 +0000 (20:33 +0900)]
Magnetic RV Sensor
Change-Id: I7a0586952f69404573d5ae974d6dc3c8cf1b7055
Signed-off-by: akhilkedia94 <akhil.kedia@samsung.com>
akhilkedia94 [Thu, 18 Aug 2016 05:48:33 +0000 (14:48 +0900)]
Rotation Vector Sensor
Created a rv_sensor using Sensor Fusion.
Change-Id: Ie7b3f2585621d724f0f3bd2e956e1bab4d3bfdfc
Signed-off-by: akhilkedia94 <akhil.kedia@samsung.com>
akhilkedia94 [Thu, 18 Aug 2016 04:59:32 +0000 (13:59 +0900)]
Moved Fusion Backed from sensor_fusion folder to rotation_vector folder
Change-Id: I45f24c4926b35093ddbbb71f0e048d028a5ece07
Signed-off-by: akhilkedia94 <akhil.kedia@samsung.com>
akhilkedia94 [Tue, 16 Aug 2016 10:29:01 +0000 (19:29 +0900)]
[Bugfix] Order of parameters passed was incorrect - magnetometer was being passed in place of gyro
Change-Id: Id65df1004721f55e76169aaee69d2c7af459569b
Signed-off-by: akhilkedia94 <akhil.kedia@samsung.com>
akhilkedia94 [Tue, 16 Aug 2016 08:37:51 +0000 (17:37 +0900)]
[Bugfix] Timestamp was not being passed by refferencce to sensor_fusion
Change-Id: Ifb0ff04689880ede5fe565f85931a49f8bc16e6d
Signed-off-by: akhilkedia94 <akhil.kedia@samsung.com>
akhilkedia94 [Fri, 29 Jul 2016 06:27:17 +0000 (15:27 +0900)]
Porting Sensor Fusion to Tizen 3.0
Change-Id: I8607fea652431cf277d7f9a577686c77318052bc
Signed-off-by: akhilkedia94 <akhil.kedia@samsung.com>
Yunjin Lee [Wed, 20 Jul 2016 11:28:46 +0000 (20:28 +0900)]
Set SmackProcessLabel to System
Change-Id: Ic6db23e47dfc46aeade072e08a8396b4505774a5
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
Yunjin Lee [Wed, 20 Jul 2016 11:28:46 +0000 (20:28 +0900)]
Set SmackProcessLabel to System
Change-Id: Ic6db23e47dfc46aeade072e08a8396b4505774a5
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
kibak.yoon [Fri, 1 Jul 2016 11:05:14 +0000 (20:05 +0900)]
Merge branch 'devel/tizen_3.0' into tizen
* devel/tizen_3.0:
sensord: modify enum values for classification
sensord: print errno log when proper errors are returned
sensord: version 2.0.6
sensord: fix wrong log in case of setting batch latency
sensord: remove unused sensor_config sources
sensord: clean up switch-case statement if attribute is not global.
Change-Id: I44aa8474b8c636d7d175006115a6af593eee1514
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
hs81.go [Fri, 1 Jul 2016 05:05:45 +0000 (14:05 +0900)]
sensord: modify enum values for classification
Change-Id: I0db7552f2c29f1805a20f13f47a7d79a73f0adec
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Thu, 30 Jun 2016 14:02:17 +0000 (23:02 +0900)]
sensord: print errno log when proper errors are returned
Change-Id: Ib89d28b1b75fc4ef563536f643633928ab0ec17e
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Thu, 30 Jun 2016 02:29:22 +0000 (11:29 +0900)]
sensord: version 2.0.6
Change-Id: I03bd5c537de1f3ad27d9f5cc6d5f1ce0f72b90c1
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Wed, 29 Jun 2016 08:04:20 +0000 (17:04 +0900)]
sensord: fix wrong log in case of setting batch latency
Change-Id: I9254577b0ac02b44645578e1680550e7672b3bef
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Wed, 29 Jun 2016 02:51:58 +0000 (11:51 +0900)]
sensord: remove unused sensor_config sources
- device_config
- virtual_sensor_config
Change-Id: I91eb3abf9c062c6dd0576b846440fc199b6be89f
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Mon, 27 Jun 2016 04:27:25 +0000 (13:27 +0900)]
sensord: clean up switch-case statement if attribute is not global.
- if it is a default attribute in switch-case statement, break and call
set_attribute_int() function.
Change-Id: I1bf0403ad268a8465190439acd9c1ebe320cda2c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Wed, 22 Jun 2016 10:59:49 +0000 (19:59 +0900)]
Merge branch 'devel/tizen_3.0' into tizen
* devel/tizen_3.0:
sensord: fix the bug which converts wrong pause policy
Change-Id: Id9f267f94098c5999d9a3f0dbf9a7f9f175776da
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Wed, 22 Jun 2016 10:07:50 +0000 (19:07 +0900)]
sensord: fix the bug which converts wrong pause policy
Change-Id: I655ccde45a65637672fb9c23141e66b32d34c2c7
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Tue, 21 Jun 2016 06:16:34 +0000 (15:16 +0900)]
Merge branch 'devel/tizen_3.0' into tizen
* devel/tizen_3.0: (35 commits)
sensord: rename and reorder sensor types
sensord: add new internal sensor types
sensord: change sensor axis policy by using attribute setting via C-API
sensord: set to UINT_MAX batch count when there is no batch latency for sensor
sensord: restore attributes after sensor daemon is restarted
sensord: support the passive mode which listens sensor event only
sensord: change to use is_started() instead of using member variable directly
sensord: move operate_sensor function to sensor_client_info
sensord: rename option to pause policy
sensord: support attribute interface & clean up option
sensord: store unknown rotation event when auto_rotation sensor starts
sensord: fix comments properly about getting sensor data logic
sensord: rename return variables from err to ret
sensord: fix to not loading sensor which is already loaded
sensord: move udev rules to HAL packages
sensord: fix double free problem after the allocation of memory is failed
sensord: clean up permission_checker for syncing with tizen_2.3
sensord: remove unused APIs
sensord: change the log level from _E to _I
sensord: remove EVENT_TYPE_SHIFT macro in sensor_log.h
...
Change-Id: Ifc875d0a985c856ad0988735f8744fdd2d217b3b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Tue, 21 Jun 2016 03:45:25 +0000 (12:45 +0900)]
sensord: rename and reorder sensor types
- EXERCISE_COACH -> EXERCISE_STANDALONE
- EXERCISE -> EXERCISE_COMPANION
- EXERCISE_STAIR_CLIMBING -> X
Change-Id: I43290e81ad9175bc2c63b46db7d6c98dcea62046
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
kibak.yoon [Thu, 2 Jun 2016 08:48:10 +0000 (17:48 +0900)]
sensord: add new internal sensor types
Change-Id: I9c7bb390184877f41d379fa1bb0115dd7edecc3b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>