Method, device, server, system and storage medium for positioning electronic equipment

The prediction server uses historical data of electronic devices to generate query prediction information and provide positioning process prediction, which solves the problem of low efficiency when users wait for positioning results in the existing technology, and improves user experience and terminal device usage efficiency.

CN113449207BActive Publication Date: 2024-09-06PETAL CLOUD TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202010214823.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-24
Publication Date
2024-09-06
Estimated Expiration
2040-03-24

AI Technical Summary

Technical Problem

With existing electronic device positioning technology, when the communication environment is poor, users need to wait for positioning results for a long time, resulting in reduced terminal device usage efficiency and poor user experience.

Method used

The prediction server generates query prediction information based on historical data of electronic devices, and provides information such as query waiting time, positioning success rate, and predicted location, allowing users to understand the positioning process and reduce waiting time.

Benefits of technology

It improves the usage efficiency and user experience of terminal equipment, reduces the time users wait on the query interface, and allows users to perform other operations while waiting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113449207B
    Figure CN113449207B
Patent Text Reader

Abstract

This application relates to the field of artificial intelligence technology and provides a method, apparatus, server, system, and storage medium for locating electronic devices based on artificial intelligence (AI). The method includes: a server acquiring a prediction request; the server determining historical data of the electronic device based on a device identifier and generating query prediction information; and the server outputting the query prediction information. The technical solution provided by this application can, upon receiving a location query request sent by a terminal device, generate query prediction information for the aforementioned location query request based on the historical data of the electronic device to be queried, and output the query prediction information to the terminal device. This allows users to understand the predicted query time or location success rate through the query prediction information, determining whether they need to continue waiting for the query results. This eliminates the need for users to keep the query interface displayed on the front end for extended periods, improving the efficiency of terminal device use and enhancing the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of artificial intelligence technology, and in particular, relates to a method, device, server, system and storage medium for positioning an electronic device based on artificial intelligence (AI). Background Art

[0002] With the continuous development of positioning technology, positioning modules can be embedded in various types of devices, such as smart phones or smart watches, so that users can obtain location information through positioning models. In some cases, when a user needs to obtain the location of a monitored object, a positioning query request can be sent to the electronic device of the monitored object through the user's terminal device. The electronic device of the monitored object obtains the location information through the positioning module and feeds back the location information to the user's terminal device, thereby achieving the purpose of the user's positioning query of the monitored object.

[0003] However, the existing electronic device positioning technology cannot determine the communication environment of the electronic device of the monitored object when the user sends a positioning query request. When the communication environment of the electronic device is poor, it takes a long time to report the location information, which causes the user to stay in the query interface of the terminal device for a long time to wait for the query result. During the waiting process, the user cannot perform other operations, which reduces the use efficiency of the terminal device and affects the user experience. Summary of the invention

[0004] The embodiments of the present application provide a method, apparatus, terminal device, server, system and storage medium for locating an electronic device, which can solve the problem that when the existing user's terminal device locates an associated electronic device, the user needs to wait for a long time for the positioning result, thereby reducing the use efficiency of the terminal device and the user experience is poor.

[0005] In a first aspect, an embodiment of the present application provides a method for positioning an electronic device, including:

[0006] The prediction server obtains a prediction request sent by the service server; the prediction request is generated by the service server based on a positioning query request sent by the terminal device; the positioning query request carries a device identifier of the electronic device to be queried;

[0007] The prediction server determines the historical data of the electronic device according to the device identification and generates query prediction information;

[0008] The prediction server outputs the query prediction information; the query prediction information is output by the service server before feeding back the positioning query result to the terminal device.

[0009] In a possible implementation manner of the first aspect, the prediction server determines the historical data of the electronic device according to the device identifier and generates query prediction information, including:

[0010] The prediction server determines the predicted location of the electronic device through historical data of the electronic device;

[0011] The prediction server determines, according to the predicted location, a signal strength of the electronic device corresponding to the predicted location;

[0012] The prediction server generates the query prediction information of the electronic device according to the signal strength.

[0013] In a possible implementation manner of the first aspect, the prediction server determines the historical data of the electronic device according to the device identifier and generates query prediction information, including:

[0014] The prediction server obtains the location information most recently fed back by the electronic device;

[0015] The prediction server determines a query prediction model according to the most recently fed back location information;

[0016] The prediction server outputs the query prediction information through the query prediction model.

[0017] In a possible implementation manner of the first aspect, the server determines the historical data of the electronic device according to the device identifier, and generates query prediction information, including:

[0018] The prediction server determines a query prediction model corresponding to the electronic device based on the device identification of the electronic device;

[0019] The prediction server obtains the query prediction information through the query prediction model; the query prediction model is constructed based on the historical data of the electronic device.

[0020] In a possible implementation manner of the first aspect, the method further includes:

[0021] The prediction server adjusts the query prediction model according to the location information fed back by the electronic device based on the positioning query request; the query prediction model is used to output the query prediction information.

[0022] Determining the query prediction model corresponding to the electronic device based on the device identification of the electronic device In a possible implementation of the first aspect, the server obtains the query prediction information through the query prediction model, including:

[0023] The prediction server outputs the query prediction parameters through the query prediction model;

[0024] The prediction server imports each of the query prediction parameters into a display area associated with the parameter type in a preset prediction information template according to the parameter type of each of the query prediction parameters, and generates the query prediction information.

[0025] In a possible implementation manner of the first aspect, the prediction server determines, based on the device identification of the electronic device, a query prediction model corresponding to the electronic device, including:

[0026] The prediction server queries a plurality of candidate query models corresponding to the electronic device based on the device identifier;

[0027] The prediction server selects the historical data with the smallest difference according to the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request, and determines the current scene type of the electronic device;

[0028] The prediction server selects a candidate query model that matches the scene type from the candidate query models as the query prediction model.

[0029] In a possible implementation manner of the first aspect, the query prediction information includes a query waiting time, a positioning success rate and / or a predicted position of at least one of the electronic devices and a confidence level corresponding to the predicted position.

[0030] In a possible implementation manner of the first aspect, after the prediction server determines the historical data of the electronic device according to the device identifier and generates the query prediction information, the method further includes:

[0031] If the prediction result of the query prediction information is an unpositionable state, the prediction server selects the historical data with the smallest difference as the target data according to the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request;

[0032] The prediction server outputs a reason for failure to locate according to the operating state and signal strength of the electronic device carried in the target data at the time of feedback of the location information;

[0033] The prediction server imports the reason for being unable to locate into the query prediction information.

[0034] In a possible implementation manner of the first aspect, after the server determines the historical data of the electronic device according to the device identifier and generates the query prediction information, the method further includes:

[0035] If the prediction result of the query prediction information is an unpositionable state, the prediction server selects the historical data with the smallest difference as the target data according to the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request;

[0036] The prediction server outputs a predicted position according to the historical position and motion state of the electronic device carried in the target data at the time of feedback of the position information;

[0037] The prediction server imports the predicted position into the query prediction information.

[0038] In a possible implementation manner of the first aspect, the historical data includes a heartbeat data packet fed back by the electronic device based on a preset heartbeat cycle.

[0039] In a possible implementation manner of the first aspect, the historical data includes historical positioning information fed back by the electronic device based on a historical query request.

[0040] In a second aspect, an embodiment of the present application provides a device for positioning an electronic device, including:

[0041] A prediction request acquisition unit, used to acquire a prediction request; the prediction request is generated based on a positioning query request sent by a terminal device; the positioning query request carries a device identifier of an electronic device to be queried;

[0042] A query prediction information generating unit, configured to determine the historical data of the electronic device according to the device identification and generate query prediction information;

[0043] The query prediction information output unit is used to output the query prediction information; the query prediction information is output by the service server before feeding back the positioning query result to the terminal device.

[0044] In a third aspect, an embodiment of the present application provides a system for positioning an electronic device, the system comprising a service server, a prediction server and a terminal device;

[0045] The terminal device is used to send a positioning query request for obtaining the position of the electronic device to the service server;

[0046] The business server is used to send a prediction request generated based on the received positioning query request to the prediction server;

[0047] The prediction server is used to respond to the prediction request, generate query prediction information according to the historical data of the electronic device, and send the query prediction information to the service server;

[0048] The business server is used to send the query prediction information to the terminal device;

[0049] The service server is used to send a positioning query result to the user terminal according to the location information fed back by the electronic device.

[0050] In a possible implementation manner of the third aspect, the prediction server determines historical data of the electronic device according to the device identifier and generates query prediction information, specifically for:

[0051] The prediction server is used to determine the predicted location of the electronic device through the historical data of the electronic device;

[0052] The prediction server is used to determine the signal strength of the electronic device corresponding to the predicted location according to the predicted location;

[0053] The prediction server is used to generate the query prediction information of the electronic device according to the signal strength.

[0054] In a possible implementation manner of the third aspect, the prediction server determines historical data of the electronic device according to the device identifier and generates query prediction information, specifically for:

[0055] The prediction server is used to obtain the location information most recently fed back by the electronic device;

[0056] The prediction server is used to determine a query prediction model according to the most recently fed back location information;

[0057] The prediction server is used to output the query prediction information through the query prediction model.

[0058] In a possible implementation manner of the third aspect, the prediction server determines historical data of the electronic device according to the device identifier and generates query prediction information, specifically for:

[0059] The prediction server is used to determine the query prediction model corresponding to the electronic device based on the device identification of the electronic device;

[0060] The prediction server is used to obtain the query prediction information through the query prediction model; the query prediction model is constructed based on the historical data of the electronic device.

[0061] In a fourth aspect, an embodiment of the present application provides a method for positioning an electronic device, including:

[0062] The server receives a location query request sent by a terminal device to locate the electronic device;

[0063] The server acquires query prediction information; the query prediction information is generated based on historical data of the electronic device;

[0064] The server sends the query prediction information to the terminal device;

[0065] The server sends a positioning query result to the user terminal according to the location information fed back by the electronic device.

[0066] In a possible implementation manner of the fourth aspect, the server obtains the query prediction information, including:

[0067] The server determines the predicted location of the electronic device through historical data of the electronic device;

[0068] The server determines, according to the predicted location, a signal strength of the electronic device corresponding to the predicted location;

[0069] The server generates the query prediction information of the electronic device according to the signal strength.

[0070] In a possible implementation manner of the fourth aspect, the server obtains the query prediction information, including:

[0071] The server obtains the location information most recently fed back by the electronic device;

[0072] The server determines a query prediction model according to the most recently fed back location information;

[0073] The server outputs the query prediction information through the query prediction model.

[0074] In a possible implementation manner of the fourth aspect, the server obtains the query prediction information, including:

[0075] The server determines a query prediction model corresponding to the electronic device based on the device identification of the electronic device;

[0076] The server obtains the query prediction information through the query prediction model; the query prediction model is constructed based on the historical data of the electronic device.

[0077] In a possible implementation manner of the fourth aspect, the present invention further includes:

[0078] The server adjusts the query prediction model according to the location information fed back by the electronic device based on the positioning query request; the query prediction model is used to output the query prediction information.

[0079] In a possible implementation manner of the fourth aspect, the server obtains the query prediction information through the query prediction model, including:

[0080] The server outputs query prediction parameters through the query prediction model;

[0081] The server imports each of the query prediction parameters into a display area associated with the parameter type in a preset prediction information template according to the parameter type of each of the query prediction parameters, and generates the query prediction information.

[0082] In a possible implementation manner of the fourth aspect, the server determines, based on the device identification of the electronic device, a query prediction model corresponding to the electronic device, including:

[0083] The server queries a plurality of candidate query models corresponding to the electronic device based on the device identification;

[0084] The server calculates the difference between the time when the location information of each historical data fed back by the electronic device and the time when the prediction request is received, selects the historical data with the smallest difference, and determines the current scene type of the electronic device;

[0085] The server selects a candidate query model that matches the scene type from the candidate query models as the query prediction model.

[0086] In a possible implementation manner of the fourth aspect, the query prediction information includes query waiting time and / or positioning success rate and / or a predicted position of at least one of the electronic devices and a confidence level corresponding to the predicted position.

[0087] In a possible implementation manner of the fourth aspect, after the server obtains the query prediction information, the method further includes:

[0088] If the prediction result of the query prediction information is that the positioning state cannot be determined, the server selects the historical data with the smallest difference as the target data according to the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request;

[0089] The server outputs a reason why positioning is impossible according to the operating state and signal strength of the electronic device carried in the target data at the time of feedback of the position information;

[0090] The server imports the reason for the inability to locate into the query prediction information.

[0091] In a possible implementation manner of the fourth aspect, after the server obtains the query prediction information, the method further includes:

[0092] If the prediction result of the query prediction information is that the positioning state cannot be determined, the server selects the historical data with the smallest difference as the target data according to the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request;

[0093] The server outputs a predicted position according to the historical position and motion state of the electronic device carried in the target data at the time of feedback of the position information;

[0094] The server imports the predicted position into the query prediction information.

[0095] In a possible implementation manner of the fourth aspect, the historical data includes a heartbeat data packet fed back by the electronic device based on a preset heartbeat cycle.

[0096] In a possible implementation manner of the fourth aspect, the historical data includes historical positioning information fed back by the electronic device based on a historical query request.

[0097] In a fifth aspect, an embodiment of the present application provides a device for positioning an electronic device, characterized in that it includes:

[0098] A positioning query request receiving unit, used to receive a positioning query request sent by a terminal device to locate the electronic device;

[0099] A query prediction information generating unit, used to obtain query prediction information; the query prediction information is generated based on historical data of the electronic device;

[0100] A query prediction information output unit, configured to send the query prediction information to the terminal device;

[0101] The positioning query result output unit is used to send the positioning query result to the user terminal according to the position information fed back by the electronic device.

[0102] In a sixth aspect, an embodiment of the present application provides a system for positioning an electronic device, wherein the system for positioning an electronic device comprises a server and a terminal device;

[0103] The terminal device is used to send a positioning query request for obtaining the position of the electronic device to the server;

[0104] The server is used to obtain query prediction information; the query prediction information is generated based on historical data of the electronic device;

[0105] The server is used to send the query prediction information to the terminal device;

[0106] The server is used to send a positioning query result to the user terminal according to the location information fed back by the electronic device.

