Data processing method, device, equipment, storage medium and program

By obtaining Bluetooth signal strength information and comparing distance differences, we can judge whether the Bluetooth headset is lost, and notifying the user through reminder, solving the problem of the user losing the headset without knowing it when wearing Bluetooth headsets, and realizing the function of timely detection and reminding.

CN114339589BActive Publication Date: 2025-02-28SPREADTRUM COMMUNICATION (SHANGHAI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111361298.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-17
Publication Date
2025-02-28
Estimated Expiration
2041-11-17

Smart Images

  • Figure CN114339589B_ABST
    Figure CN114339589B_ABST
Patent Text Reader

Abstract

The present application provides a data processing method, apparatus, device, storage medium and program, the method comprising: obtaining the Bluetooth signal strength information corresponding to the current moment, the Bluetooth signal strength information comprising at least one of the following: the first Bluetooth signal strength between the first headset and the second headset, the second Bluetooth signal strength between the first headset and the terminal device, and the third Bluetooth signal strength between the second headset and the terminal device; determining the current distance information according to the Bluetooth signal strength information, the current distance information comprising at least one of the following: the first distance between the first headset and the second headset, the second distance between the first headset and the terminal device, and the third distance between the second headset and the terminal device; determining whether the first headset or the second headset is lost according to the current distance information. Through the above process, it is possible to detect in real time whether the headset is lost, avoiding the situation where the headset is lost without knowing it.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a data processing method, device, equipment, storage medium and program. Background Art

[0002] With the progress of society and the development of communication technology, Bluetooth headsets have become an indispensable daily necessity in people's lives.

[0003] At present, in order to make it more convenient for users to use Bluetooth headsets, more and more headsets are free of headphone cables. For example, a True Wireless Stereo (TWS) Bluetooth headset includes a left earphone and a right earphone, and there is no connecting wire between the left earphone and the right earphone.

[0004] However, when users wear Bluetooth headsets when traveling, they often lose their headsets without realizing it. Summary of the invention

[0005] The present invention provides a data processing method, device, equipment, storage medium and program, which can timely detect whether an earphone is lost.

[0006] In a first aspect, the present application provides a data processing method, which is applied to a Bluetooth communication system, wherein the Bluetooth communication system comprises: a first headset, a second headset and a terminal device, and the method comprises:

[0007] Acquire Bluetooth signal strength information corresponding to the current moment, where the Bluetooth signal strength information includes at least one of the following: a first Bluetooth signal strength between the first headset and the second headset, a second Bluetooth signal strength between the first headset and the terminal device, and a third Bluetooth signal strength between the second headset and the terminal device;

[0008] Determine current distance information according to the Bluetooth signal strength information, where the current distance information includes at least one of the following: a first distance between the first headset and the second headset, a second distance between the first headset and the terminal device, and a third distance between the second headset and the terminal device;

[0009] Determine whether the first earphone or the second earphone is lost according to the current distance information.

[0010] In a possible implementation, the Bluetooth signal strength information includes: the first Bluetooth signal strength, the second Bluetooth signal strength, and the third Bluetooth signal strength; and determining the current distance information according to the Bluetooth signal strength information includes:

[0011] determining a first distance between the first headset and the second headset according to the first Bluetooth signal strength;

[0012] Determining a second distance between the first headset and the terminal device according to the second Bluetooth signal strength;

[0013] A third distance between the second headset and the terminal device is determined according to the third Bluetooth signal strength.

[0014] In a possible implementation manner, determining whether the first headset or the second headset is lost according to the current distance information includes:

[0015] Acquire historical distance information corresponding to a historical moment, the historical distance information comprising: a fourth distance between the first earphone and the second earphone, a fifth distance between the first earphone and the terminal device, and a sixth distance between the second earphone and the terminal device;

[0016] Determine difference information between the current distance information and the historical distance information, the difference information comprising: a first difference between the first distance and the fourth distance, a second difference between the second distance and the fifth distance, and a third difference between the third distance and the sixth distance;

[0017] Determine whether the first headset or the second headset is lost according to the difference information.

[0018] In a possible implementation manner, determining whether the first headset or the second headset is lost according to the difference information includes:

[0019] If the first difference is greater than or equal to a first threshold, and the second difference is greater than or equal to a second threshold, it is determined that the first earphone is lost; or,

[0020] If the first difference is greater than or equal to a first threshold, and the third difference is greater than or equal to a second threshold, it is determined that the second earphone is lost.

[0021] In a possible implementation manner, determining whether the first headset or the second headset is lost according to the current distance information includes:

[0022] If the first distance is greater than or equal to a first distance threshold, and the second distance is greater than or equal to a second distance threshold, it is determined that the first earphone is lost; or,

[0023] If the first distance is greater than or equal to a first distance threshold, and the third distance is greater than or equal to a second distance threshold, it is determined that the second earphone is lost.

[0024] In a possible implementation, the method is applied to the first headset to obtain Bluetooth signal strength information corresponding to the current moment, including:

[0025] receiving a first Bluetooth signal sent by the second headset, and determining a signal strength of the first Bluetooth signal as the first Bluetooth signal strength;

[0026] receiving a second Bluetooth signal sent by the terminal device, and determining a signal strength of the second Bluetooth signal as the second Bluetooth signal strength;

[0027] Receive the third Bluetooth signal strength sent by the second headset, where the third Bluetooth signal strength is the signal strength of the third Bluetooth signal received by the second headset from the terminal device.

[0028] In a possible implementation manner, if it is determined that the first headset is lost according to the current distance information, the method further includes at least one of the following:

[0029] Controlling the first earphone to emit a sound of a preset frequency;

[0030] Controlling the indicator light of the first earphone to flash;

[0031] The current distance information is sent to the terminal device, where the current distance information is used to instruct the terminal device to determine and display the location information of the first headset.

[0032] In a possible implementation manner, if it is determined that the second headset is lost according to the current distance information, the method further includes at least one of the following:

[0033] Controlling the first earphone to voice broadcast a first prompt message, where the first prompt message is used to prompt a user that the second earphone is lost;

[0034] The current distance information is sent to the terminal device, where the current distance information is used to instruct the terminal device to determine and display the location information of the second headset.

[0035] In a possible implementation, the method is applied to the terminal device to obtain Bluetooth signal strength information corresponding to the current moment, including:

[0036] receiving the first Bluetooth signal strength sent by the first headset, where the first Bluetooth signal strength is the signal strength of the first Bluetooth signal received by the first headset from the second headset;

[0037] receiving a second Bluetooth signal sent by the first headset, and determining a signal strength of the second Bluetooth signal as the second Bluetooth signal strength;

[0038] A third Bluetooth signal sent by the second headset is received, and a signal strength of the third Bluetooth signal is determined as the third Bluetooth signal strength.

[0039] In a possible implementation manner, if it is determined that the first headset is lost according to the current distance information, the method further includes:

[0040] Determining the position information of the first earphone according to the current distance information;

[0041] A notification message is displayed, where the notification message includes the location information of the first headset.

[0042] In a second aspect, the present application provides a data processing device, which is applied to a Bluetooth communication system, wherein the Bluetooth communication system comprises: a first headset, a second headset and a terminal device, and the device comprises:

[0043] an acquisition module, configured to acquire Bluetooth signal strength information corresponding to a current moment, wherein the Bluetooth signal strength information includes at least one of the following: a first Bluetooth signal strength between the first headset and the second headset, a second Bluetooth signal strength between the first headset and the terminal device, and a third Bluetooth signal strength between the second headset and the terminal device;

[0044] A first determining module, configured to determine current distance information according to the Bluetooth signal strength information, wherein the current distance information includes at least one of the following: a first distance between the first headset and the second headset, a second distance between the first headset and the terminal device, and a third distance between the second headset and the terminal device;

[0045] The second determining module is used to determine whether the first earphone or the second earphone is lost according to the current distance information.

[0046] In a third aspect, the present application provides a Bluetooth headset, comprising: a processor, and a memory communicatively connected to the processor;

[0047] The memory stores computer-executable instructions;

[0048] The processor executes the computer-executable instructions stored in the memory to implement the method as described in the first aspect and any possible implementation manner of the first aspect.

[0049] In a fourth aspect, the present application provides a terminal device, comprising: a processor, and a memory communicatively connected to the processor;

[0050] The memory stores computer-executable instructions;

[0051] The processor executes the computer-executable instructions stored in the memory to implement the method as described in the first aspect and any possible implementation manner of the first aspect.

[0052] In a fifth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the method described in the first aspect and any possible implementation method of the first aspect.

[0053] In a sixth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the method described in the first aspect and any possible implementation method of the first aspect.

[0054] The data processing method, apparatus, device, storage medium and program provided in the present application can determine the positional relationship among the terminal device, the first earphone and the second earphone according to the Bluetooth signal strength among the terminal device, the first earphone and the second earphone, and then detect whether the first earphone or the second earphone is lost according to the positional relationship. In this way, the loss of the earphone can be detected in time, avoiding the problem of the earphone being lost without the user knowing it. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 A schematic diagram of a Bluetooth communication system provided in an embodiment of the present application;

[0056] FIG. 2A to FIG. 2D A schematic diagram of a group of display interfaces provided in an embodiment of the present application;

[0057] Figure 3 A schematic diagram of the Bluetooth communication process provided in an embodiment of the present application;

[0058] Figure 4 A flowchart of a data processing method provided in an embodiment of the present application;

[0059] Figure 5 A schematic diagram of the positional relationship between the first earphone and the second earphone provided in an embodiment of the present application;

[0060] Figure 6 A schematic diagram of the positional relationship between the first headset and the terminal device provided in an embodiment of the present application;

[0061] Figure 7 A schematic diagram of the positional relationship between the first earphone, the second earphone, and the terminal device provided in an embodiment of the present application;

[0062] Figure 8 A schematic diagram of the positional relationship between a first headset, a second headset, and a terminal device provided in an embodiment of the present application;

[0063] Fig. 9 A flowchart of another data processing method provided in an embodiment of the present application;

[0064] Fig.10 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application;

[0065] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0067] The terms "first", "second", "third", "fourth", etc. (if any) in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. The execution order of each step in the method provided in this application is only an example. There may be other orders in actual implementation, and this application is not limited. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0068] Figure 1 A schematic diagram of a Bluetooth communication system provided in an embodiment of the present application. Figure 1 As shown, the Bluetooth communication system includes a terminal device 10 and a Bluetooth headset 20, and the terminal device 10 and the Bluetooth headset 20 are connected via Bluetooth.

