platform/core/api/zigbee.git
7 years agoAdd feature / privilege check logic
Jiwan Kim [Thu, 23 Mar 2017 10:18:08 +0000 (19:18 +0900)]
Add feature / privilege check logic

- Feature check : All APIs
- Privilege check : Required APIs
- Doxygen updation for type of return value
- Adjust Feature name string

Change-Id: I34bba8d6169a47771af39cc75474132813655743
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix ACR issue - Add privilege description
Jiwan Kim [Thu, 23 Mar 2017 00:36:05 +0000 (09:36 +0900)]
Fix ACR issue - Add privilege description

- Add privilge information into doxygen
- To support platform privilege,
  some APIs are separated into 'zigbee_internal.h'
- Remove old scripts on spec file

Change-Id: If2d2d50f30f4d8534c3d5d5fed0dd16be5ab978f
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix ACR issue
saerome.kim [Wed, 22 Mar 2017 13:44:37 +0000 (22:44 +0900)]
Fix ACR issue
 - Add feature check routines for feature dependent APIs

Change-Id: I07e84a869f9ce363887bf409b15db06ff512dd8c
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
7 years agoFix ACR issues
saerome.kim [Wed, 22 Mar 2017 12:38:11 +0000 (21:38 +0900)]
Fix ACR issues
 - Change parameters related Global Command from structure to void

Change-Id: I52b3bbf5bdd9d9bdc9ef6dfd3d5729f794a9bcda
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
7 years agoFix ACR issues
Jiwan Kim [Wed, 22 Mar 2017 04:21:54 +0000 (13:21 +0900)]
Fix ACR issues

- @details : Change to use upper case
- @brief : Change to use upper case
- @enum : Change to use upper case
- Fix typos

Change-Id: I7f238f091ff721b8ac7820329de993aead640d31
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix typos & ACR issues
Jiwan Kim [Tue, 21 Mar 2017 08:11:26 +0000 (17:11 +0900)]
Fix typos & ACR issues

- Fix typos on doxygen
- Change doxygen @param[out] -> [in] for callbacks

Change-Id: I7a538dfcd14e87819f9e5ec507120c158a0eaab5
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFixed ACR issues
saerome kim [Mon, 27 Feb 2017 01:01:13 +0000 (10:01 +0900)]
Fixed ACR issues

- Fixed an issue where some enummerations and structures do not have comments
- Added zigbee_doc.h
- Version tags has been changed from 3.0 to 4.0
- Modified to meet Tizen API guideline
- Modified to use '_' in filename
- @brief section is changed to start with verb

Change-Id: I1964b7f40a1172b595c1af06ed94a9461b147e54
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoAdd helper API to display ZDO error string
saerome kim [Fri, 17 Feb 2017 02:02:15 +0000 (11:02 +0900)]
Add helper API to display ZDO error string

Change-Id: I24376c3921d26168b934c2d8fcce389e030b8448
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoAdd helper API to display Zigbee profile id and device id
saerome kim [Thu, 16 Feb 2017 11:39:27 +0000 (20:39 +0900)]
Add helper API to display Zigbee profile id and device id

Change-Id: I43bb205041685ef26667138168535e24f8c1fa67
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoChange bus name with enable/disable method
Jiwan Kim [Thu, 16 Feb 2017 04:19:03 +0000 (13:19 +0900)]
Change bus name with enable/disable method

- Currently, zb_create() registers dbus signal
  but it makes daemon activated.
- Change only 'enable' method can execute daemon.

Change-Id: I23cd597407fc04141ab17b34ce575e041f08a84b
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoChange logic of zbl_disable
Jiwan Kim [Wed, 15 Feb 2017 11:22:38 +0000 (20:22 +0900)]
Change logic of zbl_disable

- Change to zbl_disable only sends 'disable' dbus method.
- Move its dbus deinitialize logic into zbl_dbus_stop()

Change-Id: I0650fc9917c755ea66e57d22942814c5aaa74b15
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoChange zb_enable to async function
Jiwan Kim [Tue, 14 Feb 2017 08:35:46 +0000 (17:35 +0900)]
Change zb_enable to async function

- 'enable' method is used to execute zigbee daemon on demand.
- Its synchronous operation may cause unexpected gvariant crash,
  change this function to act asynchronously.

Change-Id: I0bf03091ed7327d8127f4a6d4aa56ce51cba8d87
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix doxygen warning
saerome.kim [Tue, 14 Feb 2017 06:30:48 +0000 (15:30 +0900)]
Fix doxygen warning
 - warning : argument not found

Change-Id: I8efc8cc03294faef10313b34d0818e23b990cc4f
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
7 years agoFix unexpected issue on get_group_membership
Jiwan Kim [Mon, 13 Feb 2017 07:11:00 +0000 (16:11 +0900)]
Fix unexpected issue on get_group_membership

