CN115914987A - Terminal equipment positioning method and related device - Google Patents

Terminal equipment positioning method and related device Download PDF

Info

Publication number
CN115914987A
CN115914987A CN202111166683.4A CN202111166683A CN115914987A CN 115914987 A CN115914987 A CN 115914987A CN 202111166683 A CN202111166683 A CN 202111166683A CN 115914987 A CN115914987 A CN 115914987A
Authority
CN
China
Prior art keywords
terminal
terminal device
application program
equipment
wireless
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111166683.4A
Other languages
Chinese (zh)
Inventor
胡创宾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Tencent Technology Co Ltd
Original Assignee
Guangzhou Tencent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Tencent Technology Co Ltd filed Critical Guangzhou Tencent Technology Co Ltd
Priority to CN202111166683.4A priority Critical patent/CN115914987A/en
Publication of CN115914987A publication Critical patent/CN115914987A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the application discloses a terminal device positioning method and a related device, and the related embodiment can be applied to various scenes such as cloud technology, cloud security, intelligent traffic and the like. The terminal equipment is provided with an application program for positioning, and when the terminal equipment scans a wireless network, even if the application program is not activated at the moment, the application program can be activated in a background of the terminal equipment, so that the position information of the terminal equipment can be acquired through the application program and reported to a server. Based on the mode that the wireless network is scanned to activate the application program for positioning, the number of times that the application program is activated in the background can be effectively increased, and even if the application program is not started or closed through the terminal equipment, the position information of the terminal equipment can still be reported and reminded when the terminal equipment scans the wireless network, so that the possibility of obtaining a real-time position can be increased when the terminal equipment is lost, and the probability of finding the terminal equipment is increased through more accurate positioning.

Description