[0069] The Bluetooth headset is a headset that supports the Bluetooth communication protocol. The Bluetooth headset includes a first headset and a second headset. The first headset is a left headset and the second headset is a right headset; or the first headset is a right headset and the second headset is a left headset. The first headset and the second headset are both provided with a Bluetooth module, and data can be transmitted between the first headset and the second headset via the Bluetooth protocol. Data can be transmitted between the first headset and the terminal device via the Bluetooth protocol. Data can be transmitted between the second headset and the terminal device via the Bluetooth protocol.

[0070] The Bluetooth headset in the embodiment of the present application may be a TWS Bluetooth headset. From the appearance, there is no connecting wire between the first headset and the second headset, which has the advantages of being easy to carry and easy to use.

[0071] The terminal devices in the embodiments of the present application include but are not limited to mobile phones, laptop computers, tablet computers, vehicle-mounted devices, wearable devices, etc. The terminal devices also support the Bluetooth communication protocol.

[0072] For ease of understanding, the following uses a mobile phone as an example to describe the process of establishing a Bluetooth connection between a terminal device and a Bluetooth headset. The process of establishing a Bluetooth connection between a terminal device and a Bluetooth headset includes three stages: scanning, pairing, and establishing a Bluetooth connection. FIG. 2A to FIG. 2D Provide detailed explanation.