Change-Id: Ic4dd6dbb9578f0873936e3093a80be31ddc79716
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoUpdate test app
saerome kim [Fri, 10 Feb 2017 07:15:02 +0000 (16:15 +0900)]
Update test app
 - change signal name from 'status_change_rsp' to 'status_change_rpt'
 - change printing cluster name function
 - change printing error code function

Change-Id: I4d1a177b22d01e201c474676a70914fe740e5127
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoChange signal / method name
saerome kim [Fri, 10 Feb 2017 05:33:43 +0000 (14:33 +0900)]
Change signal / method name
 - nwk_disc_req -> mgnt_nwk_disc_req
 - nwk_disc_rsp -> mgmt_nwk_disc_rsp
 - nwk_update_req -> mgmt_nwk_update_req

Change-Id: I4fd5fbb80a2ba697b16074abef2f768240f3d87d
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoFix issues on zb_get_endpoint_list / zb_get_cluster_list
Jiwan Kim [Thu, 9 Feb 2017 08:01:29 +0000 (17:01 +0900)]
Fix issues on zb_get_endpoint_list / zb_get_cluster_list

- Related below patchset, API parameter order and
  size of structure was not matched.
  http://165.213.149.170/gerrit/#/c/151713/

Change-Id: I480ca7de8f66501261d35e3a4cefddc2bc17a119
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix problems related to global commands
saerome.kim [Thu, 9 Feb 2017 06:01:54 +0000 (15:01 +0900)]
Fix problems related to global commands
 - discover_genereated / discover_received
 - read attributes

Change-Id: Id885df5778d567f96f791df91a50238188b6113b
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
7 years agoAdd zb_get_endpoint_list / zb_get_cluster_list APIs
Jiwan Kim [Thu, 9 Feb 2017 05:16:03 +0000 (14:16 +0900)]
Add zb_get_endpoint_list / zb_get_cluster_list APIs

- These functions are intended to get endpoint list
  and cluster list from specific device.

Change-Id: I819bafb43e99d6ceacc25b277c3adf97d373cfbf
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoAdd debug log to verify segmentation fault due to calling g_variant_unref()
saerome kim [Wed, 8 Feb 2017 13:50:38 +0000 (22:50 +0900)]
Add debug log to verify segmentation fault due to calling g_variant_unref()

Change-Id: I060ab143c31ffdea65a8df4f21911ab9839cd79d
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoAdd API to print Zigbee Cluster Library status code
saerome kim [Wed, 8 Feb 2017 13:45:37 +0000 (22:45 +0900)]
Add API to print Zigbee Cluster Library status code

Change-Id: I9e1ff35b91b5f733ef0180d4a1ecb8499ae4b43c
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoFix warnings and erros generated by Tizen coding rule checker
saerome kim [Wed, 8 Feb 2017 10:51:24 +0000 (19:51 +0900)]
Fix warnings and erros generated by Tizen coding rule checker

Change-Id: I4df88dc7dacb16cdfa914915d8b6431fc947c487
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoRemove build warnings
Jiwan Kim [Wed, 8 Feb 2017 07:46:42 +0000 (16:46 +0900)]
Remove build warnings

Change-Id: Ibc5b59b2d54a47ea19484c0cc0343d2338a3d28e
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoImplement IAS-Zone, Basic cluster test-cases
saerome kim [Wed, 8 Feb 2017 06:48:58 +0000 (15:48 +0900)]
Implement IAS-Zone, Basic cluster test-cases

Change-Id: Ia64069dd1282c3ed5bf8c4623e52f53a89842884
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoFix crash with g_variant_unref
Jiwan Kim [Wed, 8 Feb 2017 05:56:00 +0000 (14:56 +0900)]
Fix crash with g_variant_unref

- With 'enable' method, g_dbus_proxy_call_sync() returns GVariant
  and g_variant_get() deconstructs that GVariant instance.
- It causes below error and sometimes crashes.
  [g_variant_unref: assertion 'value != NULL' failed]
