Show last authors
1 (% class="wikigeneratedid" %)
2 **Table of Contents:**
3
4 {{toc/}}
5
6
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 * v3: Unchanging
22
23 * litest@ttn: 'litest' is the ID of the application, '@ttn' unchanging.If you use your own TTN platform, @ ttn doesn't need
24
25 * devices: Unchanging
26
27 * eui-70b3d57ed0058a17: End device ID
28
29 * Up: Unchanging
30
31 (% style="color:#037691" %)**server address:**(%%)**Server address of TTN-V3()**
32
33 (% style="color:#037691" %)**Application ID:**(%%)**Application ID of TTN-V3()**
34
35 (% style="color:#037691" %)**APIKEY:            **(%%)**APIKEY of your own account()**
36
37
38 [[image:image-20221221144423-1.png]]
39
40
41 [[image:image-20221221144423-2.png||height="534" width="1081"]]
42
43
44 [[image:image-20221221144423-3.png]]
45
46
47 == Step 2: Click the save button after writing ==
48
49
50 [[image:image-20221221144423-4.png]]
51
52
53 (% style="background-color:yellow" %)**Warning:**
54
55 (% style="color:red" %)**When the save button is pressed, it cannot be pressed again to prevent data confusion.**
56
57 (% style="color:red" %)**If you want to modify the subscription topic, you need to restart the application.**
58
59
60 == Step 3: Click the location button ==
61
62
63 Just press once
64
65 [[image:image-20221221144423-5.png]]
66
67
68 When the BLE node sends information, the application will display the located base station.
69
70
71 == Step 4: About how to set the base station point and insert the floor plan ==
72
73
74 Place the floor plan in the same path as the python script
75
76 Change the file name to office_ map(The picture pixel is 800x600)
77
78 [[image:image-20221221144423-7.png]]
79
80
81 (% style="color:blue" %)**Open source code**
82
83 [[image:image-20221221144423-8.png]]
84
85
86 (% style="color:blue" %)**Remove comments**
87
88 [[image:image-20221221144423-9.png]]
89
90
91 (% style="color:blue" %)**Run Script**
92
93 The cursor position is the data pointed by the arrow, x=323 y=503
94
95 [[image:image-20221221144423-10.png]]
96
97 cv. create_ Image is changed to (323,483)~-~-(x y-20 above)
98
99 cv. create_ Image is changed to (323,503)~-~--(x y above)
100
101 [[image:image-20221221144423-11.png]]
102
103
104
105 After clicking Save, a (% style="color:blue" %)**log.txt** (%%)will be generated in the same directory as the script
106
107 [[image:image-20221221144423-12.png]]
108
109
110 [[image:image-20221221144423-13.png||height="176" width="1080"]]
111
112
113 (% style="color:blue" %)**Back to script**
114
115 Modify (% style="display:none" %) (%%)the data obtained in (% style="color:blue" %)**log.txt**(%%) to the script
116
117 (% style="color:#037691" %)**“0” Changed to “10006”**
118
119 (% style="color:#037691" %)**“60245” Changed to “79”**
120
121 [[image:image-20221221144423-14.png]]
122
123
124 == Step 5: Package the py file into an exe ==
125
126
127 (% style="color:blue" %)**Step 1:**(%%)Installing the pyinstaller module
128
129 (% style="color:blue" %)**Step 2:**(%%)Open cmd and switch to the directory where the script is located
130
131 [[image:image-20221221144423-15.png]]
132
133
134 (% style="color:blue" %)**Step 3:**(%%)Enter the following command
135
136 [[image:image-20221221144423-16.png]]
137
138
139 See the following certificate packaging completed.
140
141 [[image:image-20221221144423-17.png]]
142
143
144 The following files will be generated in the same directory of the script.
145
146 In addition to dist, the other two files can be deleted.
147
148 [[image:image-20221221144423-18.png]]
149
150 (% style="color:blue" %)**Finally**(%%), put the office_ Map.png and icon.png Put the into the dist folder.
151
152 Just run the program in dist.
153
154
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0