Positioning method and device, computer equipment and readable storage medium

By using the matching processing of the region identification and signal strength parameters of the Internet of Things devices with the historical positioning information database, the device positioning results are determined, and the problem of high positioning power consumption of IoT devices is solved, and a more efficient positioning method is realized.

CN119584052APending Publication Date: 2025-03-07FIBOCOM WIRELESS SOFTWARE INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410870480.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

The existing IoT device positioning methods lead to large power consumption, affecting the battery life of the device. How to reduce the power consumption of the device positioning is an urgent problem.

Method used

By obtaining the area identification and signal strength parameters of the target device, and performing data matching processing based on the historical positioning information in the historical positioning information database, the positioning results of the target device are determined, avoiding frequent activation of positioning and reducing system resource consumption.

Benefits of technology

It reduces the power consumption of the equipment positioning, extends the time of the equipment, improves the flexibility and reliability of positioning, and balances the positioning power consumption and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119584052A_ABST
    Figure CN119584052A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a positioning method and device, computer equipment and a readable storage medium, and the method comprises the steps: obtaining a region identifier and a signal intensity parameter of target equipment, the signal intensity parameter being used for indicating the signal intensity of current signal receiving and transmitting equipment received by the target equipment; the current signal receiving and transmitting equipment is signal receiving and transmitting equipment in an area indicated by the area identifier; performing data matching processing according to the historical positioning information in the historical positioning information base, the region identifier of the target device and the signal intensity parameter to obtain a matching result; and determining a positioning result of the target equipment according to a matching result, wherein the positioning result is obtained according to matched historical positioning information in a historical positioning information base or starting positioning. The embodiment of the invention can reduce the equipment positioning power consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a positioning method, a positioning device, a computer equipment, and a computer-readable storage medium. Background Art

[0002] With the rapid development and widespread application of the Internet of Things, higher requirements have been placed on wireless communication technology. Among them, low power consumption as an important feature has become an indispensable part of the design of IoT communication. Device positioning is an indispensable function in IoT devices. Device positioning is usually performed at regular intervals, such as using the Global Navigation Satellite System (GNSS) positioning method to locate the device at fixed intervals. However, this results in high power consumption for device positioning, which seriously affects the endurance of the device. Therefore, how to reduce the power consumption of device positioning is an urgent problem to be solved. Summary of the invention

[0003] The present application provides a positioning method, apparatus, computer equipment and readable storage medium, which can reduce the power consumption of equipment positioning.

[0004] On the one hand, the present application provides a positioning method, the method comprising:

[0005] Obtaining the area identifier and signal strength parameter of the target device; the signal strength parameter is used to indicate the signal strength received by the target device from the current signal transceiver device, and the current signal transceiver device is a signal transceiver device in the area indicated by the area identifier;

[0006] Perform data matching processing according to the historical positioning information in the historical positioning information database, the area identification of the target device and the signal strength parameters to obtain a matching result;

[0007] The positioning result of the target device is determined according to the matching result; the positioning result is obtained according to the historical positioning information matched in the historical positioning information library or the start positioning.

[0008] On the other hand, the present application provides a positioning device, the device comprising:

[0009] An acquisition module, used to acquire an area identifier and a signal strength parameter of a target device; the signal strength parameter is used to indicate the signal strength of a current signal transceiver device received by the target device, and the current signal transceiver device is a signal transceiver device in the area indicated by the area identifier;

[0010] A processing module, used to perform data matching processing according to the historical positioning information in the historical positioning information database, the area identification of the target device and the signal strength parameter to obtain a matching result;

[0011] The determination module is used to determine the positioning result of the target device according to the matching result; the positioning result is obtained according to the historical positioning information matched in the historical positioning information library or the start positioning.

[0012] In a possible implementation, when the determination module is used to determine the positioning result of the target device according to the matching result, it is specifically used to:

[0013] If the matching result indicates that there is matching historical positioning information in the historical positioning information database, determining the positioning result of the target device according to the matching historical positioning information;

[0014] If the matching result indicates that there is no matching historical positioning information in the historical positioning information database, positioning is initiated to obtain the positioning result of the target device.

[0015] In a possible implementation, the historical positioning information includes a candidate area identifier, a candidate signal strength range, and a candidate positioning result;

[0016] When the processing module is used to perform data matching processing according to the historical positioning information in the historical positioning information database, the area identification of the target device and the signal strength parameter to obtain the matching result, it is specifically used to:

[0017] Matching the region identifier of the target device with the candidate region identifiers of each historical positioning information to obtain a region matching result;

[0018] If the area matching result indicates that there is a matching candidate area identifier, obtaining at least one candidate signal strength range associated with the matching candidate area identifier;

[0019] Performing matching processing on the signal strength parameter of the target device and at least one candidate signal strength range to obtain a signal matching result;

[0020] If the signal matching result indicates that there is a matching candidate signal strength range, obtaining a target candidate positioning result corresponding to the matching candidate signal strength range associated with the matching candidate area identifier;

[0021] Determining the matching result indicates that there is matching historical positioning information in the historical positioning information database, and the matching historical positioning information is the target candidate positioning result.

[0022] In a possible implementation, the processing module is further configured to:

[0023] If the area matching result indicates that there is no matching candidate area identifier, or the signal matching result indicates that there is no matching candidate signal strength range, then it is determined that the matching result indicates that there is no matching historical positioning information in the historical positioning information database.

[0024] In a possible implementation, the historical positioning information further includes the positioning time of the candidate positioning result; and the processing module is further configured to:

[0025] Obtaining the positioning time of the candidate positioning result in the matched historical positioning information;

[0026] Determine a first time interval between the positioning time of the candidate positioning result in the matched historical positioning information and the current time;

[0027] If the first time interval is greater than the first interval threshold, positioning is started to obtain a positioning result of the target device;

[0028] If the first time interval is less than or equal to the first interval threshold, a step of determining a positioning result of the target device according to the matched historical positioning information is performed.

[0029] In a possible implementation, the processing module is further configured to:

[0030] After starting the positioning and obtaining the positioning result of the target device, the area identifier of the target device, the signal strength range where the signal strength parameter is located, the positioning result and the positioning time of the positioning result are associated and stored in the historical positioning information library.

[0031] In a possible implementation, the processing module is further configured to:

[0032] Obtain the historical positioning information to be detected in the historical positioning information database, and obtain the positioning time of the candidate positioning result in the historical positioning information to be detected; the historical positioning information to be detected is any historical positioning information in the historical positioning information database;

[0033] Determine a second time interval between the positioning time of the candidate positioning result in the historical positioning information to be detected and the current time;

[0034] If the second time interval is greater than the second interval threshold, the historical positioning information to be detected is deleted from the historical positioning information database.