[0107] In a possible implementation manner of the sixth aspect, the server is used to obtain the query prediction information, specifically to:

[0108] The server is used to determine the predicted location of the electronic device based on the historical data of the electronic device;

[0109] The server is used to determine, according to the predicted location, the signal strength of the electronic device corresponding to the predicted location;

[0110] The prediction server is used to generate the query prediction information of the electronic device according to the signal strength.

[0111] In a possible implementation manner of the sixth aspect, the server is used to obtain the query prediction information, specifically to:

[0112] The server is used to obtain the location information most recently fed back by the electronic device;

[0113] The server is used to determine a query prediction model according to the most recently fed back location information;

[0114] The server is used to output the query prediction information through the query prediction model.

[0115] In a possible implementation manner of the sixth aspect, the server is used to obtain the query prediction information, specifically to:

[0116] The server is used to determine the query prediction model corresponding to the electronic device based on the device identification of the electronic device;

[0117] The server is used to obtain the query prediction information through the query prediction model; the query prediction model is constructed based on the historical data of the electronic device.

[0118] In the seventh aspect, an embodiment of the present application provides a server, a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that when the server executes the computer program, the method for locating an electronic device described in any one of the first aspect or the fourth aspect is implemented.

[0119] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and wherein when the computer program is executed by a processor, the method for positioning an electronic device as described in any one of the first aspect or the fourth aspect is implemented.

[0120] In a ninth aspect, an embodiment of the present application provides a computer program product. When the computer program product is executed on a terminal device, the terminal device executes the method for locating an electronic device as described in any one of the first aspect or the fourth aspect.

[0121] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0122] When receiving a positioning query request sent by a terminal device, the embodiment of the present application can generate query prediction information of the above positioning query request based on the historical data of the electronic device to be queried, and output the query prediction information to the terminal device, so that the user can understand the positioning success rate and other prediction information through the query prediction information to determine whether it is necessary to continue waiting for the query result or perform other operations through the terminal device, thereby eliminating the need for the user to keep the query interface displayed on the front end for a long time, thereby improving the use efficiency of the terminal device and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0123] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0124] Figure 1 is a structural diagram of a system for positioning an electronic device provided by an embodiment of the present application;

[0125] Figure 2 is an interactive flow chart of a system for locating an electronic device provided by an embodiment of the present application;

[0126] Figure 3 is a schematic diagram of an electronic device positioning process provided by an embodiment of the present application;

[0127] Figure 4 is a schematic diagram of an electronic device positioning process provided by another embodiment of the present application;

[0128] Figure 5a is a specific implementation flow chart of S23 provided in the first embodiment of the present application;

[0129] Figure 5b is a specific implementation flow chart of S23 provided in the second embodiment of the present application;

[0130] Figure 5c is a specific implementation flow chart of S23 provided in the third embodiment of the present application;

[0131] Figure 6 is a specific implementation flow chart of S232 provided in an embodiment of the present application;

[0132] Figure 7 It is a schematic diagram of an interface template of a query prediction display interface provided in an embodiment of the present application;

[0133] Figure 8 is a specific implementation flow chart of S232 provided in an embodiment of the present application;

[0134] Fig. 9 is a specific implementation flow chart of S23 provided in an embodiment of the present application;

[0135] Fig.10 is a schematic diagram of determining a predicted position provided by an embodiment of the present application;

[0136] Fig.11 This is a schematic diagram of outputting query prediction information provided by an embodiment of the present application;

[0137] Fig.12 is a schematic diagram of outputting query prediction information provided by another embodiment of the present application;

[0138] Fig.13 is a flowchart of a method for predicting the location of an electronic device on a server side provided in an embodiment of the present application;

[0139] Fig.14 is a structural block diagram of an apparatus for locating an electronic device provided in the first embodiment of the present application;

[0140] Fig.15 is a structural diagram of a system for positioning an electronic device provided by another embodiment of the present application;

[0141] Fig.16 is an interactive flow chart of a system for locating an electronic device provided by another embodiment of the present application;

[0142] Fig.17 is a flowchart of an implementation method of an electronic device positioning on a server side provided by another embodiment of the present application;

[0143] Fig.18 is a structural block diagram of an apparatus for locating an electronic device provided by another embodiment of the present application;

[0144] Fig.19 It is a schematic diagram of a server provided in one embodiment of the present application. DETAILED DESCRIPTION

[0145] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0146] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0147] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0148] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0149] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0150] References to "one embodiment" and the like described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the phrases "in one embodiment" and the like appearing in different places in this specification do not necessarily all refer to the same embodiment, but rather mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "include", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in another way.

[0151] Embodiment 1:

[0152] In the prior art, when a user's terminal device locates an associated electronic device, the user is often required to stay in the query interface for a long time waiting for the positioning result, thereby reducing the use efficiency of the terminal device and providing a poor user experience. In order to address this shortcoming, an embodiment of the present application provides a system for locating an electronic device.

[0153] Figure 1 FIG. 1 is a schematic diagram showing the structure of a system for locating an electronic device provided by an embodiment of the present application. Figure 1 As shown, the system for positioning the electronic device includes a business server, a prediction server, a terminal device and an electronic device, and the electronic device includes but is not limited to: smart watches, smart bracelets, smart headphones and other electronic devices that can be configured with a positioning module. Among them, a communication link can be established between the business server and the prediction server, and data interaction is performed through the above communication link; a communication link can be established between the business server and the terminal device and the electronic device, and data interaction is performed through the above communication link. The terminal device can be installed with a client program that matches the positioning system of the electronic device, and the user can initiate a positioning query request about the electronic device through the operation interface corresponding to the client program; the terminal device can include human-computer interaction controls such as a touch screen, a numeric keyboard, and a mouse, so that the user can input relevant instructions, such as the above positioning query request, and output the positioning query result through a display module such as a touch screen and a display; the terminal device can also include a communication module, through which a communication connection is established with the business server to send a positioning query request to the business server and receive the query prediction information and positioning query results fed back by the business server. The business server and the prediction server can be packaged in the same physical server, or they can be two independent physical servers, which are used to process the positioning business process and the query prediction process respectively. The business server and the prediction server can be configured with a data storage module. The business server can store the positioning query requests sent by each terminal device and the location information fed back by the electronic device through the data storage module. The data storage module of the prediction server can be used to store the historical data fed back by each electronic device. Optionally, the query prediction model corresponding to each electronic device can also be stored. The electronic device includes a positioning module, which can be a global positioning system GPS module. The location information is obtained through the positioning module and sent to the business server based on a preset heartbeat feedback cycle, or the location information is fed back when the positioning query instruction sent by the business server is received; the electronic device can also include a communication module, which establishes a long connection with the business server based on the communication module, and sends the positioning information to the business server.

[0154] In a possible implementation, the electronic device may be a device having the same function as the terminal device. In other application scenarios, the electronic device may also initiate a positioning query instruction to the server to determine the location of the terminal device.

[0155] In a possible implementation, the electronic device is specifically a wearable device to ensure that the collected location information is the location information of the desired monitored object.

[0156] See also Figure 2 As shown, Figure 2 An interactive flow chart of a system for locating an electronic device provided by an embodiment of the present application is shown, and the details are as follows:

[0157] In S21, the terminal device sends a positioning query request for obtaining the location of the electronic device to the service server.

[0158] In this embodiment, the user can generate a positioning query request on the terminal device. As an example but not limitation, by installing a client that matches the server, and through the query interface generated by the client on the interactive interface of the terminal device, clicking the associated control on the query interface, a positioning query request can be generated. When the user generates a positioning query request, the device identifier of the electronic device can be entered to indicate the corresponding electronic device to be queried; optionally, the terminal device can establish an association relationship between the terminal device and the electronic device according to the user's settings, and the user can select an electronic device in the association relationship as the default electronic device to be queried, and when generating a positioning query request, the device identifier of the default electronic device to be queried is automatically added to the above positioning query request, thereby reducing the user's selection operation. By establishing a corresponding relationship, the terminal device does not need to manually enter the electronic device to be queried each time a positioning query request is initiated, which can improve the query efficiency of the positioning query request.

[0159] In this embodiment, after generating a location query request, the terminal device may send the location query request to the service server, so as to obtain the location information of the electronic device through the service server response.

[0160] In S22, the service server receives the positioning query request, generates a prediction request according to the positioning query request, and sends the prediction request to the prediction server.

[0161] In this embodiment, the business server needs to send the query prediction information to the terminal device before feeding back the positioning query result. Therefore, after receiving the positioning query request sent by the terminal, the business server must first generate a prediction request based on the positioning query request and send the prediction request to the prediction server in order to obtain the query prediction information generated by the prediction server.

[0162] In this embodiment, the service server may receive a positioning query request sent by each terminal device. The positioning query request may be used to obtain the location information of the electronic device associated with the device identifier by carrying the device identifier of the electronic device; optionally, if the terminal device has established an association relationship between the terminal device and the electronic device, the established association relationship may be uploaded to the service server, and each terminal device in the association relationship is bound to at least one default queried electronic device. In this case, the positioning query request uploaded by the terminal device may not carry the device identifier of the electronic device. Since the service server can maintain the above association relationship, after receiving the positioning query request sent by the terminal device, the association relationship associated with the device identifier of the terminal device can be queried according to the device identifier of the terminal device of the request initiator to determine the electronic device bound to the terminal device initiating the request, and then determine the electronic device for which the positioning information is required to be queried, and then carry the identifier of the electronic device for which the positioning information is required to be queried in the prediction request sent to the prediction server. By maintaining the association relationship corresponding to the terminal device, the service server can query the above association relationship when receiving the positioning service request, and can determine the electronic device associated with the terminal device, so that the user does not need to manually enter the device identifier of the electronic device to be queried, which can reduce user operations.

[0163] By way of example and not limitation, Figure 3 FIG. 1 is a schematic diagram showing a process of locating an electronic device provided by an embodiment of the present application. Figure 3 As shown, the terminal device can pre-enter a corresponding relationship at the service server through the client, and the terminal device is bound to four different electronic devices, namely the eldest daughter's watch, the mother's watch, the youngest daughter's watch, and the son's watch. When the service server receives a positioning query request initiated by the terminal device, the service server can query the corresponding relationship associated with the terminal device according to the terminal identification of the terminal device, determine the electronic device bound to the terminal device, and generate a corresponding prediction request for the electronic device that has a binding relationship with the terminal device, so as to generate query prediction information for each electronic device through the prediction server.

[0164] Optionally, if the terminal device is bound to multiple electronic devices, in addition to generating prediction requests for multiple electronic devices at the same time, the user can also select one of the multiple electronic devices as the target electronic device corresponding to this query operation through the interactive module of the terminal device. The business server can generate a prediction request for the target electronic device based on the user's selection operation and send it to the business server.

[0165] By way of example and not limitation, Figure 4 FIG. 2 is a schematic diagram showing a positioning process of an electronic device provided by another embodiment of the present application. Figure 4As shown, the terminal device can display a device list on the interactive interface, and the device list includes the device names of multiple electronic devices associated with the terminal device, which are "eldest daughter's watch", "mother's watch", "youngest daughter's watch" and "son's watch" in this embodiment. The user can select one of them as the target electronic device in the device list, and in this embodiment, "eldest daughter's watch" can be selected as the target electronic device. The terminal device generates a corresponding positioning query request according to the user's selection operation. The business server parses the positioning query request, determines that the electronic device indicated by the positioning query request is the eldest daughter's watch, and sends a prediction request containing the device identifier of the eldest daughter's watch to the prediction server.

[0166] In a possible implementation, a client program related to a business server is installed on the terminal device. The terminal device can start the client program locally, establish a communication connection with the business server through the client program, and send a location query request to the business server through the UI button in the client program. Optionally, since the location information belongs to the user's private information, after the business server receives the location query request sent by the terminal device, it will determine whether the terminal device has the authority to view the location information of the electronic device. For example, the terminal device and the electronic device can establish a query agreement in advance, that is, the electronic device has authorized the terminal device to view its own location information. At this time, it is recognized that the terminal device has the authority to view the electronic device. Based on this, if the business server detects that the terminal device has the query authority, it will perform subsequent location query operations; conversely, if the business server detects that the terminal device does not have the authority to view the location information of the electronic device, it will feedback the query failure information to the terminal device to notify the terminal device to obtain the query authorization of the electronic device.

[0167] Optionally, the business server can configure an authorization validity period for the above-mentioned query authority. After receiving the positioning query request sent by the terminal device, the business server can determine whether the current moment is within the authorization validity period of the query authority of the terminal device. If so, respond to the positioning query request; otherwise, if the current moment is outside the authorization validity period of the query authority of the terminal device, the positioning query request is identified as an illegal request, and a query failure message is returned.

[0168] In S23, the prediction server responds to the prediction request, generates query prediction information according to the historical data of the electronic device, and sends the query prediction information to the service server.

[0169] In this embodiment, the business server can receive the location information and / or heartbeat data packets fed back by each electronic device, and then the business server sends the above location information and / or heartbeat data packets to the prediction server for storage, and the prediction server can use the above received data fed back by the electronic device as the historical data of the electronic device. Optionally, the prediction server can configure a corresponding database for each electronic device, each database is used to store the historical data associated with the electronic device, and establish an association relationship between each database and the device identification of the electronic device, and generate a corresponding index table based on the association relationship. After receiving the prediction request generated based on the positioning query request initiated by the terminal device, the prediction server can determine the database associated with the electronic device in the business service database through the above index table, and obtain the stored historical data from the database.

[0170] In a possible implementation, since the electronic device sends a lot of historical data, in order to reduce the storage pressure of the database, the prediction server can merge the historical data of the electronic data, for example, encapsulate multiple historical data with the same attributes or similarity into the same data packet, so as to reduce the number of data blocks in the database, so as to improve the storage efficiency of the database in the prediction server. As an example but not limited, the prediction server can encapsulate multiple historical data whose distance is less than a preset distance threshold and whose feedback time is less than a preset time threshold into the same data packet. As an example but not limited, electronic device A feedbacks a historical data located at location A at 11:00 on December 6, and also feedbacks the historical data located at location A at 11:01 on December 7. The prediction server judges that the difference between the feedback time of the above two historical data is 1 minute, and the location distance is 0, then the above two historical data can be merged into one historical data packet. Of course, if there are multiple identical or similar historical data, the above multiple historical data can also be merged into the same data packet. For example, Table 1 shows a format diagram of the merged historical data packet. The historical data packet records the device name, location, feedback time and feedback number. If a certain historical data does not have the same or similar historical data packet, the value in the parameter item of the feedback number is 1. By identifying the value of the number in the historical data packet, it can be determined whether the electronic device's arrival at a certain location at a certain time is a repetitive behavior or an occasional behavior, thereby facilitating the identification of the behavior habits of the user of the electronic device.