[0073] FIG. 2A to FIG. 2D A schematic diagram of a set of display interfaces provided in an embodiment of the present application. For example, Figure 2A As shown, select "Bluetooth" in the terminal device's setting interface to enter the Bluetooth setting interface. The Bluetooth setting interface is as follows Figure 2B See Figure 2B When the terminal device detects that the user has turned on the Bluetooth option, the terminal device turns on the Bluetooth function. In some scenarios, after the terminal turns on the Bluetooth function, it can find nearby Bluetooth devices that can be paired, and display the scanned Bluetooth devices in the "Available Devices" list. For example, Figure 2B The example is a situation where the current terminal device scans "Bluetooth headset C". This stage is called the scanning stage.

[0074] In some scenarios, when the terminal device detects that the user clicks on a Bluetooth device in the "Available Devices" list, the terminal will pair with the Bluetooth device. Figure 2C As shown, when the terminal device detects that the user clicks "Bluetooth headset C" in the "Available devices" list, the terminal device pairs with the Bluetooth headset C. If the pairing is successful, the "Bluetooth headset C" is displayed in the "Paired devices" list, as shown in FIG. Figure 2D This phase is called the pairing phase.

[0075] In some scenarios, if the terminal device has previously established a Bluetooth connection with another Bluetooth device, the Bluetooth device that has previously established a Bluetooth connection will be displayed in the "Paired Devices" list. FIG. 2B to FIG. 2D , the Bluetooth device B that has established a Bluetooth connection is also displayed in the "Paired Devices" list.

[0076] In some scenarios, when the terminal device detects that the user clicks on a Bluetooth device in the "Paired Devices" list, the terminal device will establish a Bluetooth connection with the Bluetooth device. Figure 2D As shown, when the terminal device detects that the user clicks "Bluetooth headset C" in the "pairable devices" list, the terminal device establishes a Bluetooth connection with the Bluetooth headset C. After the Bluetooth connection is successfully established, audio data can be transmitted between the terminal device and the Bluetooth headset C. This stage is called the Bluetooth connection establishment stage.

[0077] The interaction processes between the terminal device and the Bluetooth headset described in the embodiments of the present application are all performed after the terminal device and the Bluetooth headset establish a Bluetooth connection.

[0078] It should be noted that FIG. 2A to FIG. 2D The display interfaces shown are only some examples. The display interfaces and operation modes corresponding to different terminal devices may be different, and this embodiment does not limit this.

[0079] After the terminal device establishes a Bluetooth connection with the Bluetooth headset, Bluetooth signals can be transmitted between the terminal device and the Bluetooth headset. Figure 3 This is a schematic diagram of the Bluetooth communication process provided by the embodiment of the present application. Figure 3 As shown, Bluetooth signals can be transmitted between any two of the terminal device, the first headset, and the second headset.

[0080] For example, in a scenario where a user listens to music or makes a call through a Bluetooth headset, the Bluetooth signal transmitted between the terminal device and the Bluetooth headset may carry audio data.

[0081] For example, in a scenario where the user is not listening to music or making a call through a Bluetooth headset, the Bluetooth signal transmitted between the terminal device and the Bluetooth headset may be an empty packet signal or a heartbeat signal, etc. In this scenario, the Bluetooth signal is used to keep the Bluetooth connection alive. By keeping the Bluetooth connection alive, as long as the terminal device and the Bluetooth headset are within a certain distance range, the connection between the terminal device and the Bluetooth headset will not be disconnected. In this way, the user can use the Bluetooth headset at any time when needed (for example, when listening to music or making a call) without having to re-execute the above-mentioned scanning process, pairing process, and Bluetooth connection establishment process.

[0082] In the embodiment of the present application, the positional relationship among the terminal device, the first earphone, and the second earphone can be determined based on the Bluetooth signal strength among the terminal device, the first earphone, and the second earphone, and then whether the first earphone or the second earphone is lost can be detected based on the positional relationship. In this way, the loss of the earphone can be detected in time, avoiding the problem of the earphone being lost without the user knowing it.

[0083] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0084] Figure 4 The flowchart of a data processing method provided by the embodiment of the present application is as follows. The execution subject of this embodiment can be the first earphone or the second earphone in the Bluetooth communication system, and the implementation principles of the two are similar. The following description is based on the first earphone as an example. Figure 4 As shown, the method of this embodiment includes:

[0085] S401: The first earphone obtains the Bluetooth signal strength information corresponding to the current moment, and the Bluetooth signal strength information includes at least one of the following: the first Bluetooth signal strength between the first earphone and the second earphone, the second Bluetooth signal strength between the first earphone and the terminal device, and the third Bluetooth signal strength between the second earphone and the terminal device.

[0086] In an embodiment of the present application, after the Bluetooth headset establishes a Bluetooth connection with the terminal device, the first headset can execute the method of this embodiment in real time, or periodically execute the method of this embodiment at preset time intervals.

[0087] The first headset may obtain the Bluetooth signal strength information corresponding to the current moment in the following manner:

[0088] (1) The first earphone receives a first Bluetooth signal sent by the second earphone, and determines the signal strength of the first Bluetooth signal as the first Bluetooth signal strength between the first earphone and the second earphone.

[0089] (2) The first headset receives the second Bluetooth signal sent by the terminal device, and determines the signal strength of the second Bluetooth signal as the second Bluetooth signal strength between the first headset and the terminal device.

[0090] (3) The first earphone receives the third Bluetooth signal strength sent by the second earphone, where the third Bluetooth signal strength is the signal strength of the third Bluetooth signal received by the second earphone from the terminal device.

[0091] It should be noted that, in this embodiment, the first headset can obtain at least one of the first Bluetooth signal strength, the second Bluetooth signal strength, and the third Bluetooth signal strength. That is, the first headset can perform one or more of the above steps (1), (2), and (3).

[0092] In the embodiment of the present application, the signal strength of the Bluetooth signal may be a received signal strength indication (RSSI) of the Bluetooth signal.

[0093] S402: The first earphone determines current distance information based on the Bluetooth signal strength information, where the current distance information includes at least one of the following: a first distance between the first earphone and the second earphone, a second distance between the first earphone and the terminal device, and a third distance between the second earphone and the terminal device.