[0035] Correspondingly, the present application provides a computer device, comprising: a processor, a storage device and a communication interface, wherein the processor, the communication interface and the storage device are interconnected, wherein the storage device stores a computer program, and the processor is used to call the computer program to implement the positioning method.

[0036] Accordingly, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and wherein the program instructions are executed by a processor to implement the positioning method as described above.

[0037] Accordingly, the present application provides a computer program product, which includes a computer program. The computer program is executed by a processor to implement the above positioning method.

[0038] The embodiment of the present application obtains the area identification and signal strength parameters of the target device, and performs data matching processing according to the historical positioning information in the historical positioning information library, the area identification and signal strength parameters of the target device to obtain a matching result. According to the matching result, different methods can be used to determine the positioning result of the target device, such as determining the positioning result of the target device according to the historical positioning information matched in the historical positioning information library, or starting the positioning to obtain the positioning result of the target device, thereby improving the flexibility and reliability of device positioning. By using the historical positioning information matched in the historical positioning information library, it is possible to avoid the target device from frequently starting the positioning, thereby reducing the consumption of system resources, reducing the power consumption of the device positioning, extending the use time of the device, and balancing the power consumption and accuracy of the device positioning. At the same time, by determining the positioning result through the matched historical positioning information, compared with starting the positioning to determine the positioning result, it can ensure that the efficiency of obtaining the positioning result is higher, which also improves the efficiency of device positioning to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0040] Figure 1 is a schematic diagram of the architecture of a positioning system provided in an embodiment of the present application;

[0041] Figure 2 It is a flowchart of a positioning method provided in an embodiment of the present application;

[0042] Figure 3 is a flowchart of another positioning method provided in an embodiment of the present application;

[0043] Figure 4A is a data structure diagram of historical positioning information provided by an embodiment of the present application;

[0044] Figure 4B This is a schematic diagram of a positioning process provided by an embodiment of the present application;

[0045] Figure 5 is a structural schematic diagram of a positioning device provided in an embodiment of the present application;

[0046] Figure 6 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0048] The present application will be illustrated by the following examples.

[0049] See also Figure 1 , which is a schematic diagram of the architecture of a positioning system provided in an embodiment of the present application. The positioning system may specifically include a terminal device 101 and a server 102. The terminal device 101 and the server 102 are connected via a network, such as a local area network, a wide area network, a mobile Internet, etc.

[0050] The terminal device 101 is also referred to as a terminal, user equipment (UE), access terminal, user unit, mobile device, user terminal, wireless communication device, user agent or user device. The terminal device may be a smart home appliance, a handheld device with wireless communication function (such as a smart phone, a tablet computer), a computing device (such as a personal computer (PC)), a vehicle terminal, an intelligent voice interaction device, a wearable device or other smart device, but is not limited thereto.

[0051] Server 102 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.

[0052] In one possible implementation, the terminal device may refer to a target device (such as an IoT device such as a smart home device), or the terminal device may refer to a device connected to the target device (such as a positioning device connected to the target device via a Universal Serial Bus (USB)).

[0053] Then, the terminal device can execute the positioning method in the embodiment of the present application. Specifically, the terminal device can obtain the area identification and signal strength parameter of the target device, and the signal strength parameter is used to indicate the signal strength of the target device received by the current signal transceiver device, and the current signal transceiver device is a signal transceiver device in the area indicated by the area identification; then, the terminal device can perform data matching processing based on the historical positioning information in the historical positioning information library, the area identification and signal strength parameter of the target device, and obtain a matching result; the terminal device then determines the positioning result of the target device based on the matching result, and the positioning result is obtained based on the historical positioning information matched in the historical positioning information library or by starting the positioning.

[0054] In a possible implementation, the terminal device may execute the step of obtaining the area identifier and signal strength parameter of the target device in response to the triggering of the positioning function (such as performing device positioning at fixed intervals). The terminal device may also execute the step of obtaining the area identifier and signal strength parameter of the target device after receiving the positioning request from the server, based on which the terminal device may return the positioning result to the server.

[0055] It is understandable that the system architecture diagram described in the embodiment of the present application is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided by the embodiment of the present application. For example, the positioning method provided in the embodiment of the present application can be executed by the terminal device 101, the target device, or other terminal devices, servers or server clusters that are different from the terminal device 101 and can communicate with the terminal device 101 and / or the server 102. It is known to those skilled in the art that Figure 1 The number of terminal devices and servers in is only illustrative. According to the business implementation needs, any number of terminal devices and servers can be configured. In addition, with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems. In subsequent embodiments, the terminal device will refer to the above-mentioned terminal device 101, and the server will refer to the above-mentioned server 102, which will not be repeated in subsequent embodiments.

[0056] See also Figure 2 , which is a flow chart of a positioning method provided in an embodiment of the present application, and takes the method applied to a target device as an example for explanation. Figure 2The positioning method shown may include multiple steps in steps S201-S203. It should be understood that for the convenience of description, this application describes the steps S201-S203 in this order, and is not intended to limit the execution to the above order. The embodiment of the application does not limit the execution order, execution time, execution number, etc. of the above one or more steps. Steps S201-S203 are as follows:

[0057] S201. Obtain the area identification and signal strength parameters of the target device.

[0058] In the embodiment of the present application, the target device is the device that needs to be located currently. The region identifier of the target device is a unique identifier of a region. In positioning technology, the region identifier is usually used to identify a region (such as a geographical area range) to help determine the approximate geographical area where the target device is located.

[0059] The current signal transceiver device is a signal transceiver device in the area indicated by the area identifier. The signal transceiver device refers to a device used to send and receive signals, which may be a wireless signal transceiver, a public mobile communication base station (ie, a base station), etc.

[0060] The target device's signal strength parameter is used to indicate the signal strength received by the target device from the current signal transceiver. The signal strength parameter indicates the strength of the signal. The signal strength parameter can be used to infer the distance between the target device and the current signal transceiver. The target device's area identification and signal strength parameter are used to determine matching historical positioning information from the historical positioning information library.

[0061] For example, the area identifier may refer to a unique number used to identify a cell (referred to as Cell Id) in a cellular network (also known as a mobile network), where a cell refers to a network signal coverage area of ​​a signal transceiver device (such as a base station), and the network signal coverage area is hexagonal. Then, the area identifier of the target device may refer to the identifier of the cell where the target device is located (referred to as the cell identifier), and the signal strength parameter of the target device may refer to the signal strength of the base station in the cell where the target device is located.

[0062] S202: Perform data matching processing according to the historical positioning information in the historical positioning information database, the area identification of the target device, and the signal strength parameter to obtain a matching result.