[0171] Device Name Location time frequency Electronic equipment A Location A December 6-7, 11am 2

[0172] Table 1

[0173] In this embodiment, the query prediction information is specifically used to prompt the user with relevant information of the current positioning query request, so that the user can have certain operation expectations for the current positioning query operation through the query prediction information before receiving the positioning query result, thereby improving the user's experience in the positioning query process.

[0174] Further, as another embodiment of the present application, the query prediction information includes query waiting time and / or positioning success rate.

[0175] Among them, the query waiting time is specifically the time to respond to the location query request. The user can determine whether to stay in the current interface to wait for the location query result, or switch to other operation interfaces by querying the query waiting time in the prediction information. After a period of time, return to the current interface to check the location query result returned by the business server. As an example but not a limitation, after the terminal device sends a location query request to the business server, the business server can generate a prediction request corresponding to the location query request, and hand it over to the prediction server to respond to the prediction request. The prediction server determines that the time required for this location query operation is 30 seconds based on the historical data of the electronic device, and forwards the query prediction information containing the query waiting time to the business server. The business server returns the query prediction information to the terminal device, and the terminal device can continue to stay in the current query interface, or switch to other pages to perform other operations. After 30 seconds or more, return to the query interface, at this time The business server may have received the location information returned by the electronic device, and generated a location query result and returned it to the terminal device. When the terminal device switches back to the query interface, the location information of the electronic device can be immediately checked, avoiding the user from waiting for a long time in the current interface due to the inability to estimate the time taken for the location query request.

[0176] Among them, the positioning success rate is specifically the probability of receiving the positioning information returned by the electronic device within the effective response time. The business server can be set with an effective response time, that is, after the business server sends a positioning query instruction to the electronic device, it will start the calculator to detect the response time of the query operation. If it is detected that the count value of the above timer is greater than the effective response time, it is judged that this query operation is unsuccessful; on the contrary, if the location information fed back by the electronic device is received before the count value of the timer is less than or equal to the effective response time, the location information can be used to generate a positioning query result and returned to the terminal device, then the response is successful. Therefore, the business server can send the above effective response time to the prediction server, and the prediction server can output the positioning success rate through the effective response time. The prediction server can determine the query time of this response operation through the historical data of the electronic device, and compare the query time with the effective response time pre-set by the business server, and determine the positioning success rate according to the comparison result. In a possible implementation, the method for determining the positioning success rate can be: if the predicted time consumed by the prediction server based on historical data is much less than the effective response time preset by the business server (for example, the difference between the effective response time and the predicted time consumed is greater than the preset time difference threshold, it is identified as much less than), then the success rate is high, for example, 100%; if the predicted time consumed is close to the effective response time (for example, the difference between the effective response time and the predicted time consumed is less than the time difference threshold), then the success rate is low, for example, 50% (the specific value can be determined according to the actual difference between the two, and can be calculated by a preset conversion algorithm); if the predicted time consumed is greater than the effective response time, it is identified as unsuccessful, for example, 0%. By adding the positioning success rate to the query prediction information, the user can determine whether to continue waiting for the positioning query result or to initiate the positioning query request again based on the positioning success rate, and at the same time, it can avoid the user waiting for a long time in the query interface due to the inability to determine the time consumed by the positioning query, which affects the user's execution of other operations.

[0177] Optionally, the query prediction information may also include the predicted location of at least one electronic device and the prediction confidence corresponding to the predicted location. Before receiving the location information returned by the electronic device, the business server may return the query prediction information including the predicted location fed back by the prediction server to the terminal device, mark each predicted location on the query interface of the terminal device, and indicate the corresponding prediction confidence on the predicted location. During the query process, the user can determine the possible current location of the electronic device by checking the predicted location of the electronic device. It can provide a certain amount of information while the user is waiting for the electronic device to return the positioning information, so as to avoid the user waiting for a long time. Moreover, through each predicted location and the corresponding prediction confidence, the behavior habits of the electronic device can be understood. In particular, in the monitoring scenario, the prediction server can predict the current location of the electronic device through historical data, so that the user can determine the travel habits of the object to which the electronic device belongs, and provide behavior habit information for monitoring decisions.

[0178] As an example but not limitation, the user of the terminal device is a parent, and the user of the electronic device is a daughter. The prediction server can infer that the daughter may currently be at the predicted location through the historical data of the electronic device. The parent can learn the places the daughter often goes to at that time through the predicted location and the prediction confidence of each predicted location, so as to better understand the daughter's behavioral habits.

[0179] In this embodiment, the prediction server can obtain the historical data of the electronic device to be queried and located, and generate query prediction information based on the historical data of the electronic device. The query prediction information can include the query waiting time, the positioning success rate and / or the predicted location of at least one of the electronic devices and the confidence level corresponding to the predicted location.

[0180] Specifically, S23 may include the following three implementation methods:

[0181] 1. Implementation method 1 specifically includes the following steps: 1. The prediction server predicts the location of the electronic device by acquiring the historical data of the electronic device; 2. According to the predicted location, determine the signal strength corresponding to the electronic device at the predicted location; 3. Generate query prediction information of the electronic device according to the signal strength. If the prediction result of the query prediction information output in implementation method 1 is an unpositionable state, implementation method 1 may also include the following steps: 4. The prediction server selects the historical data of the electronic device with the smallest difference between the moment of feedback location information and the current moment as the target data; 5. The prediction server outputs the reason for the unpositionable state according to the running state and signal strength of the electronic device at the moment of feedback location information carried by the target data; 6. The prediction server outputs the predicted location according to the historical location and motion state of the electronic device at the feedback moment carried by the target data; 7. The prediction server imports the reason for the unpositionable state and / or the predicted location into the query prediction information.

[0182] 2. Implementation method 2 specifically includes the following steps: 1. The prediction server obtains the location information most recently fed back by the electronic device; 2. Based on the most recently fed back location information, an associated query prediction model is selected; 3. Based on the query prediction model, query prediction information is output.

[0183] If the prediction result of the query prediction information output in implementation method 2 is a state where positioning cannot be achieved, implementation method 2 may further include the following steps: 4. The prediction server selects the historical data of the electronic device with the smallest difference between the time when the position information is fed back and the current time as the target data; 5. The prediction server outputs the reason for being unable to be positioned based on the operating status and signal strength of the electronic device at the time when the position information is fed back carried by the target data; 6. The prediction server outputs the predicted position based on the historical position and motion status of the electronic device at the feedback time carried by the target data; 7. The prediction server imports the reason for being unable to be positioned and / or the predicted position into the query prediction information.

[0184] 3. Implementation method 3 specifically includes the following steps: 1. The prediction server determines the query prediction model corresponding to the electronic device based on the device identification of the electronic device; 2. The prediction server obtains the query prediction information through the query prediction model; the query prediction model is constructed based on the historical data of the electronic device.

[0185] If the prediction result of the query prediction information output in implementation method 3 is a state where positioning cannot be achieved, implementation method 3 may further include the following steps: 3. The prediction server selects the historical data of the electronic device with the smallest difference between the time when the position information is fed back and the current time as the target data; 4. The prediction server outputs the reason for being unable to be positioned based on the operating status and signal strength of the electronic device at the time when the position information is fed back carried by the target data; 5. The prediction server outputs the predicted position based on the historical position and motion status of the electronic device at the feedback time carried by the target data; 6. The prediction server imports the reason for being unable to be positioned and / or the predicted position into the query prediction information.

[0186] The specific implementation process of implementation method 3 can be found in Figures 5 to Figure 8 Description of embodiments.

[0187] For implementation methods 1, 2, and 3, when the prediction result of the output query prediction information is in the state of being unable to be located, the specific implementation process of the subsequent response process can be referred to as follows: Fig. 9 Description of embodiments.

[0188] Figure 5a The specific implementation flow chart of each step in the above implementation mode 1 of S23 is shown. Figure 5a As shown, in this embodiment, S23 may include S231a to S233a, which are described in detail as follows:

[0189] S231a. The prediction server predicts the location of the electronic device by acquiring historical data of the electronic device.

[0190] Specifically, the prediction server can extract all historical data about the electronic device from the database according to the device identification of the electronic device, and determine the predicted location of the electronic device according to each historical data. The predicted location is specifically the location of the electronic device at the time when the terminal device sends the location query request, which is calculated based on the historical data.

[0191] In a possible implementation, the prediction server may determine the predicted location by extracting multiple first target historical data of different dates from all historical data of the electronic device, wherein the feedback time of the first target historical data is the same as or close to the time when the terminal device sends the positioning query request, wherein the feedback time specifically refers to the time corresponding to when the electronic device reports the location information to the service server. The predicted location of the electronic device is determined based on the historical location of the target historical data.

[0192] S232a. Determine the signal strength of the electronic device corresponding to the predicted location based on the predicted location.

[0193] In this embodiment, determining the signal strength may include the following two implementations, and the following two implementations are parallel implementations. In actual application, one of the following may be selected to determine the signal strength.

[0194] Implementation A: The prediction server may store a signal strength distribution map, which records the signal strength associated with each location. The prediction server may mark the coordinate point of the predicted location determined above on the signal strength distribution map, query the signal strength associated with the coordinate point, and use the signal strength of the coordinate point as the signal strength corresponding to the predicted location.

[0195] Implementation method B: The prediction server can extract all the second target historical data about the above predicted location from the historical data, and the historical location in the second target historical data is the same as or close to the above predicted location, wherein the historical location specifically refers to the location corresponding to when the electronic device reports the location information to the service server. According to the historical signal strength in each second target historical data, the signal strength corresponding to the predicted location is determined.

[0196] S232c. Generate query prediction information of the electronic device based on the signal strength.

[0197] In this embodiment, the stronger the signal strength, the higher the success rate of the electronic device in receiving the positioning query instruction sent by the service server, and the shorter the time required to send the positioning query instruction (the stronger the signal strength, the higher the transmission rate and signal-to-noise ratio, so the required transmission time is also shorter). Similarly, the time required for the electronic device to feedback the location information to the service server is also shorter and the success rate is higher. Therefore, the signal strength of the electronic device is closely related to the success or failure of the query result and the query response time. The prediction server can generate a conversion relationship between signal strength and query prediction information based on big data analysis, and import the above-obtained signal strength into the above-mentioned conversion relationship, so that the query prediction information corresponding to the signal strength can be generated.

[0198] In this embodiment, the query prediction information may include at least one parameter related to the positioning query request. The parameter related to the positioning query request includes, but is not limited to, one or more of the following combinations: query response time (i.e., the waiting time required by the terminal device), positioning success rate, prediction accuracy, etc. If the query prediction result is a state where positioning is unavailable, the reason for the unavailable positioning may also be included.

[0199] In order to determine the query waiting time and positioning success rate in the query prediction information, the specific implementation process of implementation method 1 is described: the prediction server can obtain the historical data of all feedback from the electronic device, and determine the predicted position of the electronic device at the time of receiving the prediction request based on the historical data, and obtain the signal strength corresponding to the predicted position, and calculate the query waiting time and / or positioning success rate through the conversion algorithm between the signal strength and the response parameter, and import the query waiting time and / or positioning success rate into the preset query prediction template to generate the above-mentioned query prediction information.

[0200] Figure 5b The specific implementation flow chart of each step in the above implementation mode 2 of S23 is shown. Figure 5b As shown, in this embodiment, S23 may include S231b to S233b, which are described in detail as follows:

[0201] S231b, the prediction server obtains the location information most recently fed back by the electronic device;

[0202] Specifically, the prediction server can extract the most recently fed back location information from the electronic device's historical data, and the most recently fed back location information specifically refers to the most recently fed back location information when the electronic device reports the location information and the time when the terminal device sends the location query request is the smallest. The prediction server can identify the most recently fed back location information of the electronic device as the reference location.

[0203] S232b. Select an associated query prediction model based on the most recently fed back location information.

[0204] Specifically, the prediction server can be equipped with at least one query prediction model, and query prediction information can be output through the query prediction model. Different query prediction models can be used in different scenarios, and different prediction methods can be used according to different scenarios to improve the accuracy of the prediction operation.

[0205] Among them, the method of determining the query prediction model based on the most recently fed back location information can be: the prediction server can identify the number of historical data that are identical or similar to the most recently fed back location information from all historical data, and the method of counting the identical or similar historical data can refer to the above content, that is, if the difference in the reporting time is less than the preset time threshold, and the distance value between the two locations is less than the preset distance threshold, then it is identified as historical data that is identical or similar to the reference location. If the number of historical data is greater than the preset number threshold, it is identified that the user of the electronic device is in a daily scenario, and the first query prediction model is used. If the number of historical data that is identical or similar to the reference location is less than or equal to the above number threshold, it is identified that the user of the electronic device is in an unconventional scenario, and the second query prediction model is used.

[0206] S233b. Output query prediction information based on the query prediction model.

[0207] Specifically, when the prediction result is output through the first query prediction model, historical data belonging to multiple different dates whose reporting time of historical data is close to the time of receiving the query positioning request can be selected as reference data, and the above selected reference data is imported into the first query preset model to output query prediction information. Since the use of the first query prediction model indicates that the user of the electronic device is in a daily scene, the signal strength of the predicted location of the electronic device can be determined through historical data of multiple different dates, and the signal strength of the predicted location and the historical response time in the historical data are imported into the first query prediction model to generate query prediction information, wherein the query prediction information can include one or a combination of two or more of the query response time (i.e., the waiting time required for the terminal device), positioning success rate, prediction accuracy, etc.

