Skip to content

fredlee12001/Tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

README

The full documentation about mbed-cloud-client-example is available on our documentation site

UNO_91H porting for PDMC.

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.

Pre-Requrirement

  1. The mbed development environment - Mbedcli

  2. Compile tools installed. For example: GCC_ARM

  3. Mbed cloud accounts. account

  4. HW ready. UNO_91H Wifi SOC (Previously RDA5981x)

Fetch code and Config the build parameter

You could change the config by the [mbed_app.json](./mbed_app.json) file in the root folder.
  1. Fetch the code.

    mbed import dmc-china-movtek-smartlock
    cd dmc-china-movtek-smartlock
  2. 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.

  3. 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.

Build the binaries.

  1. By default, we use developer mode, following Link to get your credential file.

  2. Preparing the code for PDMC.

    cp .mbedignorePDMC .mbedignore
  3. Compile the target binary. It will generate MK-PDMC.bin finally.

    mbed compile -t GCC_ARM -m UNO_91H -N MK-PDMC

Provision support.

  1. Preparing the code for FCC.

    cp .mbedignoreFCC .mbedignore
  2. 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
  3. Following the standard provisioning process to do the factory provisioning.

Note::You must turn off developer mode inside PDMC to use with provisioning.

References.

  1. Mbed Cloud Documents.
  2. Mbed OS Documents.

About

Tutorial_test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published