[0063] In the embodiment of the present application, the historical positioning information database is an information database used to store historical positioning information of the target device. The historical positioning information refers to the positioning-related information obtained when the target device starts positioning before the current moment.

[0064] The target device can perform data matching processing based on the historical positioning information in the historical positioning information library, the area identification of the target device, and the signal strength parameters, that is, determine the historical positioning information that matches the area identification and signal strength parameters of the target device from the historical positioning information library (recorded as the matched historical positioning information), and then obtain the matching result. The matching result is used to indicate whether there is matching historical positioning information in the historical positioning information library.

[0065] In a possible implementation, since the area identification and signal strength parameters of the target device are accurate, if the matching result indicates that there is matching historical positioning information in the historical positioning information library, then this matching historical positioning information is also relatively accurate, and this matching historical positioning information can be used as the positioning result of the target device. If the matching result indicates that there is no matching historical positioning information in the historical positioning information library, then the historical positioning information in the historical positioning information library cannot be used directly, but it is necessary to determine the positioning result of the target device by other means, such as starting positioning on the target device to obtain the positioning result.

[0066] S203, determining the positioning result of the target device according to the matching result; the positioning result is obtained according to the historical positioning information matched in the historical positioning information library or the starting positioning.

[0067] In the embodiment of the present application, the target device can determine the positioning result of the target device in different ways based on the matching result, such as determining the historical positioning information matched in the historical positioning information library as the positioning result of the target device, or starting the positioning (that is, performing positioning processing) to obtain the positioning result of the target device. Which specific method is used is determined according to the matching result. This allows the target device to flexibly select the most suitable method to determine the position of the target device according to the specific situation of the matching result, thereby improving the accuracy, flexibility and reliability of device positioning. By effectively utilizing the historical positioning information matched in the historical positioning information library, it is possible to avoid the target device from frequently starting positioning, and only start positioning when necessary, thereby reducing the consumption of system resources, reducing the power consumption of device positioning, extending the use time of the device, and balancing the power consumption and accuracy of device positioning. At the same time, directly using the matched historical positioning information can ensure the efficiency of obtaining the positioning result compared to starting the positioning, which also improves the efficiency of device positioning to a certain extent.

[0068] In a possible implementation, when the matching result indicates that there is matching historical positioning information in the historical positioning information library, the target device can determine the positioning result according to the matching historical positioning information in the historical positioning information library, thereby reducing the power consumption of device positioning. When the matching result indicates that there is no matching historical positioning information in the historical positioning information library, the target device can start positioning and obtain the positioning result, thereby ensuring the timeliness and accuracy of device positioning.

[0069] Based on the above embodiments, the beneficial effect of the present application is that: the embodiment of the present application obtains the area identification and signal strength parameters of the target device, and performs data matching processing according to the historical positioning information in the historical positioning information library, the area identification and signal strength parameters of the target device to obtain a matching result. According to the matching result, different methods can be used to determine the positioning result of the target device, such as determining the positioning result of the target device according to the historical positioning information matched in the historical positioning information library, or starting the positioning to obtain the positioning result of the target device, thereby improving the flexibility and reliability of device positioning. By using the historical positioning information matched in the historical positioning information library, the target device can be prevented from frequently starting the positioning, thereby reducing the consumption of system resources, reducing the power consumption of the device positioning, extending the use time of the device, and balancing the power consumption and accuracy of the device positioning. At the same time, by determining the positioning result through the matched historical positioning information, compared with the positioning result obtained by starting the positioning, it can ensure that the efficiency of obtaining the positioning result is higher, which also improves the efficiency of device positioning to a certain extent.

[0070] See also Figure 3 , which is a schematic diagram of the flow of another positioning method provided in an embodiment of the present application, and takes the method applied to a target device as an example for explanation. Figure 3 The positioning method shown may include multiple steps in steps S301-S307, and steps S301-S307 are specifically as follows:

[0071] S301. Obtain the area identification and signal strength parameters of the target device.

[0072] In the embodiment of the present application, the signal strength parameter is used to indicate the signal strength received by the target device from the current signal transceiver device, and the current signal transceiver device is a signal transceiver device in the area indicated by the area identifier.

[0073] In one possible implementation, the target device may be an IoT device that has a positioning requirement, and most IoT devices support real-time positioning or periodic positioning to obtain device location information. After the positioning function of the IoT device is turned on, the target device will frequently start positioning, regardless of whether it is a device mobile scenario, a device fixed-point scenario, or a scenario where the time span between two positionings is small but the relative position change is not obvious, resulting in a waste of device power consumption. Based on this, the positioning method provided in the embodiment of the present application can avoid frequent positioning startups and balance the power consumption and accuracy of device positioning.

[0074] In a possible implementation, the target device may be an Internet of Things device, and the Internet of Things device includes at least any one of the following: smart home devices, smart agricultural equipment, smart industrial equipment, smart medical equipment, smart transportation equipment, and smart retail equipment.

[0075] Smart home devices: such as smart home cameras, smart video doorbells, smart door locks, smart TVs, etc. These devices are usually fixedly installed indoors.

[0076] Smart agricultural equipment: such as humidity sensors, temperature control equipment, automated irrigation systems, etc. These devices are usually installed in farmland or greenhouses.

[0077] Smart industrial equipment: For example, various machines on the production line, including robot arms, sensors, cameras, etc. These devices are usually fixedly installed inside the factory.

[0078] Smart medical equipment: For example, monitoring equipment in hospitals, including blood pressure monitors, blood glucose meters, etc. These devices are usually located within medical institutions and have a small range of movement.

[0079] Intelligent traffic equipment: such as traffic lights, road cameras, bus stops, etc. These devices are fixedly installed on roads or in public places.

[0080] Smart retail equipment: such as smart shelves, unmanned vending machines, etc., which are fixedly installed in stores or supermarkets.

[0081] The target device can be any of the above IoT devices. It can ensure positioning accuracy while solving the problem of device power consumption waste caused by frequent device positioning in device fixed-point scenarios and when the time span between two positionings is small and the relative position change is not obvious.

[0082] S302: Perform data matching processing according to the historical positioning information in the historical positioning information database, the area identification of the target device, and the signal strength parameter to obtain a matching result.

[0083] In a possible implementation, the historical positioning information includes a candidate area identifier, a candidate signal strength range, and a candidate positioning result. That is, each piece of historical positioning information includes the area identifier corresponding to the target device at a historical moment (recorded as a candidate area identifier), the signal strength range corresponding to the target device (recorded as a candidate signal strength range), and the positioning result obtained when the target device starts positioning (recorded as a candidate positioning result).