[0094] S403: The first earphone determines whether the first earphone or the second earphone is lost according to the current distance information.

[0095] In this embodiment, the current distance information describes the positional relationship between at least two of the first headset, the second headset, and the terminal device. When the user wears the Bluetooth headset to travel (for example, walking, taking the subway, running, etc.), if the headset is not lost, the above phase position relationship is relatively stable. When one of the headsets is lost, the above relative position relationship will change significantly in a short period of time. Therefore, in this embodiment, it can be determined whether the first headset or the second headset is lost based on the current distance information.

[0096] Several possible implementations are described below.

[0097] Example 1

[0098] The Bluetooth signal strength information includes: a first Bluetooth signal strength between the first headset and the second headset, and the current distance information may include a first distance between the first headset and the second headset. Specifically, in S402, the first distance between the first headset and the second headset may be determined according to the first Bluetooth signal strength.

[0099] When a user wears a Bluetooth headset when traveling (for example, walking, taking the subway, running, etc.), if the headset is not lost, the distance between the first headset and the second headset is relatively stable. When one of the headsets is lost, the above distance will change significantly in a short period of time. For example, Figure 5 Schematic diagram of the positional relationship between the first earphone and the second earphone provided in the embodiment of the present application. Figure 5 As shown, when the earphone is not lost, the positional relationship between the first earphone and the second earphone is as follows: Figure 5 In the case where the second earphone is lost, the positional relationship between the first earphone and the second earphone is as follows: Figure 5 That is, the distance between the first earphone and the second earphone is significantly increased, and the distance may continue to increase over a certain period of time.

[0100] Therefore, in this embodiment, the following possible methods may be used to identify whether the earphone is lost.

[0101] In a possible implementation, historical distance information corresponding to a historical moment may be obtained, and the historical distance information includes: a fourth distance between the first earphone and the second earphone. The historical moment is a moment before the current moment. For example, the historical moment may be a moment before the current moment. A first difference between the first distance and the second distance is determined. If the first difference is greater than or equal to a first threshold, it is determined that the first earphone or the second earphone is lost. If the first difference is less than the first threshold, it is determined that neither the first earphone nor the second earphone is lost.

[0102] In another possible implementation, if the first distance is greater than or equal to a first distance threshold, it is determined that the first earphone or the second earphone is lost. If the first distance is less than the first distance threshold, it is determined that neither the first earphone nor the second earphone is lost.

[0103] In this example, it is only necessary to identify whether the first earphone or the second earphone is lost based on the positional relationship between the first earphone and the second earphone, and the implementation is simple.

[0104] Example 2

[0105] When the Bluetooth signal strength information includes: a second Bluetooth signal strength between the first headset and the terminal device, the current distance information includes: a second distance between the first headset and the terminal device. Specifically, in S402, the second distance between the first headset and the terminal device can be determined according to the second Bluetooth signal strength.

[0106] When a user wears a Bluetooth headset when traveling (for example, walking, taking the subway, running, etc.), if the headset is not lost, the distance between the first headset and the terminal device is relatively stable. When the first headset is lost, the above distance will change significantly in a short period of time. For example, Figure 6 This is a schematic diagram of the positional relationship between the first headset and the terminal device provided in the embodiment of the present application. Figure 6 As shown, when the first earphone is not lost, the position relationship between the first earphone and the terminal device is as follows: Figure 6 In the case where the first earphone is lost, the positional relationship between the first earphone and the terminal device is as follows: Figure 6 That is, the distance between the first headset and the terminal device is significantly increased, and the distance may continue to increase over a certain period of time.

[0107] Therefore, in this embodiment, the following possible methods may be used to identify whether the first earphone is lost.

[0108] In a possible implementation, historical distance information corresponding to a historical moment may be obtained, and the historical distance information includes: a fifth distance between the first earphone and the terminal device. The historical moment is a moment before the current moment. For example, the historical moment may be a moment before the current moment. A second difference between the second distance and the fifth distance is determined. If the second difference is greater than or equal to a second threshold, it is determined that the first earphone is lost. If the second difference is less than the second threshold, it is determined that the first earphone is not lost.

[0109] In another possible implementation, if the second distance is greater than or equal to a second distance threshold, it is determined that the first earphone is lost. If the second distance is less than the second distance threshold, it is determined that the first earphone is not lost.

[0110] In this example, it is only necessary to identify whether the first earphone is lost based on the positional relationship between the first earphone and the terminal device, and the implementation method is simple. This method can be applied to a single-ear Bluetooth headset. This method can also be applied to a dual-ear Bluetooth headset. When applied to a dual-ear Bluetooth headset, the first earphone executes the above process to identify whether the first earphone is lost; the second earphone executes the above process to identify whether the second earphone is lost.

[0111] Example 3

[0112] The Bluetooth signal strength information includes: a first Bluetooth signal strength between the first headset and the second headset, and a second Bluetooth signal strength between the first headset and the terminal device; the current distance information includes: a first distance between the first headset and the second headset, and a second distance between the first headset and the terminal device. Specifically, in S402, the first distance between the first headset and the second headset can be determined based on the first Bluetooth signal strength, and the second distance between the first headset and the terminal device can be determined based on the second Bluetooth signal strength.

[0113] When a user wears a Bluetooth headset when traveling (for example, walking, taking the subway, running, etc.), if the headset is not lost, the position relationship between the first headset, the second headset, and the terminal device is relatively stable. When the first headset is lost, the above position relationship will change significantly in a short period of time. For example, Figure 7 This is a schematic diagram of the positional relationship between the first earphone, the second earphone, and the terminal device provided in the embodiment of the present application. Figure 7 As shown, in the case where the earphone is not lost, the positional relationship between the first earphone, the second earphone and the terminal device is as follows: Figure 7 In the case where the first earphone is lost, the positional relationship between the first earphone, the second earphone and the terminal device is as follows: Figure 7That is, the first distance between the first earphone and the second earphone, and the second distance between the first earphone and the terminal device are significantly increased, and the first distance and the second distance may continue to increase within a certain period of time.

