Changes for page Outdoor & Indoor signal measuring Solution End User Guide V1.2
Last modified by Hera Guo on 2025/06/10 15:14
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -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 ... ... @@ -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