[0084] The signal strength range corresponding to the target device is obtained by mapping the signal strength parameter corresponding to the target device at the historical moment. Exemplarily, multiple signal strength ranges can be preset, such as {0, -10}, {-10, -20}, {-20, -30}, {-30, -40}, {-40, -50}, {-50, -60}, {-60, -70}, etc. The unit of the above signal strength can be decibel milliwatt (dbm). Assuming that the signal strength parameter corresponding to the target device at the historical moment is -45dbm, then it can be mapped to the signal strength range of {-40, -50}. Assuming that the signal strength parameter corresponding to the target device at the historical moment is -58dbm, then it can be mapped to the signal strength range of {-50, -60}.

[0085] Based on this, one implementation of the above step S302 may be as follows:

[0086] (1) Matching is performed on the region identifier of the target device and the candidate region identifiers of each historical positioning information to obtain a region matching result.

[0087] In the embodiment of the present application, the target device can match the area identifier of the target device with the candidate area identifiers of each historical positioning information, that is, determine whether there is an area identifier that matches the area identifier of the target device (matching may mean: the same) from the candidate area identifiers of each historical positioning information, and then obtain the area matching result.

[0088] For example, the historical positioning information in the historical positioning information database is as follows: Figure 4A As shown, Figure 4A It is a data structure diagram of a historical positioning information provided by an embodiment of the present application. Assume that in the historical positioning information database, each candidate area identifier of the historical positioning information includes two, namely Cell ID 1 and Cell ID 2. Then, if the area identifier of the target device is Cell ID 1, the area matching result indicates that there is a matching candidate area identifier, and the matching candidate area identifier is Cell ID 1; if the area identifier of the target device is Cell ID 4, the area matching result indicates that there is no matching candidate area identifier.

[0089] It should be noted that the candidate area identifiers in the historical positioning information library can also be pre-set, and each candidate area identifier is associated with multiple list rows. Then, after starting positioning, the target device can add the corresponding positioning data (including candidate signal strength range, candidate positioning results, positioning time) to the list row corresponding to the candidate area identifier, which is not limited in the embodiment of the present application.

[0090] (2) If the region matching result indicates that there is a matching candidate region identifier, at least one candidate signal strength range associated with the matching candidate region identifier is obtained.

[0091] In the embodiment of the present application, when the area matching result indicates that there is a matching candidate area identifier, the target device may further obtain at least one candidate signal strength range associated with the matching candidate area identifier.

[0092] For example, Figure 4A As shown, in the historical positioning information database, at least one candidate signal strength range associated with the area identifier Cell ID 1 includes the following seven candidate signal strength ranges, namely: range 1, range 2, range 3, range 4, range 5, range 6 and range 7.

[0093] (3) Matching the signal strength parameter of the target device with at least one candidate signal strength range to obtain a signal matching result.

[0094] In an embodiment of the present application, the target device can match the signal strength parameter of the target device with at least one candidate signal strength range, that is, determine from at least one candidate signal strength range whether there is a signal strength range that matches the signal strength parameter of the target device (matching may mean: the signal strength parameter is within the candidate signal strength range), and then obtain a signal matching result.

[0095] For example, Figure 4A As shown, the ranges indicated by range 1, range 2, range 3, range 4, range 5, range 6 and range 7 may be: {0, -10}, {-10, -20}, {-20, -30}, {-30, -40}, {-40, -50}, {-50, -60} and {-60, -70} respectively. Then, if the signal strength parameter of the target device is -55dbm, the signal matching result indicates that there is a matching candidate signal strength range, and the matching candidate signal strength range is {-50, -60}, which is range 6; if the area identifier of the target device is -86dbm, the signal matching result indicates that there is no matching candidate signal strength range.

[0096] (4) If the signal matching result indicates that there is a matching candidate signal strength range, the target candidate positioning result corresponding to the matching candidate signal strength range associated with the matching candidate area identifier is obtained.

[0097] (5) Determining that the matching result indicates that there is matching historical positioning information in the historical positioning information database, and the matching historical positioning information is the target candidate positioning result.

[0098] In the above steps (4)-(5), when the signal matching result indicates that there is a matching candidate signal strength range, the target device can obtain the target candidate positioning result corresponding to the matching candidate signal strength range associated with the matching candidate area identifier. At this time, the matching result indicates that there is matching historical positioning information in the historical positioning information library, and the target candidate positioning result is the matching historical positioning information selected above.

[0099] For example, Figure 4A As shown, if the signal strength parameter of the target device is -55dbm, and the matching candidate signal strength range is {-50, -60}, that is, range 6, then the target device can obtain the target candidate positioning result corresponding to the matching candidate signal strength range (that is, range 6) associated with the matching candidate area identifier (that is, CellID 1), that is, positioning result r16, and determine the positioning result r16 as the matching historical positioning information.

[0100] Through the above steps (1)-(5), firstly, the area matching is performed on the area identification of the target device to obtain the area matching result, and then the signal matching is performed on the signal strength parameter of the target device to obtain the signal matching result. This ensures the accuracy of the data matching processing. At the same time, through the above-mentioned phased matching mechanism, the efficiency of the data matching processing is improved.

[0101] In a possible implementation, if the area matching result indicates that there is no matching candidate area identifier, or the signal matching result indicates that there is no matching candidate signal strength range, then it is determined that the matching result indicates that there is no matching historical positioning information in the historical positioning information library. In this case, it is not possible to determine the positioning result of the target device by obtaining the matching historical positioning information from the historical positioning information library, but it is necessary to determine the positioning result of the target device by other means, such as starting positioning to obtain the positioning result of the target device. This helps to make up for the situation where the historical positioning information in the historical positioning information library is incomplete or missing, and ensures the timeliness of starting positioning of the target device and the accuracy of the positioning result.

[0102] S303: Determine whether there is matching historical positioning information in the historical positioning information database indicated by the matching result.

[0103] If the matching result indicates that there is matching historical positioning information in the historical positioning information database, the terminal device may perform the following steps S304-S306:

[0104] S304: Obtain the positioning time of the candidate positioning result in the matched historical positioning information, and determine a first time interval between the positioning time of the candidate positioning result in the matched historical positioning information and the current time.

[0105] In the embodiment of the present application, when the matching result indicates that there is matching historical positioning information in the historical positioning information library, it means that the target device has started positioning before the current moment, and the historical positioning information of this positioning has been stored in the historical positioning information library. Then, the target device can further determine whether it is necessary to use the matching historical positioning information, that is, the target device can verify the validity of the matching historical positioning information. Verifying the validity may refer to: verifying whether the time interval between the positioning time of the candidate positioning result in the matching historical positioning information and the current time (recorded as the first time interval) exceeds a preset value (recorded as the first interval threshold).

