Skip to main content

LoRaWAN Open Source Firmware

Preparation

Hardware Preparation

  • SenseCAP T1000-E x 1
  • USB Cable x 1
  • Computer x 1

Software Preparation

Before you can start developing,the following software tools are required.

SEGGER Embedded Studio (SES)

SES is an all-in-one solution for managing, building, testing and deploying embedded applications. This means smooth, efficient development operations thanks to its wide range of features. The powerful project manager enables the management of projects large and small. Version control features enable automatic application deployment.

Download the corresponding installation package according to your operating system.

SEGGER Embedded Studio (SES)-Download
tip

It's recommended to use 5.68 version.

pir

nRF5 SDK

The nRF5 SDK provides a rich developing environment for nRF5 Series devices by including a broad selection of drivers, libraries, examples for peripherals, SoftDevices, and proprietary radio protocols.

nRF5 SDK-Download

pir

Seeed T1000-E Example Package

Seeed provides an example project for developers to get started more quickly. This example includes LoRaWAN communication, positioning information acquisition, onboard sensor data acquisition, etc.

Seeed Example-Download

Add Seeed Example file to nRF5 SDK

Copy the Seeed T1000-E Example file to the following path of nRF5 SDK: .../nRF5_SDK_17.1.0_ddde560/examples/ble_peripheral/

pir

Check the Bootloader info

Before start, please check the bootloader info first.

  • Step 1: Enter DFU mode

Connect the USB cable to your PC, press and hold the device button, then connect the charging cable, there should be a driver named T1000-E display.

pir

  • Step 2: Check the INFO_UF2.TXT

    The correct bootloader information is shown in the figure:

    pir

Run LoRaWAN Example Project

Import Example Project

Here we take 08_ses_lorawan_gnss project as an example. Open SES and open the example project.

pir

Modify the LoRaWAN Params

Define the REGION/DEVICE_EUI/JOIN_EUI/APP_KEY in lorawan_key_config.h.

pir

Build the modified project

Select the required project in the Project Explorer.
Choose Build > Build or press F7.

pir

Convert to UF2 file

After the build is successful, there will be a .hex file in the output folder, we have included a Python script uf2conv.py in Firmware folder to convert the hex file to uf2 file.

Navigate to the file path and run the script:

python uf2conv.py filename.hex -c -f 0xADA52840 -o filename.uf2

pir

Flash the Application Firmware

  • Step 1: Enter DFU mode

Connect the USB cable to your PC, press and hold the device button, then connect the charging cable, there should be a driver named T1000-E display.

pir

  • Step 2: Flash LoRaWAN Application Firmware

Copy UF2 file to the DFU drive. Firmware should be flashed after the file is downloaded and the device reboots.

Connect to a LNS

In this section, we will connect the device to the LNS (here we take TTN as an example) to view the data, and check the location via TTN Mapper.

To begin, register for an account with The Things Industries or The Things Network.

Step 1: Create an application

Navigate to Applications page, click "+Create application".

pir

Enter an Application ID, click Create Application to save your changes.

pir

Step 2: Register the Device

Click "Register end device".

pir

Set the following parameters:

Frequency Plan: Select the appropriate Frequency plan for the target region

LoRaWAN version:LoRaWAN Specification 1.0.4

Regional Parameters version: PR002 Regional Parameters V1.0.3

pir

tip

JoinEUI/DevEUI/APPEUI: Which you defined in the 'lorawan_key_config.h' file in the previous setting.

pir

pir

Check Live Data

pir

Restore the Factory Firmware

  • Use the factory firmware back, flash the t1000_e_dev_kit_11_lorawan_tracker.uf2 firmware.
  • Use the SenseCAP cloud, need to import the SenseCAP keys by scanning the QR code on the device label.
Loading Comments...