... |
... |
@@ -241,26 +241,28 @@ |
241 |
241 |
|
242 |
242 |
|
243 |
243 |
* ((( |
244 |
|
-**How to install and run this service on Linux?** |
|
244 |
+(% style="color:blue" %)**How to install and run this service on Linux?** |
245 |
245 |
))) |
246 |
246 |
|
247 |
247 |
((( |
248 |
|
-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). |
|
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). |
249 |
249 |
))) |
250 |
250 |
|
251 |
251 |
((( |
252 |
|
-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. |
|
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 |
+ |
253 |
253 |
))) |
254 |
254 |
|
255 |
255 |
((( |
256 |
|
-System: Debian / Ubuntu |
|
258 |
+**System: Debian / Ubuntu** |
257 |
257 |
))) |
258 |
258 |
|
259 |
259 |
(% class="box" %) |
260 |
260 |
((( |
261 |
|
-**step:** |
262 |
|
-\\1. sudo apt install libcurl4-dev |
263 |
|
-\\2. sudo apt install gcc automake autoconf libtool make cmake |
|
263 |
+(% style="color:blue" %)**step:**(%%) |
|
264 |
+\\1. **sudo** apt install libcurl4-dev |
|
265 |
+\\2. **sudo** apt **install gcc automake autoconf** libtool **make** cmake |
264 |
264 |
\\3. git clone -b master https:~/~/github.com/mikayong/location.git |
265 |
265 |
\\4. cd location/libmqtt |
266 |
266 |
\\5. mkdir build |
... |
... |
@@ -273,15 +273,19 @@ |
273 |
273 |
))) |
274 |
274 |
|
275 |
275 |
((( |
276 |
|
-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 |
|
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 |
277 |
277 |
|
|
280 |
+ |
278 |
278 |
|
279 |
279 |
))) |
280 |
280 |
|
281 |
|
-= 5. Configuration file: location_conf.json = |
|
284 |
+= 5. Configuration file: location_conf.json = |
282 |
282 |
|
|
286 |
+ |
283 |
283 |
* ((( |
284 |
|
-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. |
|
288 |
+(% style="color:blue" %)**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 |
+ |
285 |
285 |
))) |
286 |
286 |
|
287 |
287 |
((( |
... |
... |
@@ -338,20 +338,27 @@ |
338 |
338 |
|
339 |
339 |
((( |
340 |
340 |
} |
|
347 |
+ |
|
348 |
+ |
|
349 |
+ |
341 |
341 |
))) |
342 |
342 |
|
343 |
|
-* Parameter acquisition method of configuration file: |
|
352 |
+* (% style="color:blue" %)**Parameter acquisition method of configuration file:** |
344 |
344 |
|
|
354 |
+ |
|
355 |
+ |
345 |
345 |
(% class="box" %) |
346 |
346 |
((( |
347 |
347 |
"username":"[str]" |
348 |
348 |
))) |
349 |
349 |
|
|
361 |
+ |
350 |
350 |
[[image:image-20220526151707-12.png]] |
351 |
351 |
|
352 |
352 |
username |
353 |
353 |
|
354 |
354 |
|
|
367 |
+ |
355 |
355 |
(% class="box" %) |
356 |
356 |
((( |
357 |
357 |
"password":"[str]" |
... |
... |
@@ -362,6 +362,7 @@ |
362 |
362 |
password |
363 |
363 |
|
364 |
364 |
|
|
378 |
+ |
365 |
365 |
(% class="box" %) |
366 |
366 |
((( |
367 |
367 |
"apikey": "[str]" |
... |
... |
@@ -371,6 +371,8 @@ |
371 |
371 |
|
372 |
372 |
apikey |
373 |
373 |
|
|
388 |
+ |
|
389 |
+ |
374 |
374 |
(% class="box" %) |
375 |
375 |
((( |
376 |
376 |
"orgid":"[str]" |
... |
... |
@@ -381,6 +381,7 @@ |
381 |
381 |
orgid |
382 |
382 |
|
383 |
383 |
|
|
400 |
+ |
384 |
384 |
(% class="box" %) |
385 |
385 |
((( |
386 |
386 |
"universesid":"[str]" |
... |
... |
@@ -391,6 +391,7 @@ |
391 |
391 |
universesid |
392 |
392 |
|
393 |
393 |
|
|
411 |
+ |
394 |
394 |
(% class="box" %) |
395 |
395 |
((( |
396 |
396 |
"placetype": "[str]" |
... |
... |
@@ -401,10 +401,11 @@ |
401 |
401 |
placetype |
402 |
402 |
|
403 |
403 |
|
404 |
|
-**Here are two ways to enter the server:** |
405 |
405 |
|
406 |
|
-**~1. WinSCP** |
|
423 |
+(% style="color:blue" %)**Here are two ways to enter the server:** |
407 |
407 |
|
|
425 |
+(% style="color:red" %)**1. WinSCP** |
|
426 |
+ |
408 |
408 |
[[image:image-20220526152303-18.png]] |
409 |
409 |
|
410 |
410 |
|
... |
... |
@@ -416,8 +416,9 @@ |
416 |
416 |
way1 |
417 |
417 |
|
418 |
418 |
|
419 |
|
-**2. secureCRT** |
420 |
420 |
|
|
439 |
+(% style="color:red" %)**2. secureCRT** |
|
440 |
+ |
421 |
421 |
[[image:image-20220526153145-22.png]] |
422 |
422 |
|
423 |
423 |
[[image:image-20220526153236-23.png]] |
... |
... |
@@ -427,8 +427,11 @@ |
427 |
427 |
way2 |
428 |
428 |
|
429 |
429 |
|
430 |
|
-= 6. Test Result = |
431 |
431 |
|
|
451 |
+= 6. Test Result = |
|
452 |
+ |
|
453 |
+ |
432 |
432 |
The real-time position on the map is obtained according to the moving change of LBT1. |
433 |
433 |
|
|
456 |
+ |
434 |
434 |
[[image:image-20220526153424-25.png||height="693" width="1414"]] |