Earphone anti-lost method and device, equipment and storage medium
By obtaining identification information and location on the headset's Bluetooth module and synchronizing this information when necessary, the problem of easy drop and loss of headsets is solved, and the effect of quick search and preventing loss is achieved.
Patent Information
- Application Number
- CN202310793541.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-29
- Publication Date
- 2024-12-31
AI Technical Summary
Headphones are easily dropped and lost in daily use, and due to their small size, it is difficult to find them.
By obtaining the identification information of the headset and the current location of the headset when the Bluetooth module of the first terminal device is in the on state, and synchronizing the information, so that the second terminal device can find the headset according to the location. The method includes storing a target position in the headset, and if the current position is different from the target position, synchronizing the identification information of the headset and the current position to ensure that the second terminal device can find the headset.
It realizes the quick search of the position of the headphones, effectively preventing the loss of the headphones, avoiding increasing the power consumption of the first terminal device and frequently disturbing the second terminal device, while improving the search efficiency.
Smart Images

Figure CN119233203A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to information processing technology, and relate to but are not limited to a method and apparatus, device, and storage medium for preventing earphones from being lost. Background Art
[0002] Currently, earphones are more and more widely used. They have many advantages such as being easy to use and easy to carry. However, earphones are easy to drop or lose in daily use. Given that earphones are small in size, it is difficult to find them if they are dropped or lost by users. Summary of the invention
[0003] In view of this, the earphone anti-lost method, device, equipment, and storage medium provided in the embodiments of the present application can quickly find the location of the earphone to prevent the earphone from being lost. The earphone anti-lost method, device, equipment, and storage medium provided in the embodiments of the present application are implemented as follows:
[0004] The headset anti-lost method provided in the embodiment of the present application is applied to a first terminal device, and the method includes:
[0005] When the Bluetooth module of the first terminal device is in an on state, obtaining identification information of the headset through the Bluetooth module;
[0006] Acquire the current location of the first terminal device;
[0007] The identification information of the headset and the current location are synchronized so that the second terminal device can find the headset according to the current location after acquiring the identification information and the current location.
[0008] In some embodiments, before synchronizing the identification information of the headset and the current location, the method further includes:
[0009] Acquiring the target position stored in the headset through the Bluetooth module, wherein the frequency of the headset appearing at the target position within a preset time period is greater than or equal to a threshold;
[0010] Determining whether the current position is the same as the target position;
[0011] In a case where the current location is different from the target location, the identification information of the headset and the current location are synchronized.
[0012] In some embodiments, the method further comprises:
[0013] Acquire identification information of the second terminal device stored in the headset through the Bluetooth module;
[0014] Accordingly, synchronizing the identification information of the headset and the current location includes:
[0015] According to the identification information of the second terminal device, the identification information of the headset and the current location are sent to the second terminal device.
[0016] In some embodiments, synchronizing the identification information of the headset and the current location includes:
[0017] The identification information of the headset and the current location are uploaded to the server for storage, so that the second terminal device obtains the identification information and the current location through the server and searches for the headset according to the current location.
[0018] In some embodiments, the method further comprises:
[0019] receiving a request message sent by the second terminal device, wherein the request message is used to instruct the first terminal device to search for the headset, and the first terminal device is located at the current location;
[0020] In response to the request information, the headset is searched, and the search result is sent to the second terminal device, the search result including that the headset is searched at the current location or that the headset is not searched at the current location.
[0021] The headset anti-lost method provided in the embodiment of the present application is applied to a second terminal device, and the method includes:
[0022] Acquire identification information and a current location of the first terminal device, where the identification information and the current location are obtained synchronously by the first terminal device, and the identification information is identification information of the headset obtained through the Bluetooth module when the Bluetooth module of the first terminal device is in an on state;
[0023] The headset is searched for according to the current location.
[0024] In some embodiments, acquiring the identification information and the current location of the first terminal device includes:
[0025] Sending a search request to a server, wherein the search request includes identification information of the headset;
[0026] Receive feedback information from the server, where the feedback information includes the identification information and the current location, where the identification information and the current location are uploaded by the first terminal device to the server and stored.
[0027] In some embodiments, acquiring the identification information and the current location of the first terminal device includes:
[0028] Receive the identification information and the current location sent by the first terminal device.
[0029] In some embodiments, the method further comprises:
[0030] Sending request information to a target terminal device, where the request information is used to instruct the target terminal device to search for the headset, where the target terminal device is located at the current location, and the target terminal device includes the first terminal device and / or the third terminal device;
[0031] receiving a search result obtained by the target terminal device after searching for the headset in response to the request information, wherein the search result includes that the headset is found at the current location or that the headset is not found at the current location;
[0032] When the search result is that the headset is found at the current location, the headset is searched for according to the current location.
[0033] The present application provides an earphone anti-lost device, comprising:
[0034] an acquisition module, configured to acquire identification information of the headset through the Bluetooth module when the Bluetooth module of the first terminal device is turned on;
[0035] The acquisition module is further used to acquire the current location of the first terminal device;
[0036] The synchronization module is used to synchronize the identification information of the headset and the current location, so that the second terminal device can find the headset according to the current location after acquiring the identification information and the current location.
[0037] The present application provides an earphone anti-lost device, comprising:
[0038] an acquisition module, used to acquire identification information and a current location of a first terminal device, wherein the identification information and the current location are obtained synchronously by the first terminal device, and the identification information is identification information of the headset obtained through the Bluetooth module when the Bluetooth module of the first terminal device is in an on state;
[0039] A search module is used to search for the headset according to the current position.
[0040] The embodiment of the present application provides an earphone anti-lost system, characterized by comprising a first terminal device and a second terminal device, wherein the system comprises:
[0041] When the Bluetooth module of the first terminal device is in an on state, obtaining identification information of the headset through the Bluetooth module;
[0042] Acquire the current location of the first terminal device;
[0043] The first terminal device synchronizes the identification information of the headset and the current location;
[0044] After acquiring the identification information and the current location, the second terminal device searches for the headset according to the current location.
[0045] The computer device provided in the embodiment of the present application includes a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the method described in the embodiment of the present application is implemented.
[0046] The computer-readable storage medium provided in the embodiment of the present application stores a computer program thereon, and when the computer program is executed by a processor, the method provided in the embodiment of the present application is implemented.
[0047] The earphone anti-lost method, device, equipment and readable storage medium provided in the embodiment of the present application, when the Bluetooth module of the first terminal device is turned on, obtains the identification information of the earphone and the current position of the first terminal device through the Bluetooth module; synchronizes the identification information of the earphone and the current position through the first terminal device, so that the second terminal device can find the earphone according to the current position after obtaining the identification information and the current position. In this way, the first terminal device located at the location of the earphone can realize the senseless search for the earphone, and synchronizes the current position of the earphone, so that the second terminal device can find the earphone based on the obtained current position of the earphone, which can effectively prevent the loss of the earphone, thereby solving the technical problems raised in the background technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0049] Figure 1 A diagram of an application scenario of the headphone anti-lost method provided in an embodiment of the present application;
[0050] Figure 2 A schematic diagram of the implementation flow of the headset anti-lost method provided in an embodiment of the present application;
[0051] Figure 3 A schematic diagram of a first terminal device acquiring information provided in an embodiment of the present application;
[0052] Figure 4 A schematic diagram of the implementation flow of the headset anti-lost method provided in an embodiment of the present application;
[0053] Figure 5A schematic diagram of the implementation process of the second terminal device searching for a headset provided in an embodiment of the present application;
[0054] Figure 6 A schematic diagram of the implementation flow of the headset anti-lost method provided in an embodiment of the present application;
[0055] Figure 7 A schematic diagram of the implementation flow of the headset anti-lost method provided in an embodiment of the present application;
[0056] Figure 8 A schematic diagram of the structure of the earphone anti-lost device provided in an embodiment of the present application;
[0057] Fig. 9 A schematic diagram of the structure of the earphone anti-lost device provided in an embodiment of the present application;
[0058] Fig.10 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.
[0060] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0061] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0062] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0063] An embodiment of the present application provides a method for preventing earphones from being lost, which is applied to a terminal device. Figure 1 The present invention is an application scenario diagram of an earphone anti-loss method provided in an embodiment, wherein the application scenario includes a first terminal device 10, a second terminal device 20, an earphone 30 and a server 40.
[0064] The terminal device may include but is not limited to mobile phones, wearable devices (such as smart watches, smart bracelets, smart glasses, etc.), tablet computers, laptops, vehicle terminals, PCs (Personal Computers), etc. The headphones may include wireless headphones and wired headphones. Among them, the wireless headphones may be earplug-type, in-ear, head-mounted, earmuff-type or ear-hanging wireless headphones. The wireless headset 200 may include a first part and a second part respectively worn on the left ear and right ear of the user, which may be connected by a connecting line, such as a neckband wireless headset; or it may be two independent parts, such as a true wireless stereo (TWS) headset.
[0065] The functions implemented by the method can be implemented by calling program codes by a processor in the terminal device. Of course, the program codes can be stored in a computer storage medium. It can be seen that the terminal device at least includes a processor and a storage medium.
[0066] Figure 2 The following is a schematic diagram of the implementation process of the headset anti-lost method provided in the embodiment of the present application. Figure 2 As shown, the method may include the following steps 201 to 203:
[0067] Step 201: When the Bluetooth module of the first terminal device is in an on state, the identification information of the headset is obtained through the Bluetooth module, and the current location of the first terminal device is obtained.
[0068] In an optional embodiment, when the Bluetooth module of the first terminal device obtains the identification information of the headset, it finds the headset through the Bluetooth module, but does not establish a communication connection with the headset. In other words, when the Bluetooth module of the first terminal device is turned on, it will automatically search for electronic devices in its surroundings, and if there is a headset in the searched electronic devices, the identification information of the headset can be automatically obtained.
[0069] In this way, when the Bluetooth module of the first terminal device obtains the identification information of the headset in the turned-on state, the user using the first terminal device is unaware of it.
[0070] Here, the specific type of the identification information of the headset is not limited, such as the identification information can be the name and number of the headset. The name of the headset can be a name given by the headset owner or a default name set when the headset leaves the factory.
[0071] The Bluetooth module of the first terminal device can be traditional Bluetooth or low-power BLE Bluetooth.
[0072] For ease of understanding, here is a practical application scenario in which a first terminal device obtains identification information of a headset through a Bluetooth module. Figure 3As shown, when the Bluetooth module of the first terminal device is in the turned-on state, it can automatically search for surrounding electronic devices, such as terminal 1, terminal 2, and headset 1. When headset 1 is searched, the identification information of the headset 1 can be automatically obtained, such as the identification information is ABC.
[0073] In the embodiment of the present application, there is no limitation on the manner in which the first terminal device obtains its current location. For example, the current location may be determined through a global positioning system (GPS) built into the first terminal device.
[0074] Step 202: The first terminal device synchronizes the identification information and current location of the headset.
[0075] In an embodiment of the present application, after the first terminal device obtains the identification information of the headset and the current position of the first terminal device, the current position can be used as the current position of the headset, and the identification information and current position of the headset can be synchronized.
[0076] Here, the specific method for synchronizing the identification information and current location of the headset by the first terminal device is not limited. If the synchronization method can be step 605 in the following embodiment, it can also be step 704 in the following embodiment.
[0077] Step 203: After obtaining the identification information and the current location, the second terminal device searches for the headset according to the current location.
[0078] In an embodiment of the present application, the second terminal device may be a device that has previously established a communication connection with the headset.
[0079] Among them, when the second terminal device establishes a communication connection with the headset, it can maintain a wireless connection with the headset through wireless communication technology. In the embodiment of the present application, the specific type of wireless communication technology is not limited. For example, the wireless communication technology can be Bluetooth (BT), such as traditional Bluetooth or low-power BLE Bluetooth; it can also be a wireless local area network (WLAN), such as a wireless fidelity (WiFi) network; it can also be Zigbee, frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), or general 2.4G / 5G frequency band wireless communication technology, etc.
[0080] That is to say, the second terminal device can process audio services through the headset, such as audio playback, voice calls, etc. And the second terminal device can respond to the control instructions sent by the headset and make corresponding processing, such as switching audio tracks, pausing playback, answering calls, hanging up calls, etc.
[0081] In an embodiment of the present application, when the second terminal device obtains the identification information of the headset and the current position synchronized with the first terminal device (the current position can be represented as the current position of the headset to a certain extent), it can determine that the headset is the target headset (i.e., the headset used by the user using the second terminal device) based on the identification information of the headset, and then search for the headset according to the current position.
[0082] It should be noted that the first terminal device and the second terminal device described in the embodiments of the present application can both be devices used by the user who has lost the headset, or devices used by the user who helps find the headset. For example, if the first terminal device is device A, the second terminal device is device B, and user 1 using device B also uses headset 1, if user 1 drops or loses headset 1, then the first terminal device (device A) is the device that helps find the headset, and the second terminal device (device B) is the device used by the user who lost the headset. If user 2 using device A also uses headset 2, if user 2 drops or loses headset 2, then the second terminal device (device B) is the device that helps find the headset, and the first terminal device (device A) is the device used by the user who lost the headset.
[0083] In an embodiment of the present application, the earphone may also be provided with an anti-loss structure such as a buckle, so that the earphone can be hung on items such as a key chain for anti-loss management.
[0084] In the embodiment of the present application, when the Bluetooth module of the first terminal device is turned on, the identification information of the headset and the current location of the first terminal device are obtained through the Bluetooth module; the identification information of the headset and the current location are synchronized through the first terminal device, so that the second terminal device can find the headset according to the current location after obtaining the identification information and the current location. In this way, the first terminal device located at the location of the headset can realize the senseless search for the headset, and synchronize the current location of the headset, so that the second terminal device can find the headset based on the acquired current location of the headset, which can effectively prevent the loss of the headset.
[0085] Figure 4 The following is a schematic diagram of the implementation process of the headset anti-lost method provided in the embodiment of the present application. Figure 4 As shown, the method may include the following steps 401 to 404:
[0086] Step 401: When the Bluetooth module of the first terminal device is in an on state, the identification information of the headset is obtained through the Bluetooth module, and the current location of the first terminal device is obtained.
[0087] Step 402: The first terminal device obtains the target position stored in the headset through the Bluetooth module, and the frequency of the headset appearing at the target position within a preset time period is greater than or equal to a threshold.
[0088] It is understandable that when using headphones, users may use them frequently in multiple areas, such as using headphones in the office, using headphones at home, using headphones in the classroom, etc. If the user is currently at home but the headphones are left in the office, it means that the user's headphones are not lost.
[0089] In this case, if the first terminal device located in the office frequently obtains the identification information and the current location of the headset and synchronizes them, the power consumption of the first terminal device will increase, and the second terminal device will be frequently disturbed.
[0090] Based on this, in an embodiment of the present application, the first terminal device can also obtain the target location stored in the headset through the Bluetooth module, and the target location is a location where the headset often appears, such as an office, bedroom, etc.
[0091] Of course, the target position may be one or more, and the target position may also be updated according to the user's habit of using the headset.
[0092] Here, the manner in which the first terminal device obtains the stored target location in the headset through the Bluetooth module is not limited, and it may be the same as the manner in which the first terminal device obtains the identification information of the headset, which will not be described in detail here.
[0093] It should be noted that in the embodiment of the present application, there is no limitation on the timing of obtaining the identification information of the headset, the current location of the first terminal device, and the target location, which can be obtained simultaneously or successively. When obtaining successively, there is no limitation on the order of obtaining the above information.
[0094] Step 403, determining whether the current position is the same as the target position; if the current position is different from the target position, synchronizing the identification information of the headset and the current position.
[0095] When the first terminal device detects that its current location is the same as the target location stored in the acquired headset, it indicates that the current location of the headset is a location where the user using the headset frequently appears. In this case, the identification information and current location of the headset will not be synchronized to avoid increasing the power consumption of the first terminal device and avoiding frequent disturbance of the second terminal device.
[0096] When the first terminal device detects that its current location is different from the target location stored in the acquired headset, it indicates that the headset may be in a lost state. At this time, the first terminal device can synchronize the identification information and current location of the headset so that the second terminal device can find the headset based on the synchronized information.
[0097] Here, the specific method for synchronizing the identification information and current location of the headset by the first terminal device is not limited. If the synchronization method can be step 605 in the following embodiment, it can also be step 704 in the following embodiment.
[0098] Step 404: After obtaining the identification information and the current location, the second terminal device searches for the headset according to the current location.
[0099] In the embodiment of the present application, there is no limitation on the way in which the second terminal device searches for the headset.
[0100] For example, in some embodiments, after obtaining the current location, the second terminal device can directly go to the current location to search for the headset.
[0101] However, it is understandable that when the second terminal device obtains the identification information of the headset and the current location synchronized with the first terminal device, the headset may no longer be at the current location (such as being picked up by someone, etc.). Therefore, if the second terminal device goes directly to the current location to look for the headset after obtaining the identification information and the current location, it may be a wasted trip, resulting in a waste of time.
[0102] Based on this, in some other embodiments, after obtaining the identification information and the current location, the second terminal device may also perform the following steps 501 to 503 to search for the headset:
[0103] Step 501: The second terminal device sends a request message to a target terminal device, where the request message is used to instruct the target terminal device to search for a headset. The target terminal device is located at a current position, and the target terminal device includes the first terminal device and / or the third terminal device.
[0104] Here, after obtaining the current position of the headset synchronized with the first terminal device, the second terminal device may send a request message to the first terminal device located at the current position, requesting the first terminal device to search for the headset again to determine whether the headset is still at the current position; alternatively, the second terminal device may also send a request message to a third terminal device located at the current position, requesting the third terminal device to search for the headset again to determine whether the headset is still at the current position.
[0105] Step 502: Receive search results obtained by the target terminal device after searching for the headset in response to the request information, where the search results include finding the headset at the current location or not finding the headset at the current location.
[0106] Here, after receiving the request information sent by the second terminal device, the target terminal device can search for the headset in response to the request information and send the search results to the second terminal device, where the search results include finding the headset at the current location or not finding the headset at the current location.
[0107] The target terminal device includes a first terminal device and / or a third terminal device.
[0108] Step 503: When the search result indicates that the headset is found at the current location, the second terminal device searches for the headset according to the current location.
[0109] When the target terminal device reports to the second terminal device that it has found the headset at the current location, the second terminal device can determine that the headset has not left the current location and can go to the current location to search for the headset. In this way, the search efficiency can be effectively improved, and the user of the second terminal device can avoid wasting time searching.
[0110] In the embodiment of the present application, when the Bluetooth module of the first terminal device is turned on, the identification information of the headset, the target location stored in the headset, and the current location of the first terminal device are obtained through the Bluetooth module; it is determined whether the target location and the current location are the same, and if they are different, the identification information and the current location of the headset are synchronized, so that the second terminal device can find the headset according to the current location after obtaining the identification information and the current location. In this way, while preventing the headset from being lost, it also avoids increasing the power consumption of the first terminal device and avoiding frequent disturbances to the second terminal device.
[0111] Figure 6 The following is a schematic diagram of the implementation process of the headset anti-lost method provided in the embodiment of the present application. Figure 6 As shown, the method may include the following steps 601 to 606:
[0112] Step 601: When the Bluetooth module of the first terminal device is in an on state, the identification information of the headset is obtained through the Bluetooth module, and the current location of the first terminal device is obtained.
[0113] Step 602: The first terminal device obtains identification information of the second terminal device stored in the headset through the Bluetooth module.
[0114] In the embodiment of the present application, there is no limitation on the type of the identification information of the second terminal device obtained, for example, the identification information may be the name, number, model, etc. of the second terminal device.
[0115] Step 603: The first terminal device obtains the target position stored in the headset through the Bluetooth module, and the frequency of the headset appearing at the target position within a preset time period is greater than or equal to a threshold.
[0116] In the embodiment of the present application, there is no limitation on the timing of obtaining the identification information of the headset, the current location of the first terminal device, the identification information of the second terminal device, and the target location, and they can be obtained simultaneously or successively. When obtaining successively, there is no limitation on the order of obtaining the above information.
[0117] Step 604: The first terminal device determines whether the current location is the same as the target location.
[0118] Step 605: When the current location of the first terminal device is different from the target location, the first terminal device sends the identification information of the headset and the current location to the second terminal device according to the identification information of the second terminal device.
[0119] Here, when the first terminal device determines that the current position of the headset is different from the acquired target position stored in the headset, it can directly send the acquired identification information of the headset and the current position of the headset to the second terminal device based on the identification information of the second terminal device.
[0120] Step 606: After obtaining the identification information and the current location, the second terminal device searches for the headset according to the current location.
[0121] Here, when searching for the earphone, the second terminal device may directly go to the current location to search for the earphone, or may search for the earphone by implementing the above steps 501 to 503.
[0122] In the embodiment of the present application, when the Bluetooth module of the first terminal device is turned on, the identification information of the headset, the target location stored in the headset, the identification information of the second terminal device, and the current location of the first terminal device are obtained through the Bluetooth module; and when it is determined that the target location and the current location are different, the identification information and the current location of the headset are sent to the second terminal device according to the identification information of the second terminal device, so that the second terminal device can find the headset according to the current location after obtaining the identification information and the current location. In this way, the second terminal device can quickly find the headset.
[0123] Figure 7 The following is a schematic diagram of the implementation process of the headset anti-lost method provided in the embodiment of the present application. Figure 7 As shown, the method may include the following steps 701 to 707:
[0124] Step 701: When the Bluetooth module of the first terminal device is in an on state, the identification information of the headset is obtained through the Bluetooth module, and the current location of the first terminal device is obtained.
[0125] Step 702: The first terminal device obtains the target position stored in the headset through the Bluetooth module, and the frequency of the headset appearing at the target position within a preset time period is greater than or equal to a threshold.
[0126] Step 703, determining whether the current position is the same as the target position.
[0127] Step 704: When the current location is different from the target location, the first terminal device uploads the identification information of the headset and the current location to the server for storage.
[0128] Step 705: The second terminal device sends a search request to the server, where the search request includes identification information of the headset.
[0129] In the embodiment of the present application, after the first terminal device determines that the current location is different from the target location, the obtained identification information of the headset and the current location of the headset can also be uploaded to the server for storage. In this way, when the user of the second terminal device finds that the headset may be lost, a search request can be sent to the server to find out whether there is location information uploaded by other terminal devices from the server. If the server stores location information uploaded by other terminal devices, the headset can be found based on the obtained current location.
[0130] Step 706: The second terminal device receives feedback information from the server, where the feedback information includes identification information and current location.
[0131] Step 707: After obtaining the identification information and the current location, the second terminal device searches for the headset according to the current location.
[0132] Here, when searching for the earphone, the second terminal device may directly go to the current location to search for the earphone, or may search for the earphone by implementing the above steps 501 to 503.
[0133] In the embodiment of the present application, when the Bluetooth module of the first terminal device is turned on, the identification information of the headset, the target location stored in the headset, and the current location of the first terminal device can be obtained through the Bluetooth module; and when it is determined that the target location and the current location are different, the identification information of the headset and the current location are uploaded to the server for storage, so that the second terminal device obtains the identification information and the current location through the server, and searches for the headset according to the current location. In this way, the second terminal device can quickly find the headset.
[0134] It should be understood that, although the steps in the above-mentioned flowcharts are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flowcharts may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0135] Based on the foregoing embodiments, an embodiment of the present application provides an earphone anti-loss device, which includes the modules included and the units included in the modules, which can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0136] Figure 8 A schematic diagram of the structure of an earphone anti-lost device provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the device 800 includes an acquisition module 801 and a synchronization module 802, wherein:
[0137] The acquisition module 801 is used to acquire the identification information of the headset through the Bluetooth module when the Bluetooth module of the first terminal device is turned on;
[0138] The acquisition module 801 is further used to acquire the current location of the first terminal device;
[0139] The synchronization module 802 is used to synchronize the identification information of the headset and the current location, so that the second terminal device can find the headset according to the current location after obtaining the identification information and the current location.
[0140] In some embodiments, the device also includes a determination module, an acquisition module 801, which is also used to obtain the target position stored in the headset through the Bluetooth module, and the frequency of the headset appearing at the target position within a preset time period is greater than or equal to a threshold; the determination module is used to determine whether the current position is the same as the target position; and the synchronization module 802 is used to synchronize the identification information of the headset and the current position when the current position is different from the target position.
[0141] In some embodiments, the acquisition module 801 is also used to obtain the identification information of the second terminal device stored in the headset through the Bluetooth module; the synchronization module 802 is specifically used to send the identification information of the headset and the current location to the second terminal device according to the identification information of the second terminal device.
[0142] In some embodiments, the synchronization module 802 is further specifically used to upload the identification information of the headset and the current location to the server for storage, so that the second terminal device obtains the identification information and the current location through the server, and searches for the headset according to the current location.
[0143] In some embodiments, the device also includes a receiving module and a responding module, the receiving module is used to receive a request message sent by the second terminal device, the request message is used to instruct the first terminal device to search for the headset, and the first terminal device is located at the current location; the responding module is used to search for the headset in response to the request message and send the search result to the second terminal device, the search result includes that the headset is searched at the current location or the headset is not searched at the current location.
[0144] Fig. 9 A schematic diagram of the structure of another earphone anti-lost device provided in an embodiment of the present application is shown in FIG. Fig. 9 As shown, the device 900 includes an acquisition module 901 and a search module 902, wherein:
[0145] An acquisition module 901 is used to acquire identification information and a current location of a first terminal device, where the identification information and the current location are obtained synchronously by the first terminal device, and the identification information is identification information of the headset obtained through the Bluetooth module when the Bluetooth module of the first terminal device is turned on;
[0146] The searching module 902 is configured to search for the headset according to the current location.
[0147] In some embodiments, the device also includes a sending module and a receiving module, the sending module is used to send a search request to the server, the search request includes the identification information of the headset; the receiving module is used to receive feedback information from the server, the feedback information includes the identification information and the current location, the identification information and the current location are uploaded by the first terminal device to the server for storage.
[0148] In some embodiments, the receiving module is further used to receive the identification information and the current location sent by the first terminal device.
[0149] In some embodiments, the sending module is also used to send a request message to a target terminal device, wherein the request message is used to instruct the target terminal device to search for the headset, the target terminal device is located at the current location, and the target terminal device includes the first terminal device and / or the third terminal device; the receiving module is also used to receive a search result obtained after the target terminal device searches for the headset in response to the request message, wherein the search result includes that the headset is searched for at the current location or that the headset is not searched for at the current location; the searching module 902 is also used to search for the headset according to the current location when the search result is that the headset is searched for at the current location.
[0150] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0151] It should be noted that in the embodiments of this application Figure 8 and Fig. 9 The division of modules in the headphone anti-lost device shown is schematic and is only a logical functional division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. It may also be implemented in the form of a combination of software and hardware.
[0152] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0153] The embodiment of the present application provides an earphone anti-lost system, including a first terminal device and a second terminal device, wherein the system includes:
[0154] When the Bluetooth module of the first terminal device is in an on state, obtaining identification information of the headset through the Bluetooth module;
[0155] Acquire the current location of the first terminal device;
[0156] The first terminal device synchronizes the identification information of the headset and the current location;
[0157] After acquiring the identification information and the current location, the second terminal device searches for the headset according to the current location.
[0158] The embodiment of the present application provides a computer device, which may be a server, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.
[0159] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.
[0160] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.
[0161] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0162] In one embodiment, the headset anti-lost device provided in the present application can be implemented in the form of a computer program. Fig.10 The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the above-mentioned device. The computer program composed of various program modules enables the processor to execute the steps in the method of each embodiment of the present application described in this specification.
[0163] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0164] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.
[0165] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0166] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0167] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0168] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0169] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0170] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0171] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0172] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0173] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0174] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0175] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for preventing earphones from being lost, characterized in that: Applied to a first terminal device, the method includes: When the Bluetooth module of the first terminal device is in an on state, obtaining identification information of the headset through the Bluetooth module; Acquire the current location of the first terminal device; The identification information of the headset and the current location are synchronized so that the second terminal device can find the headset according to the current location after acquiring the identification information and the current location.
2. The method according to claim 1, characterized in that Before synchronizing the identification information of the headset and the current location, the method further includes: Acquiring the target position stored in the headset through the Bluetooth module, wherein the frequency of the headset appearing at the target position within a preset time period is greater than or equal to a threshold; Determining whether the current position is the same as the target position; In a case where the current location is different from the target location, the identification information of the headset and the current location are synchronized.
3. The method according to any one of claims 1 or 2, characterized in that: The method further comprises: Acquire identification information of the second terminal device stored in the headset through the Bluetooth module; Accordingly, synchronizing the identification information of the headset and the current location includes: According to the identification information of the second terminal device, the identification information of the headset and the current location are sent to the second terminal device.
4. The method according to any one of claims 1 or 2, characterized in that: The synchronizing the identification information of the headset and the current location includes: The identification information of the headset and the current location are uploaded to the server for storage, so that the second terminal device obtains the identification information and the current location through the server and searches for the headset according to the current location.
5. The method according to claim 4, characterized in that The method further comprises: receiving a request message sent by the second terminal device, wherein the request message is used to instruct the first terminal device to search for the headset, and the first terminal device is located at the current location; In response to the request information, the headset is searched, and the search result is sent to the second terminal device, the search result including that the headset is searched at the current location or that the headset is not searched at the current location.
6. A method for preventing earphones from being lost, characterized in that: Applied to a second terminal device, the method includes: Acquire identification information and a current location of the first terminal device, where the identification information and the current location are obtained synchronously by the first terminal device, and the identification information is identification information of the headset obtained through the Bluetooth module when the Bluetooth module of the first terminal device is in an on state; The headset is searched for according to the current location.
7. The method according to claim 6, characterized in that The acquiring the identification information and the current location of the first terminal device includes: Sending a search request to a server, wherein the search request includes identification information of the headset; Receive feedback information from the server, where the feedback information includes the identification information and the current location, where the identification information and the current location are uploaded by the first terminal device to the server and stored.
8. The method according to claim 6, characterized in that The acquiring the identification information and the current location of the first terminal device includes: Receive the identification information and the current location sent by the first terminal device.
9. The method according to claim 6, characterized in that The method further comprises: Sending request information to a target terminal device, where the request information is used to instruct the target terminal device to search for the headset, where the target terminal device is located at the current location, and the target terminal device includes the first terminal device and / or the third terminal device; receiving a search result obtained by the target terminal device after searching for the headset in response to the request information, wherein the search result includes that the headset is found at the current location or that the headset is not found at the current location; When the search result is that the headset is found at the current location, the headset is searched for according to the current location.
10. An earphone anti-lost device, characterized in that: include: an acquisition module, configured to acquire identification information of the headset through the Bluetooth module when the Bluetooth module of the first terminal device is turned on; The acquisition module is further used to acquire the current location of the first terminal device; The synchronization module is used to synchronize the identification information of the headset and the current location, so that the second terminal device can find the headset according to the current location after acquiring the identification information and the current location.
11. An earphone anti-lost system, characterized in that: The system comprises a first terminal device and a second terminal device, wherein the system comprises: When the Bluetooth module of the first terminal device is in an on state, obtaining identification information of the headset through the Bluetooth module; Obtaining the current location of the first terminal device; The first terminal device synchronizes the identification information of the headset and the current location; After acquiring the identification information and the current location, the second terminal device searches for the headset according to the current location.
12. A computer device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, wherein: When the processor executes the program, the steps of the method according to any one of claims 1 to 9 are implemented.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
