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 10.2 7 = 1.  OverView =
Edwin Chen 5.1 8
Xiaoling 10.2 9
Edwin Chen 5.1 10 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.
11
12
Xiaoling 10.5 13
Xiaoling 10.2 14 = 2.  Analyze at the software side =
Edwin Chen 5.1 15
Xiaoling 10.2 16 == 2.1  LoRa parameters that effect distance ==
17
18
Edwin Chen 5.1 19 Some settings in End Node will affect the transfer distance. They are:
20
Xiaoling 10.4 21 * (% 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 22
Xiaoling 10.2 23 * (% 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 24
25 Below is the TXPower and DR table of EU868 Frequency band as reference.
26
Xiaoling 10.4 27
Edwin Chen 5.1 28 [[image:image-20221006185826-1.png]]
29
Xiaoling 10.2 30
Edwin Chen 5.1 31 [[image:image-20221006185826-2.png]]
32
33
Xiaoling 10.4 34 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 35
36
Xiaoling 10.4 37 **End node actually value when TXP=0 and DR=0**
Edwin Chen 5.1 38
Xiaoling 10.2 39 (% border="1.5" cellspacing="4" style="background-color:#ffffcc; color:black; width:1002px" %)
40 |(% style="width:134px" %)**Frequency band**|(% style="width:400px" %)**Output Power in LoRa Module (consider 2dB antenna)**|(% style="width:362px" %)(((
41 **Spreading Factor(Higher SF can transmit further)**
42 )))|(% style="width:102px" %)**Band Width**
43 |(% style="width:134px" %)**EU868**|(% style="width:400px" %)14dBm|(% style="width:362px" %)SF=12|(% style="width:102px" %)125Khz
44 |(% 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
45 |(% style="width:134px" %)**AS923**|(% style="width:400px" %)14dBm|(% style="width:362px" %)SF=12|(% style="width:102px" %)125Khz
Edwin Chen 5.1 46
47
48
Xiaoling 10.2 49 == 2.2  Adaptive Data Rate (ADR) and set max distance ==
Edwin Chen 5.1 50
51
Xiaoling 10.2 52 **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 53
54
Xiaoling 10.2 55 By default, ADR is turn on((% style="color:#037691" %)**AT+ADR=1**) (%%)so End node ADR feature is enable.
Edwin Chen 5.1 56
57
Xiaoling 10.2 58 (% style="color:blue" %)**Normally, user can set the max distance by setting:**
Edwin Chen 5.1 59
Xiaoling 10.2 60 (% style="color:#037691" %)**AT+ADR=0**
Edwin Chen 5.1 61
Xiaoling 10.2 62 (% style="color:#037691" %)**AT+DR=0**
Edwin Chen 5.1 63
Xiaoling 10.2 64 (% style="color:#037691" %)**AT+TXP=0**
65
66
Edwin Chen 5.1 67 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.
68
69
70
Xiaoling 10.2 71 == 2.3  Check for short distance problem ==
Edwin Chen 5.1 72
Xiaoling 10.2 73
Edwin Chen 5.1 74 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.
75
76
Xiaoling 10.5 77 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 78
Xiaoling 10.2 79
Edwin Chen 5.1 80 [[image:image-20221006185826-3.png]]
81
82
83
Xiaoling 10.2 84 == 2.4  Best software settings for the longest distance ==
Edwin Chen 10.1 85
Xiaoling 10.2 86
Edwin Chen 10.1 87 Below are the settings for longest distance transmission. ( will reduce battery life)
88
Xiaoling 10.6 89 * (% style="color:#037691" %)**AT+ADR=0**     (%%)~/~/  Disable ADR
90 * (% style="color:#037691" %)**AT+DR=  0**     (%%)~/~/  Use the smallest DR
91 * (% style="color:#037691" %)**AT+TXP=0**    (%%) ~/~/  Use max power.
Edwin Chen 10.1 92
93
94
Xiaoling 10.2 95 = 3.  Installation Guidelines =
Edwin Chen 5.1 96
Xiaoling 10.2 97 == 3.1  Check the use environment ==
98
99
Edwin Chen 9.1 100 First , User should notice: Radio link quality and performances are highly dependent of the environment.
101
Xiaoling 10.2 102 (% style="color:blue" %)**Better performances can be reached with:**
Edwin Chen 9.1 103
104 * Outdoor environment.
105 * No obstacles.
106 * No high level radio interferes in the ISM band you use.
107 * At least 1 meter above the ground.
108
109
Xiaoling 10.2 110
111 (% style="color:blue" %)**Radio performances are degraded with:**
112
Edwin Chen 9.1 113 * Obstacles: buildings, trees...
114 * Inner buildings environments.
115 * High ISM band usage by other technologies.
116 * Radio communication are usually killed with bad topographic conditions. It is usually not possible to communicate through a hill, even very small.
117
118
Xiaoling 10.2 119
120 == 3.2  Improve the Antenna ==
121
122
Edwin Chen 9.1 123 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.
124
125
Edwin Chen 5.1 126
Xiaoling 10.2 127 = 4.  Some real-world case =
Edwin Chen 5.1 128
Xiaoling 10.2 129 == 4.1  Server reason cause end node has problem on Join. ==
130
131
Edwin Chen 5.1 132 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.
133
134
135 Below is the output log in gateway side ( SSH Access to Gateway and Check Station log)
136
137
138 [[image:image-20221006185826-4.png]]
139
140
141 The fix of this issue is to set the output power to a high value even server ask to send out 0dBm.
142
Xiaoling 10.2 143 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 144
Xiaoling 10.2 145
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0