[0208] As an example but not limitation, the user of the terminal device is the father, and the user of the electronic device is the daughter. When the father obtains the location information of his daughter at 15:00, he can send a positioning query request to the business server through the terminal device, and the business server can generate a prediction request to the prediction server. The prediction server queries the electronic device for the most recent historical data feedback at 14:58, and the reference location of the historical data is the school. The prediction server can count the number of historical data at around 14:58 on different dates and the location of the school from all historical data, and determine that the number is greater than the preset number threshold, then it can be identified that the daughter is currently in a daily scene, and the query prediction information can be output through the first query prediction model. At this time, the historical data with feedback times of around 15:00 belonging to different dates are imported into the first query prediction model, and the query prediction information is output.

[0209] Specifically, when the prediction result is output by the second query prediction model, the historical data whose time difference between the reporting time of the historical data and the time of receiving the query positioning request is less than the preset time threshold can be selected as the reference data, wherein the reporting date of the above reference data is the same as the date of the time of receiving the query positioning request. The above selected reference data is imported into the second query preset model, and the query prediction information is output. Since the second query prediction model is used, it means that the user of the electronic device is in an unconventional scenario, and the current user's behavior is not a daily regular behavior, but an occasional behavior. At this time, the signal strength of the current location of the electronic device can be predicted through multiple historical data recently fed back by the electronic device, and the signal situation of the predicted location and the response time of the most recent feedback location information are imported into the second query prediction model to generate query prediction information, wherein the query prediction information can include one or more combinations of query response time (i.e., the waiting time required for the terminal device), positioning success rate, prediction accuracy, etc.

[0210] As an example but not limitation, the user of the terminal device is the father, and the user of the electronic device is the daughter. When the father obtains the location information of the daughter at 15:00, he can send a positioning query request to the business server through the terminal device, and the business server can generate a prediction request to the prediction server. The prediction server queries the electronic device for the most recent feedback historical data, which is the historical data fed back at 14:58. The reference position of the historical data is the high-speed railway station. The prediction server can count the number of historical data at around 14:58 on different dates and the positioning position is the high-speed railway station from all historical data, and identify that the number is less than the preset number threshold. On multiple different dates, the daughter should be at school at around 14:58, so it can be identified that the daughter is currently in an unconventional scenario, and the query prediction information can be output through the second query prediction model. At this time, the historical data whose time difference between the feedback moment of the current date and 15:00 is less than the preset time threshold is imported into the second query prediction model. For example, if the time threshold is 30 minutes, the historical data between 14:30-15:00 can be imported into the second query prediction model to output the query prediction information.

[0211] As a possible implementation method, after determining the query prediction model, the prediction server can determine the predicted behavior of the user of the electronic device through the location information of the historical data recently fed back by the electronic device and before outputting the query prediction information through the query prediction model, and adjust the query prediction model according to the predicted behavior, and generate the above-mentioned query prediction information based on the adjusted query prediction model. As an example but not limitation, if the location information of the historical data recently fed back by the electronic device is a high-speed rail station, the user of the electronic device may need to take a high-speed rail next, that is, the corresponding predicted behavior may be "take a high-speed rail", then the query prediction model is adjusted to a query prediction model in a high-speed rail collection mode based on the predicted behavior; for another example, if the location information of the historical data recently fed back by the electronic device is an airport, then the user of the electronic device may need to take a plane next, and the passengers on the plane cannot communicate freely. At this time, the corresponding predicted behavior may be "take a plane", then the query prediction model is adjusted to a query prediction model in a scenario where communication is impossible based on the preset behavior.

[0212] To determine the query waiting time and positioning success rate in the query prediction information, the specific implementation process of implementation method 2 is described: the prediction server can determine the query prediction model associated with the location information according to the location information in the historical data recently fed back by the electronic device; and output multiple candidate predicted locations of the electronic device and the confidence corresponding to each candidate predicted location through the above query prediction model. Optionally, if the historical data contains motion parameters, the prediction server can also import the above motion parameters into the above query prediction model, and the query prediction model can generate multiple movement trajectories according to the location and operation parameters recently fed back by the electronic device. Since the above query prediction model is obtained through big data analysis based on all historical data of the electronic device, the query prediction model can determine the behavior habits of the user to which the electronic device belongs. Therefore, in addition to obtaining the above movement trajectory, the matching degree between the behavior habits of each movement trajectory and the user to which the electronic device belongs can be determined, and the confidence of each movement trajectory is determined based on the above matching degree. According to the time difference between the feedback time of the most recently fed back historical data and the time when the prediction request is received, the movement time of the electronic device can be determined, so that the predicted location of the electronic device can be marked on each movement trajectory, and the confidence of each movement trajectory is used as the confidence of the predicted position corresponding to the movement trajectory.

[0213] Figure 5cThe specific implementation flow chart of each step in the implementation method 3 of S23 is shown. Compared with the implementation method 2, the implementation method 3 can configure corresponding query prediction models for different electronic devices. Therefore, before obtaining the query prediction model, it is necessary to obtain the device identification of the electronic device. Referring to FIG. 5, in this embodiment, S23 may include S231c and S232c, which are described in detail as follows:

[0214] In S231c, the prediction server determines a query prediction model corresponding to the electronic device based on the device identification of the electronic device.

[0215] In this embodiment, the prediction server may construct a query prediction model for each electronic device in advance, use the historical data of the electronic device as training data, adjust the preset algorithm model, and thus generate a query prediction model.

[0216] There are three ways to build a query prediction model:

[0217] In one possible implementation, the prediction server may configure corresponding query prediction models for different electronic devices. In this case, the prediction server divides the historical data into multiple data groups according to the device identification of the electronic device, and trains the query prediction model through the historical data in each data group, thereby generating a query prediction model that matches the behavioral habits of the electronic device.

[0218] In one possible implementation, the prediction server can also generate a query prediction model that can be applied to all devices based on the historical data fed back by all different electronic devices, that is, the generated query prediction model can be used to output query prediction information of different electronic devices. In this case, the prediction server can use the historical data of all different electronic devices as training data, and train and learn the preset algorithm model. By using the historical data of all electronic devices as training data, the number of training data samples can be greatly increased, thereby improving the accuracy of the query prediction model.

[0219] In a possible implementation, the prediction server can construct a query prediction model by combining the above two methods, and the implementation method is as follows: the prediction server can construct a reference prediction model applicable to all devices through the historical data of all electronic devices. The prediction server can obtain the data volume of the historical data of each electronic device in a preset detection cycle. If it is detected that the data volume of the historical data of any electronic device is greater than the preset data volume threshold, the corresponding query prediction model is configured for the electronic device through all the historical data of the electronic device. Therefore, when the prediction server receives the positioning query request sent by the terminal device, it will determine whether the electronic device indicated by the positioning query request is configured with an associated query prediction model. If so, the query prediction information is generated through the query prediction model associated with the electronic device; otherwise, if the electronic device is not configured with an associated query prediction model, the reference prediction model applicable to all devices is used to output the query prediction information.

[0220] When the query prediction model is trained through historical data, the prediction server can extract parameters related to the construction of the query prediction model from the historical data, including but not limited to one or more of the following combinations: the switch state of the electronic device, the reporting time of the historical data, the movement state of the electronic device, the online time of the long link between the electronic device and the service server, the historical success rate of the heartbeat signal sent by the electronic device when maintaining the aforementioned long link, the signal strength corresponding to the reporting time of the historical data, and the network state corresponding to the reporting time (for example, using a mobile communication network or feedback through a wireless local area network, etc.). The prediction server can also extract parameters related to the output of the query prediction model from the historical data, including but not limited to one or more of the following combinations: actual positioning time, actual positioning feedback status (for example, positioning success or positioning failure, etc.) and feedback position, etc.

[0221] The method of training the query prediction model can be specifically: the prediction server can extract multiple training input parameters and training output parameters related to the query prediction information from the historical data, and form multiple training samples according to the training input parameters and the training output parameters. The prediction server can configure the corresponding basic prediction model according to the data type of the prediction parameter in the query prediction information, and adjust the learning parameters in the basic prediction model through the multiple training samples generated above, so that the loss function of the adjusted basic prediction model is less than the preset loss threshold. At this time, it can be identified that the basic prediction model has been learned, and the learned basic prediction model is identified as the query prediction model. Among them, the above-mentioned method of adjusting the basic prediction model includes but is not limited to one or more combinations of the following: adjusting the levels contained in the basic prediction model, such as increasing or decreasing the corresponding number of nodes; classifying and predicting the output results by linear classification, and calculating the probability values ​​corresponding to each classification result respectively, and optimizing the number of classification results in the adjustment process; adjusting the prediction algorithm of the basic prediction model by multivariate linear fitting, and configuring the upper limit level for each input element to avoid overfitting during the fitting process.

[0222] In one possible implementation, the method of generating the above-mentioned baseline prediction model may specifically be: the business server may query the prediction parameters that may be contained in the prediction information. For example, the query prediction information includes the query waiting time and the positioning success rate. Different prediction parameters correspond to different input data. In this case, the prediction server may configure corresponding query prediction algorithms for different prediction parameters, and configure corresponding input parameters for the above-mentioned query prediction algorithms, encapsulate multiple query prediction algorithms, and obtain a baseline prediction model. It should be noted that the baseline prediction model is used to determine the general function expression used in the model. The weight values ​​of each variable in the general function expression need to be adjusted through training and learning, that is, the baseline prediction model is used to limit the conversion relationship between the independent variable and the dependent variable. For example, the query prediction information includes two prediction parameters, namely, query waiting time and positioning success rate, and the input parameters corresponding to the query waiting time may be: positioning query time, historical motion status, historical signal strength and historical network status. The first query prediction algorithm corresponding to the query waiting time can be fitted and constructed based on the above four parameters through multiple linear regression; and the input parameters corresponding to the positioning success rate may be: positioning query time, device historical status, heartbeat signal reception success rate and historical network status. The second query prediction algorithm corresponding to the positioning success rate can be fitted and constructed based on the above four parameters through multiple linear regression. The above two query prediction algorithms are encapsulated to generate a benchmark prediction model.

[0223] In S232c, the prediction server obtains the query prediction information through the query prediction model; the query prediction model is constructed based on the historical data of the electronic device.

[0224] In this embodiment, after the prediction server constructs a query prediction model through the historical data of the electronic device, it can generate query prediction information corresponding to the positioning query request through the query prediction model. The input parameter of the query prediction model can be the request trigger time of the query prediction request, and the associated target historical data is extracted from the historical data of the electronic device and imported into the query prediction model, and the query prediction information is output through the query prediction model.

[0225] In a possible implementation, the target historical data selected from the historical data may be the historical data most recently fed back by the electronic device, that is, the historical data with the smallest time difference between the reporting time of the historical data reported by the electronic device and the request triggering time of the query prediction request is used as the target historical data, and based on the historical position carried in the target historical data, the signal strength and network status corresponding to the historical position are determined, and the above two parameters are imported into the query prediction model, so that parameters such as the time required to respond to the query operation can be predicted, and query prediction information can be generated. It should be noted that the parameter items extracted from the target historical data are determined by the input parameters of the query prediction model. The number of target historical data obtained may be one or more, and is not specifically limited.

[0226] In an embodiment of the present application, a query prediction model is constructed through historical data fed back by the electronic device during use, and query prediction information is output through the query prediction model, thereby realizing the prediction of the operation process parameters of the positioning query operation, and adjusting the model through big data can improve the accuracy of the prediction operation.

[0227] Further, as another embodiment of the present application, the query prediction information may also include a plurality of different query prediction parameters, and corresponding display areas are configured for different query prediction parameters. In this case, Figure 5c S232c in the embodiment may include S2321 and S2322. Figure 6 The specific implementation flow chart of S232c provided by an embodiment of the present application when the query prediction information includes a display area is shown. The details are as follows:

[0228] In S2321, the prediction server outputs the query prediction parameters through the query prediction model.

[0229] In this embodiment, the query prediction information includes multiple query prediction parameters, and different query prediction parameters can be used to represent prediction information of different dimensions. As an example and not a limitation, the query prediction parameters include but are not limited to the following one or more combinations: query waiting time, positioning success rate, predicted location, query user's scene and device status of electronic equipment, etc. The query user's scene can be represented by a scene type, such as school type, train station type, shopping mall type, etc. The above scene types do not contain specific location information, but are classified based on the location, environment and other information of the user's location; the device status includes but is not limited to: power-on state, standby state, low power state, weak signal state, etc. The prediction server extracts the input parameters required by the query prediction model from the historical data, and outputs the query prediction parameters corresponding to this positioning query operation by importing each input parameter into the query prediction model.

[0230] As an example but not a limitation, Table 2 shows a schematic diagram of the structure comparison of a feedback message based on a positioning query request provided by this embodiment. As shown in Table 2, in the feedback message of the existing positioning query technology, in the field carrying whether the positioning request is sent successfully, after the terminal device receives the feedback message and before receiving the location information returned by the electronic device, the display interface of the terminal device will only display the words "successful positioning" and "successful positioning", and the user cannot determine the time required for this query operation, so it is necessary to wait for the query result in the current interface for a long time; while in the feedback message provided by this embodiment (since the feedback of this embodiment is query prediction information, the feedback message carries various query prediction parameters in the query prediction information), in addition to carrying the field of whether the positioning request is sent successfully, it can also carry fields related to the query prediction parameters, namely the arrival status field of the positioning result, the predicted positioning success rate field, the query waiting time field and the current scene field of the device, and after receiving the feedback message, the terminal device can display the information of the above query prediction parameter field on the current interface, so that the user can determine the time required for this query operation, thereby facilitating the adjustment of subsequent operations.

[0231]

[0232] Table 2

[0233] In S2322, the prediction server imports each of the query prediction parameters into a display area associated with the parameter type in a preset prediction information template according to the parameter type of each of the query prediction parameters, and generates the query prediction information.

[0234] In this embodiment, the prediction server can be pre-configured with a prediction information template, which is configured with corresponding display areas for different types of query prediction parameters. After obtaining each query prediction parameter through the query prediction model output, the display area on the prediction information model can be determined, and each query prediction parameter can be imported into the associated display area, thereby generating corresponding query prediction information.

[0235] As a possible implementation method, the query prediction information is specifically output in a query prediction display interface. The prediction server is pre-configured with an interface template and has associated interface display areas for different parameter types. The prediction server identifies the parameter type of each query prediction parameter and imports the query prediction parameter into the interface template according to the interface display area associated with each disabled person type, generates query prediction information, and after feeding back the query prediction information to the terminal device, the terminal device can output the above prediction display interface on the local display interface.

