This repository contains LwM2M Client application based on open-source Anjay library and X-Cube-Cellular package which includes cellular modem drivers, Azure RTOS ThreadX as well as mbedtls. This example supports the B-U585I-IOT02A Discovery kit with Quectel BG96 modem (provided with P-L496G-CELL02 devkit)
The project was developed using STM32Cube tools (STM32CubeIDE in particular).
The following LwM2M Objects are supported:
- Security (/0),
- Server (/1),
- Device (/3),
- Firmware Update (/5),
- Temperature (/3303),
- Humidity (/3304),
- Accelerometer (/3313),
- Magnetometer (/3314),
- Barometer (/3315),
git clone --recursive https://github.com/AVSystem/Anjay-stm32-azurertos-client
- Download STM32CubeIDE
- Import the cloned project to your workspace
- To build and run the project please follow the instructions in
Projects/B-U585I-IOT02A/README.md
To connect to Coiote IoT Device Management LwM2M Server, please register at https://eu.iot.avsystem.cloud/. Then have a look at the Configuration menu to configure security credentials.
You must upgrade the firmware of the modem to at least BG96MAR02A08M1G
revision. Older versions may cause an unexpected loss of connection.
Guide showing basic usage of Coiote DM is available on IoT Developer Zone.
To connect with the device through the serial port interface, use serial communication program such as PuTTY or minicom. For example:
minicom -b 115200 -D <device_name>
where the <device_name> is a name of the serial port, e.g. /dev/ttyACM0
.
While connected to a serial port interface, and during bootup, the device shows:
Press any key in 3 seconds to enter config menu...
You can then press any key on your keyboard to enter the configuration menu. After that, you'll see a few configuration options that can be altered and persisted within the non-volatile memory for future bootups.