Wiki source code of Outdoor & Indoor signal measuring Solution End User Guide
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | = **1. Introduction** = | ||
2 | |||
3 | == **1.1 What is Outdoor & Indoor signal measuring Solution? ** == | ||
4 | |||
5 | **为了方便客户寻找合适的传感器布置位置,设计了一套用于测量网关信号强度的一键式测量方案,您只需要一台LA66和一个Dragino账号。** | ||
6 | |||
7 | **室外信号测量方案支持多台网关同时测量,可以单网关信号图显示,亦可以多网关信号图叠加显示。** | ||
8 | |||
9 | **室内信号测量方案因为室内地形复杂障碍物多,需要测量者走到合适的位置后开始测量,并在室内地图中进行标记,标记可自由添加/删除。** | ||
10 | |||
11 | **以上两个方案仪表盘皆支持导出。** | ||
12 | |||
13 | ---- | ||
14 | |||
15 | |||
16 | == **1.2 Features ** == | ||
17 | |||
18 | * 广泛的支持 | ||
19 | ** 只需要一台LA66和一个Dragino账号,网关和LNS可以自由搭配 | ||
20 | * **High Precision Measurement** | ||
21 | ** High-accuracy sensors | ||
22 | ** Reliable data readings | ||
23 | * **Real-Time measuring** | ||
24 | ** Button to switch receiving data or stop | ||
25 | ** Continuous measuring | ||
26 | * **User-Friendly Interface** | ||
27 | ** Intuitive dashboard design | ||
28 | |||
29 | ---- | ||
30 | |||
31 | == **1.3 Specifications ** == | ||
32 | |||
33 | * **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]]** | ||
34 | * **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/]]** | ||
35 | |||
36 | |||
37 | ---- | ||
38 | |||
39 | = = | ||
40 | |||
41 | = **2. How to Build?** = | ||
42 | |||
43 | == **2.1 Network Structure** == | ||
44 | |||
45 | [[image:1747967901656-282.png]] | ||
46 | |||
47 | 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) | ||
48 | |||
49 | ---- | ||
50 | |||
51 | == **2.1 Get Account** == | ||
52 | |||
53 | To begin, contact your local representative to obtain a customer account or send mail to [[support@dragino.com>>mailto:support@dragino.com]] | ||
54 | |||
55 | ---- | ||
56 | |||
57 | == **2.2Get Devices** == | ||
58 | |||
59 | |||
60 | Reach out to your local representative to acquire the necessary devices for your signal measuring solution. These devices include: | ||
61 | |||
62 | * **End Nodes**: LA66 | ||
63 | * **Gateway(If you want):**For data transmission. | ||
64 | |||
65 | Ensure that all devices are pre-registered on **Dragino** before use. | ||
66 | |||
67 | ---- | ||
68 | |||
69 | == **2.3Register Devices & Gateways on LNS** == | ||
70 | |||
71 | === **2.3.1Register Device** === | ||
72 | |||
73 | 1.Have a check of package box to get DEVEUI/ APPEUI/ APPKEY(OTTAKEY) | ||
74 | |||
75 | [[image:1747970430695-168.jpg||height="510" width="852"]] | ||
76 | |||
77 | |||
78 | 2.Register on LNS and replace decoding | ||
79 | |||
80 | * **Decoding for ChirpStack:** | ||
81 | |||
82 | {{code language="none"}} | ||
83 | function decodeUplink(input) { | ||
84 | return { | ||
85 | data: Decode(input.fPort, input.bytes, input.variables) | ||
86 | }; | ||
87 | } | ||
88 | |||
89 | function bytesToString(bytes) { | ||
90 | return decodeURIComponent(bytes.map(b => '%' + b.toString(16).padStart(2, '0')).join('')); | ||
91 | } | ||
92 | |||
93 | function Decode(fPort, bytes, variables) { | ||
94 | var data = {}; | ||
95 | if (bytes.length >= 9) { | ||
96 | data.flag = bytes[0]; | ||
97 | data.Node_type = "LA66"; | ||
98 | data.latitude = parseFloat(((bytes[1] << 24 >>> 0 | bytes[2] << 16 | bytes[3] << 8 | bytes[4]) / 1e6).toFixed(6)); | ||
99 | data.longitude = parseFloat(((bytes[5] << 24 >>> 0 | bytes[6] << 16 | bytes[7] << 8 | bytes[8]) / 1e6).toFixed(6)); | ||
100 | |||
101 | // 剩余字节为 title(如果存在) | ||
102 | if (bytes.length > 9) { | ||
103 | const titleBytes = bytes.slice(9); | ||
104 | data.title = bytesToString(titleBytes); | ||
105 | } | ||
106 | } | ||
107 | return data; | ||
108 | } | ||
109 | {{/code}} | ||
110 | |||
111 | * **Decoding for TTN:** | ||
112 | |||
113 | |||
114 | * 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]] | ||
115 | |||
116 | ---- | ||
117 | |||
118 | |||
119 | === **2.2.2Register Gateway(If you use Dragino's gateway)** === | ||
120 | |||
121 | When you receive the gateway, you need to register the gateway to the server for it to work properly, here are the instructions for registering the gateway to the server:[[How to register gateway to server - ThingsEye Wiki>>url:https://wiki.thingseye.io/xwiki/bin/view/Main/How%20to%20register%20gateway%20to%20server/]] | ||
122 | |||
123 | ---- | ||
124 | |||
125 | == 2.4Import device to Dragino map == | ||
126 | |||
127 | 1. After log in Dragino platform, click the button "Import-Dragino-map"an choose the LNS you using.[[image:1747971716633-666.png]]((( | ||
128 | ---- | ||
129 | |||
130 | |||
131 | ))) | ||
132 | 1. Example of ChirpStack[[image:1747972538335-599.png]] |