platform/core/connectivity/zigbee-manager.git
7 years agoFix mismatched dbus noti param order
Jiwan Kim [Wed, 8 Feb 2017 09:35:35 +0000 (18:35 +0900)]
Fix mismatched dbus noti param order

Change-Id: I99f08a98b84532f9e0569c39c8ef9c312ea4c83a
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix dbus parameter 'ay' to 'a(y)'
Jiwan Kim [Wed, 8 Feb 2017 08:12:01 +0000 (17:12 +0900)]
Fix dbus parameter 'ay' to 'a(y)'

- These parameters are not used currently.
- But change those use cases for future use

Change-Id: If364601c957ef418f6d23960334db800b906221a
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoRemove warning related signedness
Jiwan Kim [Wed, 8 Feb 2017 07:02:40 +0000 (16:02 +0900)]
Remove warning related signedness

- Member variable in structure was not matched with
  XML introspection file.
- Change signedness with XML introspection.

Change-Id: I245cd6cc795dcd52bdbccf3fc478b121db9f17fe
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoImplement ZCL Global control
Jiwan Kim [Tue, 7 Feb 2017 11:16:28 +0000 (20:16 +0900)]
Implement ZCL Global control

Change-Id: I80b8530899ed6d2ee3c601767e97a466fb331777
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoImplement ZDO Dev control
Jiwan Kim [Mon, 6 Feb 2017 06:02:44 +0000 (15:02 +0900)]
Implement ZDO Dev control

Change-Id: I1c64363769dad82b6a481fd97a877c3bd78a5f07
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoImpelement Custom cluster
saerome kim [Mon, 6 Feb 2017 23:24:35 +0000 (08:24 +0900)]
Impelement Custom cluster

Change-Id: Iae3bf86bef7ecdaf5df31cc72def83e3ae674db0
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoImplement ZDO Bind cluster
saerome kim [Mon, 6 Feb 2017 00:24:36 +0000 (09:24 +0900)]
Implement ZDO Bind cluster

Change-Id: I0455770fc501b90165cdb443b49aa854537a31ba
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoImplement ZCL Thermostat cluster
saerome kim [Sat, 4 Feb 2017 07:54:21 +0000 (16:54 +0900)]
Implement ZCL Thermostat cluster

Change-Id: If9ccaabd96e4489b2363f035d1479e4d18ee8f6f
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoImplement ZCL Scene cluster
saerome kim [Sat, 4 Feb 2017 07:09:07 +0000 (16:09 +0900)]
Implement ZCL Scene cluster
 - fix typo at Poll Controll cluster

Change-Id: Ibc5428c8ada49b3e69b3a7ef20f3ad8da608de3c
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoImplement ZCL Poll Control cluster
saerome kim [Fri, 3 Feb 2017 09:00:23 +0000 (18:00 +0900)]
Implement ZCL Poll Control cluster

Change-Id: Idb4242563a6f3ad75127932616596d60dcfb2f27
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoImplement ZCL Level Control cluster
saerome kim [Fri, 3 Feb 2017 07:40:37 +0000 (16:40 +0900)]
Implement ZCL Level Control cluster

Change-Id: Id7c272f21b1ab351bb1d7cdd66cbe491ffc21081
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoImplement ZCL Identify Cluster
saerome kim [Fri, 3 Feb 2017 06:09:18 +0000 (15:09 +0900)]
Implement ZCL Identify Cluster

Change-Id: I7bba239e0f92b4dea1ff2e1b86041dcd3df8a213
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoImplement ZCL IAS Zone Cluster
saerome.kim [Fri, 3 Feb 2017 02:22:11 +0000 (11:22 +0900)]
Implement ZCL IAS Zone Cluster

Change-Id: I50e3943f1ed0c2df97170aeeb73cd395cf13e3a7
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
7 years agoImplement ZCL Group cluster
saerome kim [Thu, 2 Feb 2017 13:20:18 +0000 (22:20 +0900)]
Implement ZCL Group cluster

Change-Id: Ibc5b662e3e406af602789ebb8c8c40034bcea71b
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoImplement ZCL Color Control Cluster
saerome kim [Wed, 1 Feb 2017 10:55:14 +0000 (19:55 +0900)]
Implement ZCL Color Control Cluster

Change-Id: I220faf5a1cb9e644e5f1b6dc34a3e5064743a670
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoAdd missing memory deallocation
Jiwan Kim [Wed, 1 Feb 2017 23:45:22 +0000 (08:45 +0900)]
Add missing memory deallocation

- ZigbeeServiceInterfaceRespCbData_t was not deallocated in some case.
- Add g_free() for above cases.

Change-Id: I09b8433251b0dad88c7e9866eb03da98ec8bf13c
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoImplement ZCL OnOff Cluster
Jiwan Kim [Wed, 1 Feb 2017 09:18:30 +0000 (18:18 +0900)]
Implement ZCL OnOff Cluster

