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

From version 3.2
edited by Hera Guo
on 2025/05/23 17:54
Change comment: There is no comment for this version
To version 3.1
edited by Hera Guo
on 2025/05/23 17:45
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -28,6 +28,7 @@
28 28  * **User-Friendly Interface**
29 29  ** Intuitive dashboard design
30 30  
31 +
31 31  ----
32 32  
33 33  == **1.3 Specifications ** ==
... ... @@ -35,6 +35,7 @@
35 35  * **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]]**
36 36  * **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/]]**
37 37  
39 +
38 38  ----
39 39  
40 40  
... ... @@ -111,54 +111,10 @@
111 111  }
112 112  {{/code}}
113 113  
114 -
115 -
116 116  * **Decoding for TTN:**
117 117  
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 -}
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]]
131 131  
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 -
162 162  ----
163 163  
164 164  
... ... @@ -177,6 +177,7 @@
177 177  )))
178 178  1. Example of ChirpStack[[image:1747972538335-599.png]]
179 179  
138 +
180 180  ----
181 181  
182 182