[0114] Therefore, in this embodiment, the following possible methods may be used to identify whether the first earphone is lost.

[0115] In a possible implementation, historical distance information corresponding to a historical moment may be obtained, and the historical distance information includes: a fourth distance between a first earphone and a second earphone, and a fifth distance between the first earphone and a terminal device. The historical moment is a moment before a current moment. For example, the historical moment may be a moment before the current moment. A first difference between the first distance and the fourth distance is determined, and a second difference between the second distance and the fifth distance is determined. If the first difference is greater than or equal to a first threshold, and the second difference is greater than or equal to a second threshold, it is determined that the first earphone is lost. If the first difference is less than the first threshold, and the second difference is less than the second threshold, it is determined that the first earphone is not lost.

[0116] In another possible implementation, if the first distance is greater than or equal to a first distance threshold, and the second distance is greater than or equal to a second distance threshold, it is determined that the first earphone is lost. If the first distance is less than the first distance threshold, and the second distance is less than the second distance threshold, it is determined that the first earphone is not lost.

[0117] In this example, since the positional relationship between the first earphone and the second earphone, and the positional relationship between the first earphone and the terminal device are simultaneously utilized, the recognition result is more accurate.

[0118] Example 4

[0119] The Bluetooth signal strength information includes: the first Bluetooth signal strength between the first earphone and the second earphone, the second Bluetooth signal strength between the first earphone and the terminal device, and the third Bluetooth signal strength between the second earphone and the terminal device; the current distance information includes: the first distance between the first earphone and the second earphone, the second distance between the first earphone and the terminal device, and the third distance between the second earphone and the terminal device.

[0120] Specifically, in S402, the first distance between the first earphone and the second earphone can be determined according to the first Bluetooth signal strength; the second distance between the first earphone and the terminal device can be determined according to the second Bluetooth signal strength; and the third distance between the second earphone and the terminal device can be determined according to the third Bluetooth signal strength.

[0121] When a user wears a Bluetooth headset when traveling (for example, walking, taking the subway, running, etc.), if the headset is not lost, the position relationship between the first headset, the second headset, and the terminal device is relatively stable. When one of the headsets is lost, the above position relationship will change significantly in a short period of time. For example, Figure 8 This is a schematic diagram of the positional relationship between the first headset, the second headset, and the terminal device provided in the embodiment of the present application. Figure 8 As shown, when the earphone is not lost, the position relationship between the first earphone, the second earphone and the terminal device is as follows: Figure 8 Assume that the second earphone is lost, the positional relationship between the first earphone, the second earphone, and the terminal device is as follows: Figure 8 That is, the first distance between the first earphone and the second earphone, and the third distance between the terminal device and the second earphone are significantly increased, and the first distance and the third distance may continue to increase within a certain period of time.

[0122] Therefore, in this embodiment, the following possible methods may be used to identify whether the earphone is lost.

[0123] In a possible implementation, historical distance information corresponding to a historical moment may be obtained, where the historical distance information includes: a fourth distance between the first earphone and the second earphone, a fifth distance between the first earphone and the terminal device, and a sixth distance between the second earphone and the terminal device. The historical moment is a moment before the current moment. For example, the historical moment may be a moment before the current moment.

[0124] Then, the difference information between the current distance information and the historical distance information is determined. Specifically, the first difference between the first distance and the fourth distance is determined, the second difference between the second distance and the fifth distance is determined, and the third difference between the third distance and the sixth distance is determined. Based on the above difference information, it is determined whether the first earphone or the second earphone is lost.

[0125] Exemplarily, if the first difference is greater than or equal to the first threshold, and the second difference is greater than or equal to the second threshold, it is determined that the first earphone is lost; if the first difference is greater than or equal to the first threshold, and the third difference is greater than or equal to the second threshold, it is determined that the second earphone is lost. Otherwise, it is determined that neither the first earphone nor the second earphone is lost.

[0126] In another possible implementation, if the first distance is greater than or equal to a first distance threshold, and the second distance is greater than or equal to a second distance threshold, it is determined that the first earphone is lost. If the first distance is greater than or equal to the first distance threshold, and the third distance is greater than or equal to the second distance threshold, it is determined that the second earphone is lost. Otherwise, it is determined that neither the first earphone nor the second earphone is lost.

[0127] In this example, since the positional relationships between the first earphone and the second earphone, the first earphone and the terminal device, and the second earphone and the terminal device are simultaneously utilized, the accuracy of the recognition result is further improved.

[0128] Based on any of the above examples, when the first earphone determines that the first earphone or the second earphone is lost according to the current distance information, the first earphone may also output an alarm message, and the alarm message is used to remind the user that the earphone is lost. In this way, the user can find out that the earphone is lost in time according to the alarm message, so that the user can find it back in time.

[0129] In some possible implementations, if the first earphone is lost, the first earphone may output alarm information in one or more of the following ways.

[0130] (1) Controlling the first earphone to emit a sound of a preset frequency. For example, the first earphone is provided with a sound alarm device. After the first earphone determines that it is lost, the sound alarm device of the first earphone can be controlled to emit a sound of a preset frequency to facilitate the user to find the first earphone in time.

[0131] (2) Control the indicator light of the first earphone to flash. This makes it easier for the user to find the first earphone in time.

[0132] (3) Sending the current distance information to the terminal device. In this way, the terminal device can determine the location information of the first earphone based on the current distance information and the location information of the terminal device itself. Then, the terminal device displays a notification message and includes the location information of the first earphone in the notification message. For example, the content of the notification message is as follows: "Please note that your left earphone / right earphone is detected to be lost. Please search within a range of 5 meters around you" so that the user can find the first earphone in time.

[0133] In some other possible implementations, if the second earphone is lost, the first earphone may output an alarm message in at least one of the following ways.

[0134] (1) Controlling the first earphone to broadcast the first prompt information by voice. Since the first earphone is not lost and is still worn on the user's ear, the first prompt information can be broadcast to the user by voice, so that the user can find out that the second earphone is lost in time.