Change-Id: Ib7c0bc4de5b45527435294a6ab1144fab3672eb1
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoImplement ZCL Basic Cluster
saerome kim [Wed, 1 Feb 2017 04:51:12 +0000 (13:51 +0900)]
Implement ZCL Basic Cluster

Problem : ZCL Basic cluster is not implemented
Cause : ZCL Basic cluster is not implemented
Solution : Implemented ZCL Basic cluster in daemon

Change-Id: I041c45b76c58531f78450e58f7f3bd319f4a891b
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoImplement ZCL Alarm Cluster
saerome kim [Tue, 31 Jan 2017 23:49:46 +0000 (08:49 +0900)]
Implement ZCL Alarm Cluster

Problem : ZCL Alarm cluster is not implemented
Cause : ZCL Alarm cluster is not implemented
Solution : Implemented ZCL Alarm cluster in daemon

Change-Id: I5d2575d3abdd56d9937bb7c0acdfc1e84847a0db
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoFix GVariant match on service method
Jiwan Kim [Wed, 1 Feb 2017 04:44:59 +0000 (13:44 +0900)]
Fix GVariant match on service method

- Fix unchanged 'ay' into 'a(y)'
- Fix bugs on getting eui64
- Implementation for some notifications
- Fix bug on request creation logic

Change-Id: I5399dd91d47d3449bef22f37146305cf7ed0ef54
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoImplementation for service methods
Jiwan Kim [Tue, 31 Jan 2017 10:56:18 +0000 (19:56 +0900)]
Implementation for service methods

Change-Id: Ib2989da2d6e6264c7cb8413d0f02c788b5a37d4e
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix handling GVariant byte array
Jiwan Kim [Thu, 26 Jan 2017 06:52:01 +0000 (15:52 +0900)]
Fix handling GVariant byte array

- GDbus XML codegen replaces 'ay' variant
  (written XML introspection file)
  into '^ay' variant.
- If there is '0x0' inside of byte array,
  array would be broken. (it acts as a null terminator)

Change-Id: Iedbbd014ce87d4286a5f3221a0156e8cbf696025
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix gvariant string
Jiwan Kim [Wed, 25 Jan 2017 09:02:13 +0000 (18:02 +0900)]
Fix gvariant string

- After changing with XML introspection,
  regarding 'ay' variable makes some unexpected error.
- Change gvariant string and logic to get variable properly.
- Another variable will be updated.

Change-Id: Iaf96ef377fbbfa144129dd3f1ef4b9f746f6de1b
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoRestore GDBus API from async to sync.
saerome.kim [Mon, 23 Jan 2017 12:10:15 +0000 (21:10 +0900)]
Restore GDBus API from async to sync.
 - add result parameters to let app know the result of its calling

Change-Id: I2768c25620db74fae8d45174e3e267fcd68e3bd3
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoAdd logic to handle notification and response
Jiwan Kim [Wed, 18 Jan 2017 12:53:22 +0000 (21:53 +0900)]
Add logic to handle notification and response

- Change GDBus most of sync API to async API
- Added Service notification.

Change-Id: I0fe5be4c62a348c1c8a21e40d866272e503fb5f6
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoChange GDBus methods from sync to async
saerome kim [Sun, 22 Jan 2017 23:46:56 +0000 (08:46 +0900)]
Change GDBus methods from sync to async

Change-Id: I16ab3b04a6761eaace6878ed7b4133e5d9da48c9
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoFix crash on dbus method
Jiwan Kim [Tue, 17 Jan 2017 08:34:01 +0000 (17:34 +0900)]
Fix crash on dbus method

- zigbee_on_name_acquired() overwrites 'service_interface->service' variable
  and causes crash on method call.

Change-Id: I3a448f861f482006ad4eee3af3c4f51f52484e6f
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix a bug
saerome.kim [Tue, 17 Jan 2017 06:45:57 +0000 (15:45 +0900)]
Fix a bug
 - change parameter name at null check routine

Change-Id: I8f76db030c0969d0a5f1ef4519f9f0603db9353f
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
7 years agoAdd notification handling framework
Suresh Kumar N [Mon, 16 Jan 2017 13:39:41 +0000 (19:09 +0530)]
Add notification handling framework

Change-Id: I348e88ae18b423b259aff0db70bffa48b0f49125
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
7 years agoFix some missing function flow
Jiwan Kim [Fri, 13 Jan 2017 02:22:38 +0000 (11:22 +0900)]
Fix some missing function flow

 - There is some missing functions when dbus method called.

Change-Id: Ia650967c13febb7ee6e383479c398c810fb9cb3d
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix bugs
saerome.kim [Fri, 13 Jan 2017 02:15:24 +0000 (11:15 +0900)]
Fix bugs
 - tag name is wrong
 - remove useless null check routine