Terminal equipment positioning method and related device
Technical Field
The present application relates to the field of computers, and in particular, to a method and a related apparatus for positioning a terminal device.
Background
Some terminal devices such as mobile phones and the like are convenient for users to carry due to small volume, and users can carry about and control the terminal devices when needed so as to obtain various services provided by the terminal devices.
Also because of the portability of the terminal device, it is inevitable that the user loses the terminal device carried by himself. The user who finds that the terminal equipment is lost hopes to locate the terminal equipment as soon as possible, so that the terminal equipment can be found back possibly, and personal information in the terminal equipment is prevented from being leaked.
The terminal equipment positioning mode provided in the related technology is not mature, has great limitation and is difficult to play a function of accurate positioning.
Disclosure of Invention
In order to solve the technical problem, the application provides a terminal device positioning method and a related device, so that the possibility of acquiring a real-time position is improved, and the probability of retrieving the terminal device is increased by accurate positioning.
The embodiment of the application discloses the following technical scheme:
in one aspect, an embodiment of the present application provides a method for positioning a terminal device, where the method includes:
wireless network scanning is carried out through a wireless module of terminal equipment, and an application program for positioning is configured in the terminal equipment;
if the wireless network is scanned, activating the inactivated application program in a background of the terminal equipment;
acquiring the position information of the terminal equipment through the application program, wherein the position information comprises a terminal positioning position or network parameters of the wireless network;
and reporting the position information to a server aiming at the terminal equipment through the application program.
On the other hand, an embodiment of the present application provides a terminal device positioning method, where the method includes:
acquiring a device search request of a first terminal device, wherein the device search request comprises a user identifier;
determining a second terminal device bound with the user identifier and position information corresponding to the second terminal device, wherein the position information is reported after the second terminal device activates an inactivated application program when scanning a wireless network, the position information is used for identifying the device position for establishing the wireless network, and the application program for positioning is configured in the second terminal device;
determining a terminal position parameter of the second terminal device corresponding to the device searching request according to the position information;
and returning the terminal position parameter to the first terminal equipment.
On the other hand, an embodiment of the present application provides a terminal device positioning apparatus, where the apparatus includes a scanning unit, an activating unit, an acquiring unit, and a reporting unit:
the scanning unit is used for scanning a wireless network through a wireless module of terminal equipment, and the terminal equipment is provided with an application program for positioning;
the activation unit is used for activating the inactivated application program in a background of the terminal equipment if the wireless network is scanned;
the acquiring unit is used for acquiring the position information of the terminal equipment through the application program, wherein the position information comprises a terminal positioning position or network parameters of the wireless network;
and the reporting unit is used for reporting the position information to a server aiming at the terminal equipment through the application program.
On the other hand, an embodiment of the present application provides a terminal device positioning apparatus, where the apparatus includes an obtaining unit, a determining unit, and a returning unit:
the acquiring unit is used for acquiring a device searching request of the first terminal device, wherein the device searching request comprises a user identifier;
the determining unit is configured to determine a second terminal device bound to the user identifier and location information corresponding to the second terminal device, where the location information is reported by the second terminal device after an inactivated application program is activated when the second terminal device scans a wireless network, the location information is used to identify a device location where the wireless network is established, and the application program for positioning is configured in the second terminal device;
the determining unit is further configured to determine, according to the location information, a terminal location parameter of the second terminal device corresponding to the device search request;
the return unit is configured to return the terminal location parameter to the first terminal device.
On the other hand, the embodiment of the present application provides a terminal device positioning system, where the system includes a terminal device and a server:
the terminal equipment is used for executing the terminal equipment positioning method in the aspect;
the server is used for executing the terminal equipment positioning method in the aspect.
In yet another aspect, an embodiment of the present application provides a computer device, including a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the terminal device positioning method according to the instructions in the program code.
In still another aspect, an embodiment of the present application provides a computer-readable storage medium for storing a computer program, where the computer program is configured to execute the terminal device positioning method described in the above aspect.
In yet another aspect, embodiments of the present application provide a computer program product comprising instructions, which when run on a computer, cause the computer to execute the terminal device positioning method according to the above aspect.
According to the technical scheme, the terminal equipment is provided with the application program for positioning, the terminal equipment can detect the opening and closing state of the wireless module of the terminal equipment, and wireless network scanning is carried out when the wireless module is detected to be opened. When the terminal device scans the wireless network, even if the application program is not activated at the moment, the application program can be activated in the background of the terminal device, so that the position information of the terminal device can be acquired through the application program and reported to the server. Because the terminal equipment can scan surrounding wireless networks at any time when the wireless module is opened, the number of times of activating the application program for positioning in the background can be effectively increased based on the mode of scanning the wireless networks to activate the application program, and even if the application program is not opened or closed through the terminal equipment, the position information of the terminal equipment can still be reported when the terminal equipment scans the wireless networks, so that the possibility of acquiring a real-time position can be increased when the terminal equipment is lost, and the probability of finding the terminal equipment is increased by accurate positioning.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic view of a positioning scene of a terminal device according to an embodiment of the present application;
fig. 2 is a flowchart of a method for positioning a terminal device according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a mobile phone retrieving interface according to an embodiment of the present application;
fig. 4 is a flowchart of another method for positioning a terminal device according to an embodiment of the present application;
fig. 5 is a signaling interaction diagram of a retrieval scenario of a terminal device according to an embodiment of the present application;
fig. 6 is a flowchart illustrating a process of reporting location information through an application for positioning according to an embodiment of the present disclosure;
fig. 7 is a device structure diagram of a positioning device of a terminal device according to an embodiment of the present disclosure;
fig. 8 is a device structure diagram of another terminal device positioning apparatus provided in the embodiment of the present application;
fig. 9 is a system structure diagram of a terminal device positioning system according to an embodiment of the present application;
fig. 10 is a structural diagram of a terminal device according to an embodiment of the present application;
fig. 11 is a block diagram of a server according to an embodiment of the present application;
fig. 12 is a flowchart of another method for positioning a terminal device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below with reference to the accompanying drawings.
When the terminal device is lost, the positioning mode of the terminal device in the related art is difficult to perform an accurate positioning function, for example, the application program for positioning is not reported to the position of the terminal device during the inactivated state, so that the lost terminal device is difficult to accurately position, and the possibility that the terminal device is found back is reduced.
Therefore, the terminal device positioning method provided by the embodiment of the application can improve the possibility of acquiring the real-time position of the terminal device, and increase the probability of retrieving the terminal device by accurate positioning.
The terminal device positioning method provided by the embodiment of the application can be executed through the terminal device, and related embodiments can be applied to various scenes such as cloud technology, cloud security, intelligent traffic and the like. The terminal device includes, but is not limited to, a mobile phone, a portable computer, an intelligent voice interaction device, an intelligent household appliance, a vehicle-mounted terminal, and the like.
Fig. 1 is a schematic view of a terminal device positioning scenario provided in an embodiment of the present application, where the terminal device positioning scenario includes a terminal device 100, a wireless device 200, and a server 300.
The terminal device 100 is located in a street area that includes a wireless device 200. The wireless device 200 may be a fixed wireless router. An application program, for example, an APP, which is used for positioning or can provide or invoke a positioning function is installed or configured in the terminal device 100, and the application program may report the location information of the terminal device 100 to the server 300, for example, a manner of reporting the location information such as periodic reporting, reporting when activated, and the like.
Since the application program in the terminal device in the related art cannot be always activated, for example, some operating systems may periodically close the application program in the background, or sometimes users may actively close the application program (for example, users who are detected to close when the terminal device is lost). In any case, the terminal device does not report the position information any more, and if the terminal device is lost, the real-time position of the lost terminal device cannot be determined through the retrieving function.
In the embodiment of the application, when the terminal device scans the wireless network, even if the application program is not activated at the moment, the application program can be activated in the background of the terminal device, so that the position information of the terminal device can be acquired through the application program and reported to the server. For example, when the terminal device 100 moves to the vicinity of the wireless device 200, the wireless module of the terminal device 100 scans the wireless network established by the wireless device 200, so as to activate an application program for positioning, such as a positioning APP, in the background of the terminal device 100, and enable reporting of the location information of the terminal device 100 to the server 300 at this time.
Because the terminal equipment can scan surrounding wireless networks at any time when the wireless module is opened, the number of times of activating the application program for positioning in the background can be effectively increased based on the mode of scanning the wireless networks to activate the application program, and even if the application program is not opened or closed through the terminal equipment, the position information of the terminal equipment can still be reported when the terminal equipment scans the wireless networks, so that the possibility of acquiring a real-time position can be increased when the terminal equipment is lost, and the probability of finding the terminal equipment is increased by accurate positioning.
Fig. 2 is a flowchart of a method for positioning a terminal device according to an embodiment of the present application, where the method includes:
s200: the open/close state of a wireless module of a terminal device is detected.
The terminal device is provided with a wireless module, which can be turned on or off by the selection of a user, or the terminal device can automatically change the on-off state of the wireless module based on the change of the surrounding environment, or the terminal device can turn on or off the wireless module based on a preset time node or a preset time interval.
In any case, in the embodiment of the present application, the terminal device may detect a current open/close state of the wireless module, such as an open state or a closed state, through an interface or in another manner.
S201: and responding to the detection that the wireless module is started, and scanning the wireless network through the wireless module.
The terminal device is provided with an application program for positioning, a Wireless (WiFi) module of the terminal device can scan a Wireless network around the terminal device when the terminal device is started, and if the terminal device enters a signal coverage range of a certain Wireless network, the Wireless module can enable the terminal device to find the Wireless network.
S202: and if the wireless network is scanned, activating the inactivated application program in the background of the terminal equipment.
The states of the application may include a foreground active state, a background inactive state, and inactive.
The foreground active state refers to that the application program is started and is being displayed through the terminal device, and belongs to a period when the user opens the application program and uses the application program, at this time, the application program is in an active state, for example, when the user opens the social contact software through a mobile phone to perform social contact session with other users, at this time, the social contact software is in the foreground. Similarly, when the user opens the application program for positioning through the mobile phone for viewing, the application program is in the foreground at the moment.
The background inactive state refers to a situation that a user switches an application program to a background, at this time, the application program is in an inactive state, for example, a new application program is opened, the application program originally displayed is switched to be in a background state, for example, the application program originally displayed is backed off to the background, and when a desktop starts to be displayed, the application program is in the background state, and in this state, the application program can still implement some basic functions, for example, reporting location information.
The inactivated state means that the application program is neither in the foreground nor in the background, and belongs to a state in which normal service cannot be provided. For example, the application itself is never started after the terminal device is powered on, or the application may be closed by a user or an operating system.
Accordingly, both the foreground active state and the background inactive state may be understood as active states.
The terminal device may have a capability of detecting a current state of the application, that is, the terminal device may determine whether the application is currently in a foreground or a background, and whether the application is in an activated state or an inactivated state in the background by various detection means.
When a wireless network is scanned, the application program in the terminal device may be in an inactive state, and the application program in this state does not have the functions of acquiring the location information of the terminal device and reporting the location information. Because the terminal device can scan the surrounding wireless networks at any time when the wireless module is started, and the wireless networks are basically ubiquitous in the current human activity place, the embodiment of the application provides an application program activation mode based on wireless network scanning.
In some operating systems of the terminal device, for activating the application in the background, in addition to scanning to the wireless network, the terminal device is required to connect to the wireless network based on the wireless module, so in one possible implementation, S202 includes: and if the wireless network is scanned and connected to the wireless network, activating the inactivated application program in the background of the terminal equipment.
For example, in some operating systems, with the feature that a nehotspot configuration component in the operating system can keep awakening when connecting to a wireless network, when a terminal device connects to the wireless network, an application program for positioning is activated in the background of the terminal device through the nehotspot configuration component, so that the position information of the terminal device can be acquired in the background of the terminal device through the activated application program. The terminal device may connect to the wireless network that has been connected once by remembering the password, or may directly connect to the wireless network that does not require the password, or may connect to the wireless network under the manual operation of the user, which is not limited in the present application.
S203: and acquiring the position information of the terminal equipment through the application program.
After the application program for positioning is activated in the background, the application program has the function of acquiring the position information, so that the position information of the terminal equipment can be acquired through the application program, and the position information comprises the positioning position of the terminal or the network parameters of the wireless network. The specific acquired position information may depend on the authority of the application program itself or the application scenario, which is not limited in the present application.
In one possible implementation manner, in response to that the application program has a positioning data acquisition right, acquiring the terminal positioning position of the terminal device through the application program; alternatively, the first and second electrodes may be,
in one possible implementation, in response to the application not having the positioning data acquisition permission, network parameters of the wireless network are acquired by the application.
When initializing an application for positioning into a terminal device, a user may decide whether to give the application positioning data acquisition right by a selection method, for example, the user may select to allow once, allow during use, always allow or deny. And in the subsequent use process, the positioning data acquisition authority of the application program can be adjusted based on the requirement.
The application may determine, based on the rights granted, in which way to obtain location information that may identify the location of the terminal device.
When the positioning data acquisition right is available, the application program can acquire the coordinates of the terminal device in a WGS-84 Coordinate System (World geographic System-1984 Coordinate System, which is a geocentric Coordinate System adopted internationally) by a callback mode, for example, by a cllocationmanagereal callback, convert the WGS-84 Coordinate System into a more general GCJ-02 Coordinate System (a Coordinate System of a geographic information System prepared by the chinese national survey bureau, where G denotes Guojia country, C denotes Cehui survey, and J denotes Ju bureau), and use the coordinates converted into the GCJ-02 Coordinate System as the terminal positioning position of the terminal device.
When the positioning data acquisition right is not available, the application program can acquire network parameters of the wireless network, wherein the network parameters can include information such as signal strength, wireless device identification, wireless network identification and the like, and the server can determine the corresponding approximate position of the terminal device based on the information.
S204: and reporting the position information to a server aiming at the terminal equipment through the application program.
The application program for positioning is activated in the background of the terminal equipment when the wireless network is scanned, so that the application program can report the position information of the terminal equipment after being activated, the frequency or times of reporting the position information by the terminal equipment is improved, and the position information collected by the server from the terminal equipment can accord with the real-time position of the terminal equipment as much as possible.
Moreover, the location information may include network parameters of the wireless network scanned by the terminal device, so that the server may collect a large number of network parameters of the wireless network, and a wireless device library may be constructed by using the wireless device identifiers carried by the network parameters and the determined wireless device locations, and the wireless device library includes the collected wireless device identifiers and the corresponding device locations, and may be used for subsequent terminal device location, so as to improve location accuracy.
Further, in order to improve the reporting frequency of the location information of the terminal device, in a possible implementation manner, the method further includes:
and acquiring state switching operation aiming at the application program, and reporting the position information of the terminal equipment before switching to the background non-active state to a server through the application program.
The state switching operation is used to switch the application program from a foreground active state to a background inactive state of the terminal device, and when the application program is switched to the background inactive state, the function of the application program is limited to a certain extent, for example, the frequency of reporting the location information. Therefore, before the application program is switched from the foreground active state to the background inactive state, the terminal device can immediately report the current position information through the application program without being subjected to the requirement of reporting the position information by the application program in the foreground active state, for example, the terminal device can report the position information when the reporting time is not reached, so that the quantity of the position information acquired by the server is increased, and the improvement of the position accuracy of the wireless devices in the wireless device library maintained in the server is facilitated.
Moreover, when the terminal device is lost, the state switching operation is likely to be performed by other users who obtain the terminal device, and the reported position information can also play a role in accurately positioning the lost terminal device at the first time.
The following is a description with reference to fig. 3 based on a scenario of retrieving a lost terminal device. The terminal device and the target device are both terminal devices of a target user, the target device is lost, and the user initiates a retrieving function of the terminal device through the terminal device which is not lost.
When the retrieving function is triggered, the terminal device sends a device searching request to the server, wherein the device searching request comprises the user identification of the target user. For example, in 301 of fig. 3, an interactive interface for retrieving a mobile phone is opened through a terminal device (e.g., a mobile phone a), and a device search request can be sent to a server by clicking "remote retrieving the mobile phone". The interactive interface can be an interface displayed by an application program for positioning, and can also comprise other interactive options besides the remote mobile phone retrieving option, such as a mobile phone emergency center option, through which a user can implement the function of reporting the lost mobile phone number, so as to avoid picking up other users who lose the mobile phone to make phone calls and SMS fraud.
The function of reporting loss of various application accounts in the mobile phone, such as user accounts with high privacy such as electronic payment and social contact, can be realized through the option, so that the problem that other users log in electronic payment application when obtaining the lost mobile phone, the privacy of the user is stolen or the assets of the user are transferred by the social contact application and the like can be avoided, and various high-risk problems possibly caused by the loss of the mobile phone can be effectively reduced.
Accordingly, before the target device is not lost, the user can configure the application program for positioning in the target device by enabling the "remote recovery mobile phone" in the function list, and for more precise position information, when the target device is used for the first time, for example, when the target device enables the application program for the first time, the user is requested to acquire positioning data acquisition permission for acquiring the geographic position of the target device.
Since the terminal device for retrieval and the target device are bound to the same user identifier together, the terminal device can obtain the terminal location parameter for the target device from the server.
In a possible implementation manner, the user may bind with the terminal device and the target device by using the same user identifier. The user may install an application program for positioning, such as a positioning APP, on the terminal device and the target device, respectively. And then logging in the pending APP on the terminal device and the target device through the same user identifier, for example, respectively logging in through an account of social software. Therefore, through the installation and login operations, the server can respectively obtain the identification information which is reported by the terminal equipment and the target equipment through the positioning APP and is used for establishing the binding relationship, for example, the identification information reported by the terminal equipment comprises the user identification for identifying the social software account and the equipment identification of the terminal equipment, for example, the identification information reported by the target equipment comprises the user identification for identifying the social software account and the equipment identification of the target equipment, and thus, the server can establish the binding relationship between the terminal equipment and the target equipment as well as the user identification based on the identification information.
The terminal location parameter is determined by the location information reported by the application configured by the target device, that is, the application configured on the target device for positioning may send the location information of the target device to the server based on the manner of S201 to S204.
Correspondingly, when a user logs in a positioning APP on any one of the terminal device and the target device, for example, the terminal device, the server may identify the positioning APP on one of the devices, where the user identifier having a binding relationship with the multiple devices logs in, through the login behavior, and after determining another device, for example, the target device, through the binding relationship, the server may send the terminal location parameter of the target device to the terminal device for display, so that the user may view the nearest location of the other device through the positioning APP of the terminal device.
It should be noted that, the present application does not limit that the terminal device that sends the device search request and the target device are bound to the same user identifier together, which is only a scenario in which the terminal device may be lost and retrieved, and the terminal device may not have a binding relationship with the user identifier, for example, a user who loses the target terminal may retrieve the terminal device through terminal devices of other users. For example, a user may input his or her user identifier through the terminal device of another user, and then initiate a device location request for the target terminal.
After the terminal location parameter sent by the server is obtained, the location of the target device may be displayed on the terminal device. For example, in 302 of fig. 3, according to the location information reported by the application program for positioning in the target device (for example, the mobile phone B), the mobile phone a may obtain multiple items of information including the geographic location of the mobile phone B, including "device name", "device geographic location", and "location time reported last by the device", for example, determine that the target device is in the building a, and display the information on the electronic map, and may also display the reporting time of determining the location information adopted by the building a, for example, 8 o' clock at 14 th day 9/9 shown in fig. 3, 59 th day. Meanwhile, a navigation control for one-key navigation can be provided for the user, and a reference path from the current position of the user to the building A can be directly planned by triggering the navigation control. For example, according to the current position of the mobile phone a when the user triggers the control and the building a where the mobile phone B is located, the mobile phone a can call an electronic map through the positioning APP to perform path planning, quickly determine a reference path from the current position to the building a, and display the reference path in the electronic map to guide the user. Meanwhile, reference paths corresponding to different travel modes (driving, riding and walking) can be provided for the user to select.
Therefore, the terminal device is configured with the application program for positioning, and when the terminal device scans a wireless network, even if the application program is not activated at the moment, the application program can be activated in the background of the terminal device, so that the position information of the terminal device can be acquired through the application program and reported to the server. Because the terminal equipment can scan surrounding wireless networks at any time when the wireless module is opened, the number of times of activating the application program for positioning in the background can be effectively increased based on the mode of scanning the wireless networks to activate the application program, and even if the application program is not opened or closed through the terminal equipment, the position information of the terminal equipment can still be reported when the terminal equipment scans the wireless networks, so that the possibility of acquiring a real-time position can be increased when the terminal equipment is lost, and the probability of finding the terminal equipment is increased by accurate positioning.
The terminal device positioning method provided by the embodiment of the application can also be executed through a server, and the server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and a cloud server providing cloud computing service. The terminal device and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
Fig. 4 is a flowchart of another method for positioning a terminal device according to an embodiment of the present application, where the method is executed by a server, and the method includes:
s401: and receiving or acquiring a device searching request of the first terminal device.
The device search request received or obtained by the server includes a user identifier, where the user identifier is used to represent a legal association between the second terminal device to be searched and the user identifier, for example, whether a binding relationship exists or not.
The first terminal device mentioned here may be the terminal device in the embodiment corresponding to fig. 2, and may also be other terminal devices, and the present application is not limited thereto.
S402: and acquiring the position information of the second terminal equipment which has a binding relationship with the user identification according to the user identification.
The location information is reported by activating an inactivated application program when the second terminal device scans a wireless network, the location information is used for identifying the device location for establishing the wireless network, and the application program for positioning is configured in the second terminal device.
The second terminal device mentioned here may be the target device in the foregoing embodiment with the terminal device as the execution subject, and may also be the terminal device in the corresponding embodiment of fig. 2. The second terminal device is not limited to be a lost terminal device, and the second terminal device belongs to a terminal device of which the user corresponding to the user identifier wishes to specify the current position.
How the second terminal device reports the location information to the server through the application program for positioning may be implemented with reference to the embodiment corresponding to fig. 2.
The second terminal device is provided with an application program for positioning, a wireless module of the second terminal device can scan a wireless network around the terminal device when the second terminal device is started, and if the second terminal device enters a signal coverage range of a certain wireless network, the wireless module can enable the second terminal device to discover the wireless network.
When a wireless network is scanned, the application program in the second terminal device may be in an inactive state, and the application program in this state does not have the functions of acquiring the location information of the terminal device and reporting the location information. Because the second terminal device can scan the surrounding wireless networks at any time when the wireless module is started, and the wireless networks are basically ubiquitous in the current human activity place, the application program for positioning can be activated in the background when the second terminal device scans the wireless networks, and because the wireless module of the second terminal device can frequently and even continuously scan the wireless networks due to the high signal coverage rate of the wireless networks, the time of the application program in the activated state can be greatly prolonged, so that the server can obtain the real-time position information of the second terminal device as far as possible, and the application program is activated in the background, so that the disturbance on the use level of a user using the second terminal device can not be brought, and the perception of the user on the activation of the application program is reduced.
In some operating systems of the second terminal device, for activating an application in the background, in addition to the need of scanning to the wireless network, the second terminal device is also required to be connected to the wireless network on a wireless module basis, for example, in some operating systems, by using a feature that a nehotspot configuration component in the operating system can keep awakening when connecting to the wireless network, when the second terminal device is connected to the wireless network, the application for positioning is activated in the background of the terminal device through the nehotspot configuration component, so that the application which is activated can acquire the position information of the second terminal device in the background of the second terminal device and report the position information to the server.
The first terminal device and the second terminal device may belong to the same user, or may belong to different users, for example, the user a loses the second terminal device and retrieves the second terminal device through the first terminal device of the user b.
Next, a scenario in which the first terminal device and the second terminal device belong to the user b and the user a, respectively, will be described as an example.
The user a installs the positioning APP on the second terminal device, and the positioning APP is registered and logged in through the user identifier of the user a, so that the server determines the binding relationship between the user identifier of the user a and the second terminal device.
If the user a carelessly loses the second terminal device, the user b carrying the first terminal device can be helped, and the current position of the second terminal device is determined at the first terminal device. For example, a positioning APP is installed on a first terminal device, and a user identifier of a user a is input to initiate device search, and a server can search a second terminal device bound to the user identifier of the user a based on the user identifier of the user a carried in a device search request. Because the second terminal device is provided with the positioning APP, the position information of the second terminal device can be reported from the background based on the mode, the server can send the recently reported position information to the first terminal device, and the user a determines the area where the second terminal device is located according to the position displayed on the first terminal device.
Next, a scene in which the first terminal device and the second terminal device both belong to the same user is taken as an example for explanation.
Currently, it is a normal state that one user has a plurality of terminal devices at the same time, for example, two mobile phones, one mobile phone and one notebook computer. Meanwhile, the operating system of the terminal device is also diversified, such as an android system, an apple system and the like. When a plurality of terminal devices of a user are the same operating system, it is relatively convenient to establish a binding relationship with the plurality of terminal devices through a user identifier, and when a user wants to try a plurality of operating systems, the plurality of terminal devices which the user may have different operating systems.
In order to enable terminal devices between different operating systems to perform terminal device positioning, for example, to search a position of a terminal device using an operating system b by using a terminal device of an operating system a, an embodiment of the present application provides a cross-platform terminal device binding method, so as to implement cross-platform terminal device positioning.
In a possible implementation manner, if the first terminal device and the second terminal device have different operating systems, the method further includes:
and acquiring a first account identifier of the social software configured in the first terminal device and a second account identifier of the social software configured in the second terminal device.
And if the first account identification and the second account identification are determined to correspond to the same user identification, establishing a binding relationship between the first terminal equipment and the second terminal equipment and the user identification.
That is to say, the embodiment of the application realizes the binding between the cross-platform terminal device and the user identifier through the cross-platform social software. When a user logs in the social software through the same account in terminal devices of different operating systems, the server can acquire an association relationship between an account identifier of the account and device identifiers of the terminal devices of the different operating systems, and if the terminal devices of the different operating systems and the same account identifier have an association relationship, the terminal devices of at least two operating systems can be bound through the same user identifier (which can be the account identifier).
On the basis, the user can search the position of the mobile phone of the other apple system through the mobile phone of the android system, and can also search the position of the mobile phone of the other android system through the mobile phone of the apple system. The cross-platform terminal equipment positioning mechanism breaks the barrier between operating systems and greatly meets the requirement of users on positioning the terminal equipment.
S403: and determining the terminal position parameter of the second terminal device corresponding to the device searching request according to the position information.
Since the application for positioning is installed or configured in the second terminal device, the application may be activated and report the real-time location information of the second terminal device in the background when the wireless module of the second terminal device scans the wireless network based on the foregoing embodiment corresponding to fig. 2. A plurality of position information of the second terminal device within a time period may have been acquired before the server acquires the device search request.
The server may extract the location information of the second terminal device obtained most recently or several times, and if the location information is the terminal location, the terminal location may be directly determined as the terminal location parameter, and if the location information is the network parameter of the wireless network, the terminal location parameter may be determined by the network parameter, or based on the wireless device library maintained by the server, the location information of the wireless device identified by the network parameter is matched from the location information, and the terminal location parameter is determined according to the location information.
No matter which way is adopted to determine the terminal position parameter, the embodiment corresponding to fig. 2 can play a role in enabling the terminal device to report the position information through the application program frequently activated by the background, so that the determined terminal position parameter can be more suitable for the real-time position of the second terminal device, and the difficulty of the user in searching for the second terminal device is reduced.
S404: and returning the terminal position parameter to the first terminal equipment.
After the terminal position parameter of the second terminal device is determined, the terminal position parameter may be returned to the first terminal device, so that the first terminal device may display the terminal position parameter through a user interface, for example, under the condition shown by 302 in fig. 3, and a user may conveniently identify the position of the second terminal device through the terminal position parameter displayed by the first terminal device.
Therefore, the terminal device is configured with the application program for positioning, and when the terminal device scans a wireless network, even if the application program is not activated at the moment, the application program can be activated in the background of the terminal device, so that the position information of the terminal device can be acquired through the application program and reported to the server. Because the terminal device can scan the surrounding wireless networks at any time when the wireless module is started, the number of times of activating the application program for positioning in the background can be effectively increased based on the mode of scanning the wireless networks to activate the application program, and even if the application program is not started or closed through the terminal device, the position information of the terminal device can still be reported when the terminal device scans the wireless networks. The server can acquire the real-time position of the terminal equipment which is reduced to be more accurate, when the first terminal equipment needs to acquire the position of the second terminal equipment, after the server verifies the validity of the equipment searching request, the server can determine the terminal position parameter corresponding to the equipment searching request based on the latest reported position information of the second terminal equipment and return the terminal position parameter to the first terminal equipment, so that the first terminal equipment can display the terminal position parameter which is more consistent with the current position of the second terminal equipment through a user interface, and a user can conveniently position and search the second terminal equipment.
Next, a scheme in which the server performs confidence recognition based on a network parameter in a large amount of acquired location information will be mainly described.
S501: and acquiring the position information reported by the second terminal equipment.
The location information in this embodiment includes network parameters of the wireless network, which may include a device identification of the wireless device establishing the wireless network and an identified device location. The information may further include or carry information such as signal strength, service Set Identifier (SSID), basic Service Set Identifier (BSSID), application Identifier, and the like, which are scanned by the second terminal device reporting the location information to the wireless network.
S502: and adding the equipment position identified by the position information into a historical position list corresponding to the wireless equipment according to the equipment identification.
The device locations in the list of historical locations may be from a number of terminal devices, including the second terminal device, that are or were within signal coverage of the wireless network. When the terminal device configured with the application program for positioning in the present application enters the signal coverage of the wireless network, the location information of the terminal device may be reported through the application program activated by the background, where the location information includes the device location of the wireless device that establishes the wireless network.
S503: determining a location confidence for the wireless device based on distances between device locations in the historical location list.
Since the accuracy of the device location determined based on the wireless network is not high, there may be some error from the actual device location of the wireless device. Moreover, the wireless devices that establish the wireless network are of two types, namely fixed and mobile, for example, a router that is fixedly installed can establish the wireless network, and as the mobile phone of the user and other intelligent devices can also establish the wireless network through the mobile hotspot, different types of wireless devices can also affect the accuracy of the determined device position, for example, the error of the determined device position of the mobile wireless device is larger.
To this end, the embodiment of the present application provides a way to determine the location confidence of a wireless device, by determining the location confidence that the device location for identifying the wireless device is authentic, a fixed type wireless device and a mobile type wireless device can be identified, and the terminal location parameter of the second terminal device can be determined based on the confidence level.
As described above, the history location list of a wireless device includes device locations reported by different terminal devices, and these device locations are determined based on the distance between the terminal device and the wireless device at the time of reporting, the signal strength, and other conditions, and are all used to identify the device location of the wireless device at the time of reporting.
The distance between the positions of the devices in the historical position list can effectively reflect the type of the wireless devices, network signals of a wireless network established by the fixed wireless devices are relatively stable and have relatively small volatility compared with those of the mobile wireless devices, the determined positions of the devices are relatively close to the actual positions of the devices, the surrounding environment of the mobile wireless devices changes greatly, the signal stability and the volatility are difficult to control, and the errors of the determined positions of the devices are relatively large. For example, for a mobile wireless device, based on its mobility, there is a large difference between device positions reported by peripheral terminal devices during the moving process of the wireless device. For a fixed type wireless device, based on its fixity, the distance between device locations reported by the peripheral terminal devices of the wireless device is relatively small.
Moreover, the wireless network stability of the wireless device may also affect the accuracy of the device location reported by the peripheral terminal device, and when the stability is high, the device location determined by the terminal device or the server based on the wireless signal is more accurate, and conversely, the error of the determined device location may be larger.
The location confidence level determined based on the distance between the device locations in the historical location list may identify the location confidence level of the wireless device, which may be indicative of whether the type of wireless device is stationary or mobile, and may also identify whether the device location of the wireless device is accurate.
Accordingly, S403 includes: and determining the terminal position parameters of the second terminal equipment corresponding to the equipment searching request according to the position information and the position reliability of the wireless equipment.
That is, when determining the terminal location parameter according to the location information, the server also needs to consider the location confidence of the wireless device corresponding to the location information, and the location confidence may identify whether the device location of the wireless device can be used as a basis for determining the terminal location parameter, and may further identify the influence degree when determining the terminal location parameter when the device location can be used as a basis.
By the mode, the type of the wireless equipment can be effectively identified through the position credibility, so that the wireless equipment can be definitely used for calculating the terminal position parameters, and the equipment positions of the wireless equipment can be definitely more credible, so that the equipment positions of the wireless equipment in the wireless equipment library can be optimized, and the positioning precision of the terminal equipment can be improved.
In one possible implementation, S503 includes:
and determining the position central point of the wireless equipment according to the distance between the equipment positions in the historical position list.
And determining the position reliability of the wireless equipment according to the distance between the position center point and the equipment position.
The center point determined according to the device position in the historical position list can approximately represent the distribution center of the device position reported by the terminal device in the historical time period, and the distance between each device position and the distribution center can be known according to the distance between the device position in the historical position list and the position center point.
If the location of each device is generally farther from the distribution center, the wireless device is more likely to be of the mobile type, and the wireless signal is likely to be unstable, the confidence level of the location of the wireless device is lower,
if the positions of the devices are generally close to the distribution center, the possibility that the wireless devices belong to the fixed type is high, wireless signals are stable, and the position reliability of the wireless devices is high.
On the basis of the foregoing embodiment, in one possible implementation manner, S403 includes: and if the position reliability of the wireless equipment meets a threshold value, determining a position interval which can be confidence and is used as the terminal position parameter according to the distance between the position center point and the equipment position.
The device location reported by the terminal device of the wireless device can embody the coverage of the wireless network signal of the wireless device to a certain extent, so in order to improve the recovery probability of the second terminal device, the terminal location parameter provided by the server to the first terminal device can identify an area, and the area can approximately cover the location where the second terminal device may be when reporting the location information through the application program. This area is displayed by the first terminal device, corresponding to the identification of the area in which the second terminal device may be located for the user.
The following is explained with reference to the application scenario shown in fig. 5. The first terminal device is a device for executing searching, the second terminal device is a device to be searched, and the second terminal device is provided with a positioning APP for positioning.
When the positioning APP is started, the positioning APP is in the foreground of the second terminal device, and can acquire real-time position information of the second terminal device at regular time and report the information to the server, for example, the real-time position of the device can be acquired at regular intervals and reported to the server. And reporting the last time of position information in an active state before the positioning APP is about to enter the background of the second terminal equipment, and then entering the background of the second terminal equipment. And if the user opens the positioning APP again, the real-time position information of the second terminal equipment can be continuously obtained at regular time and reported to the server. If the device search request of the first terminal device is obtained at this time, the location may be determined according to the location information (e.g., determined from the wireless device library) reported by the second terminal device last time and returned to the first terminal device.
According to the mechanism of the second terminal device, the positioning APP entering the background may be turned off after a period of time or immediately, or the corresponding process may be killed. And then, when the second terminal device scans the wireless network through the wireless module, the positioning APP can be reactivated in the background by connecting the wireless network, at this moment, the positioning APP can try to acquire the terminal positioning position, such as the geographic position, of the second terminal device, and the terminal positioning position is reported to the server if the acquisition is successful, so that the server does not need to perform additional processing. And if the acquisition fails, for example, the acquisition right is not available, the network parameters of the currently connected wireless network are sent to the server.
If the location information acquired by the server is a network parameter, the device identifier of the wireless device carried by the network parameter can be matched in the wireless device library, and if the device identifier of the wireless device carried by the network parameter can be matched, the device location corresponding to the network parameter can be updated to a historical location list corresponding to the wireless device in the wireless device library.
If the device search request of the first terminal device is obtained at this time, the location may be determined according to the location information (for example, determined from the wireless device library) reported by the second terminal device last time and returned to the first terminal device.
That is, whenever a device performing a search, for example, a first terminal device, requests the server for the location of the searched device through a device search request, the server returns its last location information to the device performing the search.
And the equipment for searching is displayed on the UI according to the equipment name, the equipment geographic position and the latest position reporting time of the equipment returned by the server. And can carry out 'one-key navigation' according to the needs, or carry out 'ring searching' through propelling movement, etc.
Fig. 6 shows a flow diagram of reporting location information by an application for positioning under the apple operating system.
After the application's process is killed in the background, the application may be woken up in the background by the NEHotspotconfiguration component in the operating system when the terminal device connects to the wireless network.
The client of the application program starts initializing the CLLocationManager and requests the operating system to acquire the positioning data acquisition authority. The state of the positioning data acquisition authority comprises six types: (ii) is not authorized; refusing to position; location services are limited; positioning is always carried out, namely, positioning can be carried out when the mobile terminal enters a background; positioning is allowed during application use.
When the authority state is 'unauthorized', the authority request interface of the system can be directly used to directly request the positioning data acquisition authority from the user, and the user can choose to allow once, allow during use, always allow or deny. After the iOS14, it is also possible to choose to give a precise position or an ambiguous position. And if the user refuses, the terminal equipment cannot report the terminal positioning position.
It should be noted that fig. 6 shows only one example, namely, the end when the positioning data acquisition right is not acquired. In the embodiment of the application, if the user does not give the positioning data acquisition right, the network parameters of the wireless device can be directly acquired through the CaptiveNet framework and reported to the server as the position information.
When the positioning data is acquired to obtain the right, the position information of the positioning data can pass through a CLLocationManagerStreegate callback, the WGS-84 coordinate of the equipment can be acquired at the moment, and the client converts the WGS-84 coordinate system into a more universal GCJ-02 coordinate system according to a GPS deviation rectifying algorithm. And creating a Geo coding object, performing anti-Geo coding on the coordinate, and acquiring detailed geographical position description.
The network parameters of the wireless network connected with the terminal device can be acquired, and the network parameters of the wireless device, for example, include SSID and BSSID, and necessary information such as a device unique identifier and an application unique identifier of the wireless device, can be acquired through the CaptiveNetwork framework. And packaging the information and the obtained geographical position information, and sending the information and the obtained geographical position information to a server.
And the server receives the data packet, unpacks the data packet to obtain network parameters, and inquires whether the unique identifier of the wireless equipment exists in a wireless equipment library. If the record does not already exist in the wireless device library, it is newly added to the wireless device library, and the location confidence is set to an initial medium value, and the confidence location interval is set to an initial value that is smaller.
If the record is already stored in the wireless device library, the historical position list is taken out, and the center points of all the device positions are calculated by combining the current device position, so that the distance between the current device position and the center point is calculated. The confidence interval of the wireless device can be updated and its location confidence updated according to established rules.
Wireless devices with low confidence in location are considered to be wireless devices with frequently changing locations (e.g., mobile device hotspots) and will not be used to assist a "device without location authority" in locating a location. The confirmable location interval is used for the radius of the range displayed on the electronic map of the first terminal device when "finding the device".
When the user clicks 'remote mobile phone recovery' in the positioning APP configured by other equipment, the server returns the corresponding equipment position obtained in the position information last time and the confidence position interval. The positioning APP of the other equipment converts the GCJ-02 coordinate into the WGS-84 coordinate again, so that the position of the terminal equipment to be positioned and the radius of the error range can be drawn in the electronic map SDK.
Please refer to fig. 12, which includes a first terminal device, a second terminal device and a server. In this scenario, the second terminal device is a device to be located, and the first terminal device is a device for locating the second terminal device.
S1201: and detecting the opening and closing state of a wireless module of the terminal equipment.
S1202: and scanning the wireless network through the wireless module.
S1203: and connecting a wireless network through the wireless module.
S1204: and activating the inactivated application program in the background of the terminal equipment.
S1205: and identifying positioning data acquisition permission.
When the application program has the positioning data acquisition right, the terminal positioning position of the second terminal device can be acquired and reported to the server, and when the application program does not have the positioning data acquisition right, the network parameters of the wireless network connected with the second terminal device can be acquired and reported to the server.
S1200: and acquiring the state switching operation aiming at the application program.
The execution sequence of this step may be before S2101 or after S1205. When the application program is switched from the foreground to the background of the second terminal device, the application program sends location information to the server once, and the location information can be a terminal location position or a network parameter of a wireless network, and is specifically determined according to whether the application program has a location data acquisition right or not.
S1206: and acquiring the position information reported by the second terminal equipment.
The server may acquire the location information reported by the second terminal device through the execution of S1200 or S1205.
S1207: and establishing a binding relationship between the second terminal equipment and the user identifier.
Since the location information is also carried with the user identifier of the user registration application program when reporting the location information, the binding relationship with the second terminal device can be established based on the user identifier.
S1208: and adding the equipment position identified by the position information into a historical position list corresponding to the wireless equipment according to the equipment identification.
S1209: and determining the position central point of the wireless equipment according to the distance between the equipment positions in the historical position list.
S1210: and determining the position reliability of the wireless equipment according to the distance between the position center point and the equipment position.
S1211: a device lookup request is generated.
When a user of the second terminal device needs to locate the second terminal device (for example, the second terminal device is lost or not nearby), the user may generate a device search request through the first terminal device. The first terminal device may be another device of the user, or may be a device of another user.
The device lookup request may be generated by an application installed in the first terminal device for location, where the user identification of the user needs to be carried.
S1212: and acquiring the position information of the second terminal equipment which has a binding relationship with the user identification according to the user identification.
When the server obtains the device searching request, the server determines the position information of the second terminal device with the binding relationship through the user identification carried in the device searching request.
S1213: and determining the terminal position parameter of the second terminal device corresponding to the device searching request according to the position information.
The server may determine terminal location parameters with reference to the location confidence determined in S1210, which may also include a confidence location interval.
S1214: and displaying the position of the second terminal equipment on the first terminal equipment according to the terminal position parameter.
The terminal position parameter returned by the first terminal device acquisition server is displayed on the electronic map, and the displayed range can be determined based on the confidence position interval.
On the basis of the foregoing embodiment shown in fig. 2, fig. 7 is a device structure diagram of a terminal device positioning apparatus provided in the embodiment of the present application, where the terminal device positioning apparatus 700 includes a scanning unit 701, an activating unit 702, an obtaining unit 703, and a reporting unit 704:
the scanning unit 701 is configured to perform wireless network scanning through a wireless module of a terminal device, where the terminal device is configured with an application program for positioning;
the activating unit 702 is configured to activate the inactivated application program in a background of the terminal device if a wireless network is scanned;
the acquiring unit 703 is configured to acquire, through the application program, location information of the terminal device, where the location information includes a terminal positioning location or a network parameter of the wireless network;
the reporting unit 704 is configured to report the location information to a server for the terminal device through the application program.
In a possible implementation manner, the activation unit is further configured to activate the application that is not activated in a background of the terminal device if a wireless network is scanned and connected to the wireless network.
In a possible implementation manner, the obtaining unit is further configured to:
acquiring the terminal positioning position of the terminal equipment through the application program in response to the application program having positioning data acquisition permission; alternatively, the first and second electrodes may be,
and in response to the application program not having the positioning data acquisition authority, acquiring network parameters of the wireless network through the application program.
In a possible implementation manner, the obtaining unit is further configured to obtain a state switching operation for the application program, where the state switching operation is used to switch the application program from a foreground active state to a background inactive state of the terminal device;
the reporting unit is further configured to report, to a server, location information of the terminal device before switching to the background inactive state, through the application program.
In one possible implementation manner, the apparatus further includes a sending unit and a display unit:
the sending unit is configured to send a device search request to the server, where the device search request includes a user identifier;
the acquiring unit is further configured to acquire, from the server, a terminal location parameter for a target device, where the target device has a binding relationship with the user identifier, and the terminal location parameter is determined by location information reported by the application program configured by the target device;
and the display unit is used for displaying the position of the target equipment on the terminal equipment according to the terminal position parameter.
Therefore, the terminal device is configured with the application program for positioning, and when the terminal device scans a wireless network, even if the application program is not activated at the moment, the application program can be activated in the background of the terminal device, so that the position information of the terminal device can be acquired through the application program and reported to the server. Because the terminal equipment can scan surrounding wireless networks at any time when the wireless module is opened, the number of times of activating the application program for positioning in the background can be effectively increased based on the mode of scanning the wireless networks to activate the application program, and even if the application program is not opened or closed through the terminal equipment, the position information of the terminal equipment can still be reported when the terminal equipment scans the wireless networks, so that the possibility of acquiring a real-time position can be increased when the terminal equipment is lost, and the probability of finding the terminal equipment is increased by accurate positioning.
On the basis of the foregoing embodiment corresponding to fig. 4, fig. 8 is a device structure diagram of another terminal device positioning apparatus provided in the embodiment of the present application, where the terminal device positioning apparatus 800 includes an obtaining unit 801, a determining unit 802, and a returning unit 803:
the obtaining unit 801 is configured to obtain a device search request of a first terminal device, where the device search request includes a user identifier;
the determining unit 802 is configured to determine a second terminal device bound to the user identifier and location information corresponding to the second terminal device, where the location information is reported by the second terminal device after an inactivated application is activated when the second terminal device scans a wireless network, the location information is used to identify a device location for establishing the wireless network, and the application for positioning is configured in the second terminal device;
the determining unit 802 is further configured to determine, according to the location information, a terminal location parameter of the second terminal device corresponding to the device search request;
the returning unit 803 is configured to return the terminal location parameter to the first terminal device.
In one possible implementation manner, the apparatus further includes a joining unit:
the acquiring unit is further configured to acquire the location information reported by the second terminal device, where the location information includes a device identifier of a wireless device that establishes the wireless network;
the joining unit is used for joining the equipment position identified by the position information into a historical position list corresponding to the wireless equipment according to the equipment identification;
the determining unit is further configured to determine a location confidence of the wireless device based on distances between device locations in the historical location list, the location confidence identifying a location confidence level of the wireless device; and determining the terminal position parameter of the second terminal device corresponding to the device searching request according to the position information and the position reliability of the wireless device.
In a possible implementation manner, the determining unit is further configured to:
determining the position central point of the wireless equipment according to the distance between the equipment positions in the historical position list;
and determining the position reliability of the wireless equipment according to the distance between the position center point and the equipment position.
In a possible implementation manner, the determining unit is further configured to determine, if the location reliability of the wireless device satisfies a threshold, a trusted location interval as the terminal location parameter according to a distance between the location center point and the device location.
In a possible implementation manner, the apparatus further includes a creating unit:
the obtaining unit is further configured to obtain a first account identifier of social software configured in the first terminal device and a second account identifier of social software configured in the second terminal device, where the first terminal device and the second terminal device have different operating systems;
the establishing unit is configured to establish a binding relationship between the first terminal device and the second terminal device and the user identifier if it is determined that the first account identifier and the second account identifier correspond to the same user identifier.
Therefore, the terminal device is configured with the application program for positioning, and when the terminal device scans a wireless network, even if the application program is not activated at the moment, the application program can be activated in the background of the terminal device, so that the position information of the terminal device can be acquired through the application program and reported to the server. Because the terminal device can scan the surrounding wireless networks at any time when the wireless module is started, the number of times of activating the application program for positioning in the background can be effectively increased based on the mode of scanning the wireless networks to activate the application program, and even if the application program is not started or closed through the terminal device, the position information of the terminal device can still be reported when the terminal device scans the wireless networks. The server can acquire the real-time position of the terminal equipment which is reduced to be more accurate, when the first terminal equipment needs to acquire the position of the second terminal equipment, after the server verifies the validity of the equipment searching request, the server can determine the terminal position parameter corresponding to the equipment searching request based on the latest reported position information of the second terminal equipment and return the terminal position parameter to the first terminal equipment, so that the first terminal equipment can display the terminal position parameter which is more consistent with the current position of the second terminal equipment through a user interface, and a user can conveniently position and search the second terminal equipment.
Fig. 9 is a system structure diagram of a terminal device positioning system according to an embodiment of the present application, where the terminal device positioning system 900 includes a terminal device 901 and a server 902. The terminal device 901 is configured to execute the foregoing embodiments corresponding to fig. 1 to fig. 3 and fig. 5 to fig. 6, and the server 902 is configured to execute the foregoing embodiments corresponding to fig. 1 and fig. 4 to fig. 6.
An embodiment of the present application further provides a computer device, where the computer device is the computer device described above, and may include a terminal device or a server, and the terminal device positioning apparatus described above may be configured in the computer device. The computer apparatus is described below with reference to the drawings.
If the computer device is a terminal device, please refer to fig. 10, an embodiment of the present application provides a terminal device, taking the terminal device as a mobile phone as an example:
fig. 10 is a block diagram illustrating a partial structure of a mobile phone related to a terminal device provided in an embodiment of the present application. Referring to fig. 10, the cellular phone includes: radio Frequency (RF) circuitry 1410, memory 1420, input unit 1430, display unit 1440, sensors 1450, audio circuitry 1460, wiFi module 1470, processor 1480, and power supply 1490. Those skilled in the art will appreciate that the handset configuration shown in fig. 10 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 10:
RF circuit 1410 may be used for receiving and transmitting signals during a message transmission or call, and in particular, for processing received downlink information of a base station to processor 1480; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 1410 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 1410 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), general Packet Radio Service (GPRS), code Division Multiple Access (CDMA), wideband Code Division Multiple Access (WCDMA), long Term Evolution (LTE), email, short Message Service (SMS), and the like.
The memory 1420 may be used to store software programs and modules, and the processor 1480 performs various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 1420. The memory 1420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, memory 1420 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The input unit 1430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. In particular, the input unit 1430 may include a touch panel 1431 and other input devices 1432. The touch panel 1431, also referred to as a touch screen, may collect touch operations performed by a user on or near the touch panel 1431 (for example, operations performed by the user on or near the touch panel 1431 by using any suitable object or accessory such as a finger or a stylus pen), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 1431 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device and converts it to touch point coordinates, which are provided to the processor 1480 and can receive and execute commands from the processor 1480. In addition, the touch panel 1431 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1431, the input unit 1430 may also include other input devices 1432. In particular, other input devices 1432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1440 may be used to display information input by or provided to the user and various menus of the mobile phone. The Display unit 1440 may include a Display panel 1441, and optionally, the Display panel 1441 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, touch panel 1431 can overlay display panel 1441, and when touch panel 1431 detects a touch operation on or near touch panel 1431, it can transmit to processor 1480 to determine the type of touch event, and then processor 1480 can provide a corresponding visual output on display panel 1441 according to the type of touch event. Although in fig. 10, the touch panel 1431 and the display panel 1441 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1431 and the display panel 1441 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 1450, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 1441 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 1441 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 1460, speakers 1461, microphone 1462 may provide an audio interface between a user and a cell phone. The audio circuit 1460 can transmit the received electrical signal converted from the audio data to the loudspeaker 1461, and the electrical signal is converted into a sound signal by the loudspeaker 1461 and output; on the other hand, the microphone 1462 converts the collected sound signals into electrical signals, which are received by the audio circuit 1460 and converted into audio data, which are then processed by the audio data output processor 1480 and then transmitted via the RF circuit 1410 to, for example, another cellular phone, or output to the memory 1420 for further processing.
WiFi belongs to a short-distance wireless transmission technology, and a mobile phone can help a user to receive and send emails, browse webpages, access streaming media and the like through a WiFi module 1470, and provides wireless broadband internet access for the user. Although fig. 10 shows the WiFi module 1470, it is understood that it does not belong to the essential constitution of the handset and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 1480, which is the control center of the mobile phone, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1420 and calling data stored in the memory 1420, thereby integrally monitoring the mobile phone. Alternatively, the processor 1480 may include one or more processing units; preferably, the processor 1480 may integrate an application processor, which handles primarily operating systems, user interfaces, and applications, among others, with a modem processor, which handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1480.
The handset also includes a power supply 1490 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 1480 via a power management system to provide management of charging, discharging, and power consumption via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In this embodiment, the processor 1480 included in the terminal device further has the following functions:
wireless network scanning is carried out through a wireless module of terminal equipment, and an application program for positioning is configured in the terminal equipment;
if the wireless network is scanned, activating the inactivated application program in a background of the terminal equipment;
acquiring the position information of the terminal equipment through the application program, wherein the position information comprises a terminal positioning position or network parameters of the wireless network;
and reporting the position information to a server aiming at the terminal equipment through the application program.
If the computer device is a server, the embodiment of the present application further provides a server, please refer to fig. 11, where fig. 11 is a structural diagram of the server 1500 provided in the embodiment of the present application, and the server 1500 may generate a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 1522 (e.g., one or more processors) and a memory 1532, and one or more storage media 1530 (e.g., one or more mass storage devices) for storing an application program 1542 or data 1544. Memory 1532 and storage media 1530 may be, among other things, transient or persistent storage. The program stored on the storage medium 1530 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, a central processor 1522 may be provided in communication with the storage medium 1530, executing a series of instruction operations in the storage medium 1530 on the server 1500.
The Server 1500 may also include one or more power supplies 1526, one or more wired or wireless network interfaces 1550, one or more input-output interfaces 1558, and/or one or more operating systems 1541, such as a Windows Server TM ,Mac OS X TM ,Unix TM ,Linux TM ,FreeBSD TM And so on.
The steps performed by the server in the above embodiments may be based on the server structure shown in fig. 11.
In addition, a storage medium is provided in an embodiment of the present application, and the storage medium is used for storing a computer program, and the computer program is used for executing the method provided in the embodiment.
The embodiment of the present application also provides a computer program product including instructions, which when run on a computer, causes the computer to execute the method provided by the above embodiment.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium may be at least one of the following media: various media that can store program codes, such as Read-only Memory (ROM), RAM, magnetic disk, or optical disk.
It should be noted that, in the present specification, all the embodiments are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus and system embodiments, since they are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described embodiments of the apparatus and system are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement without inventive effort.
The above description is only one specific embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (16)