[0236] By way of example and not limitation, Figure 7 A schematic diagram of an interface template of a query prediction display interface provided by an embodiment of the present application is shown. Figure 7 As shown, the query prediction parameters output include the arrival status field of the positioning result, the predicted positioning success rate field, the query waiting time field and the current scene field of the device, and the parameter values ​​corresponding to the above four fields are: "Positioning result can be reached", "Low positioning success rate", "8 seconds" and "School scene", and the display areas corresponding to the above four fields are area 1, area 2, area 3 and area 4. The prediction server can import the above four parameter values ​​into the corresponding areas of the interface template.

[0237] In an embodiment of the present application, query prediction parameters of multiple different parameter types are output by identifying the predictive query model and imported into a display area associated with a prediction information template, thereby generating query prediction information and returning it to a terminal device so that the terminal device can output the query prediction information based on a preset display method, thereby improving the readability of the query prediction information.

[0238] Further, as another embodiment of the present application, when one electronic device corresponds to multiple query prediction models, in this case, Figure 5c S232c in the embodiment may include the following related operations of S2323 to S2325. Figure 8 The specific implementation flow chart of S232c provided by an embodiment of the present application when the electronic device corresponds to multiple query prediction models is shown. The details are as follows:

[0239] In S2323, the prediction server queries multiple candidate query models corresponding to the electronic device based on the device identifier.

[0240] In this embodiment, the electronic device can configure a plurality of different prediction query models according to different location scenarios.

[0241] In S2324, the prediction server determines the current scene type of the electronic device based on the historical data of the electronic device with the smallest difference between the time when the position information is fed back and the current time.

[0242] In this embodiment, the above-mentioned current moment specifically refers to the moment corresponding to when the prediction server receives the prediction request. By selecting the historical data with the smallest difference between the moment of feedback position information and the current moment from the historical data, the prediction server can determine the position information recently fed back by the electronic device, and determine the query prediction model adopted according to the recently fed back position information, so as to adopt different prediction methods according to the different scenes in which the electronic device is located, and improve the success rate of the prediction operation. The prediction server can identify the position information recently fed back by the electronic device as the reference position, and the prediction server can identify the number of historical data that is the same or similar to the reference position from all historical data. The method of counting the same or similar historical data can refer to the above content, that is, the difference between the moments of identifying the feedback position information is less than the preset time threshold, and the distance value between the feedback positions in the two historical data is less than the preset distance threshold, then it is identified as the same or similar historical data as the reference position. If the number of the historical data is greater than the preset number threshold, it is identified that the user of the electronic device is in a daily scene; if the number of the historical data that is the same or similar to the reference position is less than or equal to the above number threshold, it is identified that the user of the electronic device is in an unconventional scene.

[0243] In S2325, the prediction server selects a candidate query model that matches the scene type from the candidate query models as the query prediction model.

[0244] In this embodiment, the prediction server may select a candidate query model that matches the current scenario of the electronic device as a query prediction model for outputting query prediction information.

[0245] In the embodiments of the present application, different prediction methods are used according to different scenarios in which the electronic device is located to improve the success rate of the prediction operation.

[0246] Further, as another embodiment of the present application, when the prediction result of the query prediction information output is a state where the location cannot be located, the query prediction information may include the reason for the location failure and / or the predicted location. In this case, the above Figure 5c In the embodiment, operations S901 to S904 are further included after S23. Fig. 9The following is a response flow chart provided by an embodiment of the present application when the prediction result of the query prediction information output is in a state where the location cannot be determined. Fig. 9 As shown, in this embodiment, after S23, S901 to S904 may be further included, which are described in detail as follows:

[0247] In S901, if the prediction result of the query prediction information is that the positioning state cannot be determined, the prediction server selects the historical data with the smallest difference as the target data based on the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request.

[0248] In this embodiment, the current moment specifically refers to the moment corresponding to when the prediction server receives the prediction request. The query prediction information includes the prediction query status, which includes but is not limited to: a queryable state and an unpositionable state. In the case where the prediction server detects that the prediction result of the query prediction information is an unpositionable state, it means that based on the historical data of the electronic device, it is very likely that the current moment is in an uncommunicable environment. At this time, a positioning query instruction is sent to the electronic device, and it is highly likely that the location information fed back by the electronic device cannot be received within the preset effective response time. Based on this, in order for the terminal device to obtain the location information of the electronic device at the current moment, the predicted location of the electronic device can be determined by querying the prediction model, and / or the reason for the inability to locate can be output to the user, so that the user can also predict the current state of the electronic device.

[0249] It should be noted that when the prediction server identifies that the prediction result is in a state where positioning is unavailable, it can still send a positioning query instruction to the electronic device, and if it receives the location information fed back by the electronic device based on the positioning query instruction within the effective response time, it will generate a positioning query result and feed it back to the terminal device.

[0250] In this embodiment, when the prediction server detects that the prediction result of the query prediction information is an unpositionable state, it can output the reason for the unpositionable state and / or the current predicted position of the electronic device. At this time, the prediction server needs to select the corresponding target data from the historical data to determine the above two query prediction parameters. Among them, the target data is the historical data most recently fed back by the electronic device, that is, the historical data with the smallest difference between the feedback time and the current time.

[0251] In this embodiment, each historical data carries information such as the operating status, signal strength, current position and / or device motion status of the device at the time when the electronic device feedbacks the historical data. The operating status specifically refers to the hardware status of the device, such as whether the device is in the power-on state, power-off state, low power state, overload state, no-load state, etc. The device motion status specifically refers to the physical motion status of the device. Since the electronic device can be a wearable device or a mobile terminal, or an automatic robot, it will move with the user or the preset program. Therefore, the motion status can include: static state and motion state, and the motion state also corresponds to the motion speed, motion angular velocity and motion acceleration, etc.

[0252] In S902, the prediction server outputs the reason why positioning cannot be performed based on the operating status and signal strength of the electronic device carried in the target data at the time of feedback of the location information.

[0253] In this embodiment, the server can obtain the operating status and signal strength of the electronic device at the time of feedback from the target data, and determine the reason why the current prediction result of the electronic device is that it cannot be positioned based on the above two parameters.

[0254] In one possible implementation, the reason for being unable to locate may be determined as follows: if the operating status in the target data is a shutdown state, the corresponding reason for being unable to locate may be that the device is turned off; if the operating status in the target data is a low-battery state, the corresponding reason for being unable to locate may be that the device is low on battery; if the operating status in the target data is an on state, the signal strength value is identified. If the signal strength value is less than a preset signal feedback threshold, the corresponding reason for being unable to locate may be that the device has no network.

[0255] In S903, the prediction server outputs a predicted position according to the historical position and motion state of the electronic device at the feedback moment carried in the target data.

[0256] In this embodiment, the prediction server can obtain the historical position and motion state of the electronic device at the time of feedback from the target data, and predict the current position of the electronic device based on the above two parameters, that is, the above-mentioned predicted position.

[0257] In one possible implementation, the preset position can be determined as follows: if the motion state is a stationary state, the historical position in the target data is the current predicted position of the electronic device; if the motion state is a moving state, the moving speed is determined, and based on the difference between the feedback moment and the current moment, the moving distance is calculated, and the predicted position is determined based on the moving distance and the historical position. In particular, the moving process must be on a feasible road. Therefore, based on the road where the historical position is located and the user's moving direction, the coordinates of a certain position can be accurately determined, and the coordinate point corresponding to the position coordinates is used as the predicted position.

[0258] By way of example and not limitation, Fig.10 A schematic diagram of determining the predicted position provided by an embodiment of the present application is shown. It can be determined through the target data that the electronic device is located at location A at 15:00, and moves toward the north at a speed of 2 meters per second. At 15:05, the prediction server receives the positioning query request sent by the terminal device, and determines that the electronic device cannot be successfully positioned at the current time. At this time, the moving distance can be calculated based on the moving speed and the moving time, that is, 2*5*60=600m, and the moving direction is the north direction, then it is location B 600 meters north of location A, and location B is used as the predicted position.

[0259] It should be noted that S902 and S903 can be executed one by one, or simultaneously, or sequentially based on a preset order. The above two steps are independent of each other, and the execution order between the above two steps is not limited here.

[0260] In S904, the prediction server imports the reason for being unable to locate and / or the predicted position into the query prediction information.

[0261] In this embodiment, after the prediction server determines the reason for the inability to locate and the predicted location, it can import the above two parameters into the query prediction information, so that after the user receives the query prediction information, the reason for the inability to locate and the predicted location can be output on the terminal device to determine the current expected state of the electronic device.

[0262] As an example and not a limitation, the electronic device maintains a long link with the prediction server from 15:00 to 15:20, and feeds back heartbeat data to the prediction server at a preset feedback cycle, and responds to the positioning query instruction sent by the prediction server at 15:20, feeding back the location information of 15:20 to the prediction server, and the location information indicates that the electronic device is near a tunnel. At 15:21, the terminal device sends a positioning query request to the prediction server for obtaining the electronic device. At this time, the prediction server detects the connection status with the electronic device and finds that the interaction status between the electronic device and the prediction server is normal, the long link is currently connected but no heartbeat data has been received from the electronic device for 1 minute, and the location information sent by the watch at the last feedback moment indicates that it is currently turned on and connected to the mobile network, and is moving towards the tunnel at a speed of 2 meters per second. At this time, the prediction server determines through the query prediction model that the electronic device cannot connect to the network because it is in a tunnel scenario, and because the tunnel has a certain length, the electronic device is predicted to be unable to leave the tunnel within the effective response time. At this time, it will generate query prediction information that cannot be positioned, and determine that the specific reason for the inability to position is "no network in the tunnel", and the predicted location is "120 meters away from the tunnel entrance", and the above information is imported into the query prediction information.

[0263] In an embodiment of the present application, by obtaining the reason for the inability to locate and the predicted location when the prediction result is detected as being unable to locate, the current state of the electronic device can be predicted by querying the prediction model so that the terminal device has a certain understanding of the abnormal situation, thereby improving the user experience.

[0264] In S24, the service server sends the query prediction information to the terminal device.

[0265] In this embodiment, after obtaining the query prediction information, the service server can send the query prediction information to the terminal device.

[0266] In S25, the terminal device displays the query prediction information.

[0267] In this embodiment, the terminal device can display query prediction information, for example, allowing the user to determine the success rate of the query operation through the query prediction information, and determine whether to wait for the query result on the query interface based on the query success rate.

[0268] Compared with the existing electronic device positioning technology, after the terminal device sends a positioning query request, what it first displays is not the positioning query result, but the query prediction information. The query prediction information is generated faster than the positioning query result. Therefore, after the user sends the positioning query request, there is no need to wait for a long time to output the query prediction information and determine the success rate of this query operation. After the terminal device receives the location information of the electronic device sent by the business server, the positioning query result is output again. It is a step-by-step display process, which can avoid unnecessary waiting for users and have certain psychological expectations for the query results.

[0269] By way of example and not limitation, Fig.11 FIG. 1 shows a schematic diagram of outputting query prediction information provided by an embodiment of the present application. Fig.11 As shown, after the business server feeds back the query prediction information to the terminal device, the terminal device can display the query prediction information received above on the preset query interface. The query prediction information includes the query waiting time and the positioning success rate. The user can determine the time consumption of this query operation through the query prediction information displayed on the terminal device to determine whether it is necessary to continue to stay in the query interface and wait for the positioning query result. Among them, the query interface can also determine the location of the electronic device at the last feedback time, that is, location A, based on the historical data recently fed back by the electronic device. Since the current location of the electronic device should be near location A when it is in low-speed motion, by marking the location of the electronic device obtained at the last feedback time, it is convenient for the user to have a certain expectation of the approximate range of the location of the electronic device.

[0270] As an example and not limitation, Fig.12 FIG. 2 shows a schematic diagram of outputting query prediction information provided by another embodiment of the present application. Fig.12 As shown, after the business server feeds back the query prediction information to the terminal device, the terminal device can display the query prediction information received above on the preset query interface. The query prediction information includes the query waiting time, the positioning success rate, the predicted location, and the prediction confidence corresponding to each predicted location, wherein the prediction confidence is used to determine the accuracy of each predicted location, which can be determined based on the number of historical data of the electronic device corresponding to the predicted location. The more historical data the electronic device has at the predicted location, the higher the corresponding prediction confidence. Users can not only determine the time required for the electronic device to respond through query prediction information, but also determine the behavior habits of the electronic device through query prediction information.

[0271] Further, as another embodiment of the present application, if the prediction result of the query prediction information is a state where positioning is unavailable, the query prediction information also includes a reason why positioning is unavailable and a predicted position of the electronic device.

[0272] In this embodiment, when the prediction server identifies that the prediction result of the query prediction information is a state where positioning cannot be achieved, the reason for the inability to position and the predicted location can also be imported into the query prediction information. The business server sends the query prediction information to the terminal device. After receiving the query prediction information, the terminal device can output the reason for the inability to position and the predicted location on the terminal device to determine the current prediction state of the electronic device.

[0273] As an example and not a limitation, the electronic device maintains a long link with the business server from 15:00 to 15:20, and feeds back heartbeat data to the server at a preset feedback cycle, and responds to the location query instruction sent by the business server at 15:20, and feeds back the location information of 15:20 to the server, and the location information indicates that the electronic device is near a tunnel. At 15:21, the terminal device sends a location query request to the business server for obtaining the electronic device, and the business server sends a prediction request to the prediction server. At this time, the business server detects the connection status with the electronic device and feeds back the connection status to the prediction server. The prediction server determines that the interaction status between the electronic device and the server is normal, the long link is currently in a connected state, but the heartbeat data fed back by the electronic device has not been received for 1 minute, and the location information sent by the watch at the last feedback moment indicates that it is currently in the on state and connected to the mobile network, and is moving towards the tunnel at a speed of 2 meters per second. At this time, the prediction server determines through the query prediction model that the electronic device cannot connect to the network because it is in a tunnel scenario, and because the tunnel has a certain length, the electronic device is predicted to be unable to leave the tunnel within the effective response time. At this time, it will generate query prediction information that cannot be positioned, and determine that the specific reason for the inability to position is "no network in the tunnel", and the predicted location is "120 meters away from the tunnel entrance", and import the above information into the query prediction information. The terminal device can then output the above information on the display interface to facilitate users to estimate the current location of the electronic device.

