Integrate your B-L475E-IOT01A Discovery kit board.
- The B-L475E-IOT01A board with a USB cable.
- Installed minicom (for Linux) or RealTerm or PuTTy (for Windows) or other serial communication program.
- Installed ST-Link or OpenOCD debugger.
- A user with access to the {{ coiote_long_name }}.
To get the latest binary file and flash it to the board:
- Go to Anjay-zephyr-client.
- Download the
demo_B-L475E-IOT01A1_merged.binfile. - To flash the board, open your File manager and drag the downloaded
.binfile to your DIS_L4IOT external device. - You will see a blinking diode on your board. The diode will stop blinking as soon as the flashing is finished.
!!! Note This step is optional. If you've gone through the Use an already built binary step, you can jump to Connect to the LwM2M Server.
To get the Zephyr SDK and dependencies follow the first 4 steps of the instruction provided by the Zephyr Project.
Enter the command line interface on your machine, then paste and run the following command:
git clone https://github.com/AVSystem/Anjay-zephyr-client
-
Connect the B-L475E-IOT01A board to a USB port of your machine.
-
Set West manifest path to
Anjay-zephyr-client/demo, and manifest file towest.ymland dowest update:west config manifest.path Anjay-zephyr-client/demo west config manifest.file west.yml west update -
Compile the project for B-L475E-IOT01A using
west build -b disco_l475_iot1in the demo directory. -
Flash the board using
west flash.
To connect to {{ coiote_long_name }}, please register at [{{ coiote_site_link }}]({{ coiote_site_link }}).
To connect the board:
- Log in to {{ coiote_short_name }} 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.
3. 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 (Pre-Shared Key) mode:
- In the Key identity field, type the same name as in the Endpoint namefield. - In the Key field, type the shared secret used in the device-server authentication. 4. Click the Add device button and Confirm in the confirmation pop-up. 5. In the Connect your device step, follow the next section to run the client and connect it to the server.
-
With the board still connected to a serial port interface, open your serial communication program.
-
Use the
anjaycommand to list possible options:uart:~$ anjay anjay - Anjay commands Subcommands: start :Save config and start Anjay stop :Stop Anjay config :Configure Anjay params!!! tip To show available subcommands, use the Tab key.
-
Check your default credentials by following the instructions in the program:
{:style="float: left;margin-right: 1177px; margin-top: 7px; margin-bottom: 17px;"}!!! note Use the
anjay stopcommand to stop LwM2M Client and change credentials.If your default credentials are different from device credentials provided in {{ coiote_short_name }}, change them using the
anjay config set <possible_option> <value>command.
{:style="float: left;margin-right: 1177px;margin-top: 7px; margin-bottom: 17px;"}
-
Use the
anjay startcommand to run the Client. -
Go to {{ coiote_short_name }} to check if your device is connected. Click Next, then Go to Summary, then Finish. You will see your Device Center view:
!!! tip LwM2M Server URI, endpoint name and other information can be found in the Configuration tab.
