CN115348570A - Method and device for searching terminal equipment and storage medium - Google Patents

Method and device for searching terminal equipment and storage medium Download PDF

Info

Publication number
CN115348570A
CN115348570A CN202110523185.4A CN202110523185A CN115348570A CN 115348570 A CN115348570 A CN 115348570A CN 202110523185 A CN202110523185 A CN 202110523185A CN 115348570 A CN115348570 A CN 115348570A
Authority
CN
China
Prior art keywords
terminal device
terminal equipment
terminal
equipment
searching
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
CN202110523185.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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110523185.4A priority Critical patent/CN115348570A/en
Publication of CN115348570A publication Critical patent/CN115348570A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to a searching method and device of terminal equipment and a storage medium. The first terminal equipment and the second terminal equipment are matched; the method comprises the following steps: responding to a device searching instruction, triggered by a first terminal device, for searching for the second terminal device, and acquiring state information of the second terminal device, where the state information includes: first information used for representing the connection state of the second terminal equipment and the first terminal equipment, and/or second information used for representing the use state of the second terminal equipment; judging whether equipment searching conditions are met or not according to the state information; and if the equipment searching condition is met, sending a prompt triggering instruction to the second terminal equipment, wherein the prompt triggering instruction is used for controlling the second terminal equipment to prompt the position of the second terminal equipment. Therefore, the first terminal equipment triggers the second terminal equipment to prompt the position of the second terminal equipment, and therefore the second terminal equipment can be found quickly and accurately.

Description