[0106] The positioning time of the positioning result can be stored in the historical positioning information included in the historical positioning information library, such as Figure 4A As shown, each piece of historical positioning information consists of a candidate area identifier, a candidate signal strength range, a candidate positioning result, and a positioning time of the candidate positioning result (recorded as positioning time). The pieces of historical positioning information included in the historical positioning information database together constitute a Cell ID List data structure, that is, a Cell ID list.

[0107] S305 determines whether the first time interval is greater than a first interval threshold.

[0108] It should be noted that the first interval threshold can be flexibly set according to the specific business conditions of the positioning service. For example, the first interval threshold can be set to 1 hour, 6 hours, 1 day, etc., which will not be elaborated in the embodiments of the present application.

[0109] If the first time interval is greater than the first interval threshold, the terminal device may perform the following steps S306:

[0110] S306: Start positioning and obtain the positioning result of the target device.

[0111] If the first time interval is not greater than (that is, less than or equal to) the first interval threshold, the terminal device may perform the following steps S307:

[0112] S307: Determine the positioning result of the target device according to the matched historical positioning information.

[0113] In the above steps S304-S306, the target device can determine that the matched historical positioning information is invalid, that is, it is not timely, when the first time interval between the positioning time of the candidate positioning result and the current time is greater than the first interval threshold (such as 6 hours), then the target device needs to restart the positioning. Correspondingly, the target device can determine that the matched historical positioning information is valid, that is, it is timely, when the first time interval between the positioning time of the candidate positioning result and the current time is less than or equal to the first interval threshold (such as 6 hours), then the target device can determine the positioning result of the target device based on the matched historical positioning information, such as determining the candidate positioning result in the matched historical positioning information as the positioning result of the target device.

[0114] Exemplarily, in the historical positioning information database, the positioning time corresponding to the positioning result r16 is t16, the current time can be recorded as T, then the first time interval is T-t16, if T-t16 is greater than the first interval threshold (such as 6 hours), it is determined that the positioning result r16 is invalid; if T-t16 is less than or equal to the first interval threshold (such as 6 hours), it is determined that the positioning result r16 is valid.

[0115] Through the above process of verifying the validity of the matched historical positioning information, it is possible to avoid using expired or inaccurate positioning results in the historical information library. After verifying that the matched historical positioning information is valid, the positioning result of the target device is determined based on the matched historical positioning information, thereby ensuring the accuracy of the positioning result.

[0116] In the embodiment of the present application, the positioning method adopted for positioning matches the positioning method corresponding to the historical positioning information (matching may mean: the same).

[0117] In a possible implementation, the positioning in the embodiment of the present application may refer to positioning using the Global Navigation Satellite System (GNSS) positioning method. Then, the candidate positioning results included in the historical positioning information are also obtained by positioning using the GNSS positioning method. The positioning accuracy of the GNSS positioning method is high, but correspondingly, the power consumption of the device positioning is also high. Therefore, the positioning method provided in the embodiment of the present application can better balance the power consumption and accuracy of the device positioning. It is particularly suitable for solving the problem of device power consumption waste caused by frequent device positioning in device fixed-point scenarios and when the time span between two positioning is small and the relative position change is not obvious.

[0118] In one possible implementation, when the matching result indicates that there is matching historical positioning information in the historical positioning information library, the terminal device can also directly execute step S307, that is, skip the aforementioned steps S304-S306 (that is, skip the step of checking the validity of the matching historical positioning information), which will not be repeated in the embodiments of the present application.

[0119] If the matching result indicates that there is no matching historical positioning information in the historical positioning information database, the terminal device may perform the following steps S308:

[0120] S308: Start positioning and obtain the positioning result of the target device.

[0121] In the embodiment of the present application, positioning may refer to positioning using a GNSS positioning method, which will not be described in detail here.

[0122] In a possible implementation, the terminal device may also perform the following steps: after starting positioning and obtaining the positioning result of the target device, the area identification of the target device, the signal strength range of the signal strength parameter, the positioning result and the positioning time of the positioning result are associated and stored in a historical positioning information library.

[0123] That is to say, after each positioning is started, the target device can use the area identification of the target device, the signal strength range of the signal strength parameter, the positioning result and the positioning time of the positioning result as a historical positioning information, and store the historical positioning information in the historical positioning information library to ensure the data volume in the historical positioning information library, so that subsequent target devices can obtain the positioning result of the target device according to the matching historical positioning information in the historical positioning information library.

[0124] For example, Figure 4A As shown, the target device is positioned at the current time (t18). If the area identifier of the target device is Cell ID 1, the signal strength parameter is -87bm (not within any range from range 1 to range 7), and the positioning result is r18, then the target device can associate Cell ID 1, range 8 ({-80, -90}), positioning result r18 and t18, and store them in the historical positioning information library.

[0125] In a possible implementation, the terminal device may further perform the following steps:

[0126] (1) Obtain the historical positioning information to be detected in the historical positioning information database, and obtain the positioning time of the candidate positioning result in the historical positioning information to be detected; the historical positioning information to be detected is any historical positioning information in the historical positioning information database.

[0127] (2) Determine a second time interval between the positioning time of the candidate positioning result in the historical positioning information to be detected and the current time.

[0128] (3) If the second time interval is greater than the second interval threshold, the historical positioning information to be detected is deleted from the historical positioning information database.

[0129] It should be noted that the second interval threshold can be flexibly set according to the specific business conditions of the positioning service. For example, the first interval threshold can be set to 1 hour, 6 hours, 1 day, etc. The second interval threshold and the first interval threshold can be the same (such as the second interval threshold and the first interval threshold are both 6 hours), or they can be different (such as the second interval threshold is greater than the first interval threshold, the second interval threshold is 24 hours, and the first interval threshold is 6 hours). This embodiment of the present application will not go into details.

[0130] In the above steps (1)-(3), the target device can periodically detect the storage time (that is, the second time interval) of each piece of historical positioning information in the historical positioning information library. If the storage time of the historical positioning information is greater than the second interval threshold, it means that the piece of historical positioning information may no longer be timely and cannot be accurately verified. Therefore, the target device can delete the historical positioning information whose storage time is greater than the second interval threshold from the historical positioning information library, thereby avoiding the continued use of the piece of historical positioning information, ensuring that the historical positioning information in the historical positioning information library is reliable, effective and accurate, and ensuring the accuracy of device positioning. At the same time, deleting the historical positioning information that has been stored for too long can release storage space in time, avoid excessive bloating of the historical positioning information library, and improve the efficiency of data matching processing in the embodiment of the present application.

[0131] In a possible implementation, the target device may execute the step of obtaining the area identification and signal strength parameters of the target device in response to the triggering of the positioning function (such as positioning the device at fixed intervals), then the target device may output the positioning result, and the positioning result may be visually displayed on the user interface (UI) of the target device. The target device may also execute the step of obtaining the area identification and signal strength parameters of the target device after receiving the positioning request from the request initiating object (such as a server), then the terminal device returns the positioning result to the request initiating object, and the positioning result may be visually displayed on the user interface of the request initiating object.

