Generic Pelion Device Management example for various Advantech modules.

This example is known to work great on the following platforms:

Example Functionality

This example showcases the following device functionality:

  • On timer button increment, simulate Pelion LWM2M button resource change

Use this example with Mbed CLI

1. Import the application into your desktop:

mbed import https://os.mbed.com/teams/Advantech/code/pelion-example-common
cd pelion-example-common

2. Download your developer certificate from pelion portal

3. Compile the program

mbed compile -t <toolchain> -m <TARGET_BOARD>

(supported toolchains : GCC_ARM / ARM / IAR)

4. Copy the binary file pelion-example-common.bin to your mbed device.

Committer:
chuanga
Date:
Tue Mar 12 13:48:39 2019 +0800
Revision:
0:43ff9e3bc244
copying sources from github repository

Who changed what in which revision?

UserRevisionLine numberNew contents of line
chuanga 0:43ff9e3bc244 1 # ISM43362 WiFi driver for mbed-os
chuanga 0:43ff9e3bc244 2
chuanga 0:43ff9e3bc244 3 The mbed OS driver for the ISM43362 WiFi module
chuanga 0:43ff9e3bc244 4
chuanga 0:43ff9e3bc244 5 https://www.inventeksys.com/products-page/wifi-modules/ism4336-m3g-l44-e-embedded-serial-to-wifi-module/
chuanga 0:43ff9e3bc244 6
chuanga 0:43ff9e3bc244 7
chuanga 0:43ff9e3bc244 8 ## Currently supported platforms
chuanga 0:43ff9e3bc244 9
chuanga 0:43ff9e3bc244 10 ISM43362 module is soldered on the following platforms from STMicroelectronics
chuanga 0:43ff9e3bc244 11
chuanga 0:43ff9e3bc244 12 * [DISCO_L475VG_IOT01A](https://os.mbed.com/platforms/ST-Discovery-L475E-IOT01A/)
chuanga 0:43ff9e3bc244 13 * [DISCO_F413ZH](https://os.mbed.com/platforms/ST-Discovery-F413H/)
chuanga 0:43ff9e3bc244 14
chuanga 0:43ff9e3bc244 15 ## Configuration
chuanga 0:43ff9e3bc244 16
chuanga 0:43ff9e3bc244 17 Correct pins have already been configured for both supported platforms.
chuanga 0:43ff9e3bc244 18
chuanga 0:43ff9e3bc244 19 Here is configured pins:
chuanga 0:43ff9e3bc244 20
chuanga 0:43ff9e3bc244 21 - MBED_CONF_ISM43362_WIFI_MISO : spi-miso pin for the ism43362 connection
chuanga 0:43ff9e3bc244 22 - MBED_CONF_ISM43362_WIFI_MOSI : spi-mosi pin for the ism43362 connection
chuanga 0:43ff9e3bc244 23 - MBED_CONF_ISM43362_WIFI_SPI_SCLK : spi-clock pin for the ism43362 connection
chuanga 0:43ff9e3bc244 24 - MBED_CONF_ISM43362_WIFI_SPI_NSS : spi-nss pin for the ism43362 connection
chuanga 0:43ff9e3bc244 25 - MBED_CONF_ISM43362_WIFI_RESET : Reset pin for the ism43362 wifi module
chuanga 0:43ff9e3bc244 26 - MBED_CONF_ISM43362_WIFI_DATAREADY : Data Ready pin for the ism43362 wifi module
chuanga 0:43ff9e3bc244 27 - MBED_CONF_ISM43362_WIFI_WAKEUP : Wakeup pin for the ism43362 wifi module
chuanga 0:43ff9e3bc244 28
chuanga 0:43ff9e3bc244 29 ## Debug
chuanga 0:43ff9e3bc244 30
chuanga 0:43ff9e3bc244 31 Some debug print on console can help to debug if necessary.
chuanga 0:43ff9e3bc244 32
chuanga 0:43ff9e3bc244 33 - in ISM43362Interface.cpp file, set ism_interface_debug to 1
chuanga 0:43ff9e3bc244 34 - in ISM43362/ISM43362.cpp file, set ism_debug to 1
chuanga 0:43ff9e3bc244 35 - in ISM43362/ATParser/ATParser.cpp file, there are 3 different level : dbg_on / AT_DATA_PRINT / AT_COMMAND_PRINT
chuanga 0:43ff9e3bc244 36
chuanga 0:43ff9e3bc244 37 Another way to enable these prints is overwrite MBED_CONF_ISM43362_WIFI_DEBUG in your json file:
chuanga 0:43ff9e3bc244 38 "ism43362.wifi-debug": true
chuanga 0:43ff9e3bc244 39
chuanga 0:43ff9e3bc244 40
chuanga 0:43ff9e3bc244 41 ## Firmware version
chuanga 0:43ff9e3bc244 42
chuanga 0:43ff9e3bc244 43 This driver has been tested with C3.5.2.2 and C3.5.2.3.BETA9 firmware version
chuanga 0:43ff9e3bc244 44
chuanga 0:43ff9e3bc244 45 ## wifi module FW update
chuanga 0:43ff9e3bc244 46
chuanga 0:43ff9e3bc244 47 Only Wifi module from DISCO_L475VG_IOT01A can be updated (HW limitation for DISCO_F413ZH).
chuanga 0:43ff9e3bc244 48
chuanga 0:43ff9e3bc244 49 For more information about the wifi FW version, refer to the detailed procedure in
chuanga 0:43ff9e3bc244 50 http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software-expansion/x-cube-azure.html