Method and device for searching terminal equipment and storage medium
Technical Field
The present disclosure relates to the field of device search, and in particular, to a method and an apparatus for searching a terminal device, and a storage medium.
Background
With the development of electronic technology, users use electronic devices more and more frequently. The user is at the in-process to the electronic equipment use, probably has to place electronic equipment at will or with the condition such as electronic equipment drops carelessly, because characteristics such as electronic equipment itself is small, difficult discovery, the user can't find electronic equipment's problem appears easily, causes the not good use experience of user. Taking an electronic device as an example of a bluetooth headset, the volume of the bluetooth headset is generally small and not easy to be found, and if a user drops the bluetooth headset carelessly, it is very difficult to find the bluetooth headset.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method and an apparatus for searching a terminal device, and a storage medium.
According to a first aspect of the embodiments of the present disclosure, a method for searching for a terminal device is provided, where a first terminal device and a second terminal device have already been paired; the method comprises the following steps:
responding to a device searching instruction which is triggered by a first terminal device and used for searching the second terminal device, and acquiring state information of the second terminal device, wherein the state information comprises: first information used for representing the connection state of the second terminal equipment and the first terminal equipment, and/or second information used for representing the use state of the second terminal equipment;
judging whether equipment searching conditions are met or not according to the state information;
and if the equipment searching condition is met, sending a prompt triggering instruction to the second terminal equipment, wherein the prompt triggering instruction is used for controlling the second terminal equipment to prompt the position of the second terminal equipment.
Optionally, the second terminal device is a wearable device, and the usage status of the second terminal device includes: the second terminal equipment is worn or not worn, and the connection state of the second terminal equipment and the first terminal equipment is connected or not connected;
the device search condition at least comprises: the connection state of the second terminal device and the first terminal device is connected, and the use state of the second terminal device is not worn.
Optionally, the use status further includes a duration of time that the second terminal device is not worn;
the judging whether the equipment searching condition is met according to the state information comprises the following steps:
when the first information indicates that the connection state of the second terminal equipment and the first terminal equipment is connected and the second information indicates that the use state of the second terminal equipment is not worn, determining the duration of the second terminal equipment not being worn;
and if the duration time that the second terminal equipment is not worn reaches the preset duration time, determining that the equipment searching condition is met.
Optionally, the first terminal device and the second terminal device are connected in a bluetooth pairing manner;
the method further comprises the following steps:
responding to a login request for logging in a target account, logging in the target account through the first terminal device, wherein the target account stores Bluetooth pairing information of the second terminal device;
responding to the equipment searching instruction, and acquiring Bluetooth pairing information of the second terminal equipment;
and if the second terminal equipment is detected to be in the Bluetooth connection range of the first terminal equipment, establishing connection between the first terminal equipment and the second terminal equipment according to the Bluetooth pairing information.
Optionally, the second terminal device is an earphone device, and the earphone device at least includes: a first earpiece and/or a second earpiece;
if the device search condition is met, sending a prompt trigger instruction to the second terminal device, including:
if the equipment searching condition is met, displaying searching options; wherein the find option comprises an option to find a first earpiece and an option to find a second earpiece;
receiving a search instruction input by a user aiming at the search option, wherein the search instruction is used for indicating that the first earphone and/or the second earphone are/is searched;
and sending the prompt triggering instruction to the earphone indicated by the searching instruction.
Optionally, the method further comprises:
if the first information indicates that the connection state of the second terminal equipment and the first terminal equipment is not connected, acquiring a target position of the second terminal equipment before the second terminal equipment is disconnected with the first terminal equipment from the stored historical position information;
displaying the target position through the first terminal equipment;
judging whether the position of the first terminal equipment is within a preset range of the target position or not;
and if the position of the first terminal device is detected to be within the preset range of the target position, prompting a user to reach the target position.
Optionally, the historical location information is obtained by:
under the condition that the anti-loss function of the second terminal device is started, if the connection between the second terminal device and the first terminal device is disconnected, acquiring a first position of the first terminal device;
and determining a second position where the second terminal equipment is located according to the first position and the connection signal strength before the second terminal equipment is disconnected with the first terminal equipment, and storing the second position in the historical position information.
Optionally, the prompt trigger instruction is used to control the second terminal device to prompt the position of the second terminal device in at least one of a vibration mode, a sound mode, and a light emitting mode.
According to a second aspect of the embodiments of the present disclosure, there is provided a device for searching for a terminal device, where a first terminal device and a second terminal device have already been paired; the device comprises:
a first obtaining module, configured to obtain status information of the second terminal device in response to a device search instruction for searching the second terminal device, where the device search instruction is triggered by a first terminal device, and the status information includes: first information used for representing the connection state of the second terminal equipment and the first terminal equipment, and/or second information used for representing the use state of the second terminal equipment;
the first judging module is configured to judge whether equipment searching conditions are met or not according to the state information;
and the prompt triggering module is configured to send a prompt triggering instruction to the second terminal device if the device searching condition is met, wherein the prompt triggering instruction is used for controlling the second terminal device to prompt the position of the second terminal device.
According to a third aspect of the embodiments of the present disclosure, there is provided a device for searching for a terminal device, where a first terminal device and a second terminal device have already been paired; the device includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
responding to a device searching instruction which is triggered by a first terminal device and used for searching the second terminal device, and acquiring state information of the second terminal device, wherein the state information comprises: first information used for representing the connection state of the second terminal equipment and the first terminal equipment, and/or second information used for representing the use state of the second terminal equipment;
judging whether equipment searching conditions are met or not according to the state information;
and if the equipment searching condition is met, sending a prompt triggering instruction to the second terminal equipment, wherein the prompt triggering instruction is used for controlling the second terminal equipment to prompt the position of the second terminal equipment.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium on which computer program instructions are stored, which program instructions, when executed by a processor, implement the steps of the method for searching for a terminal device provided by the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: under the condition that the first terminal device and the second terminal device are matched, responding to a device searching instruction which is triggered by the first terminal device and used for searching the second terminal device, obtaining state information of the second terminal device, judging whether the device searching condition is met or not according to the state information, and if the device searching condition is met, sending a prompt triggering instruction to the second terminal device so as to control the second terminal device to prompt the position of the second terminal device. The state information comprises first information used for representing the connection state of the second terminal equipment and the first terminal equipment and/or second information used for representing the use state of the second terminal equipment. Therefore, when the first terminal device searches the second terminal device, the second terminal device is triggered to prompt the position of the second terminal device, and therefore the second terminal device can be found quickly and accurately.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a method for searching a terminal device according to an exemplary embodiment.
Fig. 2 is a schematic diagram of an exemplary display result of displaying a search option through a first terminal device in a search method of a terminal device according to the present disclosure.
Fig. 3 is a flowchart illustrating a method of searching for a terminal device according to another exemplary embodiment.
Fig. 4 is a block diagram illustrating a lookup apparatus of a terminal device according to an example embodiment.
Fig. 5 is a block diagram illustrating a lookup apparatus of a terminal device according to an example embodiment.
Fig. 6 is a block diagram illustrating a lookup apparatus of a terminal device according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method for searching a terminal device according to an exemplary embodiment. As shown in fig. 1, the method may include the steps of:
in step 11, in response to a device search instruction for searching for a second terminal device, which is triggered by a first terminal device, state information of the second terminal device is acquired;
in step 12, judging whether the equipment searching condition is met or not according to the state information;
in step 13, if the device search condition is satisfied, a prompt trigger instruction is sent to the second terminal device.
An application scenario of the present disclosure is first introduced. The disclosed solution aims at searching for a second terminal device and is to trigger the search for the second terminal device by a first terminal device. Thus, when the user has a need to find the second terminal device, a finding action may be triggered by the first terminal device. Exemplarily, the first terminal device may be a mobile phone, a laptop, a tablet, a POS machine, an in-vehicle computer, a smart wearable device (e.g., a smart bracelet, a smart watch, a smart headset, smart glasses), and the like. For another example, the second terminal device may be a mobile phone, a notebook computer, a tablet computer, a POS machine, an in-vehicle computer, a smart wearable device (e.g., a smart bracelet, a smart watch, a smart headset, smart glasses), and the like.
In an application scenario of the present disclosure, the first terminal device and the second terminal device have already completed pairing. Pairing between devices is the basis of device connection, and on the premise that the devices are paired, the devices can be further connected (wirelessly connected), and communication between the devices can be performed after connection. It should be noted that the connection mode between the first terminal device and the second terminal device may be, but is not limited to, zigBee (ZigBee is a term of ieee802.15.4 protocol), bluetooth, wiFi (Wireless Fidelity), or the like. Taking bluetooth communication as an example, under the condition that the bluetooth function is turned on, the first terminal device and the second terminal device need to be bluetooth paired first, and the bluetooth connection can be established only after the pairing is completed.
The method provided by the disclosure can be applied to electronic equipment with data processing capability, such as terminal equipment, servers and the like. For example, the method provided by the present disclosure may be applied to a first terminal device. In addition, if the method provided by the present disclosure is applied to other electronic devices that are not the first terminal device, the electronic device needs to have a communication capability with the first terminal device to receive the device search instruction from the first terminal device.
The steps provided by the present disclosure will be described in detail below.
As described in step 11, in response to a device search instruction for searching for the second terminal device, which is triggered by the first terminal device, the status information of the second terminal device is obtained.
Wherein the state information may include: the first information is used for representing the connection state of the second terminal equipment and the first terminal equipment, and/or the second information is used for representing the use state of the second terminal equipment.
The connection state of the second terminal device with the first terminal device may be connected or unconnected. Whether the second terminal device is connected with the first terminal device or not depends on two factors, namely whether the second terminal device is paired or not and whether the distance between the second terminal device and the first terminal device meets the communication requirement or not. For example, the communication requirement may be that the distance between the devices does not exceed the communication distance, so that, when the second terminal device is paired with the first terminal device, if the distance between the second terminal device and the first terminal device does not exceed the preset communication distance, the connection between the second terminal device and the first terminal device may be established, and the connection state at this time is connected, otherwise, if the distance between the second terminal device and the first terminal device exceeds the preset communication distance, the connection between the second terminal device and the first terminal device may not be established, and the connection state at this time is unconnected. It should be noted that the preset communication distance is related to a connection mode between the first terminal device and the second terminal device. Taking bluetooth communication as an example, bluetooth communication is also limited by communication distance, and assuming that bluetooth communication fails when the distance exceeds L and the second terminal device performs bluetooth communication with the first terminal device, then, under the condition that the bluetooth of the second terminal device and the bluetooth of the first terminal device are both turned on and the two devices have completed bluetooth pairing, if the distance between the second terminal device and the first terminal device is less than or equal to L, the two devices can establish bluetooth communication, and if the distance between the second terminal device and the first terminal device exceeds L, the two devices cannot establish bluetooth communication.
The use state of the second terminal device can reflect whether the second terminal device is being used. For example, if the second terminal device is a smartphone, it may be detected whether a screen thereof is lit up, and if the screen is lit up, it may be determined that the usage status of the second terminal device is used, and if the screen is not lit up, it may be determined that the usage status of the second terminal device is not used. For another example, if the second terminal device is a wearable device, the use state of the second terminal device may include being worn and not being worn, and accordingly, the use state of the second terminal device may be known through wearing detection.
In addition, if the second terminal device is not used, the usage status of the second terminal device may further include a duration of time during which the second terminal device is not used. For example, if the second terminal device is a wearable device, the usage state of the second terminal device may further include a duration of time that the second terminal device is worn.
In step 12, it is determined whether the device search condition is satisfied based on the status information.
Wherein, the device search condition at least comprises: the connection state of the second terminal device and the first terminal device is connected, and the use state of the second terminal device is unused. Correspondingly, if the second terminal device is a wearable device, the device search condition at least includes: the connection state of the second terminal device and the first terminal device is connected, and the use state of the second terminal device is not worn. As described above, the connection between the second terminal device and the first terminal device can be realized only on the premise that the distance between the second terminal device and the first terminal device does not exceed the communication distance, and therefore, the device search condition may be that the second terminal device is close to the first terminal device and the second terminal device is not used. For example, if the first terminal device is a mobile phone and the second terminal device is a bluetooth headset, it is determined that the device search condition is satisfied when the bluetooth headset is near the mobile phone and the bluetooth headset is not worn.
In a possible embodiment, if the second terminal device is a wearable device, step 12 may include the following steps:
when the first information indicates that the connection state of the second terminal equipment and the first terminal equipment is connected and the second information indicates that the use state of the second terminal equipment is not worn, determining the duration of the second terminal equipment not being worn;
and if the duration that the second terminal equipment is not worn reaches the preset duration, determining that the equipment searching condition is met.
That is to say, if the connection state of the second terminal device and the first terminal device is connected and the use state of the second terminal device is not worn, and this state lasts for a preset time, it can be determined that the device search condition is satisfied. Illustratively, the preset time period may be set to 3min to 5min.
In step 13, if the device search condition is satisfied, a prompt trigger instruction is sent to the second terminal device.
And the prompt triggering instruction is used for controlling the second terminal equipment to prompt the position of the second terminal equipment. Illustratively, the prompt triggering instruction is used for controlling the second terminal device to prompt the position of the second terminal device in at least one of a vibration mode, a sound mode and a light emitting mode.
In a possible embodiment, if the second terminal device is an earphone device (the earphone device includes at least a first earphone and/or a second earphone), step 13 may include the following steps:
if the equipment searching condition is met, displaying searching options;
receiving a searching instruction input by a user aiming at the searching option;
and sending a prompt trigger instruction to the earphone indicated by the search instruction.
Illustratively, the headset device may be a TWS (True Wireless Stereo) headset.
Wherein the find option may include an option to find the first earpiece and an option to find the second earpiece. For example, the search option may be displayed by the first terminal device, and an example of the display result may be as shown in fig. 2.
After the search options are displayed, the user can select at least one of the search options through operation, so that a search instruction input by the user can be received based on the operation of the user. Wherein the finding instruction may be used to instruct to find the first earphone and/or the second earphone.
And after receiving the searching instruction, immediately sending prompt trigger information to the earphone indicated by the searching instruction. For example, if the headset device includes a first headset and a second headset, and the headset indicated by the search instruction is the first headset, the prompt trigger information is sent to the first headset, but the prompt trigger information is not sent to the second headset.
By the method, the function of selecting the searched object is provided for the user by displaying the search option, so that the user is helped to accurately control the search of any earphone in the earphone equipment, and convenience is provided for the user.
It should be noted that, since the device searching condition includes that the use status of the second terminal device is not used, if the second terminal device is being used, a subsequent searching action will not be triggered, and the second terminal device will not be controlled to prompt the position of the second terminal device. Taking the second terminal device as an example of the headset device, assuming that the prompt triggering instruction is used to control the headset device to make a sound to prompt the position of the headset device, if the user wears the headset and triggers the search of the headset, the headset will not make a sound, and the hearing of the user is prevented from being damaged.
According to the technical scheme, under the condition that the first terminal device and the second terminal device are matched, the state information of the second terminal device is obtained in response to a device searching instruction which is triggered by the first terminal device and used for searching the second terminal device, whether a device searching condition is met or not is judged according to the state information, and if the device searching condition is met, a prompt triggering instruction is sent to the second terminal device so as to control the second terminal device to prompt the position of the second terminal device. The state information comprises first information used for representing the connection state of the second terminal equipment and the first terminal equipment and/or second information used for representing the use state of the second terminal equipment. Therefore, when the first terminal equipment is used for searching the second terminal equipment, the second terminal equipment is triggered to prompt the position of the second terminal equipment, and therefore the second terminal equipment can be found quickly and accurately.
Optionally, if the first terminal device and the second terminal device are paired and connected through bluetooth, the method provided by the present disclosure may further include the following steps:
the method comprises the steps that a login request for logging in a target account is responded, and the target account is logged in through first terminal equipment;
responding to the equipment searching instruction, and acquiring Bluetooth pairing information of the second terminal equipment;
and if the second terminal equipment is detected to be in the Bluetooth connection range of the first terminal equipment, establishing connection between the first terminal equipment and the second terminal equipment according to the Bluetooth pairing information.
The target account number stores Bluetooth pairing information of the second terminal device. As described above, connection between devices depends on pairing between the devices, and therefore, in this embodiment, bluetooth pairing information between the devices is associated through an account, so that the bluetooth pairing information associated with the account can be obtained as long as a corresponding account is logged in, that is, sharing and synchronization of the bluetooth pairing information are realized through the account, so that the search function of the present disclosure can be extended to multiple terminal devices through the account.
In this embodiment, before searching for the second terminal device, the target account needs to be logged in at the first terminal device, so that after the target account is logged in, if a device search instruction for searching for the second terminal device is received, the bluetooth pairing information of the second terminal device can be obtained from the bluetooth pairing information stored in the target account, thereby omitting a process of performing bluetooth pairing between the first terminal device and the second terminal device, and being beneficial to improving the search efficiency.
After obtaining the bluetooth pairing information of the second terminal device, if it is detected that the second terminal device is within the bluetooth connection range of the first terminal device, the connection between the first terminal device and the second terminal device may be established according to the bluetooth pairing information, at this time, the connection state of the second terminal device and the first terminal device is connected, and at the same time, the connection state may also be used as the state information of the second terminal device to determine whether the device search condition is satisfied, that is, used in step 12.
In one possible embodiment, as shown in fig. 3, in addition to the various steps shown in fig. 1, the method by which the present disclosure is passed may further include the steps of:
in step 31, if the first information indicates that the connection state of the second terminal device and the first terminal device is not connected, acquiring a target position of the second terminal device before the second terminal device is disconnected from the first terminal device from the stored historical position information;
in step 32, displaying the target position through the first terminal device;
in step 33, determining whether the position of the first terminal device is within a preset range of the target position;
in step 34, if it is detected that the location of the first terminal device is within the preset range of the target location, the user is prompted to reach the target location.
If the connection state of the second terminal device and the first terminal device is not connected (the device search condition is not satisfied), it indicates that the second terminal device is far away from the first terminal device, so the target position of the second terminal device before the second terminal device is disconnected from the first terminal device is obtained from the stored historical position information, so as to obtain the position information of the last previous connection of the second terminal device, and the position information is used for estimating the possible lost position of the second terminal device.
Illustratively, the historical location information may be obtained by:
under the condition that the anti-loss function of the second terminal equipment is started, if the connection between the second terminal equipment and the first terminal equipment is monitored to be disconnected, acquiring a first position of the first terminal equipment;
and determining a second position where the second terminal equipment is located according to the first position and the connection signal strength before the second terminal equipment is disconnected with the first terminal equipment, and storing the second position into historical position information.
For example, the anti-lost function may be set by the first terminal device, for example, the option of whether to open the anti-lost function is provided by the first terminal device, and the user switches the open/close state of the anti-lost function by operation. If the anti-loss function is not started, the connection state of the second terminal equipment and the first terminal equipment is not monitored.
Under the condition that the anti-lost function of the second terminal device is turned on, the monitoring of the connection state between the second terminal device and the first terminal device is turned on, and simultaneously, a Global Positioning System (GPS) function of the first terminal device is turned on. Therefore, if the connection between the second terminal device and the first terminal device is disconnected, the first position of the first terminal device is obtained through the GPS, and the first position represents the position of the first terminal device when the connection between the second terminal device and the first terminal device is disconnected.
When the second terminal device is disconnected from the first terminal device, a certain distance exists between the second terminal device and the first terminal device, that is, the distance between the second terminal device and the first terminal device exceeds the distance capable of communication, so that the second terminal device and the first terminal device are disconnected. Therefore, based on this idea, the position of the second terminal device can be further estimated from the first position of the first terminal device.
In general, the strength of the connection signal has a certain relationship with the distance between the devices, i.e., the stronger the connection signal strength, the closer the distance between the devices, the weaker the connection signal strength, and the farther the distance between the devices. Meanwhile, the correspondence between the strength of the connection signal and the distance may be generated through a plurality of experiments. Therefore, according to the first position and the strength of the connection signal before the second terminal device is disconnected from the first terminal device, and by combining the corresponding relationship between the strength of the connection signal and the distance, the distance between the second terminal device and the first terminal device when the second terminal device is disconnected from the first terminal device can be determined, and then the second position where the second terminal device is located is obtained through the first position and the determined distance, so that the second position is stored in the historical position information (can be stored in association with time).
After obtaining the target location of the second terminal device, the target location may be displayed with the first terminal device. Illustratively, the peripheral map may be displayed by the first terminal device while marking the location of the target. Meanwhile, whether the position of the first terminal device is within the preset range of the target position or not can be judged, and if the position of the first terminal device is detected to be within the preset range of the target position, a user is prompted to reach the target position. Thereby, the user can be prompted to move to the target position.
Then, after the user reaches the target location, if the second terminal device is near the target location, the connection between the second terminal device and the first terminal device is automatically established according to the existing pairing information, so that the second terminal device can be searched according to steps 11 to 13.
Through the mode, even if the distance between the first terminal device and the second terminal device is far, the second terminal device can still be searched, the searching efficiency of the equipment is improved, and the user experience is improved.
The aspects of the present disclosure will be described in detail below with reference to several specific scenarios. In the following given scenario, taking the first terminal device as a mobile phone, the second terminal device as an earphone device (including a first earphone and a second earphone), and the connection between the first terminal device and the second terminal device as a bluetooth connection as an example, at the same time, the prompt trigger instruction is used to control any earphone in the earphone device to generate a buzzer sound.
In a first scenario, the user may actively search for the headset device via a search function button provided by the handset. The distance between the earphone device and the mobile phone in the scene is short, and the distance condition of Bluetooth connection is met.
In this scenario, a user logs in a target account through a mobile phone, the mobile phone can obtain bluetooth pairing information of the headset device after logging in, and meanwhile, due to the close distance between the headset device and the mobile phone, the bluetooth connection between the headset device and the mobile phone is in a connected state. At this time, the user may trigger a function button for searching for the earphone device through the mobile phone, and accordingly, the mobile phone receives a device search instruction triggered by the user, and in response to the device search instruction, the mobile phone may display a search option (including an option for searching for the first earphone and a line selection for searching for the second earphone, which may be shown in the display content of fig. 2). Then, the user can select the search option and confirm the search object, and accordingly, the mobile phone receives the search instruction (corresponding to the first earphone and/or the second earphone selected by the user) of the user, and sends a prompt trigger instruction to the earphone indicated by the search instruction so as to control the corresponding earphone to generate a buzzer. Then, the user can find the corresponding earphone by 'recognizing positions by listening to sound'.
In the second scenario, the user may start the anti-lost function through the mobile phone to start monitoring the connection state of the second terminal device and the first terminal device, and simultaneously start the GPS function of the first terminal device. The distance between the earphone device and the mobile phone in the scene is short, and the distance condition of Bluetooth connection is met.
In this scenario, a user logs in a target account through a mobile phone, the mobile phone can obtain bluetooth pairing information of the headset device after logging in, and meanwhile, due to the close distance between the headset device and the mobile phone, the bluetooth connection between the headset device and the mobile phone is in a connected state. Meanwhile, the headset is not worn. Meanwhile, under the condition that the earphone device is connected with the mobile phone Bluetooth and the earphone is not worn, the duration of the earphone not being worn is determined. When the duration time reaches the preset duration time, the mobile phone may display the search option (including the option of searching for the first headset and the line selection of searching for the second headset, see the display content of fig. 2). Then, the user can select the search option and confirm the search object, and accordingly, the mobile phone receives the search instruction (corresponding to the first earphone and/or the second earphone selected by the user) of the user, and sends a prompt trigger instruction to the earphone indicated by the search instruction so as to control the corresponding earphone to generate a buzzer. Then, the user can find the corresponding earphone by 'listening to sound and distinguishing positions'.
In a third scenario, a user may start the anti-lost function through a mobile phone to start monitoring the connection state of the second terminal device and the first terminal device, and simultaneously start the GPS function of the first terminal device. The distance between the earphone device and the mobile phone in the scene is far, and the distance condition of Bluetooth connection is not met.
In the scene, a user logs in a target account through the mobile phone, the mobile phone can obtain the Bluetooth pairing information of the earphone device after logging in, and meanwhile, due to the fact that the earphone device is far away from the mobile phone, the Bluetooth connection between the earphone device and the mobile phone is in an unconnected state. Therefore, it is necessary to obtain a target position where the earphone device is located before the earphone device is disconnected from the mobile phone (i.e., the last previous connection) from the stored historical position information of the earphone device, and at the same time, the mobile phone can display the target position. The user can know the position where the earphone equipment is possibly located when lost by checking the earphone, when the user reaches the position close to the target position (namely, in the preset range of the target position), the user carries the mobile phone, so that the mobile phone is also in the preset range of the target position, the user can be prompted to reach the target position through the mobile phone at the moment, and the user can conveniently find the position close to the position. Meanwhile, because the distance between the mobile phone and the earphone device is short, the mobile phone and the earphone device can establish Bluetooth connection, and because the earphone is not worn, the mobile phone enters the second scene. Therefore, in the case where the headphone apparatus is connected to the cell phone bluetooth and the headphone is not worn, the duration for which the headphone is not worn is determined. When the duration reaches the preset duration, the mobile phone may display the search option (including the option of searching for the first headset and the option of searching for the second headset, see the display content in fig. 2). Then, the user can select the search option and confirm the search object, and accordingly, the mobile phone receives the search instruction (corresponding to the first earphone and/or the second earphone selected by the user) of the user, and sends a prompt trigger instruction to the earphone indicated by the search instruction so as to control the corresponding earphone to generate a buzzer. Then, the user can find the corresponding earphone by 'listening to sound and distinguishing positions'.
Therefore, in the first scene, the short-distance equipment searching function can be realized, in the second scene, the short-distance equipment anti-loss and searching function can be realized, and in the third scene, the long-distance equipment anti-loss and searching function can be realized.
Fig. 4 is a block diagram illustrating a lookup apparatus of a terminal device according to an exemplary embodiment. The first terminal equipment and the second terminal equipment are matched; the device 40 comprises:
a first obtaining module 41, configured to obtain, in response to a device search instruction for searching for the second terminal device, triggered by a first terminal device, status information of the second terminal device, where the status information includes: first information used for representing the connection state of the second terminal equipment and the first terminal equipment, and/or second information used for representing the use state of the second terminal equipment;
a first judging module 42 configured to judge whether a device search condition is satisfied according to the state information;
and a prompt triggering module 43, configured to send a prompt triggering instruction to the second terminal device if the device search condition is met, where the prompt triggering instruction is used to control the second terminal device to prompt its own position.
Optionally, the second terminal device is a wearable device, and the use state of the second terminal device includes: the second terminal equipment is worn or not worn, and the connection state of the second terminal equipment and the first terminal equipment is connected or not connected;
the device search condition at least comprises: the connection state of the second terminal device and the first terminal device is connected, and the use state of the second terminal device is not worn.
Optionally, the usage status further includes a duration of time that the second terminal device is not worn;
the first determining module 42 includes:
a determining sub-module configured to determine a duration for which the second terminal device is not worn when the first information indicates that the connection state of the second terminal device with the first terminal device is connected and the second information indicates that the usage state of the second terminal device is not worn;
the first judging module is configured to determine that the device searching condition is met if the duration that the second terminal device is not worn reaches a preset duration.
Optionally, the first terminal device and the second terminal device are connected in a bluetooth pairing manner;
the apparatus 40 further comprises:
the login module is configured to respond to a login request for logging in a target account, log in the target account through the first terminal device, wherein the target account stores Bluetooth pairing information of the second terminal device;
a second obtaining module, configured to obtain the bluetooth pairing information of the second terminal device in response to the device search instruction;
and the connection establishing module is configured to establish connection between the first terminal device and the second terminal device according to the Bluetooth pairing information if the second terminal device is detected to be in the Bluetooth connection range of the first terminal device.
Optionally, the second terminal device is an earphone device, and the earphone device at least includes: a first earphone and/or a second earphone;
the prompt triggering module 43 includes:
the display sub-module is configured to display a search option if the device search condition is met; wherein the find option comprises an option to find a first earpiece and an option to find a second earpiece;
a receiving sub-module configured to receive a search instruction input by a user for the search option, wherein the search instruction is used for instructing to search the first earphone and/or the second earphone;
and the sending submodule is configured to send the prompt triggering instruction to the earphone indicated by the search instruction.
Optionally, the apparatus 40 further comprises:
a third obtaining module, configured to obtain, from stored historical location information, a target location of the second terminal device before the second terminal device is disconnected from the first terminal device, if the first information indicates that the connection state of the second terminal device and the first terminal device is unconnected;
a display module configured to display the target location through the first terminal device;
the second judging module is configured to judge whether the position of the first terminal device is within a preset range of the target position;
and the prompting module is configured to prompt a user to reach the target position if the position of the first terminal device is detected to be within a preset range of the target position.
Optionally, the historical location information is obtained by:
the fourth obtaining module is configured to obtain the first position of the first terminal device if the disconnection between the second terminal device and the first terminal device is monitored under the condition that the anti-lost function of the second terminal device is started;
and the determining module is configured to determine a second position where the second terminal device is located according to the first position and the connection signal strength before the second terminal device is disconnected with the first terminal device, and store the second position in the historical position information.
Optionally, the prompt trigger instruction is used to control the second terminal device to prompt the position of the second terminal device in at least one of a vibration mode, a sound mode, and a light emitting mode.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
According to a third aspect of the embodiments of the present disclosure, there is provided a device for searching for a terminal device, where a first terminal device and a second terminal device have already been paired; the device includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
responding to a device searching instruction which is triggered by a first terminal device and used for searching the second terminal device, and acquiring state information of the second terminal device, wherein the state information comprises: first information used for representing the connection state of the second terminal equipment and the first terminal equipment, and/or second information used for representing the use state of the second terminal equipment;
judging whether equipment searching conditions are met or not according to the state information;
and if the equipment searching condition is met, sending a prompt triggering instruction to the second terminal equipment, wherein the prompt triggering instruction is used for controlling the second terminal equipment to prompt the position of the second terminal equipment.
The present disclosure also provides a computer-readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method for finding a terminal device provided in any of the embodiments of the present disclosure.
Fig. 5 is a block diagram illustrating a lookup apparatus 800 of a terminal device according to an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, the apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the terminal device lookup method described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 806 provides power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described terminal device searching method.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the apparatus 800 to perform the method of finding a terminal device as described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In another exemplary embodiment, a computer program product is also provided, which contains a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned method of finding a terminal device when executed by the programmable apparatus.
Fig. 6 is a block diagram illustrating a lookup apparatus 1900 of a terminal device according to an example embodiment. For example, the apparatus 1900 may be provided as a server. Referring to FIG. 6, the device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by the processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute the instructions to perform the lookup method of the terminal device described above.
The device 1900 may also include a power component 1926 configured to perform power management of the device 1900, a wired or wireless network interface 1950 configured to connect the device 1900 to a network, and an input/output (I/O) interface 1958. The device 1900 may operate based on an operating system, such as Windows Server, stored in memory 1932 TM ,Mac OS X TM ,Unix TM ,Linux TM ,FreeBSD TM Or the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. A method for searching terminal equipment is characterized in that pairing of first terminal equipment and second terminal equipment is completed; the method comprises the following steps:
responding to a device searching instruction which is triggered by a first terminal device and used for searching the second terminal device, and acquiring state information of the second terminal device, wherein the state information comprises: first information used for representing the connection state of the second terminal equipment and the first terminal equipment, and/or second information used for representing the use state of the second terminal equipment;
judging whether equipment searching conditions are met or not according to the state information;
and if the equipment searching condition is met, sending a prompt triggering instruction to the second terminal equipment, wherein the prompt triggering instruction is used for controlling the second terminal equipment to prompt the position of the second terminal equipment.
2. The method of claim 1, wherein the second terminal device is a wearable device, and wherein the usage status of the second terminal device comprises: the second terminal equipment is worn or not worn, and the connection state of the second terminal equipment and the first terminal equipment is connected or not connected;
the device search condition at least comprises: the connection state of the second terminal device and the first terminal device is connected, and the use state of the second terminal device is not worn.
3. The method of claim 2, wherein the use status further comprises a duration of time that the second terminal device is not being worn;
the judging whether the equipment searching condition is met according to the state information comprises the following steps:
when the first information indicates that the connection state of the second terminal equipment and the first terminal equipment is connected and the second information indicates that the use state of the second terminal equipment is not worn, determining the duration of the second terminal equipment not being worn;
and if the duration time that the second terminal equipment is not worn reaches the preset duration time, determining that the equipment searching condition is met.
4. The method of claim 1, wherein the first terminal device and the second terminal device are connected via bluetooth pairing;
the method further comprises the following steps:
responding to a login request for logging in a target account, logging in the target account through the first terminal device, wherein the target account stores Bluetooth pairing information of the second terminal device;
responding to the equipment searching instruction, and acquiring Bluetooth pairing information of the second terminal equipment;
and if the second terminal equipment is detected to be in the Bluetooth connection range of the first terminal equipment, establishing connection between the first terminal equipment and the second terminal equipment according to the Bluetooth pairing information.
5. The method according to claim 1, characterized in that the second terminal device is a headset device comprising at least: a first earphone and/or a second earphone;
if the device search condition is met, sending a prompt trigger instruction to the second terminal device, including:
if the equipment searching condition is met, displaying searching options; wherein the find option comprises an option to find a first earpiece and an option to find a second earpiece;
receiving a search instruction input by a user aiming at the search option, wherein the search instruction is used for indicating that the first earphone and/or the second earphone are/is searched;
and sending the prompt triggering instruction to the earphone indicated by the searching instruction.
6. The method of claim 1, further comprising:
if the first information indicates that the connection state of the second terminal equipment and the first terminal equipment is not connected, acquiring a target position of the second terminal equipment before the second terminal equipment is disconnected with the first terminal equipment from the stored historical position information;
displaying the target position through the first terminal equipment;
judging whether the position of the first terminal equipment is within a preset range of the target position or not;
and if the position of the first terminal device is detected to be within the preset range of the target position, prompting a user to reach the target position.
7. The method of claim 6, wherein the historical location information is obtained by:
under the condition that the anti-loss function of the second terminal device is started, if the connection between the second terminal device and the first terminal device is disconnected, acquiring a first position of the first terminal device;
and determining a second position where the second terminal equipment is located according to the first position and the connection signal strength before the second terminal equipment is disconnected with the first terminal equipment, and storing the second position in the historical position information.
8. The method according to any one of claims 1 to 7, wherein the prompt trigger instruction is used for controlling the second terminal device to prompt the position of the second terminal device by at least one of a vibration mode, a sound mode and a light mode.
9. A searching device of terminal equipment is characterized in that pairing of first terminal equipment and second terminal equipment is completed; the device comprises:
a first obtaining module, configured to obtain status information of the second terminal device in response to a device search instruction for searching the second terminal device, where the device search instruction is triggered by a first terminal device, and the status information includes: first information used for representing the connection state of the second terminal equipment and the first terminal equipment, and/or second information used for representing the use state of the second terminal equipment;
the first judging module is configured to judge whether equipment searching conditions are met or not according to the state information;
and the prompt triggering module is configured to send a prompt triggering instruction to the second terminal device if the device searching condition is met, wherein the prompt triggering instruction is used for controlling the second terminal device to prompt the position of the second terminal device.
10. A searching device of terminal equipment is characterized in that pairing of first terminal equipment and second terminal equipment is completed; the device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
responding to a device searching instruction which is triggered by a first terminal device and used for searching the second terminal device, and acquiring state information of the second terminal device, wherein the state information comprises: first information used for representing the connection state of the second terminal equipment and the first terminal equipment, and/or second information used for representing the use state of the second terminal equipment;
judging whether equipment searching conditions are met or not according to the state information;
and if the equipment searching condition is met, sending a prompt trigger instruction to the second terminal equipment, wherein the prompt trigger instruction is used for controlling the second terminal equipment to prompt the position of the second terminal equipment.
11. A computer-readable storage medium, on which computer program instructions are stored, which program instructions, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 8.
CN202110523185.4A 2021-05-13 2021-05-13 Method and device for searching terminal equipment and storage medium Pending CN115348570A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110523185.4A CN115348570A (en) 2021-05-13 2021-05-13 Method and device for searching terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110523185.4A CN115348570A (en) 2021-05-13 2021-05-13 Method and device for searching terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115348570A true CN115348570A (en) 2022-11-15