[0135] (2) Send the current distance information to the terminal device. In this way, the terminal device can determine the location information of the lost second earphone based on the current distance information and the terminal device's own location information. Then, the terminal device displays a notification message and includes the location information of the second earphone in the notification message. For example, the content of the notification message is as follows: "Please note that your left earphone / right earphone is detected to be lost. Please search within a range of 5 meters around you" so that the user can find the second earphone in time.

[0136] It should be noted that the above embodiment is described by taking the execution subject as the first earphone as an example. In practical applications, for a dual-ear Bluetooth headset, any one of the first earphone and the second earphone can execute the method of this embodiment.

[0137] The data processing method provided in this embodiment includes: the first earphone obtains the Bluetooth signal strength information corresponding to the current moment, and the Bluetooth signal strength information includes at least one of the following: the first Bluetooth signal strength between the first earphone and the second earphone, the second Bluetooth signal strength between the first earphone and the terminal device, and the third Bluetooth signal strength between the second earphone and the terminal device; according to the Bluetooth signal strength information, the current distance information is determined, and the current distance information includes at least one of the following: the first distance between the first earphone and the second earphone, the second distance between the first earphone and the terminal device, and the third distance between the second earphone and the terminal device; according to the current distance information, it is determined whether the first earphone or the second earphone is lost. Through the above process, the Bluetooth earphone can detect whether the earphone is lost in real time, so that the Bluetooth earphone has an anti-lost function to avoid the problem of earphone loss.

[0138] Fig. 9 1 is a flow chart of another data processing method provided in an embodiment of the present application. The method of this embodiment is executed by a terminal device. Fig. 9 As shown, the method of this embodiment includes:

[0139] S901: The terminal device obtains the Bluetooth signal strength information corresponding to the current moment, and the Bluetooth signal strength information includes at least one of the following: the first Bluetooth signal strength between the first earphone and the second earphone, the second Bluetooth signal strength between the first earphone and the terminal device, and the third Bluetooth signal strength between the second earphone and the terminal device.

[0140] When the execution subject of this embodiment is a terminal device, the terminal device may obtain the Bluetooth signal strength information corresponding to the current moment in the following manner:

[0141] (1) The terminal device receives a second Bluetooth signal sent by the first headset, and determines the signal strength of the second Bluetooth signal as the second Bluetooth signal strength between the first headset and the terminal device.

[0142] (2) The terminal device receives the third Bluetooth signal sent by the second headset, and determines the signal strength of the third Bluetooth signal as the third Bluetooth signal strength between the second headset and the terminal device.

[0143] (3) The terminal device receives the first Bluetooth signal strength sent by the first earphone, where the first Bluetooth signal strength is the signal strength of the first Bluetooth signal received by the first earphone from the second earphone. Alternatively, the terminal device receives the first Bluetooth signal strength sent by the second earphone, where the first Bluetooth signal strength is the signal strength of the first Bluetooth signal received by the second earphone from the first earphone.

[0144] It should be noted that, in this embodiment, the terminal device can obtain at least one of the first Bluetooth signal strength, the second Bluetooth signal strength, and the third Bluetooth signal strength. That is, the terminal device can perform one or more of the above steps (1), (2), and (3).

[0145] S902: The terminal device determines current distance information based on the Bluetooth signal strength information, where the current distance information includes at least one of the following: a first distance between the first earphone and the second earphone, a second distance between the first earphone and the terminal device, and a third distance between the second earphone and the terminal device.

[0146] S903: The terminal device determines whether the first earphone or the second earphone is lost according to the current distance information.

[0147] It should be noted that the specific implementation of S902 and S903 is the same as the above Figure 4 S402 and S403 in the illustrated embodiment are similar and are not described in detail here.

[0148] In this embodiment, after the terminal device determines that the first earphone or the second earphone is lost, the terminal device may output an alarm message, where the alarm message is used to remind the user that the earphone is lost.

[0149] In a possible implementation, if the terminal device determines that the first earphone is lost, the terminal device determines the location information of the first earphone according to the current distance information. Then, the terminal device displays a notification message, and the notification message includes the location information of the first earphone. For example, the content of the notification message is as follows: "Please note that your left earphone / right earphone is found to be lost. Please search within a range of 5 meters around you" so that the user can find the first earphone in time.

[0150] In this embodiment, the terminal device can detect the positional relationship between the first earphone, the second earphone, and the terminal device based on the Bluetooth signal strength between the first earphone, the second earphone, and the terminal device, and then identify whether the earphone is lost based on the positional relationship. When the earphone is lost, it can promptly remind the user, so that the user can quickly find the lost earphone, thereby enabling the terminal device to have the function of preventing the earphone from being lost.

[0151] Fig.10A schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The data processing device of this embodiment may be in the form of software and / or hardware. For example, the data processing device may be a Bluetooth headset or a terminal device, and may also be a processor, a chip, a chip module, a module or a unit provided in the Bluetooth headset or the terminal device. The data processing device may be applied to a Bluetooth communication system, and the Bluetooth communication system includes: a first headset, a second headset and a terminal device.

[0152] like Fig.10 As shown, the data processing device 1000 provided in this embodiment includes: an acquisition module 1001, a first determination module 1002 and a second determination module 1003.

[0153] an acquisition module 1001, configured to acquire Bluetooth signal strength information corresponding to a current moment, wherein the Bluetooth signal strength information includes at least one of the following: a first Bluetooth signal strength between the first headset and the second headset, a second Bluetooth signal strength between the first headset and the terminal device, and a third Bluetooth signal strength between the second headset and the terminal device;

[0154] A first determining module 1002 is used to determine current distance information according to the Bluetooth signal strength information, where the current distance information includes at least one of the following: a first distance between the first headset and the second headset, a second distance between the first headset and the terminal device, and a third distance between the second headset and the terminal device;

[0155] The second determining module 1003 is configured to determine whether the first earphone or the second earphone is lost according to the current distance information.

