Show last authors
1 ~*~*Table of Contents:~*~*
2
3 ~{~{toc/}}
4
5
6
7 = OverView =
8
9 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.
10
11
12 = Analyze at the software side =
13
14 == LoRa parameters that effect distance ==
15
16 Some settings in End Node will affect the transfer distance. They are:
17
18 * **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 AT+TXP=0 is always has the maximum output, but AT+TXP=0 has different value in different frequency bands.
19
20 * **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.
21
22 Below is the TXPower and DR table of EU868 Frequency band as reference.
23
24 [[image:image-20221006185826-1.png]]
25
26 [[image:image-20221006185826-2.png]]
27
28
29 Set AT+TXP=0 and 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.
30
31
32 End node actually value when TXP=0 and DR=0
33
34 | |**Output Power in LoRa Module (consider 2dB antenna)**|(((
35 **Spreading Factor**
36
37 **(Higher SF can transmit further)**
38 )))|**Band Width**
39 |**EU868**|14dBm|SF=12|125Khz
40 |**US915**|20 or 22 dBm (depends on max output of module)|SF=10|125Khz
41 |**AS923**|14dBm|SF=12|125Khz
42
43 == Adaptive Data Rate (ADR) and set max distance ==
44
45 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.
46
47
48 By default, ADR is turn on(AT+ADR=1) so End node ADR feature is enable.
49
50
51 Normally, user can set the max distance by setting:
52
53 AT+ADR=0
54
55 AT+DR=0
56
57 AT+TXP=0
58
59
60 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.
61
62
63
64 == Check for short distance problem ==
65
66 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.
67
68
69 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)
70
71 [[image:image-20221006185826-3.png]]
72
73
74
75
76
77 = Some real-world case =
78
79 == Server reason cause end node has problem on Join. ==
80
81 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.
82
83
84 Below is the output log in gateway side ( SSH Access to Gateway and Check Station log)
85
86
87 [[image:image-20221006185826-4.png]]
88
89
90 The fix of this issue is to set the output power to a high value even server ask to send out 0dBm.
91
92 Reference Link:
93
94 http:~/~/wiki.dragino.com/xwiki/bin/view/Main/Change%20Gateway%20Power/#H1.A0Overview
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0