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,40 @@ 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 + 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 + 9 9 * v3: Unchanging 10 10 11 -litest@ttn: ’litest’@ttn’unchanging.If you use your own TTN23 +* 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 25 +* devices: Unchanging 16 16 17 - serveraddress:Serveraddress of TTN-V3()27 +* eui-70b3d57ed0058a17: End device ID 18 18 19 - ApplicationID:ApplicationID of TTN-V3()29 +* Up: Unchanging 20 20 21 - APIKEY:APIKEYofyourownaccount()31 +(% style="color:#037691" %)**server address:**(%%)**Server address of TTN-V3()** 22 22 33 +(% style="color:#037691" %)**Application ID:**(%%)**Application ID of TTN-V3()** 23 23 35 +(% style="color:#037691" %)**APIKEY: **(%%)**APIKEY of your own account()** 36 + 37 + 24 24 [[image:image-20221221144423-1.png]] 25 25 26 26 ... ... @@ -29,36 +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**47 +== Step 2: Click the save button after writing == 35 35 36 36 37 37 [[image:image-20221221144423-4.png]] 38 38 39 -**Warning:** 40 40 41 - Whenthesavebuttonis pressed, itcannot be pressed again toprevent data confusion。53 +(% style="background-color:yellow" %)**Warning:** 42 42 43 - If you wantto modify the subscriptiontopic,(%style="display:none" %) (%%)youneed to restarttheapplication。55 +When the save button is pressed, it cannot be pressed again to prevent data confusion. 44 44 57 +If you want to modify the subscription topic, you need to restart the application. 45 45 46 -**3. (% style="display:none" %) (%%)Click the location button** 47 47 60 +== Step 3: Click the location button == 48 48 62 + 49 49 Just press once 50 50 51 -[[image:image-20221221144423-5.png]] (% style="display:none" %)65 +[[image:image-20221221144423-5.png]] 52 52 53 53 54 -When the BLE node sends information, the application will display the located base station 68 +When the BLE node sends information, the application will display the located base station. 55 55 56 56 57 - (%style="display:none"%)(%%)71 +== Step 4: About how to set the base station point and insert the floor plan == 58 58 59 59 60 -**4. About how to set the base station point and insert the floor plan** 61 - 62 62 Place the floor plan in the same path as the python script 63 63 64 64 Change the file name to office_ map(The picture pixel is 800x600) ... ... @@ -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,28 @@ 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"%) (%%)124 +== Step 5: Package the py file into an exe == 114 114 115 -5. Package the py file into an exe 116 116 117 -Step 1:Installing the pyinstaller module 127 +(% style="color:blue" %)**Step 1:**(%%)Installing the pyinstaller module 118 118 119 -Step 2:Open cmd and switch to the directory where the script is located 129 +(% style="color:blue" %)**Step 2:**(%%)Open cmd and switch to the directory where the script is located 120 120 121 121 [[image:image-20221221144423-15.png]] 122 122 123 123 124 -Step 3:Enter the following command 134 +(% 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. 150 +(% 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