The full documentation about mbed-cloud-client-example is available on our documentation site
This document contains the instructions for how to use this repository to make RDA5981 connect to Pelion Device Management platform. It was originally based on the mbed-cloud-client-example repo. While we modified little bit to work with RDA5981 Wifi SOC.
-
The mbed development environment - Mbedcli
-
Compile tools installed. For example: GCC_ARM
-
Mbed cloud accounts. account
-
HW ready. UNO_91H Wifi SOC (Previously RDA5981x)
-
Fetch the code.
mbed import dmc-china-movtek-smartlock cd dmc-china-movtek-smartlock
-
Config the connnectivities.
In the mbed_app.json, there is option for WIFI default config.
"nsapi.default-wifi-ssid" : "\"SSID\"", "nsapi.default-wifi-password" : "\"PASSWORD\""
Modify according to your environment.
-
Config the developer Mode.
pelion device management client support two mode. One for developer usage, another is for production/deployment. By default, it's configured for developer. In the mbed_app.json, Find below option.
"config": { "developer-mode": { "help" : "Enable Developer mode to skip Factory enrollment", "options" : [null, 1], "value" : 1 },
Modify the value accordingly to switch the mode.
-
By default, we use developer mode, following Link to get your credential file.
-
Preparing the code for PDMC.
cp .mbedignorePDMC .mbedignore
-
Compile the target binary. It will generate MK-PDMC.bin finally.
mbed compile -t GCC_ARM -m UNO_91H -N MK-PDMC
-
Preparing the code for FCC.
cp .mbedignoreFCC .mbedignore
-
Compile the binary. It will generate MK-FCC.bin
mbed compile -t GCC_ARM -m UNO_91H --app-config=FCC_UNO91H_1M.json -DFCE_SERIAL_INTERFACE -N MK-FCC
-
Following the standard provisioning process to do the factory provisioning.
Note::You must turn off developer mode inside PDMC to use with provisioning.