Thingy:91#
Integrate your Nordic Thingy:91 board.
Prerequisites#
- The Thingy:91 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 example#
- Connect the Thingy:91 board to a USB port of your machine.
-
Set West manifest path to
Anjay-zephyr-client/demo
, manifest file towest-nrf.yml
, and dowest update
:west config manifest.path Anjay-zephyr-client/demo west config manifest.file west-nrf.yml west update
-
Compile the project for Thingy:91 using
west build -b thingy91_nrf9160ns
in the demo directory. - Program the board using an external programmer
Step 4: Configuring the Client#
- With the board still connected to a serial port interface, open a serial communication program.
-
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
-
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:
- Log in to Coiote DM and from the left side menu, select Device Inventory.
- In Device Inventory, click Add device.
- Select the Connect your LwM2M device directly via the Management server tile.
- In the Device credentials step:
- In the Device ID enter your board endpoint name, e.g.
test_device
. - 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.
- In the Key identity field, type
- In the Device ID enter your board endpoint name, e.g.
- Click the Add device button and Confirm in the confirmation pop-up.
- In the Connect your device step, wait for the board to connect.
- Click Go to device to see your added device dashboard.
- In the Device credentials step:
Previous
B-L475E-IOT01A
Next
nRF9160
Last update: October 8, 2021