- Low cost
- Works both standalone as well as an Arduino shield
- Easy to start with AT commands as well as extend with open source code for IAR Embedded Workbench for ARM (EWARM) toolchain V7.70.1 + SWD
Before you start, contact KotahiNet for a free network connection. We will send ABP (Activation By Personalisation) details you need to enter into the code. Remember to check there is network coverage in your area.
1. Download and save updated firmware.
2. Download and install STM32 flashing tool. Requires free registration or providing name and email address to STMicroelectronics.
3. Put the board in flashing mode by placing the supplied sleeve so as to bridge the pins 3V3 and BOOT.
4. Connect the board to your computer with a USB cable. It should set up automatically on a COM port.
5. Flash the firmware following instructions on pages 5-7 of the Quick Start Guide.
6. Disconnect board from your computer.
Configure & Send Data
1. Set board to normal mode by placing the supplied sleeve so as to bridge the pins BOOT and GND.
2. Connect the board to your computer with a USB cable again.
3. Use a terminal emulator tool such as Tera Term or PuTTY and connect to the COM port. In Terminal Setup set new-line receive and transmit as CR+LF. Also select local echo. For serial port settings, leave all as default other than setting Baud rate to 115200.
4. Configure the board as below and send data.
IMPORTANT: Change the dev_addr (Device Address), nwks_key (Network Session Key), and apps_key (Application Session Key) in the configuration below to that provided by KotahiNet. Data sent will be visible on a web page. KotahiNet will provide the details about this when providing your ABP details.
Tip: It may be easier to copy and paste the ABP parameters and configuration for channels into the terminal, one line at a time. Typically, pasting is by right mouse button click.
// set channels, data rate, duty cycle, re-transmissions, tx power
// send data- confirmed transmission, port, hex data
// send data- unconfirmed transmission, port, hex data