1. A terminal device positioning method, wherein the method is performed by a terminal device, and wherein the method comprises:
detecting the opening and closing state of a wireless module of the terminal equipment;
in response to the detection that the wireless module is started, wireless network scanning is carried out through the wireless module, and an application program for positioning is configured in the terminal equipment;
if the wireless network is scanned, activating the inactivated application program in a background of the terminal equipment;
acquiring the position information of the terminal equipment through the application program, wherein the position information comprises a terminal positioning position or network parameters of the wireless network;
and reporting the position information to a server aiming at the terminal equipment through the application program.
2. The method of claim 1, wherein the activating the application program that is not activated in the background of the terminal device if a wireless network is scanned comprises:
and if the wireless network is scanned and connected to the wireless network, activating the inactivated application program in the background of the terminal equipment.
3. The method according to claim 1, wherein the obtaining, by the application program, the location information of the terminal device comprises:
acquiring the terminal positioning position of the terminal equipment through the application program in response to the application program having positioning data acquisition permission; alternatively, the first and second electrodes may be,
and in response to the application program not having the positioning data acquisition authority, acquiring network parameters of the wireless network through the application program.
4. The method according to any one of claims 1-3, further comprising:
acquiring a state switching operation aiming at the application program, wherein the state switching operation is used for switching the application program from a foreground active state to a background inactive state of the terminal equipment;
and reporting the position information of the terminal equipment to a server before the terminal equipment is switched to the background non-active state through the application program.
5. The method according to any one of claims 1-3, further comprising:
sending a device search request to the server, wherein the device search request comprises a user identifier;
acquiring a terminal position parameter aiming at target equipment from the server, wherein the target equipment has a binding relation with the user identifier, and the terminal position parameter is determined by position information reported by the application program configured by the target equipment;
and displaying the position of the target equipment on the terminal equipment according to the terminal position parameter.
6. A terminal device positioning method is characterized by comprising the following steps:
acquiring a device searching request of a first terminal device, wherein the device searching request comprises a user identifier;
acquiring position information of a second terminal device having a binding relationship with the user identifier according to the user identifier, wherein the position information is reported after the second terminal device activates an inactivated application program when scanning a wireless network, the position information is used for identifying the device position for establishing the wireless network, and the application program for positioning is configured in the second terminal device;
determining a terminal position parameter of the second terminal device corresponding to the device searching request according to the position information;
and returning the terminal position parameter to the first terminal equipment.
7. The method of claim 6, further comprising:
acquiring the position information reported by the second terminal equipment, wherein the position information comprises an equipment identifier of the wireless equipment for establishing the wireless network;
adding the equipment position identified by the position information into a historical position list corresponding to the wireless equipment according to the equipment identification;
determining a location confidence level for the wireless device based on distances between device locations in the historical location list, the location confidence level identifying a location trustworthiness of the wireless device;
the determining, according to the location information, a terminal location parameter of the second terminal device corresponding to the device search request includes:
and determining the terminal position parameters of the second terminal equipment corresponding to the equipment searching request according to the position information and the position reliability of the wireless equipment.
8. The method of claim 7, wherein determining the location confidence of the wireless device based on distances between device locations in the list of historical locations comprises:
determining the position central point of the wireless equipment according to the distance between the equipment positions in the historical position list;
and determining the position reliability of the wireless equipment according to the distance between the position center point and the equipment position.
9. The method of claim 8, wherein the determining, according to the location information and the location reliability of the wireless device, terminal location parameters of the second terminal device corresponding to the device lookup request comprises:
and if the position reliability of the wireless equipment meets a threshold value, determining a position interval which can be confidence and is used as the terminal position parameter according to the distance between the position center point and the equipment position.
10. The method according to any one of claims 6-9, further comprising:
acquiring a first account identifier of social software configured in the first terminal device and a second account identifier of social software configured in the second terminal device, wherein the first terminal device and the second terminal device have different operating systems;
and if the first account identification and the second account identification are determined to correspond to the same user identification, establishing a binding relationship between the first terminal equipment and the second terminal equipment and the user identification.
11. A terminal device positioning device is characterized in that the device comprises a scanning unit, an activation unit, an acquisition unit and a reporting unit:
the scanning unit is used for scanning a wireless network through a wireless module of terminal equipment, and the terminal equipment is provided with an application program for positioning;
the activation unit is used for activating the inactivated application program in a background of the terminal equipment if the wireless network is scanned;
the acquiring unit is used for acquiring the position information of the terminal equipment through the application program, wherein the position information comprises a terminal positioning position or network parameters of the wireless network;
and the reporting unit is used for reporting the position information to a server aiming at the terminal equipment through the application program.
12. A terminal equipment positioning device is characterized by comprising an acquisition unit, a determination unit and a return unit:
the acquiring unit is used for acquiring a device searching request of the first terminal device, wherein the device searching request comprises a user identifier;
the determining unit is configured to determine a second terminal device bound to the user identifier and location information corresponding to the second terminal device, where the location information is reported by the second terminal device after an inactivated application is activated when the second terminal device scans a wireless network, the location information is used to identify a device location for establishing the wireless network, and the application for positioning is configured in the second terminal device;
the determining unit is further configured to determine, according to the location information, a terminal location parameter of the second terminal device corresponding to the device search request;
the return unit is configured to return the terminal location parameter to the first terminal device.
13. A terminal device positioning system, the system comprising a terminal device and a server:
the terminal device is used for executing the terminal device positioning method of any one of claims 1-5;
the server is configured to perform the terminal device positioning method according to any one of claims 6 to 10.
14. A computer device, the computer device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the terminal device positioning method according to any one of claims 1 to 5 or perform the terminal device positioning method according to any one of claims 6 to 10 according to instructions in the program code.
15. A computer-readable storage medium, characterized in that the computer-readable storage medium is used for storing a computer program for performing the terminal device positioning method of any one of claims 1-5 or the terminal device positioning method of any one of claims 6-10.
16. A computer program product comprising instructions which, when run on a computer, cause the computer to perform the terminal device positioning method of any one of claims 1-5 or to perform the terminal device positioning method of any one of claims 6-10.
CN202111166683.4A 2021-09-30 2021-09-30 Terminal equipment positioning method and related device Pending CN115914987A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111166683.4A CN115914987A (en) 2021-09-30 2021-09-30 Terminal equipment positioning method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111166683.4A CN115914987A (en) 2021-09-30 2021-09-30 Terminal equipment positioning method and related device

