saerome.kim [Thu, 18 Jan 2018 12:01:29 +0000 (21:01 +0900)]
demo: change pin nubmer
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Jihoon Jung [Thu, 18 Jan 2018 09:33:27 +0000 (18:33 +0900)]
Add get my uuid & device method
saerome.kim [Thu, 18 Jan 2018 08:09:36 +0000 (17:09 +0900)]
demo: add menu
1. get my companion-manager's uuid
2. get my owned device list
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Saurav Babu [Thu, 18 Jan 2018 07:22:23 +0000 (12:52 +0530)]
CAPI: Disable comp-manager in companion-deinitialize()
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
saerome.kim [Thu, 18 Jan 2018 06:54:22 +0000 (15:54 +0900)]
comp-manager: change invite/eject scenario
- change 'Invite/Eject' method to 'DeviceInvite/DeviceEject' temporally
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Jihoon Jung [Thu, 18 Jan 2018 06:29:10 +0000 (15:29 +0900)]
Add send data implementation
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
saerome.kim [Thu, 18 Jan 2018 05:24:58 +0000 (14:24 +0900)]
demo: Make 'Invite' and 'Eject' scenario
mot-agent: reduce time during unparing
capi: add 'Invite' and "Eject' method
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Saurav Babu [Thu, 18 Jan 2018 04:47:42 +0000 (10:17 +0530)]
comp-manager: Add disable method to exit companion-manager
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
saerome.kim [Thu, 18 Jan 2018 01:31:55 +0000 (10:31 +0900)]
demo: add device invite/eject menu
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Saurav Babu [Wed, 17 Jan 2018 14:15:29 +0000 (19:45 +0530)]
comp-manager: Update DeviceEject method
This patch updates DeviceEject method to perform below operations:
1. Unpair devices
2. Receive Unpair done
3. Remove MOT at device #2
4. Recieive Remove MOT Done
5. Remove credential at local device $1
6. Receive Credential at local done
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Saurav Babu [Wed, 17 Jan 2018 13:28:11 +0000 (18:58 +0530)]
comp-manager: Update DeviceInvite method to perform Pairwise also
This patch updates DeviceInvite method to perform below operations
1. Perform MOT with Device #1
2. Receive MOT Done
3. Perform MOT with Device #2
4. Receive MOT Done
5. Perform Pairwise between Device #1 and #2
6. Receive Pairwise done
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
saerome.kim [Wed, 17 Jan 2018 13:00:36 +0000 (22:00 +0900)]
demo: add send data feature
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Wed, 17 Jan 2018 12:32:09 +0000 (21:32 +0900)]
demo: fix typo
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Wed, 17 Jan 2018 12:25:43 +0000 (21:25 +0900)]
demo: fix a bug about discovering devices
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Saurav Babu [Wed, 17 Jan 2018 11:32:44 +0000 (17:02 +0530)]
mot-agent: Notify mot-done signal to comp-manager
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Saurav Babu [Wed, 17 Jan 2018 11:15:38 +0000 (16:45 +0530)]
mot-agent: Notify mot enabled devices to comp-manager
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
saerome.kim [Wed, 17 Jan 2018 06:03:43 +0000 (15:03 +0900)]
mot-agent: fixed crash issue that memory corruption
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Wed, 17 Jan 2018 04:18:57 +0000 (13:18 +0900)]
iotivity: fixed crash issue that is caused by freeing invalid address
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Wed, 17 Jan 2018 04:01:44 +0000 (13:01 +0900)]
comp-manager: fixed crash when callback is null
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Wed, 17 Jan 2018 03:58:48 +0000 (12:58 +0900)]
mot-agent: Replace mowned_list with motdev_list, which is used during 'pairwise' operation
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Saurav Babu [Tue, 16 Jan 2018 16:00:33 +0000 (21:30 +0530)]
comp-manager: Added companion_group_join method
This method performs below operations in sequence:
1. Discover MOT enabled devices
2. Perform MOT
3. Discover MOT Owned devices
4. Perform Pairwise
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Saurav Babu [Tue, 16 Jan 2018 12:49:59 +0000 (18:19 +0530)]
comp-manager: Add new dbus method to find and get mowned devices
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
saerome.kim [Tue, 16 Jan 2018 10:37:21 +0000 (19:37 +0900)]
demo: fix build warnings
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Tue, 16 Jan 2018 10:23:56 +0000 (19:23 +0900)]
demo: Implement demo app
- Added group / device 'create/clone/destory' APIs
- Fixed a bug that now showing devices/group list even discovered them
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Tue, 16 Jan 2018 08:46:09 +0000 (17:46 +0900)]
demo: Implement demo application
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Tue, 16 Jan 2018 06:48:09 +0000 (15:48 +0900)]
comp-manager: fixed build warnings
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Tue, 16 Jan 2018 06:08:42 +0000 (15:08 +0900)]
demo: add demo application & fixed build warnings
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Jihoon Jung [Tue, 16 Jan 2018 01:42:46 +0000 (10:42 +0900)]
Add send data method (add one "data" resource for secure channel test)
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
saerome.kim [Tue, 16 Jan 2018 01:38:01 +0000 (10:38 +0900)]
mot-agent: Fixed the issue of multiple MOT at once
Saurav Babu [Mon, 15 Jan 2018 14:11:05 +0000 (19:41 +0530)]
mot-agent: Set permission in pairwise method
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
saerome.kim [Mon, 15 Jan 2018 12:18:14 +0000 (21:18 +0900)]
mot-agent: fix crash if calling 'pairwise' and 'unpair' repeatelly.
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Mon, 15 Jan 2018 09:53:49 +0000 (18:53 +0900)]
mot-agent: remove unused files
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Saurav Babu [Mon, 15 Jan 2018 08:47:14 +0000 (14:17 +0530)]
comp-manager: Added dbus method to pair/unpair resources
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
saerome.kim [Mon, 15 Jan 2018 08:32:09 +0000 (17:32 +0900)]
mot-agent: fix bugs when MOT failsure occurs after MOT & remove MO
Even if we remove MO information at remote device, our local
provisioning tool has CRED info for remote device. So in this case, 2nd
trial of MOT always fails due to remained CRED info. for remote device.
- add 'remove_cred_local' & 'remove_cred_local_done' GDBus signal
- To remove MO information:
1. Call 'remove_mo' <UIID>
2. Call 'remove_cred_local' <UUID>
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Jihoon Jung [Mon, 15 Jan 2018 07:54:13 +0000 (16:54 +0900)]
Add device eject / device invite api in capi layer
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Saurav Babu [Mon, 15 Jan 2018 06:59:34 +0000 (12:29 +0530)]
mot-agent: Use OCUnlinkDevices() instead of OCRemoveDeviceWithUuid() to unpair
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
saerome.kim [Mon, 15 Jan 2018 05:04:24 +0000 (14:04 +0900)]
mot-agent: add OCUnlinkDevices
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Saurav Babu [Fri, 12 Jan 2018 12:32:07 +0000 (18:02 +0530)]
comp-manager: Added GetRemoteDevice DBUS method to get mot enabled device
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Saurav Babu [Fri, 12 Jan 2018 12:07:54 +0000 (17:37 +0530)]
comp-manager: Add DBUS Auto activation
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Saurav Babu [Fri, 12 Jan 2018 11:27:35 +0000 (16:57 +0530)]
comp-manager: Fixed glib warnings
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Saurav Babu [Fri, 12 Jan 2018 10:57:52 +0000 (16:27 +0530)]
comp-manager: Added DeviceFound signal to notify mot devices added
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Nishant Chaprana [Fri, 12 Jan 2018 10:41:12 +0000 (16:11 +0530)]
corrected parameter extraction for disc_mowned_devs_done event
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Fri, 12 Jan 2018 10:30:31 +0000 (16:00 +0530)]
corrected parameter extraction for disc_mot_enb_devs_done event
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Maneesh Jain [Fri, 12 Jan 2018 09:08:59 +0000 (14:38 +0530)]
Handle the case when no more resource available to find
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Jihoon Jung [Fri, 12 Jan 2018 08:28:38 +0000 (17:28 +0900)]
Add demo scenario
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
saerome.kim [Fri, 12 Jan 2018 07:45:13 +0000 (16:45 +0900)]
mot-agent: change from d2d-subowner to mot-agent
- remove d2d-manager directory
- rename dbus name 'net.d2ds' -> 'net.ma'
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Saurav Babu [Fri, 12 Jan 2018 07:21:05 +0000 (12:51 +0530)]
comp-manager: Implement DeviceFind method to find mot enabled devices
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
saerome.kim [Fri, 12 Jan 2018 06:25:50 +0000 (15:25 +0900)]
comp-manager: add unsecure /comp/device resource to SVR DB
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Fri, 12 Jan 2018 05:43:37 +0000 (14:43 +0900)]
comp-manager: change SVR DB of comp-manager to support MOT feature
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Jihoon Jung [Fri, 12 Jan 2018 05:11:27 +0000 (14:11 +0900)]
Change "familynet" term to "companion"
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
saerome.kim [Fri, 12 Jan 2018 04:49:55 +0000 (13:49 +0900)]
d2d-subowner: update SVR DB file
- remove unnecessary items
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Maneesh Jain [Fri, 12 Jan 2018 03:38:17 +0000 (09:08 +0530)]
Add Error Handling in Initialization Function
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
saerome.kim [Fri, 12 Jan 2018 02:44:03 +0000 (11:44 +0900)]
d2d-subowner: fix Selfowning failure
- temporally, set MOM '0' in oic_svr_db_d2ds.dat
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Saurav Babu [Thu, 11 Jan 2018 13:12:56 +0000 (18:42 +0530)]
fn-manager: Notify device eject result
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
saerome.kim [Thu, 11 Jan 2018 12:04:45 +0000 (21:04 +0900)]
d2d-subowner: fix a bug when execute mot and remove_mo twice, then MOT always fails
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Saurav Babu [Thu, 11 Jan 2018 11:43:15 +0000 (17:13 +0530)]
fn-manager: Correctly notify group invite result
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Saurav Babu [Thu, 11 Jan 2018 11:34:16 +0000 (17:04 +0530)]
fn-manager: Register remove_mo_done signal
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Saurav Babu [Thu, 11 Jan 2018 11:32:35 +0000 (17:02 +0530)]
d2d-subowner: Send remove_mo_done signal from _remove_mo_func
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Saurav Babu [Thu, 11 Jan 2018 11:08:35 +0000 (16:38 +0530)]
fn-manager: Add DeviceEject DBUS method to remove mot at device
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Jihoon Jung [Thu, 11 Jan 2018 10:15:09 +0000 (19:15 +0900)]
Change demo program
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Jihoon Jung [Thu, 11 Jan 2018 09:29:19 +0000 (18:29 +0900)]
Add exec program for demo
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Saurav Babu [Thu, 11 Jan 2018 09:22:28 +0000 (14:52 +0530)]
fn-manager: Added DeviceInvite DBUS method
This patch adds DeviceInvite DBUS method which performs mot of the
requested device
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
saerome.kim [Thu, 11 Jan 2018 08:35:07 +0000 (17:35 +0900)]
d2d-subowner: fix wrong signal senging problem
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Thu, 11 Jan 2018 08:09:55 +0000 (17:09 +0900)]
d2d-subowner: implement removing devices at provisioning db when removing MO devices
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Thu, 11 Jan 2018 06:53:33 +0000 (15:53 +0900)]
Iotivity: update iotivity to support removing MO information at SVR DB
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Thu, 11 Jan 2018 06:34:03 +0000 (15:34 +0900)]
d2d-subowner: fix crash issue when timerout callback executed before discover_done_cb
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Jihoon Jung [Thu, 11 Jan 2018 06:08:42 +0000 (15:08 +0900)]
Remove group device resource in fn-manager
- and, add capi & test of get found groups
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
saerome.kim [Thu, 11 Jan 2018 05:57:57 +0000 (14:57 +0900)]
fn-manager: Implement pairwise and unpair interface
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Thu, 11 Jan 2018 04:31:10 +0000 (13:31 +0900)]
Fix a bug that pairwise functionality and make d2d-subowner deviceuuid fixed temporally.
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Saurav Babu [Wed, 10 Jan 2018 13:11:06 +0000 (18:41 +0530)]
d2d-subowner: Fixed crash issue
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
saerome.kim [Wed, 10 Jan 2018 11:49:53 +0000 (20:49 +0900)]
d2d-subowner: fix memory leak and change signal name
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Saurav Babu [Wed, 10 Jan 2018 11:12:29 +0000 (16:42 +0530)]
d2d-subowner: Add dbus methods to request pairwise and unpair device
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Jihoon Jung [Wed, 10 Jan 2018 10:28:35 +0000 (19:28 +0900)]
determine find group is in the own device or remote device using device id
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Jihoon Jung [Wed, 10 Jan 2018 09:58:10 +0000 (18:58 +0900)]
Add timeout & finish cb in find method and remove bind method
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
saerome.kim [Wed, 10 Jan 2018 07:04:55 +0000 (16:04 +0900)]
fn-manager: add prefix at each API
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Saurav Babu [Wed, 10 Jan 2018 05:36:16 +0000 (11:06 +0530)]
d2d-subowner: Add implementation of missing function
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
saerome.kim [Wed, 10 Jan 2018 05:02:22 +0000 (14:02 +0900)]
fn-manager : Implement dbus interface from/to d2d-subowner
- discover MOT enabled devices
- discover my Multiple Owned devices
- do MOT
- remove MO
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Wed, 10 Jan 2018 01:18:13 +0000 (10:18 +0900)]
fn-manager : Enable/Disable MOT agent when fn-manager initialization/deinitialization
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Saurav Babu [Tue, 9 Jan 2018 13:51:01 +0000 (19:21 +0530)]
fn-manager: Add new method to get already found groups
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Saurav Babu [Tue, 9 Jan 2018 13:13:24 +0000 (18:43 +0530)]
fn-manager: Notify new group found using GroupAdded signal
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
saerome.kim [Tue, 9 Jan 2018 12:56:55 +0000 (21:56 +0900)]
Update intial dbus inteterface codes to control MOT agent
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Tue, 9 Jan 2018 11:19:12 +0000 (20:19 +0900)]
Fix memory leak & build warning
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Tue, 9 Jan 2018 10:56:18 +0000 (19:56 +0900)]
Fix problem that undeleted MO at the sub-device
- This issue due to the IoTivitiy policy.
In IoTivity source (IsRequestFromResourceOwner() at policyengine.c)
return false if requester's DELETE method is not match rowner's uuid
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Tue, 9 Jan 2018 07:43:55 +0000 (16:43 +0900)]
Implement d2d-subowner
- remove MO (No Test)
- fix memory leak problem
- fix typo in README.md
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Jihoon Jung [Tue, 9 Jan 2018 05:33:14 +0000 (14:33 +0900)]
Add bind function and some comments
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Saurav Babu [Mon, 8 Jan 2018 13:37:29 +0000 (19:07 +0530)]
fn-manager: Get Resource informations of found resources
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Saurav Babu [Mon, 8 Jan 2018 11:34:13 +0000 (17:04 +0530)]
fn-manager: Add logic to find resources
Once all the resource is found then we'll send dbus signal and on
receiving dbus-signal client can call new dbus method to get
groups/resources information
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Jihoon Jung [Mon, 8 Jan 2018 10:30:20 +0000 (19:30 +0900)]
Add CAPI style and comment
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
saerome.kim [Fri, 5 Jan 2018 10:55:45 +0000 (19:55 +0900)]
Add description how to test d2d-subowner client.
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Fri, 5 Jan 2018 06:31:27 +0000 (15:31 +0900)]
Fix build error
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Fri, 5 Jan 2018 05:19:01 +0000 (14:19 +0900)]
Update install.sh to install rpms related to debug
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Thu, 4 Jan 2018 07:52:16 +0000 (16:52 +0900)]
Apply missing return
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Thu, 4 Jan 2018 07:50:07 +0000 (16:50 +0900)]
Fix deviceid bug
Currently, deviceid is not applied based on Wi-Fi MAC address.
So, we fix this issue.
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Jihoon Jung [Thu, 4 Jan 2018 07:29:48 +0000 (16:29 +0900)]
Add Test Sample and API layer
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
saerome.kim [Wed, 3 Jan 2018 07:38:40 +0000 (16:38 +0900)]
Implement
- get_device_id method
- Add Self-OTM
- make d2d-subowner's device ID baesed on fake MAC
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Wed, 3 Jan 2018 02:10:01 +0000 (11:10 +0900)]
Impelement notifications of requests
- subowner_enabled
- disc_mot_enb_devs_done
- disc_mowned_devs_done
- mot_done
- prov_acl_done
- prov_cred_done
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Fri, 22 Dec 2017 10:28:59 +0000 (19:28 +0900)]
Fix a bug when CRED provisioning
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Thu, 21 Dec 2017 10:35:13 +0000 (19:35 +0900)]
Remove unused code & change calloc to g_malloc0
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
saerome.kim [Thu, 21 Dec 2017 10:27:54 +0000 (19:27 +0900)]
Implement d2d-subowner
- ACL provisioning (Tested)
- CRED provisioning (NOT Tested)
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Jihoon Jung [Tue, 19 Dec 2017 07:49:07 +0000 (16:49 +0900)]
Add gdbus interface (171215ver.)
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>