Skip to content

B-L475E-IOT01A#

Integrate your B-L475E-IOT01A Discovery kit board.

Prerequisites#

  • The B-L475E-IOT01A board with a USB cable.
  • Installed minicom (for Linux) or RealTerm (for Windows) or other serial communication program.
  • A user with access to the Coiote IoT Device Management platform and appropriate permissions.

Step 1: Getting Zephyr and Python dependencies#

To get the Zephyr SDK and dependencies follow the first 4 steps of the instruction provided by the Zephyr Project.

Step 2: Cloning the Anjay zephyr repository#

Enter the command line interface on your machine, then paste and run the following command:

git clone https://github.com/AVSystem/Anjay-zephyr-client

Step 3: Compiling the board#

  1. Connect the B-L475E-IOT01A board to a USB port of your machine.
  2. Set West manifest path to Anjay-zephyr-client/demo, and manifest file to west.yml and do west update:

    west config manifest.path Anjay-zephyr-client/demo
    west config manifest.file west.yml
    west update
    
  3. Compile the project for B-L475E-IOT01A using west build -b disco_l475_iot1 in the demo directory.

  4. Flash the board using west flash.

Step 4: Configuring the Client#

  1. With the board still connected to a serial port interface, open a serial communication program.
  2. Use the anjay command to list possible options:

    uart:~$ anjay
    anjay - Anjay commands
    Subcommands:
    start   :Save config and start Anjay
    stop    :Stop Anjay
    config  :Configure Anjay params
    
  3. Change the default credentials to your custom data by following the instructions presented in the program and save it.

Step 5: Connecting to the LwM2M Server#

To connect to Coiote IoT Device Management LwM2M Server, please register at https://www.avsystem.com/try-anjay/.

To connect the board:

  1. Log in to Coiote DM and from the left side menu, select Device Inventory.
  2. In Device Inventory, click Add device.
  3. Select the Connect your LwM2M device directly via the Management server tile. Add via Mgmt
    1. In the Device credentials step:
      • In the Device ID enter your board endpoint name, e.g. test_device. Device credentials step
      • In the Security mode section, select the PSK mode:
        • In the Key identity field, type test_device
        • In the Key field, type the shared secret used in the device-server authentication.
    2. Click the Add device button and Confirm in the confirmation pop-up.
    3. In the Connect your device step, wait for the board to connect.
    4. Click Go to device to see your added device dashboard. Registered device

Last update: October 8, 2021