Difference between revisions of "Pdmc"
From ESS-WIKI
Line 19: | Line 19: | ||
::*Click the "New certificate" | ::*Click the "New certificate" | ||
+ | [[File:Wise1570 pdmc 07.png|center|900px|Wise1570 pdmc 07.png]] | ||
− | |||
::*Click the "Create a developer certificate" in pop-up window | ::*Click the "Create a developer certificate" in pop-up window | ||
+ | [[File:Wise1570 pdmc 08.png|center|400px|Wise1570 pdmc 08.png]] | ||
− | |||
::*Give a name of your certificate | ::*Give a name of your certificate | ||
+ | [[File:Wise1570 pdmc 09.png|center|900px|Wise1570 pdmc 09.png]] | ||
− | |||
::*Click the "Download Developer C file" to download the certificate | ::*Click the "Download Developer C file" to download the certificate | ||
+ | [[File:Wise1570 pdmc 10.png|center|900px|Wise1570 pdmc 10.png]] | ||
− | |||
− | ::*Replace the file "mbed_cloud_dev_credentials.c" to your source tree before the process of build the | + | ::*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.<br/> | :'''Step03:''' Get source code and compile it by mbed CLI.<br/> | ||
− | :Please click [https://github.com/ADVANTECH-Corp/WISE-1570-Rf-Bridge "Link to source"] and review the file "README.md" to know how to deployment and compilation with this example. The output | + | :Please click [https://github.com/ADVANTECH-Corp/WISE-1570-Rf-Bridge "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"<br/> |
− | |||
[[File:WISE-1570-FirstExample 01.png|center|500px|WISE-1570-FirstExample 01.png]] | [[File:WISE-1570-FirstExample 01.png|center|500px|WISE-1570-FirstExample 01.png]] | ||
Line 55: | Line 54: | ||
:'''Step04:''' Flash programming by WISE-ED22<br/> | :'''Step04:''' Flash programming by WISE-ED22<br/> | ||
:Check device connected from WISE-ED22 to PC using micro-USB cable and use drag-and-drop programming with your binary.<br/> | :Check device connected from WISE-ED22 to PC using micro-USB cable and use drag-and-drop programming with your binary.<br/> | ||
− | |||
[[File:WISE-1570-FirstExample 02.png|center|700px|WISE-1570-FirstExample 02.png]] | [[File:WISE-1570-FirstExample 02.png|center|700px|WISE-1570-FirstExample 02.png]] |
Revision as of 11:24, 12 April 2019
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
- An Mbed account - "sign up if you don't have one."
- Access to Pelion Device Management - "request access here"
- Step02: Create developer certificate.
- Please click "link to create certificate" and follow the below steps to create a new one.
- Click the "New certificate"
- Click the "Create a developer certificate" in pop-up window
- Give a name of your certificate
- Click the "Download Developer C file" to download the certificate
- 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"
- 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.
- Step05: Access sensor data in Pelion Device Management Portal"
- Open browser and go to "Device Management Portal's Device Directory page.". The user will see the list of devices.
- Click the device ID and select the "RESOURCE" tab to view the device's exposed LwM2M resources.
- Scroll down to locate the resource temperature or humidity.
- Click "temperature - Sensor Value" or "humidity - Sensor Value" to open the graph and observe the sensor's data changed.