Configure the Adeunis RF LoraWAN Demonstrator

When testing or experimenting with LoRa, a test device that can send/receive LoRa packets on demand is a real value It allows you to test the network functionality and coverage. The Adeunis RF LoRaWAN Demonstrator is such test device. It can send and receive LoRa packets, has a built-in accelerometer and GPS and rechargeable battery. THis post explains how to configure the LoRaWAN demonstrator and add it to a network server.

When using a LoRa test-device, the parameters need to be set manually before the device can send data. How to set these parameters completely depends on the type of chip that is used in the device. Most of the times this information can be found in the documentation but I found it often difficult to translate the raw info to hands-on usable information so I decided to figure everything out and write a post about it.

After configuring the necessary parameters in the device, they need to match with the device added to the network server in your LoRa network before it will accept data sent by this device. For this post, I will use Actility TPW (ThingPark Wireless) Device Manager

About the Adeunis RF LoraWAN Demonstrator

 

Equipment list

Before you are able to configure the Adeunis RF LoraWAN Demonstrator you need the following equipment:

  • Adeunis RF LoraWAN Demonstrator:
  • USB cable
  • Terminal emulator to send the commands to the test device
  • LoRa gateway in the range of the Adeunis RF LoraWAN Demonstrator
  • Network server (Actility TPW)

Network Diagram

Connection to the Adeunis RF LoraWAN Demonstrator

  1. Connect the module to a PC. The device will create a new serial device (COMx on Windows and /dev/ttyACMx on Linux)
  2. Open a terminal session to the serial device/port with the following parameters: bitrate: 115200, 8 bits, no parity, 1 stop bit, no flow control.
    Commands need to be terminated with <CR><LF> and the device does not echo back send commands by default.
    After connecting to the device, and turning it on, you should instantly receive information regarding the test packets sent out.
    For example:
  3. After you have ensured that you can communicate with the device, you can start the configuration by entering the configuration mode. This can be done by entering the following key sequence: \F\F\F\F+++ The device will respond with CM to confirm that you have entered Configuration Mode:
  4. After configuring the device as explained below, you can leave configuration mode by sending ATO. This will restart the test cycle and sending LoRa packets:

Configure the device for ABP

  1. Enter Configuration Mode:
  2. To set the NwkSKey you need to set 4 variables in a row. The O is the response of the device to confirm it has accepted the value set:
    For example, to set a NwkSKey to 12345678123456781234567812345678:
  3. To set the AppSKey you need to set 4 variables in a row. The O is the response of the device to confirm it has accepted the value set:
    For example, to set a AppSKey to 12345678123456781234567812345678:
  4. Set the DevAddr:
  5. Set the device to use ABP (0=ABP, 1=OTAA)
  6. Save the settings in the device:
  7. Leave configuration mode:

Configure the device for OTAA

  1. Enter Configuration Mode:
  2. To set the AppKey, you need to set 4 variables in a row. The O is the response of the device to confirm it has accepted the value set.
    For example to set the AppKey to 12345678123456781234567812345678
  3. To set the AppEUI, you need to set 2 variables in a row. The O is the response of the device to confirm it has accepted the value set.
    For example to set the AppEUI to: FEDCBA9876543210
  4. Set the device to use OTAA (0=ABP, 1=OTAA)
  5. Save the settings in the device:
  6. Leave configuration mode:

 

Add the device to the Actility TPW Device Manager for ABP

  1. Log in to the TPW Device Manager
  2. In the “Add Devices” section, click “Create”:
  3. Fill in the required information as configured the device above for ABP:
  4. Click “Create”

Add the device to the Actility TPW Device Manager for OTAA

  1. Log in to the TPW Device Manager
  2. In the “Add Devices” section, click “Create”:
  3. Fill in the required information as configured the device above for OTAA:
  4. Click “Create”

Send Data

The device is immediately joining the network and start to send data, depending on what was configured as explained above.

You can track what the device is sending and receiving from the serial connection.

For example:

Troubleshoot

Check if the base station receives the LoRa data over radio from the RN2483.

This information should be available in the TRACE.log from the Actility LRR running on a base station which is in the range of the RN2483.

Example of received uplink and downlink data:

Once you see that the gateway received the packet and forwarded it to the LRC, we can further troubleshoot using the Wireless logger:

Incoming data seen in the wLogger:

MAC data sent back by the LRC to the device in wLogger:

From the Device Manager, you should also see more information:

Documentation

For more information and background on the Adeunis RF LoraWAN Demonstrator:

2 thoughts on “Configure the Adeunis RF LoraWAN Demonstrator

  1. Hi Jens,
    How / where can I obtain the Dev EUI address form the Adeunis RF tester device? in case I choose for the OTAA config.

    Regards,
    Arnold

    • Hi Arnold,

      The DevEUI is hardcoded in the device and is chosen/provided by the manufacturer (Adeunis). Normally, at least with the two test device I got, there should be a sticker on the back of the device that shows the S/N. This is equal to the DevEUI.

Leave a Reply

Your email address will not be published. Required fields are marked *