ESP8266 RFM95 Gateway


(Mojnetwork) #1

Hi,

i am new to Lora. So sorry for stupid question :slight_smile:

I would like to create my first test Lora Gateway.

  1. The Things Console

REGISTER GATEWAY:
a) Here i need Gateway EUI.
So if i understand correctly i will get this Gateway EUI with running a sketch and than i will just read it from serial monitor. I assume this sketch is “Examples/TheThingsNetwork/LoraDeviceInfo”

  1. Hardware

I have wired ESP12e with RFm95 like this:
RFM95 | ESP12
GND | GND
3.3V | 3.3V
MISO | MISO
MOSI | MOSI
SCK | CLK
NSS | CS
DIO0 | GPI05

  1. Arduino IDE Sketch "Examples/TheThingsNetwork/LoraDeviceInfo:

#include <TheThingsNetwork.h>

#define loraSerial Serial1
#define debugSerial Serial

// Replace REPLACE_ME with TTN_FP_EU868 or TTN_FP_US915
#define freqPlan TTN_FP_EU868

TheThingsNetwork ttn(loraSerial, debugSerial, freqPlan);

void setup()
{
loraSerial.begin(57600);
debugSerial.begin(115200);
}

void loop()
{
debugSerial.println(“Device Information”);
debugSerial.println();
ttn.showStatus();
debugSerial.println();
debugSerial.println(“Use the EUI to register the device for OTAA”);
debugSerial.println("-------------------------------------------");
debugSerial.println();

delay(10000);
}

In serial monitor i am getting corrupted characters “⸮l⸮b|⸮⸮⸮⸮r⸮b⸮b⸮⸮nn⸮lnn⸮”


#2

did you search this forum (or google) … there is a lot of info out there but some info could be a bit outdated.

single channel gateway part 1
single channel gateway part 2
single channel gateway part 3


#3