[0132] In a possible implementation, the terminal device may output the positioning result and the positioning method information of the positioning result, and the positioning method information may be the first positioning method information or the second positioning method information. The first positioning method information is used to indicate that the positioning result of the target device is obtained by using a fuzzy positioning method, and the second positioning method information is used to indicate that the positioning result of the target device is obtained by using a precise positioning method. By outputting the positioning method information, it can help understand which positioning method is used to determine the positioning result of the target device, assist the user in understanding the accuracy of the positioning result, and enhance the user's trust in the positioning service.

[0133] Exemplarily, when the terminal device obtains the positioning result of the target device by starting positioning on the target device, the positioning mode information may be the second positioning mode information. When the terminal device determines the positioning result of the target device based on matched historical positioning information, the positioning mode information may be the first positioning mode information.

[0134] The following will take GNSS positioning as an example to illustrate the positioning method provided in the embodiment of the present application. Figure 4B As shown, Figure 4B This is a schematic diagram of a positioning process provided by an embodiment of the present application. The specific positioning process may include the following steps:

[0135] 1. Get GNSS positioning request.

[0136] Among them, the GNSS positioning request can be generated by the target device, and the GNSS positioning request can also be obtained from the request initiating object (such as a server), which is not limited in this embodiment of the present application.

[0137] 2. Obtain the area identification and signal strength parameters of the target device.

[0138] 3. Calculate the signal strength range within which the signal strength parameter lies.

[0139] Exemplarily, assuming that the signal strength parameter is -45dbm, the signal strength range of the signal strength parameter is {-40, -50}.

[0140] 4. Determine whether the area ID is in the Cell ID list.

[0141] Among them, the Cell ID list is a data structure used to store historical positioning information in the historical positioning information library. The specific implementation method of determining whether the area identifier is in the Cell ID list can refer to the relevant description of matching the area identifier of the target device and the candidate area identifiers of each historical positioning information in the aforementioned embodiment, which will not be repeated here.

[0142] If the area identifier is in the Cell ID list, step 5 may be performed; if the area identifier is not in the Cell ID list, step 7 may be performed.

[0143] 5. Determine whether the signal strength range is in the Cell ID list.

[0144] Among them, the specific implementation method of determining whether the signal strength range is in the Cell ID list can refer to the relevant description of matching the signal strength parameter of the target device and at least one candidate signal strength range in the aforementioned embodiment, which will not be repeated here.

[0145] If the signal strength range is in the Cell ID list, step 6 may be performed; if the signal strength range is not in the Cell ID list, step 7 may be performed.

[0146] 6. Verify whether the matched historical positioning information is valid.

[0147] The specific implementation method for verifying whether the matched historical positioning information is valid may refer to the related description of comparing the first time interval with the first interval threshold in the above embodiment, which will not be described in detail here.

[0148] If the matched historical positioning information is invalid, such as the first time interval is greater than the first interval threshold (6 hours), step 7 can be executed; if the matched historical positioning information is valid, such as the first time interval is less than or equal to the first interval threshold (6 hours), step 13 can be executed.

[0149] 7. Start GNSS positioning.

[0150] 8. Associate and store the latest positioning information into the historical positioning information database.

[0151] The latest positioning information may include: an area identifier of the target device, a signal strength range where the signal strength parameter is located, a positioning result, and a positioning time of the positioning result.

[0152] 9. Determine whether the Cell ID list is full.

[0153] If the Cell ID list is not full, step 10 may be performed; if the Cell ID list is full, step 11 may be performed.

[0154] 10. Append the new positioning information to the Cell ID list.

[0155] 11. Add a new list row to store new positioning information.

[0156] 12. Stop GNSS positioning.

[0157] 13. Determine the positioning result based on the matched historical positioning information.

[0158] The specific implementation method for determining the positioning result according to the matched historical positioning information can refer to the relevant description in the above-mentioned embodiment, which will not be repeated here.

[0159] 14. Wait for the next GNSS positioning request.

[0160] For the above steps 1-14, please refer to the steps in the above method embodiments, which will not be repeated here.

[0161] The following is an explanation of the specific use scenarios of the positioning method provided in the embodiments of the present application: For many IoT devices such as smart furniture devices, the device locations are relatively fixed during actual use, or they are usually switched back and forth between several fixed locations. In this case, starting positioning (such as GNSS positioning) every time will result in a waste of power consumption. In addition, many device manufacturers, based on cost considerations, use chip platforms that have limitations that data transmission and positioning cannot coexist, that is, only data transmission or device positioning can be performed at a certain moment. This means that during actual use of the device, the device will frequently switch between the data transmission mode and the positioning mode, resulting in unnecessary overhead and additional power consumption waste.

[0162] The positioning method provided in the embodiment of the present application can effectively solve the above problems, and better balance the power consumption and accuracy of device positioning. It is particularly suitable for solving the problem of device power consumption waste caused by frequent device positioning in the case of device fixed-point scenarios, devices circulating in several fixed locations, a small time span between two positionings, and no obvious relative position changes (such as slight changes in longitude and latitude). At the same time, in view of some platform defects in which data transmission and device positioning cannot coexist, frequent switching between data transmission mode and positioning mode is avoided, which greatly saves system overhead and achieves the effect of saving power consumption. The positioning method provided in the embodiment of the present application is implemented in the form of software, does not rely on specific hardware devices, can be widely applied to various platforms, and provides location service functions for various Internet of Things devices (PC-IOT).

[0163] See also Figure 5 , which is a schematic diagram of the structure of a positioning device provided in an embodiment of the present application. The positioning device may specifically include:

[0164] An acquisition module 501 is used to acquire an area identifier and a signal strength parameter of a target device; the signal strength parameter is used to indicate the signal strength of a current signal transceiver device received by the target device, and the current signal transceiver device is a signal transceiver device in the area indicated by the area identifier;

[0165] The processing module 502 is used to perform data matching processing according to the historical positioning information in the historical positioning information database, the area identification of the target device and the signal strength parameter to obtain a matching result;

[0166] The determination module 503 is used to determine the positioning result of the target device according to the matching result; the positioning result is obtained according to the matched historical positioning information in the historical positioning information library or the start positioning.

[0167] In a possible implementation, when the determination module 503 is used to determine the positioning result of the target device according to the matching result, it is specifically used to:

[0168] If the matching result indicates that there is matching historical positioning information in the historical positioning information database, determining the positioning result of the target device according to the matching historical positioning information;

