Last modified by Hera Guo on 2025/06/10 15:14

From version 3.1
edited by Hera Guo
on 2025/05/23 17:45
Change comment: There is no comment for this version
To version 5.1
edited by Hera Guo
on 2025/05/26 09:31
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -19,7 +19,7 @@
19 19  == **1.2 Features ** ==
20 20  
21 21  * Extensive support
22 -** Only one LA66 and one Dragino account are needed, and the gateway and LNS can be freely matched**High Precision Measurement**
22 +** Only one LA66 and one Dragino account are needed, and the gateway and LNS can be freely matched **High Precision Measurement**
23 23  ** High-accuracy sensors
24 24  ** Reliable data readings
25 25  * **Real-Time measuring**
... ... @@ -28,7 +28,6 @@
28 28  * **User-Friendly Interface**
29 29  ** Intuitive dashboard design
30 30  
31 -
32 32  ----
33 33  
34 34  == **1.3 Specifications ** ==
... ... @@ -36,7 +36,6 @@
36 36  * **Mobile Support: [[Dedicated mobile app for on-the-go monitoring>>https://www.dropbox.com/scl/fo/qdiwkpcxc03qu2r2w0g46/AKqR2FByUdkoWZPZh-diYfQ?rlkey=t1a1kwlvr93c1459mz9jifers&e=1&st=kji4rdg0&dl=0]]**
37 37  * **Device Manual: [[LA66 USB LoRaWAN Adapter User Manual>>https://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20USB%20LoRaWAN%20Adapter%20User%20Manual/]]**
38 38  
39 -
40 40  ----
41 41  
42 42  
... ... @@ -44,7 +44,7 @@
44 44  
45 45  == **2.1 Network Structure** ==
46 46  
47 -[[image:1747967901656-282.png]]
45 +[[image:结构.png]]
48 48  
49 49  The network structure consists of end nodes and gateways, which work together to measuring signal strength. You can replace gateway and Network Server with which you using.(It should be supported LoRaWAN)
50 50  
... ... @@ -113,10 +113,54 @@
113 113  }
114 114  {{/code}}
115 115  
114 +
115 +
116 116  * **Decoding for TTN:**
117 117  
118 -* If you using other LNS, you can code yourself(The first nine bits of the uploaded data are the flag bit + position, and the rest are the title) or  send mail to [[support@dragino.com>>mailto:support@dragino.com]]
118 +{{code language="none"}}
119 +function add0(m){return m<10?'0'+m:m }
120 +function format(shijianchuo){
121 +//shijianchuo是整数,否则要parseInt转换
122 + var time = new Date(shijianchuo);
123 + var y = time.getFullYear();
124 + var m = time.getMonth()+1;
125 + var d = time.getDate();
126 + var h = time.getHours();
127 + var mm = time.getMinutes();
128 + var s = time.getSeconds();
129 + return y+'-'+add0(m)+'-'+add0(d)+' '+add0(h)+':'+add0(mm)+':'+add0(s);
130 +}
119 119  
132 +function Decoder(bytes) {
133 + var data={};
134 + var doorflg
135 + if (bytes[0]===1){
136 + doorflg = "indoor"
137 + }
138 + else{
139 + doorflg = "outdoor"
140 + }
141 + if (bytes.length==13){
142 + data.doorflg = doorflg
143 + data.latitude=parseFloat(((bytes[1]<<24|bytes[2]<<16|bytes[3]<<8|bytes[4])/1000000).toFixed(6));
144 + data.longitude=parseFloat(((bytes[5]<<24|bytes[6]<<16|bytes[7]<<8|bytes[8])/1000000).toFixed(6));
145 + timestamp1=bytes[9]<<24|bytes[10]<<16|bytes[11]<<8|bytes[12];
146 + data.timestamp=timestamp1;
147 + data.beijintime=format((timestamp1+28800)*1000);
148 + return data;
149 + }
150 + else if(bytes.length==9){
151 + data.doorflg = doorflg
152 + data.Node_type = "LA66"
153 + data.latitude=parseFloat(((bytes[1]<<24|bytes[2]<<16|bytes[3]<<8|bytes[4])/1000000).toFixed(6));
154 + data.longitude=parseFloat(((bytes[5]<<24|bytes[6]<<16|bytes[7]<<8|bytes[8])/1000000).toFixed(6));
155 + return data;
156 + }
157 +}
158 +{{/code}}
159 +
160 +* If you using other LNS, you can code yourself(The first nine bits of the uploaded data are the flag bit + position, and the rest are the title) or  send mail to [[support@dragino.cc>>mailto:support@dragino.cc]]
161 +
120 120  ----
121 121  
122 122  
... ... @@ -135,7 +135,6 @@
135 135  )))
136 136  1. Example of ChirpStack[[image:1747972538335-599.png]]
137 137  
138 -
139 139  ----
140 140  
141 141  
... ... @@ -295,4 +295,3 @@
295 295  
296 296  
297 297  
298 -
1747967901656-282.png
Size
... ... @@ -1,1 +1,1 @@
1 -683.2 KB
1 +1.2 MB
Content
结构.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.hera
Size
... ... @@ -1,0 +1,1 @@
1 +1.2 MB
Content