- Testing with another method, issue was not found with g_variant_unref()
- Patch newly uploaded due to merge conflict.
  (Previous patch : http://165.213.149.170/gerrit/#/c/151298/)

Change-Id: I4c8b7aadcd96a6e5b86f6136e85a1e7ed48588ae
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix segmentation fault error when DBus errors happen
saerome kim [Wed, 8 Feb 2017 05:27:41 +0000 (14:27 +0900)]
Fix segmentation fault error when DBus errors happen

Change-Id: Iaac27c27dd6f78c8ead6571a75b98b092b6da208
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoAdjust dbus parameter with ZCL Global control
Jiwan Kim [Tue, 7 Feb 2017 11:56:03 +0000 (20:56 +0900)]
Adjust dbus parameter with ZCL Global control

Change-Id: Ic368683ea66a7f0459a6e408bdb8960cc0ad537b
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoChange Dbus method as sync.
saerome kim [Tue, 7 Feb 2017 07:30:23 +0000 (16:30 +0900)]
Change Dbus method as sync.

Change-Id: Idcac0e482bbccc6e1413b0725aedb46226e8043e
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoAdjust dbus parameter with ZDO dev control
Jiwan Kim [Mon, 6 Feb 2017 06:17:03 +0000 (15:17 +0900)]
Adjust dbus parameter with ZDO dev control

Change-Id: Ic8ace2ecaaf987c03a6174c9ccb0022259e170a3
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix custom cluster to meet zigbee-daemon GDbus interface
saerome.kim [Mon, 6 Feb 2017 23:11:04 +0000 (08:11 +0900)]
Fix custom cluster to meet zigbee-daemon GDbus interface

Change-Id: Ic91dfbdb07e72f0638c965b739cbc54eb635cf0d
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
7 years agoChange 'ay' to 'a(y)' to avoid null character problem at ZDO bind manager
saerome kim [Mon, 6 Feb 2017 00:21:26 +0000 (09:21 +0900)]
Change 'ay' to 'a(y)' to avoid null character problem at ZDO bind manager
 - change timeout unit from milli second to second in zbl_dbus_get_timeout()

Change-Id: Ie44722d7e7092eadab16d5bab482ebb531927066
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoChange 'ay' to 'a(y)' to avoid null character problem at ZCL scene clsuter
saerome kim [Sat, 4 Feb 2017 07:15:58 +0000 (16:15 +0900)]
Change 'ay' to 'a(y)' to avoid null character problem at ZCL scene clsuter

Change-Id: I00fbdcfccb8dd620e59b7b98a08f226c5393fdaf
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoChanage method when calling 'query' method as sync.
saerome kim [Fri, 3 Feb 2017 06:12:43 +0000 (15:12 +0900)]
Chanage method when calling 'query' method as sync.

Change-Id: I87f78744910d0b16e49fa740566b9eef9975bb01
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoChange parameters when creating GVariant
saerome kim [Thu, 2 Feb 2017 13:27:53 +0000 (22:27 +0900)]
Change parameters when creating GVariant
- change parameters from 'ay' to 'a(y)'

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

- Fix unchanged 'ay' into 'a(y)'
- Update logic for zb_leave_device on test app

Change-Id: I69828faecd8fcdf4833a0b262df5dea01ad67134
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoChange D-bus object path '/org/tizen/zigbee/control'
saerome kim [Tue, 31 Jan 2017 23:31:47 +0000 (08:31 +0900)]
Change D-bus object path '/org/tizen/zigbee/control'

Problem : zigbee-test2 app. can not receive signals from zigbee-daemon
Cause : signal path not match between app. and daemon
Solution : change D-bus object path name

Change-Id: Idf92c52b34de997013f6a36538c492ecc3e144dd
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoFix for service methods
Jiwan Kim [Tue, 31 Jan 2017 10:55:17 +0000 (19:55 +0900)]
Fix for service methods

Change-Id: Ie246241aa7ffbb71731d8b01d6158125bc164cf0
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix handling GVariant byte array
saerome kim [Tue, 31 Jan 2017 03:43:46 +0000 (12:43 +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: I13eb4e38733eb7ef1c610a11855eef950340b1cb
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 13:35:52 +0000 (22:35 +0900)]
Restore GDBus API from async to sync.
 - add result parameters to let app know the result of its calling

Change-Id: I78f9adbea3b6394a137263796954f06d84a4529d
Signed-off-by: saerome kim <saerome.kim@samsung.com>
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:59:37 +0000 (08:59 +0900)]
Change GDBus methods from sync to async

Change-Id: Ibb1f4ef39a5c9447a8166cb4f5aee149d9947405
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoUpdate DBus interface name
saerome kim [Wed, 11 Jan 2017 08:50:08 +0000 (17:50 +0900)]
Update DBus interface name

Change-Id: I4082b6f4570e46e2c69136709982cfd3d0b7ae87
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoCode sync from local git
Jiwan Kim [Tue, 6 Sep 2016 01:52:06 +0000 (10:52 +0900)]
Code sync from local git

Change-Id: Ib0d0de83ebe7eb62b1b42e5e1373325159015cfc
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoInitial empty repository master
Tizen Infrastructure [Thu, 13 Apr 2017 10:40:13 +0000 (03:40 -0700)]
Initial empty repository