... |
... |
@@ -141,20 +141,15 @@ |
141 |
141 |
create iBeacon |
142 |
142 |
|
143 |
143 |
|
|
144 |
+= 3. Configure TTN = |
144 |
144 |
|
145 |
|
-= 3. Configure TTN = |
|
146 |
+== 3.1 Configure LBT1 to Upload data to TTN == |
146 |
146 |
|
147 |
|
- |
148 |
|
-== 3.1 Configure LBT1 to Upload data to TTN == |
149 |
|
- |
150 |
|
- |
151 |
151 |
Please refer the instruction in the [[User Manual>>url:http://www.dragino.com/downloads/index.php?dir=accessories/Bluetooth/BCN01]]. Note the (% style="color:#4f81bd" %)**LBT1 need to set to MOD=3**(%%) here. |
152 |
152 |
|
153 |
153 |
|
|
151 |
+== 3.2 Decoder in TTN == |
154 |
154 |
|
155 |
|
-== 3.2 Decoder in TTN == |
156 |
|
- |
157 |
|
- |
158 |
158 |
(% class="box" %) |
159 |
159 |
((( |
160 |
160 |
function Decoder(bytes, port) { |
... |
... |
@@ -236,33 +236,29 @@ |
236 |
236 |
))) |
237 |
237 |
|
238 |
238 |
|
|
234 |
+= 4. Set Up Converter Server = |
239 |
239 |
|
240 |
|
-= 4. Set Up Converter Server = |
241 |
|
- |
242 |
|
- |
243 |
243 |
* ((( |
244 |
|
-(% style="color:blue" %)**How to install and run this service on Linux?** |
|
237 |
+How to install and run this service on Linux? |
245 |
245 |
))) |
246 |
246 |
|
247 |
247 |
((( |
248 |
|
-(% style="color:red" %)**Step1.**(%%) Rent a Linux on Amazon cloud or alicloud to the host, and pre install the Linux system (Debian, Ubuntu, CentOS are available for distribution). |
|
241 |
+Step1.Rent a Linux on Amazon cloud or alicloud to the host, and pre install the Linux system (Debian, Ubuntu, CentOS are available for distribution). |
249 |
249 |
))) |
250 |
250 |
|
251 |
251 |
((( |
252 |
|
-(% style="color:red" %)**Step2.**(%%) Run the code on the server after compiling. Compilation requires the support of libcurl. First, compile libmqtt in the code, and then compile location. |
253 |
|
- |
254 |
|
- |
|
245 |
+Step2.Run the code on the server after compiling. Compilation requires the support of libcurl. First, compile libmqtt in the code, and then compile location. |
255 |
255 |
))) |
256 |
256 |
|
257 |
257 |
((( |
258 |
|
-**System: Debian / Ubuntu** |
|
249 |
+System: Debian / Ubuntu |
259 |
259 |
))) |
260 |
260 |
|
261 |
261 |
(% class="box" %) |
262 |
262 |
((( |
263 |
|
-(% style="color:blue" %)**step:**(%%) |
264 |
|
-\\1. **sudo** apt install libcurl4-dev |
265 |
|
-\\2. **sudo** apt **install gcc automake autoconf** libtool **make** cmake |
|
254 |
+step: |
|
255 |
+\\1. sudo apt install libcurl4-dev |
|
256 |
+\\2. sudo apt install gcc automake autoconf libtool make cmake |
266 |
266 |
\\3. git clone -b master https:~/~/github.com/mikayong/location.git |
267 |
267 |
\\4. cd location/libmqtt |
268 |
268 |
\\5. mkdir build |
... |
... |
@@ -275,20 +275,15 @@ |
275 |
275 |
))) |
276 |
276 |
|
277 |
277 |
((( |
278 |
|
-(% style="color:red" %)**Step3.**(%%)** **The location service subscribes to the lora information stream on TTN through the mqtt protocol, parses the information to generate a geographic location, and finally creates a geographic location on the mapwize map. The following is the configuration of the location service, the configuration file is in json format, the file is /etc/location_conf.json |
|
269 |
+Step3.The location service subscribes to the lora information stream on TTN through the mqtt protocol, parses the information to generate a geographic location, and finally creates a geographic location on the mapwize map. The following is the configuration of the location service, the configuration file is in json format, the file is /etc/location_conf.json |
279 |
279 |
|
280 |
|
- |
281 |
281 |
|
282 |
282 |
))) |
283 |
283 |
|
284 |
|
-= 5. Configuration file: location_conf.json = |
|
274 |
+= 5. Configuration file: location_conf.json = |
285 |
285 |
|
286 |
|
- |
287 |
287 |
* ((( |
288 |
288 |
We use the 120.78.138.177 server as an example. The location service is currently installed on the 120.78.138.177 server, the code is in /root/location, and the configuration file for running location pre-read directly is /etc/location_conf.json. |
289 |
|
- |
290 |
|
- |
291 |
|
- |
292 |
292 |
))) |
293 |
293 |
|
294 |
294 |
((( |
... |
... |
@@ -354,13 +354,11 @@ |
354 |
354 |
"username":"[str]" |
355 |
355 |
))) |
356 |
356 |
|
357 |
|
- |
358 |
358 |
[[image:image-20220526151707-12.png]] |
359 |
359 |
|
360 |
360 |
username |
361 |
361 |
|
362 |
362 |
|
363 |
|
- |
364 |
364 |
(% class="box" %) |
365 |
365 |
((( |
366 |
366 |
"password":"[str]" |
... |
... |
@@ -371,7 +371,6 @@ |
371 |
371 |
password |
372 |
372 |
|
373 |
373 |
|
374 |
|
- |
375 |
375 |
(% class="box" %) |
376 |
376 |
((( |
377 |
377 |
"apikey": "[str]" |
... |
... |
@@ -381,8 +381,6 @@ |
381 |
381 |
|
382 |
382 |
apikey |
383 |
383 |
|
384 |
|
- |
385 |
|
- |
386 |
386 |
(% class="box" %) |
387 |
387 |
((( |
388 |
388 |
"orgid":"[str]" |
... |
... |
@@ -393,7 +393,6 @@ |
393 |
393 |
orgid |
394 |
394 |
|
395 |
395 |
|
396 |
|
- |
397 |
397 |
(% class="box" %) |
398 |
398 |
((( |
399 |
399 |
"universesid":"[str]" |
... |
... |
@@ -404,7 +404,6 @@ |
404 |
404 |
universesid |
405 |
405 |
|
406 |
406 |
|
407 |
|
- |
408 |
408 |
(% class="box" %) |
409 |
409 |
((( |
410 |
410 |
"placetype": "[str]" |
... |
... |
@@ -415,11 +415,10 @@ |
415 |
415 |
placetype |
416 |
416 |
|
417 |
417 |
|
|
397 |
+**Here are two ways to enter the server:** |
418 |
418 |
|
419 |
|
-(% style="color:blue" %)**Here are two ways to enter the server:** |
|
399 |
+**~1. WinSCP** |
420 |
420 |
|
421 |
|
-(% style="color:red" %)**1. WinSCP** |
422 |
|
- |
423 |
423 |
[[image:image-20220526152303-18.png]] |
424 |
424 |
|
425 |
425 |
|
... |
... |
@@ -431,9 +431,8 @@ |
431 |
431 |
way1 |
432 |
432 |
|
433 |
433 |
|
|
412 |
+**2. secureCRT** |
434 |
434 |
|
435 |
|
-(% style="color:red" %)**2. secureCRT** |
436 |
|
- |
437 |
437 |
[[image:image-20220526153145-22.png]] |
438 |
438 |
|
439 |
439 |
[[image:image-20220526153236-23.png]] |
... |
... |
@@ -443,11 +443,8 @@ |
443 |
443 |
way2 |
444 |
444 |
|
445 |
445 |
|
|
423 |
+= 6. Test Result = |
446 |
446 |
|
447 |
|
-= 6. Test Result = |
448 |
|
- |
449 |
|
- |
450 |
450 |
The real-time position on the map is obtained according to the moving change of LBT1. |
451 |
451 |
|
452 |
|
- |
453 |
453 |
[[image:image-20220526153424-25.png||height="693" width="1414"]] |