IOT (Internet of Things) equipment positioning data optimization method
By analyzing the signal strength and acquisition times of base station and WIFI data scanned by IOT devices, we optimize positioning data transmission, solve the problems of device positioning drift and resource waste, achieve more stable and accurate positioning, and reduce costs.
Patent Information
- Application Number
- CN202410901202.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-09-10
AI Technical Summary
When existing IOT devices are positioned, due to the fluctuation of base stations and WIFI signals, the device positioning drifts, the positioning accuracy is low, and it is impossible to effectively determine whether the position has changed, resulting in unnecessary waste of server resources.
Scan the base station and WIFI data through IOT devices and transmit it to the IoT cloud platform for analysis. Use signal strength and acquisition times to calculate the quality value, sort the optimal base station and WIFI data, and optimize positioning data transmission only when the location changes. Update the map server to reduce unnecessary interface calls.
It improves the stability and accuracy of device positioning, reduces positioning point drift, and saves the cost of using servers and third-party map software.
Smart Images

Figure CN118632347A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of refrigerators, and in particular relates to a method for optimizing positioning data of an IOT device. Background Art
[0002] The refrigerators used to store beverages in supermarkets are usually provided by beverage manufacturers. In order to ensure that the refrigerators are used normally in supermarkets and have not been transferred or moved to other places, the manufacturers have installed IoT devices on the refrigerators to locate the refrigerators. Existing IoT devices mostly use base station + WiFi positioning when locating, but the wireless signals of base stations and WIFI are not always constant, but fluctuating. Even if the position of the IoT device has not changed, the base station data and WiFi data it searches for may change continuously due to the fluctuation characteristics of the signal. As a result, the location of the device will continue to move within a small range, causing equipment positioning drift, confusion of positioning points, and low positioning accuracy. Summary of the invention
[0003] In order to solve the above technical problems, the present invention provides a method for optimizing positioning data of IOT devices.
[0004] The specific plan is as follows: The method for optimizing positioning data of an IOT device, including an IOT device, an IOT cloud platform and a map server, comprises the following steps: S1): The IOT device scans the base station and WIFI data, and transmits the scanned base station and WIFI data to the IoT cloud platform; S2): The IoT cloud platform analyzes the base station and WIFI data to obtain the optimal base station and WIFI data; S3): The IoT cloud platform determines whether the analysis of the base station and WIFI data is the first analysis. If it is the first analysis, the optimal base station and WIFI data are stored, and the map server is called according to the optimal base station and WIFI data to obtain positioning data; if it is not the first analysis, it goes to step S4); S4): The IoT cloud platform compares the optimal base station and WIFI data with the optimal base station and WIFI data obtained in the previous analysis, and determines whether the optimal base station and WIFI data obtained twice are consistent; if they are consistent, the positioning data is not obtained by calling the map server; if they are inconsistent, the optimal base station and WIFI data obtained in this analysis replace the optimal base station and WIF data obtained in the previous analysis for storage, and at the same time, the map server is called to obtain positioning data based on the optimal base station and WIFI data obtained in this analysis.
[0005] The IOT device scans the base station and WIFI data at intervals of T1, and the duration of each scan of the base station and WIFI data is T2.
[0006] The IOT device receives an instruction from the Internet of Things cloud platform to scan the base station and WIFI data, and the duration of scanning the base station and WIFI data is T2.
[0007] The method for analyzing base station and WIFI data by the IoT cloud platform includes the following steps: S21): Obtain the signal strength of each base station and WIFI data, and record the number of acquisitions of each base station and WIFI data; S22): Assign different weights to the signal strength and acquisition times of the base station and WIFI data respectively; S23): Calculate the quality value Q of each base station and WIFI data based on the weight, and the calculation formula is Q=W1*DBm+W2*N; in, Q represents the quality value of each base station and WIFI data; W1 represents the weight value of the signal strength of the base station and WIFI data; DBm represents the signal strength of base station and WIFI data; W2 represents the weight value of the number of times each base station and WIFI data is recorded; N represents the number of times each base station and WIFI data is recorded; S24): Sort the quality values Q, and take the base station and WIFI data corresponding to the maximum quality value Q as the optimal base station and WIFI data; The method by which the IoT cloud platform determines whether it is the first analysis is to determine whether the optimal base station and WIFI data are stored in the memory.
[0008] The IOT physical device is connected to the physical network cloud platform by wireless communication, and the Internet of Things cloud platform is connected to the map server by wireless communication.
[0009] The present invention discloses an IOT device positioning data optimization method. The method continuously scans base station and WIFI data within a certain period of time, summarizes and analyzes all the data, automatically analyzes which data is the best and most practical information, and determines the data that should be reported according to the sorting of base station and WiFi data. After the optimization method is executed, the stability and accuracy of device positioning can be increased, and the drift of positioning points basically does not occur. At the same time, the method also automatically determines whether the location of the device has changed from before. If not, new base station and WiFi information will not be sent to the map server interface, which can save the use cost of the server and the use cost of third-party map software. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0011] The following will be combined with the accompanying drawings in the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the implementation of the present invention, not all of the implementations. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0012] like Figure 1 As shown, the method for optimizing the positioning data of an IOT device includes an IOT device, an IOT cloud platform and a map server, and includes the following steps: S1): The IOT device scans the base station and WIFI data, and transmits the scanned base station and WIFI data to the IoT cloud platform; for those skilled in the art, base stations and WIFI are also called cellular network WiFi or operator WiFi, which is a technology that uses cellular network infrastructure to provide WiFi services. It is different from the traditional WiFi network that relies on wireless routers for signal transmission. The working principle of base station WiFi is that the IOT device connects to the base station through the cellular network, and then the base station broadcasts the WiFi signal to nearby devices. The devices can connect to the base station WiFi like connecting to a normal WiFi network.
[0013] S2): The IoT cloud platform analyzes the base station and WIFI data to obtain the optimal base station and WIFI data; S3): The IoT cloud platform determines whether the analysis of the base station and WIFI data is the first analysis. If it is the first analysis, the optimal base station and WIFI data are stored, and the map server is called according to the optimal base station and WIFI data to obtain positioning data; if it is not the first analysis, it goes to step S4); S4): The IoT cloud platform compares the optimal base station and WIFI data with the optimal base station and WIFI data obtained in the previous analysis, and determines whether the optimal base station and WIFI data obtained twice are consistent; if they are consistent, the positioning data is not obtained by calling the map server; if they are inconsistent, the optimal base station and WIFI data obtained in this analysis replace the optimal base station and WIF data obtained in the previous analysis for storage, and at the same time, the map server is called to obtain positioning data based on the optimal base station and WIFI data obtained in this analysis.
[0014] The IOT device scans the base station and WIFI data at intervals of T1, and the duration of each scan of the base station and WIFI data is T2.
[0015] The IOT device receives an instruction from the Internet of Things cloud platform to scan the base station and WIFI data, and the duration of scanning the base station and WIFI data is T2.
[0016] In this embodiment, each scan of the base station and WIFI data takes 10 minutes. Within 10 minutes, the IoT cloud platform continuously analyzes the acquired base station and WIFI data, optimizes the sorting, and finally transmits the optimal base station and WIFI data to the map server to obtain positioning data.
[0017] The method for analyzing base station and WIFI data by the IoT cloud platform includes the following steps: S21): Obtain the signal strength of each base station and WIFI data, and record the number of acquisitions of each base station and WIFI data; S22): Assign different weights to the signal strength and acquisition times of the base station and WIFI data respectively; S23): Calculate the quality value Q of each base station and WIFI data based on the weight, and the calculation formula is Q=W1*DBm+W2*N; in, Q represents the quality value of each base station and WIFI data; W1 represents the weight value of the signal strength of the base station and WIFI data; DBm represents the signal strength of base station and WIFI data; W2 represents the weight value of the number of times each base station and WIFI data is recorded; N represents the number of times each base station and WIFI data is recorded; S24): Sort the quality values Q, and take the base station and WIFI data corresponding to the maximum quality value Q as the optimal base station and WIFI data; The method by which the IoT cloud platform determines whether it is the first analysis is to determine whether the optimal base station and WIFI data are stored in the memory.
[0018] The IOT physical device is wirelessly connected to the physical network cloud platform, and the IOT cloud platform is wirelessly connected to the map server. In this embodiment, the map server is Baidu Map or AutoNavi Map Service, the IOT cloud platform is Alibaba Cloud IOT cloud platform, and the IOT cloud platform is connected to the map server through a map interface.
[0019] The present invention discloses an IOT device positioning data optimization method. The method continuously scans base station and WIFI data within a certain period of time, summarizes and analyzes all the data, automatically analyzes which data is the best and most practical information, and determines the data that should be reported according to the sorting of base station and WiFi data. After the optimization method is executed, the stability and accuracy of device positioning can be increased, and the drift of positioning points basically does not occur. At the same time, the method also automatically determines whether the location of the device has changed from before. If not, new base station and WiFi information will not be sent to the map server interface, which can save the use cost of the server and the use cost of third-party map software.
[0020] The technical means disclosed in the scheme of the present invention are not limited to the technical means disclosed in the above-mentioned implementation mode, but also include technical schemes composed of any combination of the above-mentioned technical features. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications are also regarded as the protection scope of the present invention.
Claims
1. The method for optimizing the positioning data of IOT devices is characterized by: Including IOT devices, IoT cloud platform and map server, including the following steps: S1): The IOT device scans the base station and WIFI data, and transmits the scanned base station and WIFI data to the IoT cloud platform; S2): The IoT cloud platform analyzes the base station and WIFI data to obtain the optimal base station and WIFI data; S3): The IoT cloud platform determines whether the analysis of the base station and WIFI data is the first analysis. If it is the first analysis, the optimal base station and WIFI data are stored, and the map server is called according to the optimal base station and WIFI data to obtain positioning data; if it is not the first analysis, it goes to step S4); S4): The IoT cloud platform compares the optimal base station and WIFI data with the optimal base station and WIFI data obtained in the previous analysis, and determines whether the optimal base station and WIFI data obtained twice are consistent; if they are consistent, the positioning data is not obtained by calling the map server; if they are inconsistent, the optimal base station and WIFI data obtained in this analysis replace the optimal base station and WIF data obtained in the previous analysis for storage, and at the same time, the map server is called to obtain positioning data based on the optimal base station and WIFI data obtained in this analysis.
2. The method for optimizing IOT device positioning data according to claim 1, characterized in that: The IOT device scans the base station and WIFI data at intervals of T1, and the duration of each scan of the base station and WIFI data is T2.
3. The method for optimizing IOT device positioning data according to claim 1, characterized in that: The IOT device receives an instruction from the Internet of Things cloud platform to scan the base station and WIFI data, and the duration of scanning the base station and WIFI data is T2.
4. The method for optimizing IOT device positioning data according to claim 1, characterized in that: The method for analyzing base station and WIFI data by the IoT cloud platform includes the following steps: S21): Obtain the signal strength of each base station and WIFI data, and record the number of acquisitions of each base station and WIFI data; S22): Assign different weights to the signal strength and acquisition times of the base station and WIFI data respectively; S23): Calculate the quality value Q of each base station and WIFI data based on the weight, and the calculation formula is Q=W1*DBm+W2*N; in, Q represents the quality value of each base station and WIFI data; W1 represents the weight value of the signal strength of the base station and WIFI data; DBm represents the signal strength of base station and WIFI data; W2 represents the weight value of the number of times each base station and WIFI data is recorded; N represents the number of times each base station and WIFI data is recorded; S24): Sort the quality values Q, and take the base station and WIFI data corresponding to the maximum quality value Q as the optimal base station and WIFI data.
5. The method for optimizing IOT device positioning data according to claim 1, characterized in that: The method by which the IoT cloud platform determines whether it is the first analysis is to determine whether the optimal base station and WIFI data are stored in the memory.
6. The method for optimizing IOT device positioning data according to claim 1, characterized in that: The IOT physical device is connected to the physical network cloud platform by wireless communication, and the Internet of Things cloud platform is connected to the map server by wireless communication.