[0169] If the matching result indicates that there is no matching historical positioning information in the historical positioning information database, positioning is initiated to obtain the positioning result of the target device.

[0170] In a possible implementation, the historical positioning information includes a candidate area identifier, a candidate signal strength range, and a candidate positioning result;

[0171] The processing module 502 is used to perform data matching processing according to the historical positioning information in the historical positioning information database, the area identification of the target device and the signal strength parameter to obtain a matching result, specifically for:

[0172] Matching the region identifier of the target device with the candidate region identifiers of each historical positioning information to obtain a region matching result;

[0173] If the area matching result indicates that there is a matching candidate area identifier, obtaining at least one candidate signal strength range associated with the matching candidate area identifier;

[0174] Performing matching processing on the signal strength parameter of the target device and at least one candidate signal strength range to obtain a signal matching result;

[0175] If the signal matching result indicates that there is a matching candidate signal strength range, obtaining a target candidate positioning result corresponding to the matching candidate signal strength range associated with the matching candidate area identifier;

[0176] Determining the matching result indicates that there is matching historical positioning information in the historical positioning information database, and the matching historical positioning information is the target candidate positioning result.

[0177] In a possible implementation, the processing module 502 is further configured to:

[0178] If the area matching result indicates that there is no matching candidate area identifier, or the signal matching result indicates that there is no matching candidate signal strength range, then it is determined that the matching result indicates that there is no matching historical positioning information in the historical positioning information database.

[0179] In a possible implementation, the historical positioning information further includes the positioning time of the candidate positioning result; and the processing module 502 is further configured to:

[0180] Obtaining the positioning time of the candidate positioning result in the matched historical positioning information;

[0181] Determine a first time interval between the positioning time of the candidate positioning result in the matched historical positioning information and the current time;

[0182] If the first time interval is greater than the first interval threshold, positioning is started to obtain a positioning result of the target device;

[0183] If the first time interval is less than or equal to the first interval threshold, a step of determining a positioning result of the target device according to the matched historical positioning information is performed.

[0184] In a possible implementation, the processing module 502 is further configured to:

[0185] After starting the positioning and obtaining the positioning result of the target device, the area identifier of the target device, the signal strength range where the signal strength parameter is located, the positioning result and the positioning time of the positioning result are associated and stored in the historical positioning information library.

[0186] In a possible implementation, the processing module 502 is further configured to:

[0187] Obtain the historical positioning information to be detected in the historical positioning information database, and obtain the positioning time of the candidate positioning result in the historical positioning information to be detected; the historical positioning information to be detected is any historical positioning information in the historical positioning information database;

[0188] Determine a second time interval between the positioning time of the candidate positioning result in the historical positioning information to be detected and the current time;

[0189] If the second time interval is greater than the second interval threshold, the historical positioning information to be detected is deleted from the historical positioning information database.

[0190] It should be noted that the functions of the various functional modules of the positioning device in the embodiment of the present application can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0191] See also Figure 6 , which is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 6 The computer device in the embodiment shown may include: a processor 601, a storage device 602, and a communication interface 603. The processor 601, the storage device 602, and the communication interface 603 may exchange data.

[0192] The above-mentioned storage device 602 may include a volatile memory (Volatile Memory), such as a random-access memory (Random-Access Memory, RAM); the storage device 602 may also include a non-volatile memory (Non-Volatile Memory), such as a flash memory (Flash Memory), a solid-state drive (SSD), etc.; the above-mentioned storage device 602 may also include a combination of the above-mentioned types of memory.

[0193] The processor 601 may be a central processing unit (CPU). In one embodiment, the processor 601 may also be a graphics processing unit (GPU). The processor 601 may also be a combination of a CPU and a GPU. In a possible implementation, the storage device 602 is used to store a computer program, and the processor 601 may call the computer program to perform the following operations:

[0194] Obtaining the area identifier and signal strength parameter of the target device; the signal strength parameter is used to indicate the signal strength received by the target device from the current signal transceiver device, and the current signal transceiver device is a signal transceiver device in the area indicated by the area identifier;

[0195] Perform data matching processing according to the historical positioning information in the historical positioning information database, the area identification of the target device and the signal strength parameters to obtain a matching result;

[0196] The positioning result of the target device is determined according to the matching result; the positioning result is obtained according to the historical positioning information matched in the historical positioning information library or the start positioning.

[0197] In a possible implementation, when the processor 601 is used to determine the positioning result of the target device according to the matching result, it is specifically used to:

[0198] If the matching result indicates that there is matching historical positioning information in the historical positioning information database, determining the positioning result of the target device according to the matching historical positioning information;

[0199] If the matching result indicates that there is no matching historical positioning information in the historical positioning information database, positioning is initiated to obtain the positioning result of the target device.

[0200] In a possible implementation, the historical positioning information includes a candidate area identifier, a candidate signal strength range, and a candidate positioning result;

[0201] When the processor 601 is used to perform data matching processing according to the historical positioning information in the historical positioning information database, the area identification of the target device and the signal strength parameter to obtain a matching result, it is specifically used to:

[0202] Matching the region identifier of the target device with the candidate region identifiers of each historical positioning information to obtain a region matching result;

[0203] If the area matching result indicates that there is a matching candidate area identifier, obtaining at least one candidate signal strength range associated with the matching candidate area identifier;

[0204] Performing matching processing on the signal strength parameter of the target device and at least one candidate signal strength range to obtain a signal matching result;

[0205] If the signal matching result indicates that there is a matching candidate signal strength range, obtaining a target candidate positioning result corresponding to the matching candidate signal strength range associated with the matching candidate area identifier;

[0206] Determining the matching result indicates that there is matching historical positioning information in the historical positioning information database, and the matching historical positioning information is the target candidate positioning result.

[0207] In a possible implementation, the processor 601 is further configured to:

[0208] If the area matching result indicates that there is no matching candidate area identifier, or the signal matching result indicates that there is no matching candidate signal strength range, then it is determined that the matching result indicates that there is no matching historical positioning information in the historical positioning information database.

[0209] In a possible implementation, the historical positioning information further includes the positioning time of the candidate positioning result; and the processor 601 is further configured to:

[0210] Obtaining the positioning time of the candidate positioning result in the matched historical positioning information;

[0211] Determine a first time interval between the positioning time of the candidate positioning result in the matched historical positioning information and the current time;

[0212] If the first time interval is greater than the first interval threshold, positioning is started to obtain a positioning result of the target device;

[0213] If the first time interval is less than or equal to the first interval threshold, a step of determining a positioning result of the target device according to the matched historical positioning information is performed.

[0214] In a possible implementation, the processor 601 is further configured to:

