You helped me once to get my first join request & accept with my nodes so here I go again
So I have a Mikrotik gateway and still experience connection issues. I managed to write a backend (PHP) to monitor gateway and node events and it works. But even after successful join I have a feeling that communication between gateway & nodes is unstable.
I tried triggering events from my sensors but nothing seems to reach the gateway. My suspicion is too close distance between gateway and the nodes. It’s about 15 meters - maximum I can reach in my flat.
It takes about 40-50 tries for two of my nodes to join the network. The third one has never joined.
This forum made me aware that being too close or too far (gateway vs nodes) can cause this kind of issues.
Here is a screenshot with traffic params from Mikrotik logs:
Too close if your nodes are less than 1 meter to your gateway.
Other than that it is fine.
To rule out of bad antenna, please put your nodes around 3-5 meters without obstacle or even a 10-cm wall to your gateway, then measure the RSSI/SNR again.
The RSSI should be around -70 and SNR should be around 11.
Put here your result.
You check and post here the screenshots of your ChirpsStack > Application > Device > Events / LoRaWAN Frames.
It may due to duplicated/improper DevNonce or mismatched frequencies between your ChirpStack, gateway and nodes.
What is the model of your nodes? Or if DIY nodes, what library are you using for your nodes?
Do you want a simple screenshot (“Events” & “LoRaWAN frames” tab contents) or with expanded data available by click on blue buttons at events & frames?
Would it be more helpful if I prepared the data for each distance mentioned below?
Usually, I only need simple screenshot.
Nevermind, you have more detail screenshots.
The antenna of LSN50-v2 is quite ok. Should be able to go far than 1km.
Just make sure on the label of the node says “EU868”. LSN50v2 - EU433 will not work for EU868.
The signal is very bad.
The SNR is very low to -14.25. => You are a zone with high inteference from other LoRaWAN nodes or GSM signals.Or the antenna of the gateway is bad.
You are right about the signal. I often experience issues with my mobiles and wifi network but I didn’t think that it will have an impact on LoRaWAN devices.
That’s not good Are there any options to change in gateway’s config to improve the signal? I don’t mean this specific gateway but in general.
I’ve just tried moving the devices to the balcony to isolate them a little from the building’s noise. Nodes were placed around 2m from the gateway. SNR seems to be a bit better but without any breakthrough. And still no join has occured within the last hour.
Please click on the log of OTAA error.
And show the LoRaWAN Frames. Is it a continous Join Request and Join Accept?
I’m not familiar with Mikrotik gateway.
But some gateways such as Milesight, you need to set which antenna to use (internal or external antenna) in the gateway GUI.
There was a traffic suggestion (other LoRaWAN devices or gms) so I tried something else. I took all devices to the underground garage and turned them on.
Garage dimensions are about 5 x 3.5 meters. It’s a place without gsm range so no external communication is possible. But they still should see each other as LoRaWAN devices, right?
There shouldn’t be also any interferences?
Here is gateway data after turning the devices there:
And here’s a sample session from node via serial connection.
Continuous loop through all of DRs over and over again:
LSN50 Device
Image Version: v1.8.1
LoRaWan Stack: DR-LWS-007
Frequency Band: EU868
DevEui= xx xx xx xx xx xx xx xx
Please use AT+DEBUG to see debug info
***** UpLinkCounter= 0 *****
TX on freq 868.100 MHz at DR 5
txDone
RX on freq 868.100 MHz at DR 5
rxTimeOut
RX on freq 869.525 MHz at DR 0
rxTimeOut
***** UpLinkCounter= 0 *****
TX on freq 868.100 MHz at DR 5
txDone
RX on freq 868.100 MHz at DR 5
rxTimeOut
RX on freq 869.525 MHz at DR 0
rxTimeOut
***** UpLinkCounter= 0 *****
TX on freq 868.300 MHz at DR 5
txDone
RX on freq 868.300 MHz at DR 5
rxTimeOut
RX on freq 869.525 MHz at DR 0
rxTimeOut
***** UpLinkCounter= 0 *****
TX on freq 868.500 MHz at DR 4
txDone
RX on freq 868.500 MHz at DR 4
rxTimeOut
RX on freq 869.525 MHz at DR 0
rxTimeOut
***** UpLinkCounter= 0 *****
TX on freq 868.100 MHz at DR 4
txDone
RX on freq 868.100 MHz at DR 4
rxTimeOut
RX on freq 869.525 MHz at DR 0
rxTimeOut
***** UpLinkCounter= 0 *****
TX on freq 868.300 MHz at DR 4
txDone
RX on freq 868.300 MHz at DR 4
rxTimeOut
RX on freq 869.525 MHz at DR 0
rxTimeOut
***** UpLinkCounter= 0 *****
TX on freq 868.100 MHz at DR 3
txDone
RX on freq 868.100 MHz at DR 3
rxTimeOut
RX on freq 869.525 MHz at DR 0
rxTimeOut
***** UpLinkCounter= 0 *****
TX on freq 868.500 MHz at DR 3
txDone
RX on freq 868.500 MHz at DR 3
rxTimeOut
RX on freq 869.525 MHz at DR 0
rxTimeOut
***** UpLinkCounter= 0 *****
TX on freq 868.500 MHz at DR 3
txDone
RX on freq 868.500 MHz at DR 3
rxTimeOut
RX on freq 869.525 MHz at DR 0
rxTimeOut
***** UpLinkCounter= 0 *****
TX on freq 868.500 MHz at DR 2
txDone
RX on freq 868.500 MHz at DR 2
rxTimeOut
RX on freq 869.525 MHz at DR 0
rxTimeOut
***** UpLinkCounter= 0 *****
TX on freq 868.300 MHz at DR 2
txDone
RX on freq 868.300 MHz at DR 2
rxTimeOut
RX on freq 869.525 MHz at DR 0
rxTimeOut
***** UpLinkCounter= 0 *****
TX on freq 868.500 MHz at DR 2
txDone
RX on freq 868.500 MHz at DR 2
rxTimeOut
RX on freq 869.525 MHz at DR 0
rxTimeOut
***** UpLinkCounter= 0 *****
TX on freq 868.500 MHz at DR 1
txDone
RX on freq 868.500 MHz at DR 1
rxTimeOut
RX on freq 869.525 MHz at DR 0
rxTimeOut
***** UpLinkCounter= 0 *****
TX on freq 868.500 MHz at DR 1
txDone
RX on freq 868.500 MHz at DR 1
rxTimeOut
RX on freq 869.525 MHz at DR 0
rxTimeOut
***** UpLinkCounter= 0 *****
TX on freq 868.300 MHz at DR 1
txDone
RX on freq 868.300 MHz at DR 1
rxTimeOut
RX on freq 869.525 MHz at DR 0
rxTimeOut
***** UpLinkCounter= 0 *****
TX on freq 868.300 MHz at DR 0
txDone
RX on freq 868.300 MHz at DR 0
rxTimeOut
RX on freq 869.525 MHz at DR 0
rxTimeOut
***** UpLinkCounter= 0 *****
TX on freq 868.100 MHz at DR 0
txDone
RX on freq 868.100 MHz at DR 0
rxTimeOut
RX on freq 869.525 MHz at DR 0
rxTimeOut
...
So I’m stuck and no idea if I have incorrect config or maybe there is something wrong with gateway’s antenna? It has only internal antenna and I can try to buy the external one.
Yes, your signal is very good in your underground garage.
Weird, are you sure your country uses EU868? Seems have interference above the ground in your previous test.
Yes, as far as know Poland uses EU868.
My gateway is set to EU868 and nodes are LSN50 v2-8 EU868/M12 (that’s the full model name on box with “LoRa_ST v3.0” on the board).
Gateway log from the garage shows only Join Requests. I tried again today with gateway in the garage and nodes one floor above the gateway - signal seems to be very poor as below and only Join Requests again:
I tried another thing today. I put the gateway on balcony and took 3 nodes for a walk around the block. Maximum distance was around 600 meters and here is the gateway log:
I’m going to check the possible network issues as you mentioned the 4G connection earlier. I will setup the gateway to use my cable internet instead of the mobile one. And see how it goes then.
It took me a while but I finally managed to change the setup. Without any success
Gateway has no sim card anymore and reaches the internet via ethernet cable from my router. So any internet connection issues are excluded.
Now I’m waiting for external antenna to check if it will make the signal better and change anything.
My LSN50v2 is flashed with EU868 and version 1.8.1 same as yours.
LSN50V2 can join instantly and send uplink.
You may set AT+TDC=60000 then ATZ (reboot) to see a packet every minute.