Advertisement

Quick Links

Date:
13-04-2017
Version:
2.0
Title:
Manual Nexus LoRaWAN
Manual Nexus LoRaWAN

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Nexus LoRaWAN and is the answer not in the manual?

Questions and answers

Summary of Contents for IDEETRON Nexus LoRaWAN

  • Page 1 Manual Nexus LoRaWAN Date: 13-04-2017 Version: Title: Manual Nexus LoRaWAN...
  • Page 2: Table Of Contents

    Nexus LoRaWAN 1 Revision history Version Date Changes 16-02-2017 First release 13-04-2017 Added OTAA for TTN 1.1 Contact Ideetron B.V. Dropsstraat 81 3941 JL Doorn Nederland Tel: +31 (0)343 769094 E-mail: info@ideetron.nl 2 Table of contents REVISION HISTORY Contact TABLE OF CONTENTS...
  • Page 3 Nexus LoRaWAN mac set/get drtx mac set/get chrx mac set/get chtx 7.10 mac set/get pwridx 7.11 mac set/get cnf 7.12 mac set/get chop 7.13 mac set/get class 7.14 mac set/get appkey 7.15 mac set/get deveui 7.16 mac set/get appeui EXAMPLES...
  • Page 4: Introduction

    This document describes the commando’s that are implemented in the Nexus_LoRaWAN sketch for the Nexus board from Ideetron. The sketch is designed for test and demonstration purposes. If you want to build an autonomous LoRaWAN mote, without a command structure you can use most of this sketch also.
  • Page 5: Lorawan Introduction

    Nexus LoRaWAN 5 LoRaWAN introduction The LoRaWAN communication takes place in two directions, up (from Nexus to gateway) and down (from gateway to Nexus). This sketch can transmit messages in the up direction and receive messages in the down direction.
  • Page 6: Commands

    Nexus LoRaWAN The message type filed can have several values, in Table 5 the different values for the MAC header are listed. MAC Header value Hex Message type Unconfirmed data down Confirmed data down Table 5: Message types The frame control field consists of different bits, the most important is bit 5 containing the ACK.
  • Page 7: Mac Data [Data]

    Nexus LoRaWAN The command type, parameters and values are separated by a space. 7.1 mac data [data] This command is used to send a LoRaWAN data message containing the data that is included in this command. The maximum number of bytes that a LoRaWAN message can contain is 51 bytes.
  • Page 8: Mac Set/Get Appskey

    Nexus LoRaWAN 7.5 mac set/get appskey This command is used to read or write the application session key. To read the key sent: mac get appskey To write the key sent: mac set appskey [key] [key] is 16 bytes long: 00112233445566778899AABBCCDDEEFF...
  • Page 9: Mac Set/Get Chrx

    Nexus LoRaWAN 7.8 mac set/get chrx This command is used to read or write the receive channel. To read the channel sent: mac get chrx To write the channel sent: mac set chrx [channel] [channel] can have to values shown in Table 8.
  • Page 10: Mac Set/Get Cnf

    Nexus LoRaWAN 7.11 mac set/get cnf With this command you can set the message type of the LoRaWAN message. It can be set to a confirmed or unconfirmed message. This determines if you request an acknowledge from the LoRaWAN service.
  • Page 11: Mac Set/Get Appkey

    Nexus LoRaWAN 7.14 mac set/get appkey This command is used to read or write the application key. To read the key sent: mac get appkey To write the key sent: mac set appkey [key] [key] is 16 bytes long: 00112233445566778899AABBCCDDEEFF...
  • Page 12 Nexus LoRaWAN 1. Sign in or create an account on iot.semtech.com 2. On the left side go to applications 3. Then click the number behind the defaultApp. Figure 2: Selecting default app 4. To add the device you need to know the NwkSKey, AppSKey and DevAddr. For this example we use the default key’s...
  • Page 13 Nexus LoRaWAN 7. Then goto the tab Send. 8. Type the command: “mac get devaddr” in the field 9. Hit the Send ASCII button Figure 4: Sending command 10. Now you have all the information you need 11. Go back to the Semtech site and fill in the information into the correct fields 12.
  • Page 14 Nexus LoRaWAN Figure 6: Send data command 15. Now go back to the semtech site and check if the message has arrived. This may take some time +/- 1 min 16. To see the data you can click “View data from application defaultApp”...
  • Page 15: Over The Air Activation With Semtech (Otaa)

    Nexus LoRaWAN 8.2 Over The Air Activation with Semtech (OTAA) Over the Air Activation means that the following parameters are set in the mote: AppKey DevEUI AppEUI During the activation the mote will receive this session data: DevAddr NwkSkey AppSkey...
  • Page 16 Nexus LoRaWAN Figure 12: Set parameters 7. Send the join command and wait for a reply Figure 12: OTAA response Pagina 16 of 20 14-4-2017...
  • Page 17: Over The Air Activation With The Things Network (Otaa)

    Nexus LoRaWAN 8. Now the mote is joined, try to send some data with the data command 9. Check the received data in semtech 8.3 Over The Air Activation with The Things Network (OTAA) Over the Air Activation means that the following parameters are set in the mote:...
  • Page 18 Nexus LoRaWAN Figure 15: Device form 7. After registering the device, you will see an overview of the device settings. You will see the Device EUI, Application EUI and Application Key. Figure 16: Device overview Pagina 18 of 20 14-4-2017...
  • Page 19 Nexus LoRaWAN 8. Start up realterm and set the parameters. Figure 17: Set parameters Pagina 19 of 20 14-4-2017...
  • Page 20 Nexus LoRaWAN 9. Send the join command and wait for reply. Figure 18: OTAA response Pagina 20 of 20 14-4-2017...

This manual is also suitable for:

319

Table of Contents