Publications (1)

Publication Number Publication Date
CN115914987A true CN115914987A (en) 2023-04-04

Family

ID=86493896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111166683.4A Pending CN115914987A (en) 2021-09-30 2021-09-30 Terminal equipment positioning method and related device

Country Status (1)

Country Link
CN (1) CN115914987A (en)

Similar Documents

Publication Publication Date Title
CN109479180B (en) Method and terminal for displaying current geographic position on emergency call interface
US10831161B2 (en) Method and device for sending communication message
US10834432B2 (en) Method, device and system for in-sequence live streaming
US11057376B2 (en) Method, apparatus, and system for controlling intelligent device, and storage medium
US10863407B2 (en) Method for setting Wi-Fi roaming, and related products
CN109891934B (en) Positioning method and device
US11798107B2 (en) Scenario-based application recommendation method and apparatus
RU2608948C2 (en) Method, device and system for access to router controlling
US20170316781A1 (en) Remote electronic service requesting and processing method, server, and terminal
CN106936676B (en) Household equipment control method and device
US8804680B2 (en) System and method for managing wireless connections and radio resources
CN111010663B (en) Information sharing method and device, storage medium and computer equipment
US10298590B2 (en) Application-based service providing method, apparatus, and system
CN105933209B (en) Position sharing method and device
US11483677B2 (en) Information pushing method and terminal device
CN111314900B (en) Wireless connection method, wireless connection device and mobile terminal
CN109348425B (en) Positioning information updating method, device, equipment and storage medium
CN109041212B (en) Positioning method and wearable device
CN115914987A (en) Terminal equipment positioning method and related device
CN106454728A (en) Network control method and device for terminal application, and terminal
CN112825537A (en) Mobile terminal, safety monitoring method and device
EP3402162B1 (en) Terminal device and control method therefor
CN115567636A (en) Loss prevention method, intelligent terminal and storage medium
CN112492576A (en) Long distance voice dialing method, device, storage medium and mobile terminal
CN112312321A (en) Processing method, terminal and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40084286

Country of ref document: HK