Hide last authors
Edwin Chen 8.1 1 **Table of Contents:**
Edwin Chen 6.1 2
Edwin Chen 8.1 3 {{toc/}}
Edwin Chen 6.1 4
5
6
Xiaoling 20.2 7
8
Xiaoling 10.2 9 = 1.  OverView =
Edwin Chen 5.1 10
Xiaoling 10.2 11
Edwin Chen 5.1 12 In real-world deployment for LoRa, distance is a common topic. We always want to have the longest distance. This chapter shows some instructions for how to improve this.
13
14
Xiaoling 10.2 15 = 2.  Analyze at the software side =
Edwin Chen 5.1 16
Xiaoling 10.2 17 == 2.1  LoRa parameters that effect distance ==
18
19
Edwin Chen 5.1 20 Some settings in End Node will affect the transfer distance. They are:
21
Xiaoling 10.4 22 * (% style="color:blue" %)**TXPower: **(%%)This means the output power from End Node. There is a command [[AT+TXP>>url:http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/#H7.14TransmitPower]] can be used to set the output power. TXP parameters follow the LoRaWAN regional document (rp2-1.0.3-lorawan-regional-parameters.pdf). Set to (% style="color:#037691" %)**AT+TXP=0**(%%) is always has the maximum output, but (% style="color:#037691" %)**AT+TXP=0**(%%) has different value in different frequency bands.
Edwin Chen 5.1 23
Xiaoling 10.2 24 * (% style="color:blue" %)**Data Rate(DR): **(%%)This is a combination of Spreading Factor and Band Width. Lowest Data Rate (DR=0) always has the longest transmit distance in LoRaWAN protocol.
Edwin Chen 5.1 25
26 Below is the TXPower and DR table of EU868 Frequency band as reference.
27
Xiaoling 10.4 28
Edwin Chen 5.1 29 [[image:image-20221006185826-1.png]]
30
Xiaoling 10.2 31
Edwin Chen 5.1 32 [[image:image-20221006185826-2.png]]
33
34
Xiaoling 10.4 35 Set (% style="color:#037691" %)**AT+TXP=0**(%%) **and** (% style="color:#037691" %)**AT+DR=0**(%%) will always has the longest transmit distance. But note that different frequency band has different TXP and DR coding according to LoRaWAN regional settings. Below is example for EU868, US915 and AS923 compare for example.
Edwin Chen 5.1 36
37
Xiaoling 10.4 38 **End node actually value when TXP=0 and DR=0**
Edwin Chen 5.1 39
Xiaoling 23.3 40 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:1002px" %)
Xiaoling 24.1 41 |(% style="background-color:#4f81bd; color:white; width:134px" %)**Frequency band**|(% style="background-color:#4f81bd; color:white; width:400px" %)**Output Power in LoRa Module (consider 2dB antenna)**|(% style="background-color:#4f81bd; color:white; width:362px" %)(((
Xiaoling 10.2 42 **Spreading Factor(Higher SF can transmit further)**
Xiaoling 24.1 43 )))|(% style="background-color:#4f81bd; color:white; width:102px" %)**Band Width**
Xiaoling 10.2 44 |(% style="width:134px" %)**EU868**|(% style="width:400px" %)14dBm|(% style="width:362px" %)SF=12|(% style="width:102px" %)125Khz
45 |(% style="width:134px" %)**US915**|(% style="width:400px" %)20 or 22 dBm (depends on max output of module)|(% style="width:362px" %)SF=10|(% style="width:102px" %)125Khz
46 |(% style="width:134px" %)**AS923**|(% style="width:400px" %)14dBm|(% style="width:362px" %)SF=12|(% style="width:102px" %)125Khz
Edwin Chen 5.1 47
Xiaoling 10.2 48 == 2.2  Adaptive Data Rate (ADR) and set max distance ==
Edwin Chen 5.1 49
50
Xiaoling 20.2 51 (% style="color:#037691" %)**ADR**(%%) is the feature that Server will ask End Node to adjust the TXP and DR according to some rules in the server. This is for the purpose of Network Management and Optimize End Node battery life-time.
Edwin Chen 5.1 52
53
Xiaoling 10.2 54 By default, ADR is turn on((% style="color:#037691" %)**AT+ADR=1**) (%%)so End node ADR feature is enable.
Edwin Chen 5.1 55
56
Xiaoling 10.2 57 (% style="color:blue" %)**Normally, user can set the max distance by setting:**
Edwin Chen 5.1 58
Xiaoling 10.2 59 (% style="color:#037691" %)**AT+ADR=0**
Edwin Chen 5.1 60
Edwin Chen 22.1 61 (% style="color:#037691" %)**AT+DR=0     **~/~/(%%) Use longest distance modulation
Edwin Chen 5.1 62
Xiaoling 21.4 63 (% style="color:#037691" %)**AT+TXP=0   **(%%)~/~/ Use max power   For EU868, max power can be is AT+TXP=50
Xiaoling 10.2 64
65
Edwin Chen 5.1 66 This can be downlink via the LoRaWAN downlink command, see [[this link>>url:http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/#H8.2UseDownlinkCommandtosetafixuplinkDR]] for reference.
67
68
Xiaoling 10.2 69 == 2.3  Check for short distance problem ==
Edwin Chen 5.1 70
Xiaoling 10.2 71
Edwin Chen 5.1 72 According to the above technology, if we have a problem on the distance, we can first check if the end node is trying to longest distance modulation already. We can see that from the LoRaWAN server. Below is an example from Chirpstack.
73
Xiaoling 10.5 74 We can see the traffic in gateway's page and know that the distance is SF12 / BW125. (note, server is not able to know Transmit Power settings from End Node)
Edwin Chen 5.1 75
76 [[image:image-20221006185826-3.png]]
77
78
Xiaoling 10.2 79 == 2.4  Best software settings for the longest distance ==
Edwin Chen 10.1 80
Xiaoling 10.2 81
Edwin Chen 10.1 82 Below are the settings for longest distance transmission. ( will reduce battery life)
83
Mengting Qiu 22.2 84 * (% style="color:#037691" %)**AT+ADR=0**          (%%)~/~/  Disable ADR  (% style="color:#037691" %)**(downlinkpayload: 2200FFFF)**
Xiaoling 23.2 85 * (% style="color:#037691" %)**AT+DR=0**           (%%)~/~/  Use the smallest DR,the longest distance modulation (% style="color:#037691" %)**(downlinkpayload: 220000FF)**
86 * (% style="color:#037691" %)**AT+TXP=0**          (%%)~/~/  Use max power   For EU868, max power can be is AT+TXP=50 (% style="color:#037691" %)** (downlinkpayload: 22000000)**
Edwin Chen 10.1 87
Xiaoling 24.1 88
89
Edwin Chen 22.1 90 == 2.5 Debug in Software ==
Xiaoling 21.4 91
Xiaoling 24.1 92
Edwin Chen 22.1 93 Dragino can help client to debug the software for the distance issue. In the case , please send us below info:
94
95 * Detail packets include for Join Request, Join Accept, Uplink & Downlink, These packets should include:
96 ** RSSI, DataRate, FCNT, Frequency.
97 ** MIC command detail & Payload detail.
98
Xiaoling 24.1 99
Edwin Chen 12.1 100 = 3.  Analyze at the hardware side =
Edwin Chen 10.1 101
Edwin Chen 22.1 102 == 3.1  Check if the antenna path is good ~-~- For LSN50v2 series end node ==
Edwin Chen 5.1 103
Xiaoling 12.2 104
Edwin Chen 12.1 105 a) Open Enclosure and Check if the antenna connection to module is good.
Xiaoling 10.2 106
Edwin Chen 12.1 107 b) check if the connector match.
Xiaoling 10.2 108
Edwin Chen 12.1 109 [[image:image-20221016081725-1.png||height="426" width="706"]]
110
111
112 = 4.  Installation Guidelines =
113
114 == 4.1  Check the use environment ==
115
116
Edwin Chen 19.1 117 First , User should notice: Radio link quality and performances are highly dependent of the environment.Even you have the same hardware and antenna, Different installation will result in different performance.
Edwin Chen 9.1 118
Xiaoling 10.2 119 (% style="color:blue" %)**Better performances can be reached with:**
Edwin Chen 9.1 120
121 * Outdoor environment.
122 * No obstacles.
123 * No high level radio interferes in the ISM band you use.
124 * At least 1 meter above the ground.
125
Xiaoling 10.2 126 (% style="color:blue" %)**Radio performances are degraded with:**
127
Edwin Chen 9.1 128 * Obstacles: buildings, trees...
129 * Inner buildings environments.
130 * High ISM band usage by other technologies.
131 * Radio communication are usually killed with bad topographic conditions. It is usually not possible to communicate through a hill, even very small.
132
Xiaoling 24.1 133
134
Edwin Chen 12.1 135 == 4.2  Improve the Antenna ==
Xiaoling 10.2 136
137
Edwin Chen 9.1 138 In some case, we have to install the device inside the chamber or next to a metal case. So the signal between the antenna and the receiver (gateway) is blocked by the metal. This will greatly reduce the signal. In such case, we can consider using antenna extend cable to extend the antenna to a better position.
139
140
Edwin Chen 12.1 141 = 5.  Some real-world case =
Edwin Chen 5.1 142
Edwin Chen 12.1 143 == 5.1  Server reason cause end node has problem on Join. ==
Xiaoling 10.2 144
145
Edwin Chen 5.1 146 In one case, the customer is using AWS IoT Core and gateway to connect to AWS via Basic Station Connection, Frequency Band is AU915 sub-band 2. For some unknown reason, AWS always set downlink power to 0dBm, which cause the gateway only emit a very low power and lead to a short distance for sensor.
147
148
149 Below is the output log in gateway side ( SSH Access to Gateway and Check Station log)
150
151 [[image:image-20221006185826-4.png]]
152
153
154 The fix of this issue is to set the output power to a high value even server ask to send out 0dBm.
155
Xiaoling 10.2 156 Reference Link:  [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Change%20Gateway%20Power/#H1.A0Overview>>http://wiki.dragino.com/xwiki/bin/view/Main/Change%20Gateway%20Power/#H1.A0Overview]]
Edwin Chen 5.1 157
Edwin Chen 16.1 158
159 == 5.2 Chirpstack Default settings to 64 channels which cause Signal Poor. ==
160
161
162 In this case, User use a Chirpstack LoRaWAN server with default settings. The Frequency Band is US915 and default settings of Chirpstack has all channels ( All sub-bands , total 72 channels) enable. User use a LDS03A and a LPS8N LoRaWAN gateway for the test.
163
164
165 There is a strange issue: LDS03 has a very good RSSI ( RSSI=-40) during OTAA Join. But The LDS03A give a very poor RSSI after OTAA Join. After debug, it proves that the issue is with ChirpStack Frequency band settings. The ChirpStack server enables all 72 channels and the LDS03A will also use all channels after OTAA Join, but the LPS8N only can support 8 channels and set to Sub-Band2. When the LDS03A sends an uplink packet in the channel LPS8N doesn't support, because LDS03A is very close to LPS8N, LPS8N pick up this not support frequency and send to server. So in the platform we see a uplink packet with very poor RSSI.
166
167
168 Above issue was confirmed and solved after set the ChirpStack support channels to sub-band2. See below for photos during debug.
169
170 [[image:image-20221031233628-2.png]]
171
172
173 [[image:image-20221031233759-3.png]]
174
175
Edwin Chen 18.1 176 [[image:image-20221101000006-1.png||height="353" width="931"]]
Edwin Chen 16.1 177
178
Edwin Chen 20.1 179 = 6. Use a repeater =
Edwin Chen 16.1 180
Xiaoling 20.2 181
Edwin Chen 20.1 182 In some cases, user can consider use a repeater for limitation transmition.
Edwin Chen 18.1 183
Edwin Chen 20.1 184 See here for how to set up: [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20All%20Gateway%20models/LoRaWAN%20IoT%20Kit%20v3%20User%20Manual/#H7.Example6:LimitedLoRaWANrelay >>http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20All%20Gateway%20models/LoRaWAN%20IoT%20Kit%20v3%20User%20Manual/#H7.Example6:LimitedLoRaWANrelay]]
185
Edwin Chen 19.1 186
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0