matthijskooijman / arduino-lmic

:warning: This library is deprecated, see the README for alternatives.
705 stars 651 forks source link

Kerlink Gateway - EndNode Not connecting #235

Open mzgario opened 4 years ago

mzgario commented 4 years ago

Hi everyone,

I’m new in LoRaWAN technology, I’ve got my hands on a Kerlink Station Gateway that is connected to the Kerlink server (Wanesy managment center), I have access to the server so I can add the end devices. As for the nodes I have an sx1276 connected with an esp32. I’m using the ABP and OTAA examples from the LMIC library, the only modifications we made to it were setting the frequency to US915 and modifying the pinout in order to work with the esp32. I set my own EUI and keys (both created by me). With neither of the examples I’m able to make the connection between the end node and the gateway, am I missing something? We tried inverting the order of the keys with no luck, is there a way to see if we are receiving any kind of connections in the gateway at least to see if the modules are trying to communicate with the gateway?

Any help will be greately appreciated Thanks

Changes made: In Pin mapping in each example const lmic_pinmap lmic_pins ={ .nss=5, .rxtx = LMIC_UNUSED_PINS, .rst = 14, .dio = {2, 13, 12}

In hal.cpp we modify in the SIP.begin due to a suggestion in this forum static void hal_spi_init(){ SPI.begin(18, 19, 23, 5); }

OTAA Serial exit OTAA

ABP Serial Exit ABP

camilo-17 commented 4 years ago

Are you sure that your gateway point to the kerlink server ?