Change-Id: I518a88cf51e67fce18c2e3b570a584008614b6ca
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
7 years agoRename type definiton file to following Zigbee specification
saerome kim [Wed, 11 Jan 2017 08:57:34 +0000 (17:57 +0900)]
Rename type definiton file to following Zigbee specification

- Rename all related structures and enums.

Change-Id: Ibd5cb5ca465abf0ab6254765a9d41b72fe108de2
Signed-off-by: saerome kim <saerome.kim@samsung.com>
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoChagne DBus object name following Zigbee Specification
saerome.kim [Tue, 10 Jan 2017 12:52:44 +0000 (21:52 +0900)]
Chagne DBus object name following Zigbee Specification

Change-Id: I41482741b20572c483f13516bbe3ba7f3fb620b2
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
7 years agoFix build error on plugin build
saerome kim [Wed, 11 Jan 2017 06:37:55 +0000 (15:37 +0900)]
Fix build error on plugin build

- If plugin defines TIZEN_DEBUG, it cause build error (Redefinition).
  Add ifndef to avoid redefinition.

Change-Id: Iaf696f91c2ec6f821cb4b1f0fdcba120161641fa
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoUpdate service file
Suresh Kumar N [Mon, 9 Jan 2017 10:55:53 +0000 (16:25 +0530)]
Update service file

Change-Id: I053c72f59c0ed75a379dabccb65f0f8d5381c308
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
7 years agoAdd driver API to fetch request data
Suresh Kumar N [Fri, 6 Jan 2017 16:23:29 +0000 (21:53 +0530)]
Add driver API to fetch request data
 - Request ID logic abstracted from external world
 - Moved zblib_request.h to internal headers folder

Change-Id: Iaa522dc1144beb5ac2a9fa499b92ceeb22164f3d
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
7 years agoAdding service interface layer logic for request processing
Suresh Kumar N [Fri, 6 Jan 2017 13:23:05 +0000 (18:53 +0530)]
Adding service interface layer logic for request processing

Modules completed:
 - zcl_color
 - zcl_group
 - zcl_poll_control
 - zcl_scene
 - zclglobal_control
 - zclias_control
 - zclidentify_control
 - zdo_bind
 - zdodev_control

Change-Id: Ibe79794cb323d6397c1cd1de0ece51ebba583730
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoAdding service interface layer logic for request processing
Suresh Kumar N [Thu, 29 Dec 2016 16:11:27 +0000 (21:41 +0530)]
Adding service interface layer logic for request processing

Modules completed:
 - alarm
 - custom
 - door_lock
 - fan_control
 - level_control
 - mfglib_control
 - on_off
 - service
 - thermostat
 - zclbasic_control

Change-Id: I3840183d00bfb65278fabc189c1cff512a07b3f6
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
7 years agoImplementing request & response logic
Suresh Kumar N [Thu, 29 Dec 2016 12:10:00 +0000 (17:40 +0530)]
Implementing request & response logic

Change-Id: I5062e291324fc02aa1fb7385f6ca263b9223bf10
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
7 years agoImplement module dispatcher functions
Suresh Kumar N [Wed, 28 Dec 2016 12:46:58 +0000 (18:16 +0530)]
Implement module dispatcher functions

Change-Id: I4138335f9f98a067cd6e90688fad9085c83e0466
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
7 years agoAdded deep copy logic for request data
Suresh Kumar N [Fri, 23 Dec 2016 16:14:54 +0000 (21:44 +0530)]
Added deep copy logic for request data
 - Data copy + data free

Change-Id: Ied89725d195461a9d4104f0cc3163f12c486edab
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
7 years agoRequest ID (skeleton)
Suresh Kumar N [Wed, 21 Dec 2016 15:51:18 +0000 (21:21 +0530)]
Request ID (skeleton)

Change-Id: I3154b2f955e09dee7368c5b5c94de3fc79e4daaa
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
7 years agoAdd module APIs in zigbee-lib
Suresh Kumar N [Tue, 20 Dec 2016 17:52:24 +0000 (23:22 +0530)]
Add module APIs in zigbee-lib

Change-Id: Id59da23fbc1f5a9ea4d5db1dcb789c0c1c6bfd91
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
7 years agoBase patch (skeleton code)
Suresh Kumar N [Wed, 14 Dec 2016 15:30:33 +0000 (21:00 +0530)]
Base patch (skeleton code)

Change-Id: I7bbe8642a4bc51df851f4f6e8364a08ac9ea3d39
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
7 years agoInitial empty repository master
Tizen Infrastructure [Thu, 13 Apr 2017 10:51:35 +0000 (03:51 -0700)]
Initial empty repository