cstram
Published © LGPL

LoRa-E5 mini Tutorial

This is an easy tutorial on how to connect the LoRa-E5 board on TheThingsNetwork (TTN) without having to write any code.

BeginnerFull instructions provided1,946
LoRa-E5 mini Tutorial

Things used in this project

Hardware components

Seeed Studio LoRa-E5 mini
×1

Software apps and online services

WCHSerialPort

Story

Read more

Code

AT Command code for Seeed LoRa-E5 mini board

AsciiDoc
You have to use it with a Serial Port software like WCHSerialPort
AT+ID
AT+ID=DevAddr,”Device Address“
AT+ID=DevEui,”Join EUI”
AT+ID=AppEui=“Join EUI”
AT+KEY=APPSKEY,”APPSKEY“
AT+KEY=NWKSKEY,”NWKSKEY“

AT+DR=EU868
AT+MODE=“LWABP”
AT+DR=7
AT+CH=NUM,0
AT+MSG=“Hi from Carlo“

Javascript code for TTN

JavaScript
This is the uplink code for thethingsnetwork
function Decoder(bytes, port) {
  // Decode an uplink message from a buffer
  // (array) of bytes to an object of fields.
  var decoded = {};

if (port==8){
 return {
      Text: String.fromCharCode.apply(null, bytes)
  };
  }
  
  return decoded;
}

Credits

cstram

cstram

16 projects • 21 followers
Passionate about IT, Electronics and DIY. Strong believer in Raspberry and Arduino devices. Experience in digital television and security.

Comments