[0156] In a possible implementation, the Bluetooth signal strength information includes: the first Bluetooth signal strength, the second Bluetooth signal strength, and the third Bluetooth signal strength; and the first determining module 1002 is specifically configured to:

[0157] determining a first distance between the first headset and the second headset according to the first Bluetooth signal strength;

[0158] Determining a second distance between the first headset and the terminal device according to the second Bluetooth signal strength;

[0159] A third distance between the second headset and the terminal device is determined according to the third Bluetooth signal strength.

[0160] In a possible implementation, the second determining module 1003 is specifically configured to:

[0161] Acquire historical distance information corresponding to a historical moment, the historical distance information comprising: a fourth distance between the first earphone and the second earphone, a fifth distance between the first earphone and the terminal device, and a sixth distance between the second earphone and the terminal device;

[0162] Determine difference information between the current distance information and the historical distance information, the difference information comprising: a first difference between the first distance and the fourth distance, a second difference between the second distance and the fifth distance, and a third difference between the third distance and the sixth distance;

[0163] Determine whether the first headset or the second headset is lost according to the difference information.

[0164] In a possible implementation, the second determining module 1003 is specifically configured to:

[0165] If the first difference is greater than or equal to a first threshold, and the second difference is greater than or equal to a second threshold, it is determined that the first earphone is lost; or,

[0166] If the first difference is greater than or equal to a first threshold, and the third difference is greater than or equal to a second threshold, it is determined that the second earphone is lost.

[0167] In a possible implementation, the second determining module 1003 is specifically configured to:

[0168] If the first distance is greater than or equal to a first distance threshold, and the second distance is greater than or equal to a second distance threshold, it is determined that the first earphone is lost; or,

[0169] If the first distance is greater than or equal to a first distance threshold, and the third distance is greater than or equal to a second distance threshold, it is determined that the second earphone is lost.

[0170] In a possible implementation manner, the device is applied to the first headset, and the obtaining module 1001 is specifically used for:

[0171] receiving a first Bluetooth signal sent by the second headset, and determining a signal strength of the first Bluetooth signal as the first Bluetooth signal strength;

[0172] receiving a second Bluetooth signal sent by the terminal device, and determining a signal strength of the second Bluetooth signal as the second Bluetooth signal strength;

[0173] Receive the third Bluetooth signal strength sent by the second headset, where the third Bluetooth signal strength is the signal strength of the third Bluetooth signal received by the second headset from the terminal device.

[0174] In a possible implementation, if it is determined that the first earphone is lost according to the current distance information, the apparatus of this embodiment further includes: a control module, configured to perform at least one of the following:

[0175] Controlling the first earphone to emit a sound of a preset frequency;

[0176] Controlling the indicator light of the first earphone to flash;

[0177] Control the first headset to send the current distance information to the terminal device, where the current distance information is used to instruct the terminal device to determine and display the location information of the first headset.

[0178] In a possible implementation, the device of this embodiment further includes: a control module, and if it is determined that the second earphone is lost according to the current distance information, the control module is configured to execute at least one of the following:

[0179] Controlling the first earphone to voice broadcast a first prompt message, where the first prompt message is used to prompt a user that the second earphone is lost;

[0180] Control the first headset to send the current distance information to the terminal device, where the current distance information is used to instruct the terminal device to determine and display the location information of the second headset.

[0181] In a possible implementation, the apparatus is applied to the terminal device, and the acquisition module 1001 is specifically used for:

[0182] receiving the first Bluetooth signal strength sent by the first headset, where the first Bluetooth signal strength is the signal strength of the first Bluetooth signal received by the first headset from the second headset;

[0183] receiving a second Bluetooth signal sent by the first headset, and determining a signal strength of the second Bluetooth signal as the second Bluetooth signal strength;

[0184] A third Bluetooth signal sent by the second headset is received, and a signal strength of the third Bluetooth signal is determined as the third Bluetooth signal strength.

[0185] In a possible implementation, the second determining module 1003 is further configured to, if it is determined that the first headset is lost according to the current distance information, determine the location information of the first headset according to the current distance information;

[0186] The device also includes a display module, configured to display a notification message, wherein the notification message includes location information of the first headset.

[0187] The data processing device provided in this embodiment can be used to execute the data processing method provided in any of the above method embodiments. Its implementation principles and technical effects are similar and will not be described in detail here.

[0188] Fig.11 The following is a schematic diagram of an electronic device structure provided in an embodiment of the present application. The electronic device may be a Bluetooth headset, for example, a first headset or a second headset; the electronic device may also be a terminal device; the electronic device may also be a chip, a chip module, etc., set in a Bluetooth headset or a terminal device. Fig.11 As shown, the electronic device 1100 includes: a processor 1101 and a memory 1102. Exemplarily, the processor 1101 and the memory 1102 may be connected via a bus 1103.

[0189] The memory 1102 is used to store computer executable instructions;

[0190] The processor 1101 is used to execute the computer-executable instructions stored in the memory, so that the electronic device 1100 executes the method shown in any of the above embodiments. The implementation principles and technical effects are similar and will not be repeated here.

[0191] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a computer, it implements the data processing method provided by any of the above method embodiments. The implementation principles and technical effects are similar and will not be elaborated here.

[0192] An embodiment of the present application also provides a chip, including: a memory and a processor, wherein the memory stores computer execution instructions, and the processor runs the computer execution instructions to implement the data processing method provided by any of the above method embodiments, and its implementation principle and technical effect are similar, which will not be repeated here.

[0193] An embodiment of the present application also provides a computer program product, including a computer program. When the computer program is executed by a computer, it implements the data processing method provided by any of the above method embodiments. The implementation principle and technical effects are similar and will not be repeated here.

[0194] 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. For example, the device 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 can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

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

[0196] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The above-mentioned module-composed unit can be implemented in the form of hardware or in the form of hardware plus software functional units.

[0197] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute some steps of the method described in each embodiment of the present application.

[0198] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in the application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0199] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.

[0200] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.

[0201] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.