[0215] After starting the positioning and obtaining the positioning result of the target device, the area identifier of the target device, the signal strength range where the signal strength parameter is located, the positioning result and the positioning time of the positioning result are associated and stored in the historical positioning information library.

[0216] In a possible implementation, the processor 601 is further configured to:

[0217] Obtain the historical positioning information to be detected in the historical positioning information database, and obtain the positioning time of the candidate positioning result in the historical positioning information to be detected; the historical positioning information to be detected is any historical positioning information in the historical positioning information database;

[0218] Determine a second time interval between the positioning time of the candidate positioning result in the historical positioning information to be detected and the current time;

[0219] If the second time interval is greater than the second interval threshold, the historical positioning information to be detected is deleted from the historical positioning information database.

[0220] In a specific implementation, the processor 601, the storage device 602, and the communication interface 603 described in the embodiments of the present application can execute the aforementioned embodiments of the present application. Figure 2 or Figure 3 The implementation method described in the related embodiments of the positioning method provided can also be implemented in the embodiments of the present application. Figure 5 The implementation methods described in the relevant embodiments of the provided positioning device will not be repeated here.

[0221] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and systems can be implemented in other ways. The device embodiments described above are merely schematic, and the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0222] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the positioning device mentioned above, and the computer program includes program instructions. When the processor executes the above program instructions, it can execute the method in the aforementioned embodiment, so it will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, the program instructions can be deployed on a computer device, or executed on multiple computer devices located at one location, or, executed on multiple computer devices distributed in multiple locations and interconnected by a communication network, and multiple computer devices distributed in multiple locations and interconnected by a communication network can constitute a blockchain system.

[0223] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device can execute the method in the aforementioned embodiment, and therefore, it will not be described in detail here.

[0224] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the above-mentioned program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The above-mentioned storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0225] It can be understood that in the specific implementation of the present application, related data such as the area identification, signal strength parameters, historical positioning information, etc. of the target device are involved. When the above embodiments of the present application are applied to specific products or technologies, the collection, use and processing of relevant data need to comply with relevant laws and regulations and standards in the relevant regions.

[0226] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0227] It should be noted that the descriptions of "first", "second", etc. involved in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the technical features defined as "first" or "second" may explicitly or implicitly include at least one of the features.

[0228] The above disclosure is only part of the embodiments of the present application, which certainly cannot be used to limit the scope of rights of the present application. Ordinary technicians in this field can understand that all or part of the processes of implementing the above embodiments and making equivalent changes according to the claims of this application are still within the scope of the invention.

Claims

1. A positioning method, characterized in that: The method comprises: Acquire an area identifier and a signal strength parameter of a target device; the signal strength parameter is used to indicate the signal strength of a current signal transceiver device received by the target device, and the current signal transceiver device is a signal transceiver device in the area indicated by the area identifier; Perform data matching processing according to the historical positioning information in the historical positioning information database, the area identification and signal strength parameters of the target device to obtain a matching result; The positioning result of the target device is determined according to the matching result; the positioning result is obtained according to the matched historical positioning information in the historical positioning information library or by starting positioning.

2. The method according to claim 1, characterized in that Determining the positioning result of the target device according to the matching result includes: If the matching result indicates that there is matching historical positioning information in the historical positioning information database, determining the positioning result of the target device according to the matching historical positioning information; If the matching result indicates that there is no matching historical positioning information in the historical positioning information database, positioning is initiated to obtain a positioning result of the target device.

3. The method according to claim 1 or 2, characterized in that The historical positioning information includes candidate area identifiers, candidate signal strength ranges, and candidate positioning results; The performing of data matching processing according to the historical positioning information in the historical positioning information database, the area identification and the signal strength parameter of the target device to obtain a matching result includes: Performing matching processing on the area identifier of the target device and the candidate area identifiers of each of the historical positioning information to obtain an area matching result; If the area matching result indicates that there is a matching candidate area identifier, obtaining at least one candidate signal strength range associated with the matching candidate area identifier; Performing matching processing on the signal strength parameter of the target device and the at least one candidate signal strength range to obtain a signal matching result; If the signal matching result indicates that there is a matching candidate signal strength range, obtaining a target candidate positioning result corresponding to the matching candidate signal strength range associated with the matching candidate area identifier; Determining the matching result indicates that there is matching historical positioning information in the historical positioning information database, and the matching historical positioning information is the target candidate positioning result.

4. The method according to claim 3, characterized in that The method further comprises: If the area matching result indicates that there is no matching candidate area identifier, or the signal matching result indicates that there is no matching candidate signal strength range, it is determined that the matching result indicates that there is no matching historical positioning information in the historical positioning information database.

5. The method according to claim 2, characterized in that The historical positioning information also includes the positioning time of the candidate positioning result; the method also includes: Obtaining the positioning time of the candidate positioning result in the matched historical positioning information; Determine a first time interval between the positioning time of the candidate positioning result in the matched historical positioning information and the current time; If the first time interval is greater than a first interval threshold, starting positioning to obtain a positioning result of the target device; If the first time interval is less than or equal to the first interval threshold, the step of determining the positioning result of the target device according to the matched historical positioning information is performed.

6. The method according to any one of claims 1, 2 and 5, characterized in that The method further comprises: After starting positioning and obtaining the positioning result of the target device, the area identifier of the target device, the signal strength range of the signal strength parameter, the positioning result and the positioning time of the positioning result are associated and stored in the historical positioning information library.

7. The method according to any one of claims 1, 2 and 5, characterized in that The method further comprises: Acquire the historical positioning information to be detected in the historical positioning information database, and acquire the positioning time of the candidate positioning result in the historical positioning information to be detected; the historical positioning information to be detected is any piece of historical positioning information in the historical positioning information database; Determine a second time interval between the positioning time of the candidate positioning result in the historical positioning information to be detected and the current time; If the second time interval is greater than a second interval threshold, the historical positioning information to be detected is deleted from the historical positioning information database.

8. A positioning device, characterized in that: The device comprises: an acquisition module, used to acquire an area identifier and a signal strength parameter of a target device; the signal strength parameter is used to indicate the signal strength of a current signal transceiver device received by the target device, and the current signal transceiver device is a signal transceiver device in the area indicated by the area identifier; A processing module, used to perform data matching processing according to the historical positioning information in the historical positioning information database, the area identification and signal strength parameters of the target device, and obtain a matching result; The determination module is used to determine the positioning result of the target device according to the matching result; the positioning result is obtained according to the matched historical positioning information in the historical positioning information library or by starting positioning.

9. A computer device, characterized in that: include: A processor, a storage device and a communication interface, wherein the processor, the communication interface and the storage device are connected to each other, wherein the storage device stores a computer program, and the processor is used to call the computer program to implement the positioning method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, they are used to implement the positioning method according to any one of claims 1 to 7.