Family

ID=83946698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110523185.4A Pending CN115348570A (en) 2021-05-13 2021-05-13 Method and device for searching terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115348570A (en)

Similar Documents

Publication Publication Date Title
CN105828281B (en) Equipment connection method and device
EP3076716A1 (en) Method and apparatus for network access
EP3068115B1 (en) Incoming call identification
EP3125615B1 (en) Method, apparatus and system for a smart device to access a router
US20160255521A1 (en) Method and apparatus for testing a smart device
WO2017128718A1 (en) Method and device for acquiring terminal information
EP3157198A1 (en) Method and apparatus for network connection
CN109314913B (en) Access control limiting method and device
EP3435349A1 (en) Method and apparatus for processing network failure
US11647425B2 (en) Methods and devices for reducing temperature for user equipment
CN109451786B (en) Unmanned aerial vehicle management method and device and communication connection establishment method and device
US20180146420A1 (en) Method and apparatus for establishing network connection
EP3322167A1 (en) Method and device for adjusting frequencies of intercom apparatuses
EP3893594A1 (en) User device pairing method and apparatus
US20190320346A1 (en) Method and device for transmitting downlink data
US20170126888A1 (en) Method and device for making call
CN112116803B (en) Information processing method and device, electronic device and storage medium
CN106506808B (en) Method and device for prompting communication message
CN106878654B (en) Video communication method and device
CN110121148B (en) Interphone team method and device
CN111541922A (en) Method, device and storage medium for displaying interface input information
CN106550482B (en) Communication connection establishing method and device and electronic equipment
CN106922005B (en) Method and device for accessing wireless access point and computer readable storage medium
CN107105005B (en) Method and device for synchronizing data
CN106658412B (en) Positioning method and device

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