Changes for page Instructions to demo BLE indoor positioning
Last modified by Edwin Chen on 2022/12/31 16:23
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - Example of BLE indoor positioningpython1 +Operating instructions for BLE indoor positioning - Content
-
... ... @@ -1,26 +1,39 @@ 1 -~1. open the application 1 +(% class="wikigeneratedid" %) 2 +**Table of Contents:** 2 2 3 - Enter the following information:4 +{{toc/}} 4 4 5 -* Subscribe to topics:MQTT Subscription Topic of TTN-V3 6 6 7 -Example: v3/litest@ttn/devices/eui-70b3d57ed0058a17/up 8 8 8 + 9 += 1. Operating instructions for BLE indoor positioning = 10 + 11 +== 1.1 open the application == 12 + 13 + 14 +(% style="color:blue" %)**Enter the following information:** 15 + 16 +(% style="color:#037691" %)**Subscribe to topics:**(%%)**MQTT Subscription Topic of TTN-V3** 17 + 18 +**Example: **v3/litest@ttn/devices/eui-70b3d57ed0058a17/up 19 + 9 9 * v3: Unchanging 10 10 11 -litest@ttn: ’litest’@ttn’unchanging.If you use your own TTN22 +* litest@ttn:'litest' is the ID of the application, '@ttn' unchanging.If you use your own TTN platform, @ ttn doesn't need 12 12 13 -* devices:Unchanging 14 -* eui-70b3d57ed0058a17:End device ID 15 -* Up:Unchanging 24 +* devices: Unchanging 16 16 17 - serveraddress:Serveraddress of TTN-V3()26 +* eui-70b3d57ed0058a17: End device ID 18 18 19 - ApplicationID:ApplicationID of TTN-V3()28 +* Up: Unchanging 20 20 21 - APIKEY:APIKEYofyourownaccount()30 +(% style="color:#037691" %)**server address:**(%%)**Server address of TTN-V3()** 22 22 32 +(% style="color:#037691" %)**Application ID:**(%%)**Application ID of TTN-V3()** 23 23 34 +(% style="color:#037691" %)**APIKEY: **(%%)**APIKEY of your own account()** 35 + 36 + 24 24 [[image:image-20221221144423-1.png]] 25 25 26 26 ... ... @@ -29,35 +29,34 @@ 29 29 30 30 [[image:image-20221221144423-3.png]] 31 31 32 -(% style="display:none" %) (%%) 33 33 34 -**2. (% style="display:none" %) (%%)Click the save button after writing** 35 35 47 +== 1.2 Click the save button after writing == 36 36 49 + 37 37 [[image:image-20221221144423-4.png]] 38 38 39 -**Warning:** 52 +(% style="background-color:yellow" %)**Warning:** 40 40 41 -When the save button is pressed, it cannot be pressed again to prevent data confusion 。54 +When the save button is pressed, it cannot be pressed again to prevent data confusion. 42 42 43 -If you want to modify the subscription topic, (% style="display:none" %) (%%)you need to restart the application。56 +If you want to modify the subscription topic, you need to restart the application. 44 44 45 45 46 - **3. (% style="display:none"%) (%%)Click the location button**59 +== 1.3 Click the location button == 47 47 48 48 49 49 Just press once 50 50 51 -[[image:image-20221221144423-5.png]] (% style="display:none" %)64 +[[image:image-20221221144423-5.png]] 52 52 53 53 54 54 When the BLE node sends information, the application will display the located base station 55 55 56 56 57 -(% style="display:none" %) (%%) 58 58 71 +== 1.4 About how to set the base station point and insert the floor plan == 59 59 60 -**4. About how to set the base station point and insert the floor plan** 61 61 62 62 Place the floor plan in the same path as the python script 63 63 ... ... @@ -66,19 +66,18 @@ 66 66 [[image:image-20221221144423-7.png]] 67 67 68 68 69 -Open source code 81 +(% style="color:blue" %)**Open source code** 70 70 71 71 [[image:image-20221221144423-8.png]] 72 72 73 73 74 -Remove comments 86 +(% style="color:blue" %)**Remove comments** 75 75 76 76 [[image:image-20221221144423-9.png]] 77 77 78 78 91 +(% style="color:blue" %)**Run Script** 79 79 80 -Run Script 81 - 82 82 The cursor position is the data pointed by the arrow, x=323 y=503 83 83 84 84 [[image:image-20221221144423-10.png]] ... ... @@ -91,7 +91,7 @@ 91 91 92 92 93 93 94 -After clicking Save, a log.txt will be generated in the same directory as the script 105 +After clicking Save, a (% style="color:blue" %)**log.txt** (%%)will be generated in the same directory as the script 95 95 96 96 [[image:image-20221221144423-12.png]] 97 97 ... ... @@ -99,29 +99,29 @@ 99 99 [[image:image-20221221144423-13.png||height="176" width="1080"]] 100 100 101 101 102 -Back to script 113 +(% style="color:blue" %)**Back to script** 103 103 104 -Modify (% style="display:none" %) (%%)the data obtained in log.txt to the script 115 +Modify (% style="display:none" %) (%%)the data obtained in (% style="color:blue" %)**log.txt**(%%) to the script 105 105 106 -“0” Changed to “10006” 117 +(% style="color:#037691" %)**“0” Changed to “10006”** 107 107 108 -“60245” Changed to “79” (% style="display:none" %)119 +(% style="color:#037691" %)**“60245” Changed to “79”** 109 109 110 110 [[image:image-20221221144423-14.png]] 111 111 112 112 113 -(% style="display:none" %) (%%) 114 114 115 - 5. Package the py file into an exe125 +== 1.5 Package the py file into an exe == 116 116 117 -Step 1:Installing the pyinstaller module 118 118 119 - Step2:Open cmd andswitch to thedirectory wherethe script islocated128 +(% style="color:blue" %)**Step 1:**(%%)Installing the pyinstaller module 120 120 130 +(% style="color:blue" %)**Step 2:**(%%)Open cmd and switch to the directory where the script is located 131 + 121 121 [[image:image-20221221144423-15.png]] 122 122 123 123 124 -Step 3:Enter the following command 135 +(% style="color:blue" %)**Step 3:**(%%)Enter the following command 125 125 126 126 [[image:image-20221221144423-16.png]] 127 127 ... ... @@ -137,7 +137,7 @@ 137 137 138 138 [[image:image-20221221144423-18.png]] 139 139 140 -Finally, put the office_ Map.png and icon.png Put the into the dist folder. 151 +(% style="color:blue" %)**Finally**(%%), put the office_ Map.png and icon.png Put the into the dist folder. 141 141 142 142 Just run the program in dist. 143 143