Pdmc

From ESS-WIKI
Revision as of 09:10, 25 April 2019 by Will.chen (talk | contribs)
Jump to: navigation, search

ARM Pelion

Pelion Device Management Client Example

This example is demonstrate how to connect to Pelion Device Management. Please follow the below steps to give it a try.

Step01: Prepare an Mbed account
Before a device connected to Pelion Device Management, the user need an Mbed account. please refer to the below link to sign up


Step02: Create developer certificate.
Please click "link to create certificate" and follow the below steps to create a new one.
  • Click the "New certificate"
Wise1570 pdmc 07.png


  • Click the "Create a developer certificate" in pop-up window
Wise1570 pdmc 08.png


  • Give a name of your certificate
Wise1570 pdmc 09.png


  • Click the "Download Developer C file" to download the certificate
Wise1570 pdmc 10.png


  • Replace the file "mbed_cloud_dev_credentials.c" to your source tree before the process of build the hex file in Step03


Step03: Get source code and compile it by mbed CLI.
Please click "Link to source" and review the file "README.md" to know how to deployment and compilation with this example. The output hex file will be "source_dir/BUILD/WISE_1570/GCC_ARM/WISE-1570-Pelion-Device.hex"
WISE-1570-FirstExample 01.png


Step04: Flash programming by WISE-ED22
Check device connected from WISE-ED22 to PC using micro-USB cable and use drag-and-drop programming with your binary.
WISE-1570-FirstExample 02.png


Step05: Access sensor data in Pelion Device Management Portal"
Wise1570 pdmc 02.png


  • Click the device ID and select the "RESOURCE" tab to view the device's exposed LwM2M resources.
Wise1570 pdmc 03.png


  • Scroll down to locate the resource temperature or humidity.
Wise1570 pdmc 04.png


  • Click "temperature - Sensor Value" or "humidity - Sensor Value" to open the graph and observe the sensor's data changed.
Wise1570 pdmc 05.png



OTA with PDMC

The “Over the Air” (OTA) is method for software update. For PDMC, we use the manifest tool to demonstrate how it works. Please follow the below steps to give it a try.

Step01: Install manifest tool
The manifest tool is compatible both with Python 2.7.11 and later and with Python 3.5.1 and later.
  • Install from PyPi with pip
$ pip install manifest-tool
  • Install from GitHub over HTTPS.
$ pip install git+https://github.com/ARMmbed/manifest-tool.git