[0274] In S26, the service server sends a location query instruction to the electronic device.

[0275] In this embodiment, the business server can send a positioning query instruction to the electronic device to obtain the current location of the electronic device. Since the communication network environment of the electronic device is uncertain, the long link between the electronic device and the business server is unstable, and the time to feedback the location information is long. After receiving the positioning query request, the business server can send a positioning query instruction to the electronic device to obtain the location information fed back by the electronic device. Based on this, while the business server feeds back the query prediction information to the terminal device, it can generate a positioning query instruction based on the registered communication address of the electronic device, and send the positioning query instruction to the electronic device, thereby obtaining the location information of the electronic device. It should be noted that the process of sending the positioning query instruction to the electronic device and the process of outputting the query prediction information to the terminal device can be executed synchronously.

[0276] In S27, the electronic device responds to the positioning query instruction and feeds back the location information to the service server.

[0277] In this embodiment, the electronic device may be equipped with a built-in positioning module, and the position information is acquired through the positioning module and sent to the service server.

[0278] In a possible implementation, the electronic device may send a heartbeat data packet to the service server at a preset heartbeat period.

[0279] It should be noted that, for electronic devices, it is often necessary to reduce device energy consumption to improve the endurance of electronic devices. In this case, the electronic device can turn on the communication module at a preset startup cycle interval, and connect to the service server through the communication module to receive relevant instructions sent by the service server. Therefore, when the terminal device needs to obtain the positioning information of the electronic device, it cannot determine the opening status of the communication module of the electronic device, and the waiting time required for the next communication module to be turned on in the closed state. Based on this, the terminal device often needs to wait for a long time for the electronic device to feedback the location information. In the prior art, during the process of establishing a long connection between the terminal device and the service server, if the location information fed back by the electronic device is not received within a preset time period, it will be judged that the current location query operation response fails, and the terminal device needs to resend the location query request, thereby reducing the acquisition success rate of the location query request. The method for positioning the electronic device provided by this embodiment can output the query prediction information to notify the user of the expected waiting time of this query operation, which can avoid the user from repeatedly sending the location query request during the waiting process. Optionally, the service server can also adjust the maximum response time according to the query waiting time, reducing the number of response failures, thereby improving the response success rate of the location query request.

[0280] In S28, after receiving the location information sent by the electronic device, the service server generates a positioning query result according to the location information.

[0281] In this embodiment, the service server may encapsulate the location information of the electronic device, obtain a positioning query result, and send the positioning query result to the terminal device.

[0282] In one possible implementation, the business server can be configured with a query result template, which determines the corresponding coordinate point on a preset map interface by extracting the longitude and latitude information contained in the location information, and generates a positioning query result based on the coordinate point, so as to mark the current location of the electronic device on the map interface corresponding to the terminal device according to the above coordinate point.

[0283] Optionally, if the business server maintains a pre-configured association relationship for the terminal device (the association relationship is used to limit the electronic devices that the terminal device needs to query, that is, the association relationship between the terminal device and the electronic device), and the number of electronic devices bound to the terminal device in the above association relationship is multiple, then the business server can simultaneously obtain the location information of multiple electronic devices bound to the terminal device, and generate multiple positioning query results to feed back to the terminal device. Of course, it can also generate positioning query results for some electronic devices and feed them back to the terminal device based on the user's choice.

[0284] Further, as another embodiment of the present application, after S28, it may also include: the prediction server adjusts the query prediction model according to the location information fed back by the electronic device based on the positioning query request; the query prediction model is used to output the query prediction information.

[0285] In this embodiment, after the business server receives the location information fed back by the electronic device, it means that the business server has completed a positioning query operation. At this time, the business server can send the location information to the prediction server, and the prediction server will use the received location information as the historical data of the electronic device. Therefore, the query prediction model can be adjusted according to the location information. The query prediction model can be compared with the query prediction information output previously based on the request response result of this time, the loss value of this prediction operation can be identified, and the query prediction model can be adjusted based on the loss value, so that the query prediction model can be continuously optimized during use to improve the accuracy of the query prediction model output results.

[0286] In one possible implementation, the prediction server can determine the actual response time of the current response to the positioning query request based on the difference between the time of receiving the location information and the time of sending the positioning query instruction, and identify the query waiting time in the query prediction information output by the query prediction model, calculate the time difference between the actual response time and the query waiting time, determine the prediction loss value of the query prediction model based on the time difference, and adjust the query prediction model based on the prediction loss value and the training loss value corresponding to multiple historical data to optimize the query prediction model.

[0287] In an embodiment of the present application, each time after obtaining the location information fed back by the electronic device, the query prediction model can be readjusted as a training sample, thereby improving the prediction accuracy of the query training model, making the query prediction information more consistent with the actual situation, and further improving the user experience.

[0288] Further, as another embodiment of the present application, the historical data includes a heartbeat data packet fed back by the electronic device based on a preset heartbeat cycle and / or historical positioning information fed back by the electronic device based on a historical query request.

[0289] In this embodiment, the electronic device can establish a long connection with the business server and send a heartbeat data packet to the business server at a preset heartbeat period. The heartbeat data packet may contain device status data, such as device power, device network status, device signal strength, device motion status, and location information. After receiving the heartbeat data packet, the business server can send the heartbeat data to the prediction server, and the prediction server stores all heartbeat data packets as historical data of the electronic device.

[0290] In this embodiment, the terminal device can send a positioning query request to the service server. When the electronic device is in a communicable state, it will send the location information based on the feedback of the positioning query request to the service server. After receiving the location information, the service server can send the location information to the prediction server, and the prediction server can store the historical positioning information in the historical response process. The historical positioning information may include device status data, such as device power, device network status, device signal strength, device motion status, and location information.

[0291] In an embodiment of the present application, by collecting data fed back by the electronic device during operation, such as heartbeat data packets and historical location information, as historical data, the behavior pattern of the electronic device can be effectively inferred, thereby improving the accuracy of query prediction information.

[0292] In S29, the terminal device displays the positioning query result.

[0293] In this embodiment, after receiving the positioning query result fed back by the service server, the terminal device may display the positioning query result on a preset query interface to facilitate the user to determine the current location of the electronic device.

[0294] Optionally, if the query page on the terminal device is running in the background, that is, the user switches to other application interfaces to perform other operations while waiting for the query results, the terminal device can store the received positioning query results in a cache area. When the terminal device switches the query interface to the foreground again, the positioning query results are read from the cache area and displayed on the query interface.

[0295] In an embodiment of the present application, when a positioning query request sent by a terminal device is received, query prediction information of the above-mentioned positioning query request can be generated based on the historical data of the electronic device to be queried, and the query prediction information can be output to the terminal device, so that the user can understand the query time or positioning success rate and other prediction information through the query prediction information to determine whether it is necessary to continue waiting for the query results or perform other operations through the terminal device, thereby eliminating the need for the user to keep the query interface displayed on the front end for a long time, thereby improving the use efficiency of the terminal device and improving the user experience.

[0296] Embodiment 2:

[0297] Embodiment 1 explains the implementation process of the method for locating an electronic device from the perspective of the interaction among a prediction server, a business server, a terminal device, and an electronic device. In Embodiment 2, the implementation process of the method for locating an electronic device is explained with the prediction server as the executor of the process. Fig.13 The following is a flowchart of a method for predicting the location of an electronic device on a server side according to an embodiment of the present application, which is described in detail as follows:

[0298] In S131, the prediction server obtains a prediction request; the prediction request is generated based on a positioning query request sent by a terminal device; the positioning query request carries a device identifier of the electronic device to be queried.

[0299] In S132, the prediction server determines the historical data of the electronic device according to the device identification, and generates query prediction information.

[0300] Further, as another embodiment of the present application, the query prediction information includes query waiting time, positioning success rate and / or predicted position of at least one of the electronic devices and confidence level corresponding to the predicted position.

[0301] Further, as another embodiment of the present application, the historical data includes a heartbeat data packet fed back by the electronic device based on a preset heartbeat cycle and / or historical positioning information fed back by the electronic device based on a historical query request.

[0302] Further, as another embodiment of the present application, S132 includes:

[0303] The prediction server determines the predicted location of the electronic device through historical data of the electronic device;

[0304] The prediction server determines, according to the predicted location, a signal strength of the electronic device corresponding to the predicted location;

[0305] The prediction server generates the query prediction information of the electronic device according to the signal strength.

[0306] Further, as another embodiment of the present application, S132 includes:

[0307] The prediction server obtains the location information most recently fed back by the electronic device;

[0308] The prediction server determines a query prediction model according to the most recently fed back location information;

[0309] The prediction server outputs the query prediction information through the query prediction model.

[0310] Further, as another embodiment of the present application, S132 includes:

[0311] The prediction server determines a query prediction model corresponding to the electronic device based on the device identification of the electronic device;

[0312] The prediction server obtains the query prediction information through the query prediction model; the query prediction model is constructed based on the historical data of the electronic device.

[0313] Further, as another embodiment of the present application, the prediction server obtains the query prediction information through the query prediction model, including:

[0314] The prediction server outputs the query prediction parameters through the query prediction model;

[0315] The prediction server imports each of the query prediction parameters into a display area associated with the parameter type in a preset prediction information template according to the parameter type of each of the query prediction parameters, and generates the query prediction information.

[0316] Further, as another embodiment of the present application, the prediction server determines the query prediction model corresponding to the electronic device based on the device identification of the electronic device, including:

[0317] The prediction server queries a plurality of candidate query models corresponding to the electronic device based on the device identifier;

[0318] The prediction server selects the historical data with the smallest difference according to the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request, and determines the current scene type of the electronic device;

[0319] The prediction server selects a candidate query model that matches the scene type from the candidate query models as the query prediction model.

[0320] Further, as another embodiment of the present application, after S132, the following is further included:

[0321] If the prediction result of the query prediction information is an unpositionable state, the prediction server selects the historical data with the smallest difference as the target data according to the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request;

[0322] The prediction server outputs a reason for failure to locate according to the operating state and signal strength of the electronic device carried in the target data at the time of feedback of the location information;

[0323] The server imports the reason for the inability to locate into the query prediction information.

[0324] Further, as another embodiment of the present application, after S132, the following is further included:

[0325] If the prediction result of the query prediction information is an unpositionable state, the prediction server selects the historical data with the smallest difference as the target data according to the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request;

[0326] The prediction server outputs a predicted position according to the historical position and motion state of the electronic device carried in the target data at the time of feedback of the position information;

[0327] The prediction server imports the predicted position into the query prediction information.

[0328] In S133, the prediction server outputs the query prediction information; the query prediction information is output by the service server before feeding back the positioning query result to the terminal device.

[0329] Further, as another embodiment of the present application, S133 may further include:

[0330] The prediction server adjusts the query prediction model according to the location information fed back by the electronic device based on the positioning query request; the query prediction model is used to output the query prediction information.

[0331] Corresponding to the method for positioning the electronic device described in the above embodiment, Fig.14 The embodiment of the present application provides Fig.13 The structural diagram of the virtual device corresponding to the prediction server of the embodiment only shows the part related to the embodiment of the present application for the convenience of explanation.

[0332] Reference Fig.14 , the virtual device corresponding to the prediction server includes:

[0333] The prediction request acquisition unit 141 is used to acquire a prediction request; the prediction request is generated based on the positioning query request sent by the terminal device; the positioning query request carries the device identification of the electronic device to be queried;

[0334] A query prediction information generating unit 142, configured to determine the historical data of the electronic device according to the device identification and generate query prediction information;

[0335] The query prediction information output unit 143 is used to output the query prediction information; the query prediction information is output by the service server before feeding back the positioning query result to the terminal device.

[0336] Optionally, the query prediction information generating unit 142 includes:

[0337] A predicted position determination unit, configured to determine a predicted position of the electronic device based on historical data of the electronic device;

[0338] a signal strength determination unit, configured to determine, based on the predicted location, a signal strength of the electronic device corresponding to the predicted location;

[0339] A signal strength conversion unit is used to generate the query prediction information of the electronic device according to the signal strength.

[0340] Optionally, the query prediction information generating unit 142 includes:

[0341] A most recently fed back location acquisition unit, used to acquire the most recently fed back location information of the electronic device;

[0342] A query prediction model acquisition unit, used for the prediction server to determine the query prediction model according to the most recently fed back location information;

[0343] A query prediction information determining unit is used for the prediction server to output the query prediction information through the query prediction model.

[0344] Optionally, the query prediction information generating unit 142 includes:

[0345] A query prediction model determining unit, configured to determine a query prediction model corresponding to the electronic device based on a device identification of the electronic device;

[0346] The query prediction model calling unit is used to obtain the query prediction information through the query prediction model; the query prediction model is constructed based on the historical data of the electronic device.

[0347] Optionally, the virtual device corresponding to the prediction server also includes:

[0348] A query prediction model adjustment unit is used for the server to adjust the query prediction model according to the location information fed back by the electronic device based on the positioning query request; the query prediction model is used to output the query prediction information.

[0349] Optionally, the query prediction model calling unit includes:

[0350] A query prediction parameter output unit, used to output the query prediction parameter through the query prediction model;

[0351] The query prediction parameter importing unit is used to import each of the query prediction parameters into a display area associated with the parameter type in a preset prediction information template according to the parameter type of each of the query prediction parameters, so as to generate the query prediction information.

[0352] Optionally, the query prediction model calling unit includes:

[0353] a candidate query model determining unit, configured to query a plurality of candidate query models corresponding to the electronic device based on the device identifier;

[0354] a scene type determination unit, configured to select the history data with the smallest difference according to the difference between the sending time of each history data fed back by the electronic device and the time of receiving the prediction request, and determine the current scene type of the electronic device;

[0355] A query prediction model selection unit is used to select a candidate query model that matches the scene type from the candidate query models as the query prediction model.

[0356] Optionally, the query prediction information includes query waiting time, positioning success rate and / or predicted position of at least one of the electronic devices and confidence level corresponding to the predicted position.

[0357] Optionally, the query prediction information generating unit 142 includes:

[0358] a target data selection unit, configured to select, if the prediction result of the query prediction information is an unpositionable state, historical data with the smallest difference as target data according to the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request;

[0359] A predicted position output unit, configured to output a predicted position according to a historical position and a motion state of the electronic device at the time of feedback of the position information carried in the target data;

[0360] A unit for determining a reason for failure to locate, configured to output a reason for failure to locate according to an operating state and a signal strength of the electronic device carried in the target data at the time of feedback of the position information;

[0361] A prediction parameter importing unit is used to import the predicted position and / or the reason for failure to locate into the query prediction information.

[0362] Optionally, the historical data includes a heartbeat data packet fed back by the electronic device based on a preset heartbeat cycle and / or historical positioning information fed back by the electronic device based on a historical query request.

[0363] Embodiment three:

[0364] In the prior art, when a user's terminal device locates an associated electronic device, the user is often required to stay in the query interface for a long time to wait for the positioning result, thereby reducing the use efficiency of the terminal device and the user experience is poor. In order to solve this problem, the embodiment of the present application provides another electronic device positioning system. Different from the first embodiment, the prediction server and the business server in this embodiment can be combined into one device, namely the server described below.

[0365] Fig.15 FIG. 1 is a schematic diagram showing the structure of a system for locating an electronic device provided by an embodiment of the present application. Fig.15As shown, the system for positioning the electronic device includes a server, a terminal device and an electronic device, and the electronic device includes but is not limited to: smart watches, smart bracelets, smart headphones and other electronic devices that can be configured with a positioning module. Among them, a communication link can be established between the server and the terminal device and the electronic device, and data interaction is performed through the above communication link. In this embodiment, the terminal device can be installed with a client program that matches the positioning system of the electronic device, and the user can initiate a positioning query request about the electronic device through the operation interface corresponding to the client program; the terminal device can include a touch screen, a numeric keyboard, a mouse and other human-computer interaction controls, so that the user can input relevant instructions, such as the above positioning query request, and output the positioning query result through a display module such as a touch screen and a display; the terminal device can also include a communication module, and establish a communication connection with the business server through the above communication module to send a positioning query request to the server and receive the query prediction information and positioning query results fed back by the server. The server is specifically a physical server, which is used to process the positioning business process and the query prediction process. The server can be configured with a data storage module. The server can store the positioning query request sent by each terminal device and the location information fed back by the electronic device through the data storage module. The data storage module of the server can also be used to store the query prediction model corresponding to each electronic device. The electronic device includes a positioning module, which can be a global positioning system GPS module. The location information is obtained through the positioning module and sent to the server based on a preset heartbeat feedback cycle, or the location information is fed back when a positioning query instruction sent by the server is received; the electronic device can also include a communication module, which establishes a long connection with the server based on the communication module and sends the positioning information to the business server.

[0366] Different from the first embodiment, the server provided in this embodiment includes a query prediction model. The operations performed by the query prediction model are the same as the operations performed by the prediction server in the first embodiment, and are not described in detail here.

[0367] In a possible implementation, the electronic device may be a device having the same function as the terminal device. In other application scenarios, the electronic device may also initiate a positioning query instruction to the server to determine the location of the terminal device.

[0368] In a possible implementation, the electronic device is specifically a wearable device to ensure that the collected location information is the location information of the desired monitored object.

[0369] See also Fig.16 As shown, Fig.16 An interactive flow chart of a system for locating an electronic device provided by an embodiment of the present application is shown, and the details are as follows:

[0370] In S161, the terminal device sends a positioning query request to the server for obtaining the location of the electronic device.

[0371] In S162, the server receives the positioning query request and obtains query prediction information; the query prediction information is generated based on the historical data of the electronic device.

[0372] In this embodiment, the server has a built-in query prediction model, and the operations performed by the query prediction model are exactly the same as those performed by the query prediction server, which will not be described in detail here. Different from the first embodiment, after receiving the positioning query request, the server does not generate a prediction request, but can output the query information corresponding to the current moment of the electronic device through the local query prediction model.

[0373] In a possible implementation, the server can be used to store historical data. In this case, the server can receive location information and / or heartbeat data packets fed back by each electronic device, and the server can use the data fed back by the electronic device as the historical data of the electronic device. Optionally, the server can configure a corresponding database for each electronic device, each database is used to store historical data associated with the electronic device, and establish an association relationship between each database and the device identification of the electronic device, and generate a corresponding index table based on the association relationship. After receiving the positioning query request initiated by the terminal device, the server can determine the database associated with the electronic device through the above index table, and obtain the stored historical data from the database.

[0374] Furthermore, as another embodiment of the present application, S162 also includes: the server determines the predicted location of the electronic device through the historical data of the electronic device; the server determines the signal strength of the electronic device corresponding to the predicted location based on the predicted location; the server generates the query prediction information of the electronic device based on the signal strength.

[0375] Further, as another embodiment of the present application, S162 also includes: the server obtains the location information most recently fed back by the electronic device; the server determines a query prediction model based on the most recently fed back location information; and the server outputs the query prediction information through the query prediction model.

[0376] Furthermore, as another embodiment of the present application, S162 also includes: the server determines the query prediction model corresponding to the electronic device based on the device identification of the electronic device; the server obtains the query prediction information through the query prediction model; the query prediction model is constructed based on the historical data of the electronic device.

[0377] Further, as another embodiment of the present application, the above-mentioned server obtains the query prediction information through the query prediction model, which specifically may include: the server outputs query prediction parameters through the query prediction model; the server imports each of the query prediction parameters into a display area associated with the parameter type in a preset prediction information template according to the parameter type of each of the query prediction parameters, to generate the query prediction information.

[0378] Further, as another embodiment of the present application, the above-mentioned server obtains the query prediction information through the query prediction model, which specifically may include: the server queries multiple candidate query models corresponding to the electronic device based on the device identifier; the server selects the historical data with the smallest difference based on the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request, and determines the current scene type of the electronic device; the server selects a candidate query model that matches the scene type from the candidate query models as the query prediction model.

[0379] Further, as another embodiment of the present application, after S162 it also includes: if the prediction result of the query prediction information is a state where positioning cannot be achieved, the server selects the historical data with the smallest difference as the target data based on the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request; the server outputs the reason for being unable to be positioned based on the operating status and signal strength corresponding to the electronic device at the time of feedback of the position information carried by the target data; and / or the server outputs the predicted position based on the historical position and movement status of the electronic device at the time of feedback of the position information carried by the target data; the server imports the reason for being unable to be positioned and / or the predicted position into the query prediction information.

[0380] In S163, the server sends the query prediction information to the terminal device.

[0381] In S164, the terminal device displays the query prediction information.

[0382] In S165, the server sends a location query instruction to the electronic device.

[0383] In S166, the electronic device responds to the positioning query instruction and feeds back the location information to the server.

[0384] In S167, after receiving the location information sent by the electronic device, the service server generates a positioning query result according to the location information.

[0385] Further, as another embodiment of the present application, after S167, it may also include: the server adjusts the query prediction model according to the location information fed back by the electronic device based on the positioning query request; the query prediction model is used to output the query prediction information.

[0386] In this embodiment, since the server has a built-in query prediction model, after receiving the location information of the electronic device, the local query prediction model can be updated. The specific update operation can be found in the description of S28 and will not be repeated here.

[0387] In S168, the terminal device displays the positioning query result.

[0388] Since the implementation methods of S161, S163, S164, S165, S166, S167, and S168 are exactly the same as those of the corresponding steps in Example 1, the specific descriptions can be found in the description of Example 1 and will not be repeated here.

[0389] In an embodiment of the present application, when a positioning query request sent by a terminal device is received, query prediction information of the above-mentioned positioning query request can be generated based on the historical data of the electronic device to be queried, and the query prediction information can be output to the terminal device, so that the user can understand the query time or positioning success rate and other prediction information through the query prediction information to determine whether it is necessary to continue waiting for the query results or perform other operations through the terminal device, thereby eliminating the need for the user to keep the query interface displayed on the front end for a long time, thereby improving the use efficiency of the terminal device and improving the user experience.

[0390] Embodiment 4:

[0391] The third embodiment illustrates the implementation process of the method for locating an electronic device from the perspective of the interaction between the server, the terminal device and the electronic device, while the fourth embodiment illustrates the implementation process of the method for locating an electronic device with the server as the execution subject of the process. In the embodiment of the present application, the execution subject of the process is the server. Fig.17 The following is a flowchart of a method for locating an electronic device on a server side provided by an embodiment of the present application, which is described in detail as follows:

[0392] In S171, the server receives a location query request sent by a terminal device to locate the electronic device.

[0393] In S172, the server obtains query prediction information; the query prediction information is generated based on historical data of the electronic device.

[0394] Further, as another embodiment of the present application, the query prediction information includes query waiting time, positioning success rate and / or predicted position of at least one of the electronic devices and confidence level corresponding to the predicted position.

[0395] Further, as another embodiment of the present application, the historical data includes a heartbeat data packet fed back by the electronic device based on a preset heartbeat cycle and / or historical positioning information fed back by the electronic device based on a historical query request.

[0396] Further, as another embodiment of the present application, S172 includes:

[0397] The server determines the predicted location of the electronic device through historical data of the electronic device;

[0398] The server determines, according to the predicted location, a signal strength of the electronic device corresponding to the predicted location;

[0399] The server generates the query prediction information of the electronic device according to the signal strength.

[0400] Further, as another embodiment of the present application, S172 includes:

[0401] The server obtains the location information most recently fed back by the electronic device;

[0402] The server determines a query prediction model according to the most recently fed back location information;

[0403] The server outputs the query prediction information through the query prediction model.

[0404] Further, as another embodiment of the present application, S172 includes:

[0405] The server determines a query prediction model corresponding to the electronic device based on the device identification of the electronic device;

[0406] The server obtains the query prediction information through the query prediction model; the query prediction model is constructed based on the historical data of the electronic device.

[0407] Further, as another embodiment of the present application, the server obtains the query prediction information through the query prediction model, including:

[0408] The server outputs query prediction parameters through the query prediction model;

[0409] The server imports each of the query prediction parameters into a display area associated with the parameter type in a preset prediction information template according to the parameter type of each of the query prediction parameters, and generates the query prediction information.

[0410] Further, as another embodiment of the present application, the server determines the query prediction model corresponding to the electronic device based on the device identification of the electronic device, including:

[0411] The server queries a plurality of candidate query models corresponding to the electronic device based on the device identification;

[0412] The server selects the historical data with the smallest difference according to the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request, and determines the current scene type of the electronic device;

[0413] The server selects a candidate query model that matches the scene type from the candidate query models as the query prediction model.

[0414] Further, as another embodiment of the present application, after S172, the following is further included:

[0415] If the prediction result of the query prediction information is that the positioning state cannot be determined, the server selects the historical data with the smallest difference as the target data according to the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request;

[0416] The server outputs a reason why positioning is impossible according to the operating state and signal strength of the electronic device carried in the target data at the time of feedback of the position information;

[0417] The server imports the reason for the inability to locate into the query prediction information.

[0418] Further, as another embodiment of the present application, after S172, the following is further included:

[0419] If the prediction result of the query prediction information is that the positioning state cannot be determined, the server selects the historical data with the smallest difference as the target data according to the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request;

[0420] The server outputs a predicted position according to the historical position and motion state of the electronic device carried in the target data at the time of feedback of the position information;

[0421] The server imports the predicted position into the query prediction information.

[0422] In S173, the server sends the query prediction information to the terminal device.

[0423] Further, as another embodiment of the present application, S173 may further include:

[0424] The server adjusts the query prediction model according to the location information fed back by the electronic device based on the positioning query request; the query prediction model is used to output the query prediction information.

[0425] In S174, the server sends a positioning query result to the user terminal according to the location information fed back by the electronic device.

[0426] Corresponding to the method for positioning the electronic device described in the above embodiment, Fig.18 The embodiment of the present application provides Fig.17 The structural diagram of the virtual device corresponding to the server of the embodiment only shows the part related to the embodiment of the present application for the convenience of explanation.

[0427] Reference Fig.18 , the virtual devices corresponding to the server include:

[0428] The prediction request acquisition unit 181 is used to acquire a prediction request; the prediction request is generated based on the positioning query request sent by the terminal device; the positioning query request carries the device identification of the electronic device to be queried;

[0429] A query prediction information generating unit 182, configured to determine the historical data of the electronic device according to the device identification and generate query prediction information;

[0430] A query prediction information output unit 183, configured to output the query prediction information;

[0431] The positioning query result output unit 184 is used to send the positioning query result to the user terminal according to the position information fed back by the electronic device.

[0432] Optionally, the query prediction information generating unit 182 includes:

[0433] A predicted position determination unit, configured to determine a predicted position of the electronic device based on historical data of the electronic device;

[0434] a signal strength determination unit, configured to determine, based on the predicted position, a signal strength of the electronic device corresponding to the predicted position;

[0435] A signal strength conversion unit is used to generate the query prediction information of the electronic device according to the signal strength.

[0436] Optionally, the query prediction information generating unit 182 includes:

[0437] A most recently fed back location acquisition unit, used to acquire the most recently fed back location information of the electronic device;

[0438] A query prediction model acquisition unit, used for the prediction server to determine the query prediction model according to the most recently fed back location information;

[0439] A query prediction information determining unit is used for the prediction server to output the query prediction information through the query prediction model.

[0440] Optionally, the query prediction information generating unit 182 includes:

[0441] A query prediction model determining unit, configured to determine a query prediction model corresponding to the electronic device based on a device identification of the electronic device;

[0442] The query prediction model calling unit is used to obtain the query prediction information through the query prediction model; the query prediction model is constructed based on the historical data of the electronic device.

[0443] Optionally, the virtual device corresponding to the server also includes:

[0444] A query prediction model adjustment unit is used for the server to adjust the query prediction model according to the location information fed back by the electronic device based on the positioning query request; the query prediction model is used to output the query prediction information.

[0445] Optionally, the query prediction model calling unit includes:

[0446] A query prediction parameter output unit, used to output the query prediction parameter through the query prediction model;

[0447] The query prediction parameter importing unit is used to import each of the query prediction parameters into a display area associated with the parameter type in a preset prediction information template according to the parameter type of each of the query prediction parameters, so as to generate the query prediction information.

