commit | 8df6c863fead54bb5d25e77ee785827b1199ef7c | [log] [tgz] |
---|---|---|
author | Abhijit A. Mahajani <abhijit.mahajani@imgtec.com> | Mon May 16 14:32:55 2016 +0530 |
committer | Abhijit A. Mahajani <abhijit.mahajani@imgtec.com> | Mon May 16 14:32:55 2016 +0530 |
tree | 273759cd9f509323f56a175952d807513a28c32f | |
parent | 0db9a830e158292d6e339b4f705cd8d45a6e9a11 [diff] | |
parent | 09d08a4d17233be0baae3574d139a12fc35b80c2 [diff] |
Merge pull request #25 from mayank-sirotiya-imgtec/clean_readme clean README.md
Device Manager application is used to provision the gateway device and constrained devices with access details to register with the FlowCloud. It runs on the gateway device and uses the Awalwm2m sdk to communicate with the awalwm2m server and client running on the same. Currently it can be used to :
Revision | Changes from previous revision |
---|---|
0.9.0 | External Beta Trial Release |
Prior to running device manager, make sure that:
NOTE: Please do "ps" on console to see "specific" process is running or not.
root@OpenWrt:/# ubus -t 60 call device_manager provision_gateway_device '{"device_name":"MyCi40","device_type":"FlowGateway","licensee_id":7,"fcap":"XXXXXXXXXX", "licensee_secret":"XXXXXXXXXXXXXX"}' { "provision_status": 0 }
Status 0 : The device was provisioned successfully. Status 1 : Provisoning failed Status 2 : The device was already provisioned.
root@OpenWrt:/# ubus call device_manager is_gateway_device_provisioned { "provision_status": false }
root@OpenWrt:/# ubus call device_manager get_client_list { "clients": [ { "clientId": "LedDevice", "is_device_provisioned": false } ] }
root@OpenWrt:/# ubus -t 60 call device_manager provision_constrained_device '{"fcap":"XXXXXXXXXX", "client_id":"LedDevice", "licensee_id": 7, "device_type" : "FlowCreatorLED", "parent_id": "08 5A 24 DE A8 C2 0A 4B AB 24 4C F6 ED 5D 5F 62 "}' { "status": 0 }
NOTE: The parent id should be the same as the device id of the gateway device. It can be read from /etc/lwm2m/flow_access.cfg
root@OpenWrt:/# ubus call device_manager is_constrained_device_provisioned '{"client_id":"LedDevice"}' { "provision_status": false }
The logs of device manager application can be found at /var/log/device_manager_ubusd
Device Manager documentation is available as a Doxygen presentation which is generated via the following process.
Install Doxygen : sudo apt-get install doxygen
Generate the documentation:
$ device-manager: mkdir build $ device-manager/build: cd build $ device-manager/build: cmake ../docs $ device-manager/build: make docs
The output can be found in the build/html directory and viewed by opening index.html with your web browser.