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 - OperatinginstructionsforBLE indoor positioning1 +Example of BLE indoor positioning python - Content
-
... ... @@ -1,40 +1,26 @@ 1 -(% class="wikigeneratedid" %) 2 -**Table of Contents:** 1 +~1. open the application 3 3 4 - {{toc/}}3 +Enter the following information: 5 5 5 +* Subscribe to topics:MQTT Subscription Topic of TTN-V3 6 6 7 +Example: v3/litest@ttn/devices/eui-70b3d57ed0058a17/up 7 7 8 - 9 -= 1. Operating instructions for BLE indoor positioning = 10 - 11 - 12 -== Step 1: open the application == 13 - 14 - 15 -(% style="color:blue" %)**Enter the following information:** 16 - 17 -(% style="color:#037691" %)**Subscribe to topics:**(%%)**MQTT Subscription Topic of TTN-V3** 18 - 19 -**Example: **v3/litest@ttn/devices/eui-70b3d57ed0058a17/up 20 - 21 21 * v3: Unchanging 22 22 23 - *litest@ttn:'litest'is the ID of the application,'@ttn'unchanging.If you use your own TTN platform, @ ttn doesn't need11 +litest@ttn:’litest 'is the ID of the application,’@ttn’ unchanging.If you use your own TTN platform, @ ttn doesn't need 24 24 25 -* devices: Unchanging 13 +* devices:Unchanging 14 +* eui-70b3d57ed0058a17:End device ID 15 +* Up:Unchanging 26 26 27 - *eui-70b3d57ed0058a17:EndiceID17 +server address:Server address of TTN-V3() 28 28 29 - * Up: Unchanging19 +Application ID:Application ID of TTN-V3() 30 30 31 - (%style="color:#037691"%)**serveraddress:**(%%)**Server addressof TTN-V3()**21 +APIKEY:APIKEY of your own account() 32 32 33 -(% style="color:#037691" %)**Application ID:**(%%)**Application ID of TTN-V3()** 34 34 35 -(% style="color:#037691" %)**APIKEY: **(%%)**APIKEY of your own account()** 36 - 37 - 38 38 [[image:image-20221221144423-1.png]] 39 39 40 40 ... ... @@ -43,34 +43,36 @@ 43 43 44 44 [[image:image-20221221144423-3.png]] 45 45 32 +(% style="display:none" %) (%%) 46 46 47 - ==Step2: Click the save button after writing==34 +**2. (% style="display:none" %) (%%)Click the save button after writing** 48 48 49 49 50 50 [[image:image-20221221144423-4.png]] 51 51 39 +**Warning:** 52 52 53 - (%style="background-color:yellow"%)**Warning:**41 +When the save button is pressed, it cannot be pressed again to prevent data confusion。 54 54 55 - When the save button ispressed,it cannotbepressedagaintopreventdataconfusion.43 +If you want to modify the subscription topic, (% style="display:none" %) (%%)you need to restart the application。 56 56 57 -If you want to modify the subscription topic, you need to restart the application. 58 58 46 +**3. (% style="display:none" %) (%%)Click the location button** 59 59 60 -== Step 3: Click the location button == 61 61 62 - 63 63 Just press once 64 64 65 -[[image:image-20221221144423-5.png]] 51 +[[image:image-20221221144423-5.png]](% style="display:none" %) 66 66 67 67 68 -When the BLE node sends information, the application will display the located base station .54 +When the BLE node sends information, the application will display the located base station 69 69 70 70 71 - ==Step 4: About how tosetthebase stationpoint and insertthefloorplan==57 +(% style="display:none" %) (%%) 72 72 73 73 60 +**4. About how to set the base station point and insert the floor plan** 61 + 74 74 Place the floor plan in the same path as the python script 75 75 76 76 Change the file name to office_ map(The picture pixel is 800x600) ... ... @@ -78,18 +78,19 @@ 78 78 [[image:image-20221221144423-7.png]] 79 79 80 80 81 - (% style="color:blue" %)**Open source code**69 +Open source code 82 82 83 83 [[image:image-20221221144423-8.png]] 84 84 85 85 86 - (% style="color:blue" %)**Remove comments**74 +Remove comments 87 87 88 88 [[image:image-20221221144423-9.png]] 89 89 90 90 91 -(% style="color:blue" %)**Run Script** 92 92 80 +Run Script 81 + 93 93 The cursor position is the data pointed by the arrow, x=323 y=503 94 94 95 95 [[image:image-20221221144423-10.png]] ... ... @@ -102,7 +102,7 @@ 102 102 103 103 104 104 105 -After clicking Save, a (% style="color:blue" %)**log.txt**(%%)will be generated in the same directory as the script94 +After clicking Save, a log.txt will be generated in the same directory as the script 106 106 107 107 [[image:image-20221221144423-12.png]] 108 108 ... ... @@ -110,28 +110,29 @@ 110 110 [[image:image-20221221144423-13.png||height="176" width="1080"]] 111 111 112 112 113 - (% style="color:blue" %)**Back to script**102 +Back to script 114 114 115 -Modify (% style="display:none" %) (%%)the data obtained in (% style="color:blue" %)**log.txt**(%%)to the script104 +Modify (% style="display:none" %) (%%)the data obtained in log.txt to the script 116 116 117 - (% style="color:#037691" %)**“0” Changed to “10006”**106 +“0” Changed to “10006” 118 118 119 - (% style="color:#037691" %)**“60245” Changed to “79”**108 +“60245” Changed to “79”(% style="display:none" %) 120 120 121 121 [[image:image-20221221144423-14.png]] 122 122 123 123 124 - ==Step 5: Package the pyfiletoanxe==113 +(% style="display:none" %) (%%) 125 125 115 +5. Package the py file into an exe 126 126 127 - (% style="color:blue" %)**Step 1:**(%%)Installing the pyinstaller module117 +Step 1:Installing the pyinstaller module 128 128 129 - (% style="color:blue" %)**Step 2:**(%%)Open cmd and switch to the directory where the script is located119 +Step 2:Open cmd and switch to the directory where the script is located 130 130 131 131 [[image:image-20221221144423-15.png]] 132 132 133 133 134 - (% style="color:blue" %)**Step 3:**(%%)Enter the following command124 +Step 3:Enter the following command 135 135 136 136 [[image:image-20221221144423-16.png]] 137 137 ... ... @@ -147,7 +147,7 @@ 147 147 148 148 [[image:image-20221221144423-18.png]] 149 149 150 - (% style="color:blue" %)**Finally**(%%), put the office_ Map.png and icon.png Put the into the dist folder.140 +Finally, put the office_ Map.png and icon.png Put the into the dist folder. 151 151 152 152 Just run the program in dist. 153 153