[0448] Optionally, the query prediction model calling unit includes:

[0449] a candidate query model determining unit, configured to query a plurality of candidate query models corresponding to the electronic device based on the device identifier;

[0450] a scene type determination unit, configured to select the history data with the smallest difference according to the difference between the sending time of each history data fed back by the electronic device and the time of receiving the prediction request, and determine the current scene type of the electronic device;

[0451] A query prediction model selection unit is used to select a candidate query model that matches the scene type from the candidate query models as the query prediction model.

[0452] Optionally, the query prediction information includes query waiting time, positioning success rate and / or predicted position of at least one of the electronic devices and confidence level corresponding to the predicted position.

[0453] Optionally, the query prediction information generating unit 182 includes:

[0454] a target data selection unit, configured to select, if the prediction result of the query prediction information is an unpositionable state, historical data with the smallest difference as target data according to the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request;

[0455] A predicted position output unit, configured to output a predicted position according to a historical position and a motion state of the electronic device at the time of feedback of the position information carried in the target data;

[0456] A unit for determining a reason for failure to locate, configured to output a reason for failure to locate according to an operating state and a signal strength of the electronic device carried in the target data at the time of feedback of the position information;

[0457] The prediction parameter importing unit is used to import the reason for the inability to locate into the query prediction information.

[0458] Optionally, the historical data includes a heartbeat data packet fed back by the electronic device based on a preset heartbeat cycle and / or historical positioning information fed back by the electronic device based on a historical query request.

[0459] Fig.19 This is a schematic diagram of the structure of a server provided in an embodiment of the present application. Fig.19 As shown, the server 19 of this embodiment includes: at least one processor 190 ( Fig.19 Only one is shown in the figure) a processor, a memory 191, and a computer program 192 stored in the memory 191 and executable on the at least one processor 190, and when the processor 190 executes the computer program 192, the steps in any of the above-mentioned embodiments of the method for positioning the electronic device are implemented.

[0460] The server 19 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The server may include, but is not limited to, a processor 190 and a memory 191. Those skilled in the art will appreciate that Fig.19 It is only an example of server 19 and does not constitute a limitation on server 19. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, etc.

[0461] The processor 190 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0462] In some embodiments, the memory 191 may be an internal storage unit of the server 19, such as a hard disk or memory of the server 19. In other embodiments, the memory 191 may also be an external storage device of the server 19, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the server 19. Further, the memory 191 may also include both an internal storage unit of the server 19 and an external storage device. The memory 191 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 191 may also be used to temporarily store data that has been output or is to be output.

[0463] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0464] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0465] An embodiment of the present application also provides a network device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the above-mentioned method embodiments when executing the computer program.

[0466] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0467] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0468] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0469] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0470] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0471] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or 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.

[0472] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0473] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for positioning an electronic device, characterized in that: The method comprises: The prediction server obtains the prediction request sent by the service server; the prediction request is generated by the service server based on the positioning query request sent by the terminal device; the positioning query request carries the device identification of the electronic device to be queried; The prediction server determines the historical data of the electronic device according to the device identification and generates query prediction information; The prediction server outputs the query prediction information; the query prediction information is output by the service server before receiving the location information returned by the electronic device and before feeding back the positioning query result to the terminal device; The query prediction information includes the query waiting time, the positioning success rate, and / or the predicted position of at least one of the electronic devices and the confidence level corresponding to the predicted position; the query waiting time is the time to respond to the positioning query request, so that the user can determine whether to stay in the current interface and wait for the positioning query result, or switch to other operation interfaces; The prediction server determines the historical data of the electronic device according to the device identification and generates query prediction information, including: The prediction server obtains the location information most recently fed back by the electronic device; The prediction server determines the query prediction model according to the most recently fed back location information, including: according to the scene corresponding to the most recently fed back location information, using the query prediction model of the prediction method corresponding to the scene; The prediction server outputs the query prediction information through the query prediction model.

2. The method according to claim 1, characterized in that The prediction server determines the historical data of the electronic device according to the device identification and generates query prediction information, including: The prediction server determines the predicted location of the electronic device through historical data of the electronic device; the prediction server determines the signal strength of the electronic device corresponding to the predicted location according to the predicted location; The prediction server generates the query prediction information of the electronic device according to the signal strength.

3. The method according to claim 1, characterized in that The server determines the historical data of the electronic device according to the device identification and generates query prediction information, including: The prediction server determines a query prediction model corresponding to the electronic device based on the device identification of the electronic device; The prediction server obtains the query prediction information through the query prediction model; the query prediction model is constructed based on the historical data of the electronic device.

4. The method according to claim 3, characterized in that Also includes: The prediction server adjusts the query prediction model according to the location information fed back by the electronic device based on the positioning query request; The query prediction model is used to output the query prediction information.

5. The method according to claim 3, characterized in that: The server obtains the query prediction information through the query prediction model, including: The prediction server outputs the query prediction parameter through the query prediction model; The prediction server imports each of the query prediction parameters into a display area associated with the parameter type in a preset prediction information template according to the parameter type of each of the query prediction parameters, and generates the query prediction information.

6. The method according to claim 3, characterized in that The prediction server determines the query prediction model corresponding to the electronic device based on the device identification of the electronic device, including: The prediction server queries a plurality of candidate query models corresponding to the electronic device based on the device identification; The prediction server selects the historical data with the smallest difference according to the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request, and determines the current scene type of the electronic device; The prediction server selects a candidate query model that matches the scene type from the candidate query models as the query prediction model.

7. The method according to claim 1, characterized in that After the prediction server determines the historical data of the electronic device according to the device identification and generates query prediction information, the method further includes: If the prediction result of the query prediction information is an unpositionable state, the prediction server selects the historical data with the smallest difference as the target data according to the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request; The prediction server outputs a reason for failure to locate according to the operating state and signal strength of the electronic device carried in the target data at the time of feedback of the location information; The prediction server imports the reason for the inability to locate into the query prediction information.

8. The method according to claim 1, characterized in that After the server determines the historical data of the electronic device according to the device identification and generates query prediction information, the method further includes: If the prediction result of the query prediction information is an unpositionable state, the prediction server selects the historical data with the smallest difference as the target data according to the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request; The prediction server outputs a predicted position according to the historical position and motion state of the electronic device carried in the target data at the time of feedback of the position information; The prediction server imports the predicted position into the query prediction information.

9. The method according to any one of claims 1 to 8, characterized in that: The historical data includes a heartbeat data packet fed back by the electronic device based on a preset heartbeat cycle.

10. The method according to any one of claims 1 to 8, characterized in that: The historical data includes historical positioning information fed back by the electronic device based on historical query requests.

11. A system for positioning an electronic device, characterized in that: The electronic device positioning system includes a service server, a prediction server and a terminal device; The terminal device is used to send a positioning query request for obtaining the position of the electronic device to the service server; The business server is used to send a prediction request generated based on the received positioning query request to the prediction server; The prediction server is used to respond to the prediction request, generate query prediction information according to the historical data of the electronic device, and send the query prediction information to the service server, including: obtaining the location information most recently fed back by the electronic device; determining a query prediction model according to the most recently fed back location information, including: according to the scene corresponding to the most recently fed back location information, using a query prediction model with a prediction method corresponding to the scene; outputting the query prediction information through the query prediction model; The business server is used to send the query prediction information to the terminal device; the query prediction information is output by the business server before receiving the location information returned by the electronic device and before feeding back the positioning query result to the terminal device; the query prediction information includes the query waiting time, the positioning success rate, and / or the predicted location of at least one of the electronic devices and the confidence level corresponding to the predicted location; the query waiting time is the time to respond to the positioning query request, so that the user can determine whether to stay in the current interface and wait for the positioning query result, or can switch to other operation interfaces; The service server is further configured to send a positioning query result to the user terminal according to the location information fed back by the electronic device after sending the query prediction information to the terminal device.

12. The system according to claim 11, characterized in that The prediction server determines the historical data of the electronic device according to the device identification and generates query prediction information, which is specifically used for: Determining a predicted location of the electronic device using historical data of the electronic device; Determining, according to the predicted location, a signal strength of the electronic device corresponding to the predicted location; The query prediction information of the electronic device is generated according to the signal strength.

13. The system according to claim 11, characterized in that The prediction server determines the historical data of the electronic device according to the device identification and generates query prediction information, which is specifically used for: Determining a query prediction model corresponding to the electronic device based on the device identification of the electronic device; The query prediction information is obtained through the query prediction model; the query prediction model is constructed based on the historical data of the electronic device.

14. A method for positioning an electronic device, characterized in that: The method comprises: The server receives a location query request sent by a terminal device to locate the electronic device; The server acquires query prediction information; the query prediction information is generated based on historical data of the electronic device; The server sends the query prediction information to the terminal device; the query prediction information is output by the service server before receiving the location information returned by the electronic device and before feeding back the positioning query result to the terminal device; the query prediction information includes the query waiting time, the positioning success rate, and / or the predicted location of at least one of the electronic devices and the confidence level corresponding to the predicted location; the query waiting time is the time to respond to the positioning query request, so that the user can determine whether to stay in the current interface and wait for the positioning query result, or can switch to other operation interfaces; After the server sends the query prediction information to the terminal device, the server sends a positioning query result to the user terminal according to the location information fed back by the electronic device; The server determines the historical data of the electronic device according to the device identification and generates query prediction information, including: The server obtains the location information most recently fed back by the electronic device; The server determines the query prediction model according to the most recently fed back location information, including: according to the scene corresponding to the most recently fed back location information, using the query prediction model of the prediction method corresponding to the scene; The server outputs the query prediction information through the query prediction model.

15. The method according to claim 14, characterized in that The server obtains query prediction information, including: The server determines the predicted location of the electronic device through historical data of the electronic device; The server determines, according to the predicted location, a signal strength of the electronic device corresponding to the predicted location; The server generates the query prediction information of the electronic device according to the signal strength.

16. The method according to claim 14, characterized in that The server obtains query prediction information, including: The server determines a query prediction model corresponding to the electronic device based on the device identification of the electronic device; The server obtains the query prediction information through the query prediction model; the query prediction model is constructed based on the historical data of the electronic device.

17. The method according to claim 16, characterized in that Also includes: The server adjusts the query prediction model according to the location information fed back by the electronic device based on the positioning query request; The query prediction model is used to output the query prediction information.

18. The method according to claim 16, characterized in that The server obtains the query prediction information through the query prediction model, including: The server outputs query prediction parameters through the query prediction model; The server imports each of the query prediction parameters into a display area associated with the parameter type in a preset prediction information template according to the parameter type of each of the query prediction parameters, and generates the query prediction information.

19. The method according to claim 16, characterized in that The server determines the query prediction model corresponding to the electronic device based on the device identification of the electronic device, including: The server queries a plurality of candidate query models corresponding to the electronic device based on the device identification; The server selects the historical data with the smallest difference according to the difference between the time of the location information of each historical data fed back by the electronic device and the time of receiving the prediction request, and determines the current scene type of the electronic device; The server selects a candidate query model that matches the scene type from the candidate query models as the query prediction model.

20. The method according to claim 14, characterized in that After the server obtains the query prediction information, the method further includes: If the prediction result of the query prediction information is that the positioning state cannot be determined, the server selects the historical data with the smallest difference as the target data according to the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request; The server outputs a reason why positioning is impossible according to the operating state and signal strength of the electronic device carried in the target data at the time of feedback of the position information; The server imports the reason for the inability to locate into the query prediction information.

21. The method according to claim 14, characterized in that After the server obtains the query prediction information, the method further includes: If the prediction result of the query prediction information is that the positioning state cannot be determined, the server selects the historical data with the smallest difference as the target data according to the difference between the sending time of each historical data fed back by the electronic device and the time of receiving the prediction request; The server outputs a predicted position according to the historical position and motion state of the electronic device carried in the target data at the time of feedback of the position information; The server imports the predicted position into the query prediction information.

22. The method according to any one of claims 14 to 21, characterized in that: The historical data includes a heartbeat data packet fed back by the electronic device based on a preset heartbeat cycle.

23. The method according to any one of claims 14 to 21, characterized in that: The historical data includes historical positioning information fed back by the electronic device based on historical query requests.

24. A system for positioning an electronic device, characterized in that: The electronic device positioning system includes a server and a terminal device; The terminal device is used to send a positioning query request for obtaining the position of the electronic device to the server; The server is used to obtain query prediction information; The query prediction information is generated based on historical data of the electronic device; The server is used to send the query prediction information to the terminal device; the query prediction information is output by the service server before receiving the location information returned by the electronic device and before feeding back the positioning query result to the terminal device; the query prediction information includes the query waiting time, the positioning success rate, and / or the predicted location of at least one of the electronic devices and the confidence level corresponding to the predicted location; The query waiting time is the time to respond to the location query request, so that the user can determine whether to stay in the current interface to wait for the location query result, or switch to other operation interfaces; The server is further configured to send a positioning query result to the user terminal according to the location information fed back by the electronic device after sending the query prediction information to the terminal device. The server is used to obtain query prediction information, specifically for: Acquire the most recent location information fed back by the electronic device; Determining a query prediction model according to the most recently fed back location information includes: according to a scenario corresponding to the most recently fed back location information, using a query prediction model with a prediction method corresponding to the scenario; The query prediction information is outputted through the query prediction model.

25. The system according to claim 24, characterized in that The server is used to obtain query prediction information, specifically for: Determining a predicted location of the electronic device using historical data of the electronic device; Determining, according to the predicted location, a signal strength of the electronic device corresponding to the predicted location; The query prediction information of the electronic device is generated according to the signal strength.

26. The system according to claim 24, characterized in that The server is used to obtain query prediction information, specifically for: Determining a query prediction model corresponding to the electronic device based on the device identification of the electronic device; The query prediction information is obtained through the query prediction model; the query prediction model is constructed based on the historical data of the electronic device.

27. A server comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor runs the computer program, the server implements the method according to any one of claims 1 to 10, or implements the method according to any one of claims 14 to 23 when executing the computer program.

28. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented, or the method according to any one of claims 14 to 23 is implemented.

Citation Information

Cited By

  • Electronic device positioning method and apparatus, and server, system and storage medium

    WO2021190470A1