[0202] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a main control device.

[0203] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0204] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A data processing method, characterized in that: Applied to a Bluetooth communication system, the Bluetooth communication system comprises: a first headset, a second headset and a terminal device, the method comprises: Acquire the Bluetooth signal strength information corresponding to the current moment in real time, the Bluetooth signal strength information including: the first Bluetooth signal strength between the first headset and the second headset, the second Bluetooth signal strength between the first headset and the terminal device, and the third Bluetooth signal strength between the second headset and the terminal device; Determine current distance information according to the Bluetooth signal strength information, where the current distance information includes: a first distance between the first headset and the second headset, a second distance between the first headset and the terminal device, and a third distance between the second headset and the terminal device; Whether the first earphone or the second earphone is lost is determined according to difference information between the current distance information and historical distance information corresponding to a historical moment.

2. The method according to claim 1, characterized in that The Bluetooth signal strength information includes: the first Bluetooth signal strength, the second Bluetooth signal strength and the third Bluetooth signal strength; determining the current distance information according to the Bluetooth signal strength information includes: determining a first distance between the first headset and the second headset according to the first Bluetooth signal strength; Determining a second distance between the first headset and the terminal device according to the second Bluetooth signal strength; A third distance between the second headset and the terminal device is determined according to the third Bluetooth signal strength.

3. The method according to claim 2, characterized in that Determining whether the first headset or the second headset is lost according to difference information between the current distance information and historical distance information corresponding to a historical moment includes: Acquire historical distance information corresponding to the historical moment, the historical distance information including: a fourth distance between the first earphone and the second earphone, a fifth distance between the first earphone and the terminal device, and a sixth distance between the second earphone and the terminal device; Determine difference information between the current distance information and the historical distance information, the difference information comprising: a first difference between the first distance and the fourth distance, a second difference between the second distance and the fifth distance, and a third difference between the third distance and the sixth distance; Determine whether the first headset or the second headset is lost according to the difference information.

4. The method according to claim 3, characterized in that Determining, according to the difference information, whether the first headset or the second headset is lost includes: If the first difference is greater than or equal to a first threshold, and the second difference is greater than or equal to a second threshold, it is determined that the first earphone is lost; or, If the first difference is greater than or equal to a first threshold, and the third difference is greater than or equal to a second threshold, it is determined that the second earphone is lost.

5. The method according to claim 2, characterized in that: Determining, according to the current distance information, whether the first earphone or the second earphone is lost includes: If the first distance is greater than or equal to a first distance threshold, and the second distance is greater than or equal to a second distance threshold, it is determined that the first earphone is lost; or, If the first distance is greater than or equal to a first distance threshold, and the third distance is greater than or equal to a second distance threshold, it is determined that the second earphone is lost.

6. The method according to any one of claims 1 to 5, characterized in that: The method is applied to the first headset to obtain Bluetooth signal strength information corresponding to the current moment, including: receiving a first Bluetooth signal sent by the second headset, and determining a signal strength of the first Bluetooth signal as the first Bluetooth signal strength; receiving a second Bluetooth signal sent by the terminal device, and determining a signal strength of the second Bluetooth signal as the second Bluetooth signal strength; Receive the third Bluetooth signal strength sent by the second headset, where the third Bluetooth signal strength is the signal strength of the third Bluetooth signal received by the second headset from the terminal device.

7. The method according to claim 6, characterized in that If it is determined that the first earphone is lost according to the current distance information, the method further includes at least one of the following: Controlling the first earphone to emit a sound of a preset frequency; Controlling the indicator light of the first earphone to flash; The current distance information is sent to the terminal device, where the current distance information is used to instruct the terminal device to determine and display the location information of the first headset.

8. The method according to claim 6, characterized in that If it is determined that the second earphone is lost according to the current distance information, the method further includes at least one of the following: Controlling the first earphone to voice broadcast a first prompt message, where the first prompt message is used to prompt a user that the second earphone is lost; The current distance information is sent to the terminal device, where the current distance information is used to instruct the terminal device to determine and display the location information of the second headset.

9. The method according to any one of claims 1 to 5, characterized in that: The method is applied to the terminal device to obtain the Bluetooth signal strength information corresponding to the current moment, including: receiving the first Bluetooth signal strength sent by the first headset, where the first Bluetooth signal strength is the signal strength of the first Bluetooth signal received by the first headset from the second headset; receiving a second Bluetooth signal sent by the first headset, and determining a signal strength of the second Bluetooth signal as the second Bluetooth signal strength; A third Bluetooth signal sent by the second headset is received, and a signal strength of the third Bluetooth signal is determined as the third Bluetooth signal strength.

10. The method according to claim 9, characterized in that If it is determined that the first earphone is lost according to the current distance information, the method further includes: Determining the position information of the first earphone according to the current distance information; A notification message is displayed, where the notification message includes the location information of the first headset.

11. A data processing device, characterized in that: Applied to a Bluetooth communication system, the Bluetooth communication system comprises: a first headset, a second headset and a terminal device, and the device comprises: an acquisition module, configured to acquire in real time the Bluetooth signal strength information corresponding to the current moment, wherein the Bluetooth signal strength information includes: a first Bluetooth signal strength between the first headset and the second headset, a second Bluetooth signal strength between the first headset and the terminal device, and a third Bluetooth signal strength between the second headset and the terminal device; A first determining module, configured to determine current distance information according to the Bluetooth signal strength information, wherein the current distance information includes: a first distance between the first headset and the second headset, a second distance between the first headset and the terminal device, and a third distance between the second headset and the terminal device; The second determination module is used to determine whether the first earphone or the second earphone is lost according to the difference information between the current distance information and the historical distance information corresponding to the historical moment.

12. A Bluetooth headset, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 10.

13. A terminal device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 10.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 10 when executed by a processor.

15. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 10 when being executed by a processor.

Citation Information

Patent Citations

  • Split type Bluetooth earphone and positioning method thereof

    CN110602595A

  • Bluetooth-based anti-lost method and system and mobile terminal

    CN112055301A