Gateway & nodes - too close? (traffic params included)

Hello!

You helped me once to get my first join request & accept with my nodes so here I go again :slight_smile:

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:

Initially there was only one but I’ve also noticed CRC errors so here’s another with them:

For those who don’t like looking at the images here are approximate values:

RSSI from -111.00 to -97.00
SNR from 3.75 to 9.75

Not sure if all of columns are important but could you please tell me if those values may suggest the distance problem or something else?

Maybe I could change something in gateway config to improve the connection quality?

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?

Chirpstack: 4.6.0
Gateway: Mikrotik LtAP LR8 LTE kit
Nodes: Dragino LSN50-V2
Region: EU868

One of my nodes is connected with a simple 0/1 switch but I think it shouldn’t be a concern now. The other two nodes work standalone.

I tried different distances between nodes & gateway.

~8 meters
RSSI from -119 to -93
SNR from -14.25 to 10.25

~4 meters
RSSI from -119.00 to -74.00
SNR from -14.25 to 11.25

~2 meters
RSSI from -119.00 to -72.00
SNR from -14.25 to 11.75

~10 centimeters
RSSI from -121.00 to -50.00
SNR from -14.50 to 11.75

Please let me know if there’s anything more I can provide except events & frames screenshots mentioned in the beginning.

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.

Nodes are EU868.

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 :frowning: 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.

RSSI from -85.00 to -72.00
SNR from 6.00 to 12.25

You should show the screenshot of Events in Chirpstack > Device.

In gateway GUI, we can not know which packets are Join requests.

Which antenna do you use for gateway and node?

Sure, here are the events for all of 3 nodes - they look pretty much the same except the OTTA error in one of them.

Do you need expanded data from any of those events?

Gateway has 2 internal antennas. Each node has a single antenna provided with the device as on the photo below:

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.

Sorry for the late reply, I was trying to establish the connection and gather some data.

Unfortunately this frame has gone from the list and I couldn’t expand it. Also this error did not appear later.

Yes. It’s the same as in my initial thread here:

But let me show the data - it’s the same session seen in gateway’s console and Chirpstack.

Gateway:

Chirpstack frames:

Chirpstack request frame details:

Chirpstack accept frame details:
trans_ch_f_accept

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:

I put the nodes around 2-3 meters from the gateway, I also tried putting them just at the gateway. Nothing changed.

There was no successful join from any node.

Here are some configs.

Gateway:

Channels when gateway is running:

Node config dumped via serial connection:

AT+ADR=1
AT+TXP=0
AT+DR=3
AT+DCS=0
AT+PNM=1
AT+RX2FQ=869525000
AT+RX2DR=0
AT+RX1DL=1000
AT+RX2DL=2000
AT+JN1DL=5000
AT+JN2DL=6000
AT+NJM=1
AT+NWKID=00 00 00 00
AT+FCU=0
AT+FCD=0
AT+CLASS=A
AT+NJS=0
AT+RECVB=0:
AT+RECV=0:
AT+RJTDC=20
AT+RPL=0
AT+VER=v1.8.1 EU868
AT+CFM=0,7,0
AT+CFS=0
AT+SNR=0
AT+RSSI=0
AT+TDC=60000
AT+PORT=2
AT+RX1WTO=9
AT+RX2WTO=6
AT+DECRYPT=0
AT+MOD=1
AT+INTMOD1=2
AT+INTMOD2=2
AT+INTMOD3=2
AT+WEIGAP=400.0
AT+5VT=500
AT+CHS=0
AT+DDETECT=1,1440,2880
AT+SETMAXNBTRANS=1,0
AT+DISFCNTCHECK=0
AT+DISMACANS=0

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.

But could it help?

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.

Join is another stuff. Let me see.

The console of the Dragino is helpful.
It shows the node sends request but not receiving any JoinAccept. So the Uplink stays at UplinkCounter=0.

  1. You may do a Factory reset to your node
    AT+FDR
    ATZ

Then see the join again.

  1. Please show to EU868 in ChirpStack to see if matching your node.

  2. Does your gateway use 4G to connect to your ChirpStack?
    It may affect the RX1 delay setting.

Does your gateway receive any Join Accept from Chirpstack and send JoinAccept to node?
I see only Join Request.

No idea if need to update firmware for your Mikrotik gateway.

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).

Here is EU868 from Chirpstack:

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:

Nodes were in the backpack but had their antennas outside. I made a few short stops during that walk.

I will try and share the rest later today (node factory reset, 4G gateway’s connection check and potential gateway firmware update).

Thank you!

This weekend, I will try to flash my LSN50v2 with EU868 and test with Dragino LPS8.

Thanks. Let me know how it went!

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 :frowning:
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.

1 Like

Sorry for delay.
Busy recently.

LSN50v2 with firmware 1.8.1 (EU868) works fine for me.

I use ChirpStack v4.8.1 and UDP Packet forwarder.
I use Dragino LPS8 and set the frequency of the gateway to EU868

LoRa channels in LPS8 gateway.

Gateway can see Join request/accept and uplink in its GUI.

Gateway can see Join Request and Accept

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.