Positioning method, apparatus and electronic device
By acquiring the spacing and position information of Bluetooth earphones while they are being worn, the target earphones can be filtered out, solving the problem of not being able to identify the main user in the Bluetooth earphone environment, and achieving accurate transmission and security of privacy information.
Patent Information
- Application Number
- CN202211545977.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-05
- Publication Date
- 2025-12-23
- Estimated Expiration
- 2042-12-05
AI Technical Summary
When multiple users' Bluetooth headsets are connected to the same electronic device, the device cannot identify the main user's Bluetooth headset, resulting in inaccurate broadcasting of user information and posing a risk of privacy leakage.
By obtaining the distance between the audio transceiver components when the Bluetooth headset is worn, the target headset is filtered out using preset distance and location information, ensuring that privacy information is accurately transmitted to the main user's headset.
It enables accurate location of the master user's headset in a multi-user Bluetooth headset environment, avoiding privacy information leakage and improving the accuracy and security of information transmission.
Smart Images

Figure CN115866472B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of electronic devices, and particularly relates to a positioning method, a positioning device and an electronic device. BACKGROUND
[0002] With the rapid development of electronic devices, Bluetooth earphones have also entered the public's field of vision and are welcomed by more and more people. At present, music sharing and video sharing have become a trend, that is, the same electronic device can connect Bluetooth earphones of multiple users to share the same audio source.
[0003] In the related art, in the case that the same electronic device connects Bluetooth earphones of multiple users, the electronic device cannot identify the Bluetooth earphone of the main user, resulting in that the user information cannot be accurately broadcasted. SUMMARY
[0004] The purpose of the embodiments of the present application is to provide a positioning method, a positioning device and an electronic device, which accurately position the target earphone used by the main user in multiple Bluetooth earphones, so that the first electronic device can accurately transmit private information to the target earphone, avoiding the leakage of private information.
[0005] In a first aspect, the embodiments of the present application provide a positioning method applied to a first electronic device, the first electronic device being connected with at least two Bluetooth earphones, each Bluetooth earphone including two audio transceivers, the positioning method comprising: acquiring a first distance of each Bluetooth earphone when the Bluetooth earphone is in a wearing state, the first distance being a distance between the audio transceivers in the same Bluetooth earphone; and determining a target earphone in the at least two Bluetooth earphones according to the first distance.
[0006] In a second aspect, the embodiments of the present application provide a positioning device applied to a first electronic device, the first electronic device being connected with at least two Bluetooth earphones, each Bluetooth earphone including two audio transceivers, the positioning device comprising: an acquisition module configured to acquire a first distance of each Bluetooth earphone when the Bluetooth earphone is in a wearing state, the first distance being a distance between the audio transceivers in the same Bluetooth earphone; and a determination module configured to determine a target earphone in the at least two Bluetooth earphones according to the first distance.
[0007] In a third aspect, the embodiments of the present application provide an electronic device including a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions being executed by the processor to implement the steps of the method of the first aspect.
[0008] In a fourth aspect, the embodiments of the present application provide a readable storage medium, the readable storage medium storing a program or instructions, the program or instructions being executed by the processor to implement the steps of the method of the first aspect.
[0009] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, the communication interface being coupled with the processor, and the processor being configured to run programs or instructions to implement the steps of the method according to the first aspect.
[0010] In a sixth aspect, an embodiment of the present application provides a computer program product stored in a storage medium, and the program product is executed by at least one processor to implement the method according to the first aspect.
[0011] In the embodiments of the present application, when the first electronic device is in communication connection with the plurality of Bluetooth earphones, the first electronic device can obtain the first distance between two audio transceivers in the plurality of Bluetooth earphones, and screen the plurality of Bluetooth earphones according to the first distance, so as to accurately determine the target earphone used by the primary user in the plurality of Bluetooth earphones, and enable the first electronic device to accurately transmit the private information to the target earphone, thereby avoiding leakage of the private information. BRIEF DESCRIPTION OF DRAWINGS
[0012] Figure 1 A flowchart of a positioning method provided by an embodiment of the present application is shown;
[0013] Figure 2 One of the schematic diagrams of Bluetooth earphone positioning provided by some embodiments of the present application is shown;
[0014] Figure 3 The second of the schematic diagrams of Bluetooth earphone positioning provided by some embodiments of the present application is shown;
[0015] Figure 4 The third of the schematic diagrams of Bluetooth earphone positioning provided by some embodiments of the present application is shown;
[0016] Figure 5 The fourth of the schematic diagrams of Bluetooth earphone positioning provided by some embodiments of the present application is shown;
[0017] Figure 6 The fifth of the schematic diagrams of Bluetooth earphone positioning provided by some embodiments of the present application is shown;
[0018] Figure 7 A schematic block diagram of a positioning device provided by an embodiment of the present application is shown;
[0019] Figure 8 A structural block diagram of an electronic device according to an embodiment of the present application is shown;
[0020] Figure 9 A hardware structure schematic diagram of an electronic device for implementing an embodiment of the present application is shown. DETAILED DESCRIPTION
[0021] With reference to the drawings of the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly described. Obviously, the described embodiments are a part rather than all of the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by a person of ordinary skill in the art should fall within the protection scope of the present application.
[0022] The terms "first", "second", and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally a category and do not limit the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / ", generally indicates that the front and rear associated objects are in an "or" relationship.
[0023] The positioning method, positioning device, electronic device and readable storage medium provided by the embodiments of the present application will be described in detail below in combination with the accompanying drawings. Figures 1 to 9 The positioning method, positioning device, electronic device and readable storage medium provided by the embodiments of the present application will be described in detail below in combination with the accompanying drawings.
[0024] In some embodiments of the present application, a positioning method is provided, applied to a first electronic device, the first electronic device being connected with at least two pairs of Bluetooth earphones, each pair of Bluetooth earphones including two audio transceivers, and in a wearing state of the same pair of Bluetooth earphones, the two audio transceivers are respectively worn on the left ear and the right ear of a user. Figure 1 The flowchart of the positioning method provided by the embodiments of the present application is shown. As shown in Figure 1 The positioning method includes:
[0025] Step 102, in a wearing state of the Bluetooth earphones, acquiring a first distance of each pair of Bluetooth earphones, the first distance being a distance between the two audio transceivers in the same pair of Bluetooth earphones;
[0026] In the embodiments of the present application, in the wearing state of the Bluetooth earphones, the two audio transceivers of the Bluetooth earphones are respectively worn on the left ear and the right ear of the user. The first electronic device can acquire the first distance between the two audio transceivers in the same pair of Bluetooth earphones.
[0027] The first electronic device can be a mobile phone, the first electronic device is in communication connection with the Bluetooth earphones, and the Bluetooth earphones can transmit the acquired first distance between the two audio transceivers to the first electronic device.
[0028] Step 104, determining a target earphone in the at least two pairs of Bluetooth earphones according to the first distance.
[0029] In the embodiments of the present application, when the Bluetooth earphone is in a wearing state, the first distance between the two audio transceivers of the Bluetooth earphone is the distance from the left ear to the right ear of the user. The distance from the left ear to the right ear of different users is different. When multiple Bluetooth earphones worn by multiple users are connected to the first electronic device, the first electronic device can obtain the first distances corresponding to the multiple Bluetooth earphones, and determine a target earphone in the multiple Bluetooth earphones by screening the multiple first distances. The target earphone is the earphone corresponding to the user bound to the first electronic device. When the user uses the first electronic device, the user needs to log in to a personal account on the first electronic device, and bind the first electronic device to the identity information of the user.
[0030] When the first electronic device is connected to the Bluetooth earphone in a wearing state for the first time, the first electronic device will pop up a window to prompt the user whether to record the distance between the two audio transceivers in the Bluetooth earphone. If the user chooses to record the distance, the first electronic device sets the distance as a preset distance and binds the distance to the personal account. When the first electronic device is connected to another Bluetooth earphone again, the first electronic device can detect whether the first distance of the Bluetooth earphone when worn matches the preset distance, so as to identify whether the Bluetooth earphone is worn by the bound user.
[0031] Figure 2 One of the schematic diagrams of positioning the Bluetooth earphone provided by some embodiments of the present application is shown as follows. Figure 2 As shown in the figure, the Bluetooth earphone is a bone conduction earphone. In the process of detecting the first distance, one of the audio transceivers in the same Bluetooth earphone sends a infrasound signal, and the other audio transceiver receives the infrasound signal through bone conduction, so as to calculate the distance from the left ear to the right ear of the user, that is, the first distance S1.
[0032] When multiple Bluetooth earphones are connected to the first electronic device at the same time, the first electronic device can obtain multiple first distances S1, and screen a target earphone in the multiple Bluetooth earphones by using the preset distance S2 and the multiple first distances S1.
[0033] In the embodiments of the present application, when the first electronic device is in communication connection with multiple Bluetooth earphones, the first electronic device can obtain the first distances between the two audio transceivers in the multiple Bluetooth earphones, and screen the multiple Bluetooth earphones according to the first distances, so as to accurately position the target earphone used by the main user in the multiple Bluetooth earphones, so that the first electronic device can accurately transmit private information to the target earphone, and avoid leakage of private information.
[0034] In some embodiments of the present application, the first electronic device is in communication connection with a second electronic device, and the second electronic device is a wearable electronic device.
[0035] According to the first distance, a target earphone in the at least two pairs of Bluetooth earphones is determined, including:
[0036] The Bluetooth earphone with the first distance in the first preset range is determined as the first earphone; when the second electronic device is in the unworn state and the number of the first earphones is one, the first earphone is determined as the target earphone; when the second electronic device is in the worn state, position information of each first earphone relative to the second electronic device is acquired; and the target earphone in the first earphones is screened according to the position information.
[0037] In the embodiment of the application, the first electronic device preliminarily screens the plurality of Bluetooth earphones through the first distance of the plurality of Bluetooth earphones to determine the first earphone. The Bluetooth earphone with the first distance in the first preset range is taken as the first earphone. The first preset range is related to a preset distance recorded in advance by the first electronic device. The preset distance is the distance from the left ear to the right ear of the user bound to the first electronic device. The preset distance can be detected and recorded by the Bluetooth earphone. For example, when the user wears the Bluetooth earphone, the Bluetooth earphone detects the distance from the left ear to the right ear and controls the first electronic device to record the distance. The first electronic device sets the distance as the preset distance and binds the distance to the personal account.
[0038] The first electronic device is in communication connection with the second electronic device. The second electronic device is a wearable electronic device, and the user identity bound to the first electronic device and the second electronic device is the same identity. The second electronic device can be a smart watch, a smart bracelet, etc. The second electronic device determines whether the second electronic device is in the worn state by collecting biological information of the human body. For example, the second electronic device continuously collects the biological information of the human body and transmits the collected biological information to the first electronic device. When the first electronic device receives the biological information collected by the second electronic device, it is determined that the second electronic device is in the worn state. The biological information includes, but is not limited to, blood oxygen information, heart rate information, body temperature information, etc.
[0039] The first earphone is the Bluetooth earphone of the user bound to the first electronic device and screened through the first distance.
[0040] In the embodiment of the application, when the second electronic device is in the unworn state, the first earphone screened through the first distance is taken as the target earphone. When the second electronic device is in the worn state, the first earphone is further screened according to the position information of the second electronic device and the first earphone to determine the target earphone therein, thereby improving the accuracy of determining the target earphone.
[0041] When the number of the first earphones is at least one, whether the first earphone is worn by the target user bound to the first electronic device is verified through the position information between the first earphone and the second electronic device.
[0042] Exemplarily, the second electronic device can be communicatively connected with the Bluetooth earphones, and the position information between the second electronic device and each Bluetooth earphone can be acquired through near field communication.
[0043] Exemplarily, the second electronic device can transmit and receive audio, and the position information between the second electronic device and each Bluetooth earphone can be determined through transmission and reception of audio signals between the second electronic device and each Bluetooth earphone.
[0044] Figure 3 Fig. 2 shows a schematic diagram of positioning of Bluetooth earphones according to some embodiments of the present application. Figure 3 As shown in Fig. 2, user A, user B and user C all wear Bluetooth earphones 302, user A wears a smart watch 304, the smart watch 304 is bound to the mobile phone of user A, and the Bluetooth earphones 302 worn by user A, user B and user C are all connected with the mobile phone of user A. The mobile phone of user A can obtain a first earphone through first distance screening of the Bluetooth earphones 302 worn by user A, user B and user C, and determine whether the first earphone is a target earphone based on position information between the first earphone and the smart watch 304. The mobile phone of user A is a first electronic device, and the smart watch 304 of user A is a second electronic device.
[0045] In the embodiments of the present application, when the first electronic device screens a first earphone through a plurality of first distances, and the second electronic device bound to the first electronic device is in a wearing state, the first earphone can be further screened through the second electronic device, so as to improve the accuracy of positioning of the target earphone.
[0046] In some embodiments of the present application, the position information includes a second distance between a first audio transceiver in the same first earphone and the second electronic device, and a third distance between a second audio transceiver and the second electronic device.
[0047] Acquiring the position information of each first earphone relative to the second electronic device includes: controlling the second electronic device to output first audio; and determining the second distance and the third distance according to reception time instants at which the first audio transceiver and the second audio transceiver receive the first audio.
[0048] In the embodiments of the present application, the position information between the second electronic device and the first earphone includes a second distance and a third distance between the second electronic device and two audio transceivers in the same first earphone. When the second electronic device is controlled to output first audio, the first electronic device can determine the second distance between the second electronic device and the first audio transceiver, and the third distance between the second electronic device and the second audio transceiver, according to reception time instants at which the first audio transceiver and the second audio transceiver receive the first audio, and an output time instant at which the second electronic device outputs the first audio.
[0049] Figure 4 Figure 3 shows a schematic diagram of positioning of a Bluetooth headset according to some embodiments of the present application. Figure 4 As shown, the mobile phone 406 is connected with the Bluetooth headset 402 through Bluetooth signals, and the mobile phone 406 is connected with the watch 404 through Bluetooth signals. The watch 404 outputs ultrasonic signals, which can be received by two audio transceivers in the Bluetooth headset 402. The watch 404 transmits the output time of the ultrasonic signals to the mobile phone 406 through Bluetooth signals, and the two audio transceivers transmit the receiving time of the ultrasonic signals to the mobile phone 406. The mobile phone 406 can determine the second distance and the third distance between the watch 404 and the two audio transceivers in the Bluetooth headset 402 according to the output time and the receiving time. The watch 404 is a second electronic device, and the mobile phone 406 is a first electronic device.
[0050] Specifically, the first electronic device can determine the transmission time of the audio signals according to the output time and the receiving time, and accurately determine the distance between the second electronic device and the two audio transceivers in the same headset according to the transmission time and the transmission speed of the audio signals.
[0051] In the embodiments of the present application, the second distance and the third distance between the two audio transceivers in the same first headset and the second electronic device are taken as the position information of the second electronic device relative to the first headset, which can improve the accuracy of screening and verifying the first headset according to the position information. Moreover, by controlling the second electronic device to output the first audio and accurately determining the second distance and the third distance according to the receiving time of the first audio received by the first headset, the accuracy of positioning the target headset is further improved.
[0052] In some embodiments of the present application, screening the target headset from the first headset according to the position information further includes: determining the first headset as a second headset when the second distance is less than a first distance threshold and the third distance is less than a second distance threshold; determining a preset numerical relationship between the second distance and the third distance corresponding to the second headset, and a second preset range of a target distance in the second distance and the third distance; and screening the target headset from the second headset according to the preset numerical relationship and the second preset range.
[0053] In the embodiments of the present application, when the second distance and the third distance corresponding to each first headset are obtained, the second distance is compared with the first distance threshold, and the third distance is compared with the second distance threshold. When the comparison result is that the second distance is less than the first distance threshold and the third distance is less than the second distance threshold, the first headset is determined as a second headset, i.e., a headset possibly worn by a target user bound to the first electronic device.
[0054] Figure 5 Fig. 4 shows a schematic diagram of positioning of a Bluetooth earphone according to some embodiments of the present application. Figure 5 As shown, the user A wears a smart watch 502, and the smart watch 502 detects that the second distance between the audio transceiver in the earphone 2 worn by the user A and the smart watch 502 is less than the first distance threshold, and the third distance is less than the second distance threshold, and thus determines the earphone 2 as the second earphone.
[0055] When the second earphone is screened, it is necessary to verify whether the second earphone is the earphone worn by the target user. Before the verification, it is necessary to determine the wearing position of the second electronic device, for example, the second electronic device is a smart watch, and before verifying whether the second earphone is the target earphone, it is necessary to determine whether the smart watch is worn on the left hand or the right hand of the user. The smart watch transmits the collected biological information to the first electronic device, and the first electronic device can determine whether the smart watch is worn on the left hand or the right hand of the user according to the received biological information.
[0056] According to the wearing hand of the smart watch, a preset numerical relationship between the second distance and the third distance in the second earphone can be determined, and a target distance between the second distance and the third distance can be determined, and a second preset range corresponding to the target distance.
[0057] Figure 6 Fig. 5 shows a schematic diagram of positioning of a Bluetooth earphone according to some embodiments of the present application. Figure 6 As shown, O point is the origin in the spatial coordinate system, A point is the coordinate point where the smart watch is located, R point is the coordinate point of the first audio transceiver, i.e. the audio transceiver worn on the right ear, and L point is the coordinate point of the second audio transceiver, i.e. the audio transceiver worn on the left ear. According to the positional relationship between the smart watch and the first audio transceiver and the second audio transceiver, the space can be divided into three parts, AL = AR, AL > AR, and AL < AR. When the smart watch is worn on the left hand of the user, the smart watch is relatively close to the second audio transceiver, i.e. the smart watch is in the space of AL < AR with high probability, and thus AL < AR is the preset numerical relationship. When the smart watch is in the space of AL > AR, AL is the target distance, and there is a maximum value and a minimum value corresponding to AL, and the maximum value and the minimum value determine the second preset range. Wherein, AR is the second distance, and AL is the third distance.
[0058] It should be noted that when the second electronic device is worn on the right hand, AL > AR is the preset numerical relationship, AR is the target distance, and AR has a second preset range corresponding thereto.
[0059] In the embodiments of the present application, when the distances between two users are relatively close, there are certain errors in screening the target earphone only based on the distances between the second electronic device and two audio transceivers in different earphones. For example, when the arm of the primary user wearing the second electronic device is close to the face of another user, there is a possibility of misjudgment. In the embodiments of the present application, by detecting the numerical relationship between the distances of two audio transceivers in the earphone relative to the second electronic device, and screening the target distance from the two distances, and verifying the second earphone based on the numerical relationship between the target distance and the second preset range, when the verification passes, the second earphone is determined as the target earphone, further improving the accuracy of determining the target earphone.
[0060] In some embodiments of the present application, screening the target earphone in the second earphone according to a preset numerical relationship and a second preset range includes: when the second distance and the third distance corresponding to the second earphone satisfy the preset numerical relationship, determining the second earphone as the target earphone; when the second distance and the third distance corresponding to the second earphone do not satisfy the preset numerical relationship, determining the second earphone whose target distance is within the second preset range as the target earphone.
[0061] In the embodiments of the present application, when the second earphone is screened, it is detected whether the second distance corresponding to the second detection and the third distance satisfy the preset numerical relationship. When it is detected that the second distance and the third distance satisfy the preset numerical relationship, then the second earphone is determined as the target earphone. When it is detected that the second distance and the third distance do not satisfy the preset numerical relationship, it is further determined whether the target distance in the second distance and the third distance is within the second preset range. If it is within the second preset range, then the second earphone is determined as the target earphone. If it is not within the second preset range, then the second earphone is determined as a non-target earphone.
[0062] Among them, the numerical relationship between the second distance and the third distance can determine whether the user wearing the second electronic device is in a normal posture. When it is detected that the user is not in a normal posture, it is further detected whether the second earphone is the target earphone, avoiding the influence on the positioning accuracy of the target earphone when the user is in an abnormal posture.
[0063] Such as <
[0064] In the embodiments of the present application, in the case that the second earphone is screened through the second distance and the third distance between the second electronic device and the first audio transceiver and the second audio transceiver in the first earphone, the second distance and the third distance, and the numerical relationship between the target distance in the second distance and the third distance and the second preset range, can accurately verify whether the second earphone is the target earphone, and further improve the accuracy of the positioning of the target earphone by the first electronic device.
[0065] In some embodiments of the present application, in the case that the number of target earphones is multiple, it is determined that the positioning of the target earphone fails.
[0066] In the embodiments of the present application, due to the uncontrollability of the user's body posture and the different ways of wearing earphones by different users, there is a case of erroneously positioning multiple target earphones. When multiple target earphones are positioned, the user can only wear one earphone, so it is determined that the positioning fails, and a positioning failure prompt information is output.
[0067] In some embodiments of the present application, the first distance of each Bluetooth earphone is obtained, including: controlling the third audio transceiver to play the second audio, the third audio transceiver being any audio transceiver in the same Bluetooth earphone; determining the first distance according to the receiving time of the second audio received by the fourth audio transceiver, the fourth audio transceiver being an audio transceiver in the same Bluetooth earphone except the third audio transceiver.
[0068] In the embodiments of the present application, the third audio transceiver and the fourth audio transceiver are audio transceivers in the same Bluetooth earphone. The first electronic device controls the third audio transceiver to output the second audio, and receives the second audio through the corresponding fourth audio transceiver. The third audio transceiver and the fourth audio transceiver can transmit the output time of outputting the second audio and the receiving time of receiving the second audio to the first electronic device, and the first electronic device determines the transmission time of the second audio based on the output time and the receiving time, and determines the first distance according to the transmission speed and the transmission time of the second audio.
[0069] Exemplarily, the Bluetooth earphone is a bone conduction earphone. In the process of detecting the first distance, the third audio transceiver sends an infrasound signal, and the fourth audio transceiver receives the infrasound signal through bone conduction. After the first electronic device receives the output time and the receiving time, the transmission time of the infrasound signal is determined, and the first distance is determined based on the transmission time.
[0070] In the embodiments of the present application, by utilizing the characteristics of sound wave transmission, the first distance between the two audio transceivers in the same Bluetooth earphone in the wearing state can be accurately determined, and the accuracy of the positioning of the target earphone is improved.
[0071] In some embodiments of the present application, the first electronic device includes three positioning conditions in the process of positioning the target earphone, wherein the first positioning condition is that the first distance is within a first preset range, the second positioning condition is that the second distance is less than a first distance threshold and the third distance is less than a second distance threshold, and the third condition is that the second distance and the third distance satisfy a preset numerical relationship or the target distance is within a second preset range.
[0072] In the embodiments of the present application, when the user does not wear the second electronic device, only the first condition is used as the only judgment condition, that is, the Bluetooth earphone satisfying the first condition is used as the target earphone.
[0073] When the user wears the second electronic device, the first condition is used as the judgment first, and the Bluetooth earphone satisfying the first condition is used as the second earphone to judge whether the second condition is satisfied. In the case that there is a second earphone satisfying the second condition, the third condition is used for verification, and the second earphone passing the verification is determined as the target earphone.
[0074] It should be noted that in the case that the number of target earphones is detected to be greater than 1, it is determined that the current positioning fails, and a failure prompt message is output. In the case that the number of target earphones is detected to be 1, the target earphone can be controlled to broadcast the private information.
[0075] The positioning method provided in the embodiments of the present application can be executed by the positioning device. In the embodiments of the present application, the positioning device executing the positioning method is taken as an example to illustrate the positioning device provided in the embodiments of the present application.
[0076] In some embodiments of the present application, a positioning device is provided, which is applied to a first electronic device, the first electronic device is connected with at least two pairs of Bluetooth earphones, each pair of Bluetooth earphones includes two audio transceivers, and in the wearing state of the same pair of Bluetooth earphones, the two audio transceivers are respectively worn on the left ear and the right ear of the user. Figure 7 A schematic block diagram of the positioning device provided in the embodiments of the present application is shown. As shown in Figure 7 The positioning device 700 includes:
[0077] The acquisition module 702 is configured to acquire the first distance of each pair of Bluetooth earphones when the Bluetooth earphone is in the wearing state, and the first distance is the distance between the audio transceivers in the same pair of Bluetooth earphones.
[0078] The determination module 704 is configured to determine the target earphone in the at least two pairs of Bluetooth earphones according to the first distance.
[0079] In the embodiments of the present application, when the first electronic device is in communication connection with the plurality of Bluetooth earphones, the first electronic device can obtain a first distance between two audio transceivers in the plurality of Bluetooth earphones, and screen the plurality of Bluetooth earphones according to the first distance, so as to accurately determine a target earphone used by a primary user in the plurality of Bluetooth earphones, and enable the first electronic device to accurately transmit private information to the target earphone, thereby avoiding leakage of the private information.
[0080] In some embodiments of the present application, the first electronic device is in communication connection with a second electronic device, and the second electronic device is a wearable electronic device.
[0081] The determining module 704 is configured to determine the Bluetooth earphone with the first distance within the first preset range as the first earphone.
[0082] The determining module 704 is configured to determine the first earphone as the target earphone when the second electronic device is in the unworn state and the number of the first earphones is one.
[0083] The obtaining module 702 is configured to obtain position information of each first earphone relative to the second electronic device when the second electronic device is in the worn state.
[0084] The positioning apparatus 700 further includes:
[0085] The screening module is configured to screen the target earphone in the first earphones according to the position information.
[0086] In the embodiments of the present application, when the first electronic device screens the first earphone through the plurality of first distances, and the second electronic device bound to the first electronic device is in the worn state, the first earphone can be further screened through the second electronic device, thereby improving the accuracy of positioning the target earphone.
[0087] In some embodiments of the present application, the position information includes a second distance between the first audio transceiver in the same first earphone and the second electronic device, and a third distance between the second audio transceiver and the second electronic device.
[0088] The positioning apparatus 700 further includes:
[0089] The first control device is configured to control the second electronic device to output the first audio.
[0090] The determining module 704 is configured to determine the second distance and the third distance according to receiving instants at which the first audio transceiver and the second audio transceiver receive the first audio.
[0091] In the embodiments of the present application, the second distance and the third distance between the two audio transceivers in the same pair of first earphones relative to the second electronic device are taken as the position information of the second electronic device relative to the first earphones, so that the accuracy of screening and checking the first earphones according to the position information can be improved. Moreover, the second electronic device outputs the first audio, and the second distance and the third distance are accurately determined according to the time when the first audio is received by the first earphones, so that the accuracy of positioning the target earphones is further improved.
[0092] In some embodiments of the present application, the determining module 704 is configured to determine the first earphones whose second distance is less than a first distance threshold and whose third distance is less than a second distance threshold as the second earphones.
[0093] The determining module 704 is configured to determine a preset numerical relationship between the second distance and the third distance corresponding to the second earphones, and a second preset range of the target distance among the second distance and the third distance.
[0094] The screening module is configured to screen the target earphones among the second earphones according to the preset numerical relationship and the second preset range.
[0095] In the embodiments of the present application, when the two users are close to each other, there is a certain error in screening the target earphones only according to the distances between the second electronic device and the two audio transceivers in different earphones. For example, when the arm of the main user wearing the second electronic device is close to the face of the other user, there is a possibility of misjudgment. In the embodiments of the present application, the numerical relationship between the distances between the two audio transceivers in the earphones relative to the second electronic device is detected, and the target distance among the two distances is screened, so that the second earphones are checked based on the numerical relationship between the target distance and the second preset range. When the checking is passed, the second earphones are determined as the target earphones, so that the accuracy of determining the target earphones is further improved.
[0096] In some embodiments of the present application, the determining module 704 is configured to determine the second earphones as the target earphones when the second distance and the third distance corresponding to the second earphones satisfy the preset numerical relationship.
[0097] The determining module 704 is configured to determine the second earphones as the target earphones when the target distance is within the second preset range when the second distance and the third distance corresponding to the second earphones do not satisfy the preset numerical relationship.
[0098] In the embodiments of the present application, in the case that the second earphone is screened out through the second distance and the third distance between the second electronic device and the first audio transceiver and the second audio transceiver in the first earphone, the second distance and the third distance, and the numerical relationship between the target distance in the second distance and the third distance and the second preset range, can be used to accurately check whether the second earphone is the target earphone, and the accuracy of positioning the target earphone by the first electronic device is further improved.
[0099] In some embodiments of the present application, the determining module 704 is further configured to determine that the positioning of the target earphone fails in the case that the number of target earphones is more than one.
[0100] In the embodiments of the present application, due to the uncontrollability of the user's body posture and the different ways of wearing earphones by different users, there is a case of erroneously positioning more than one target earphone. When more than one target earphone is positioned, the user can only wear one earphone, so it is determined that the positioning fails, and a positioning failure prompt information is output.
[0101] In some embodiments of the present application, the second control module is configured to control the third audio transceiver to play the second audio, and the third audio transceiver is any audio transceiver in the same pair of Bluetooth earphones.
[0102] The determining module 704 is configured to determine the first distance according to the receiving time of the second audio received by the fourth audio transceiver, and the fourth audio transceiver is an audio transceiver in the same pair of Bluetooth earphones except the third audio transceiver.
[0103] In the embodiments of the present application, the first distance between the two audio transceivers in the same pair of Bluetooth earphones in the wearing state can be accurately determined by using the characteristics of sound wave transmission, and the accuracy of positioning the target earphone is improved.
[0104] The positioning apparatus in the embodiments of the present applicationapplicationbe an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic deviceapplicationbe a terminal or another device other than a terminal. For example, the electronic deviceapplicationbe a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), andapplicationbe a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, and the like, and the embodiments of the present application do not make a specific limitation.
[0105] The positioning apparatus in the embodiments of the present applicationapplicationbe a device having an operating system. The operating systemapplicationbe an Android operating system, an iOS operating system, or another possible operating system, and the embodiments of the present application do not make a specific limitation.
[0106] The positioning apparatus provided in the embodiments of the present applicationapplicationimplement the various processes achieved by the method embodiments, and thus the details are not described herein again.
[0107] Optionally, the embodiments of the present application further provide an electronic device including the positioning apparatus in any of the above embodiments, and thus has all the beneficial effects of the positioning apparatus in any of the embodiments, and the details are not described herein again.
[0108] Optionally, the embodiments of the present application further provide an electronic device including the positioning apparatus in any of the above embodiments. Figure 8 A structural block diagram of an electronic device according to the embodiments of the present application is shown in FIG. 8. Figure 8 As shown in FIG. 8, the electronic device 800 includes a processor 802, a memory 804, and a program or instruction stored in the memory 804 and executable on the processor 802. The program or instruction is executed by the processor 802 to implement the various processes of the positioning method embodiments and achieve the same technical effects, and thus the details are not described herein again.
[0109] It should be noted that the electronic device in the embodiments of the present applicationapplicationinclude the above mobile electronic device and non-mobile electronic device.
[0110] It should be noted that the electronic device in the embodiments of the present applicationapplicationinclude the above mobile electronic device and non-mobile electronic device.Figure 9 A hardware structure schematic diagram of an electronic device according to an embodiment of the present application.
[0111] The electronic device 900 includes, but is not limited to, a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910, etc.
[0112] Those skilled in the art can understand that the electronic device 900 can also include a power supply (such as a battery) for powering each component, and the power supply can be logically connected to the processor 910 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than the figure, or combine certain components, or different component arrangements, which are not described here.
[0113] The processor 910 is configured to, when the Bluetooth earphone is in a wearing state, acquire a first distance of each Bluetooth earphone, the first distance being a distance between audio transceivers in the same Bluetooth earphone.
[0114] The processor 910 is configured to determine a target earphone in at least two Bluetooth earphones according to the first distance.
[0115] In the embodiment of the present application, when the first electronic device is in communication connection with multiple Bluetooth earphones, the first electronic device can acquire a first distance between two audio transceivers in the multiple Bluetooth earphones, and screen the multiple Bluetooth earphones according to the first distance, so as to accurately determine a target earphone used by a primary user in the multiple Bluetooth earphones, so that the first electronic device can accurately transmit private information to the target earphone, and avoid leakage of the private information.
[0116] Further, the first electronic device is in communication connection with a second electronic device, and the second electronic device is a wearable electronic device.
[0117] The processor 910 is configured to determine a Bluetooth earphone with the first distance within a first preset range as a first earphone.
[0118] The processor 910 is configured to, when the second electronic device is in an unwearing state and the number of the first earphones is one, determine the first earphone as the target earphone.
[0119] The processor 910 is configured to, when the second electronic device is in a wearing state, acquire position information of each first earphone relative to the second electronic device.
[0120] The processor 910 is configured to screen the target earphone from the first earphones according to the position information.
[0121] In the embodiments of the present application, when the first electronic device screens the first earphones through the plurality of first distances, and the second electronic device bound with the first electronic device is in a wearing state, the first earphones can be further screened through the second electronic device, and the accuracy of positioning the target earphone is improved.
[0122] Further, the position information includes a second distance between a first audio transceiver in the same pair of first earphones and the second electronic device, and a third distance between a second audio transceiver and the second electronic device.
[0123] The processor 910 is configured to control the second electronic device to output a first audio.
[0124] The processor 910 is configured to determine the second distance and the third distance according to the receiving time of the first audio received by the first audio transceiver and the second audio transceiver.
[0125] In the embodiments of the present application, the second distance and the third distance between the two audio transceivers in the same pair of first earphones and the second electronic device are taken as the position information of the second electronic device relative to the first earphones, which can improve the accuracy of screening and checking the first earphones according to the position information. Furthermore, the first audio is output by the second electronic device, and the second distance and the third distance are accurately determined according to the receiving time of the first audio received by the first earphone, which further improves the accuracy of positioning the target earphone.
[0126] Further, the processor 910 is configured to determine the first earphone as a second earphone when the second distance is less than a first distance threshold and the third distance is less than a second distance threshold.
[0127] The processor 910 is configured to determine a preset numerical relationship of the second distance and the third distance corresponding to the second earphone, and a second preset range of a target distance in the second distance and the third distance.
[0128] The screening module is configured to screen the target earphone from the second earphone according to the preset numerical relationship and the second preset range.
[0129] In the embodiment of the present application, in the case that the two users are close to each other, there is a certain error in screening the target earphone only according to the distance between the second electronic device and the two audio transceivers in different earphones, for example, when the main user wears the second electronic device on the arm close to the face of the other user, there is a possibility of misjudgment. The embodiment of the present application detects the numerical relationship between the distances between the two audio transceivers in the earphone relative to the second electronic device, and screens the target distance between the two distances, and checks the second earphone based on the numerical relationship between the target distance and the second preset range, and in the case that the check is passed, determines that the second earphone is the target earphone, thereby further improving the accuracy of determining the target earphone.
[0130] Further, the processor 910 is configured to determine the second earphone as the target earphone in the case that the second distance and the third distance corresponding to the second earphone satisfy the preset numerical relationship.
[0131] The processor 910 is configured to determine the second earphone in which the target distance is within the second preset range as the target earphone in the case that the second distance and the third distance corresponding to the second earphone do not satisfy the preset numerical relationship.
[0132] In the embodiment of the present application, in the case that the second earphone is screened through the second distance and the third distance between the first audio transceiver and the second audio transceiver in the first earphone and the second electronic device, the numerical relationship between the second distance and the third distance and the numerical relationship between the target distance in the second distance and the third distance and the second preset range can be used to accurately check whether the second earphone is the target earphone, thereby further improving the accuracy of positioning the target earphone by the first electronic device.
[0133] Further, the processor 910 is configured to determine that the positioning of the target earphone fails in the case that the number of target earphones is multiple.
[0134] In the embodiment of the present application, due to the uncontrollability of the user's body posture and the different ways of wearing earphones by different users, there is a case of incorrectly positioning multiple target earphones. When multiple target earphones are positioned, the user can only wear one earphone, so it is determined that the positioning fails, and a positioning failure prompt information is output.
[0135] Further, the processor 910 is configured to control the third audio transceiver to play the second audio, the third audio transceiver being any audio transceiver in the same Bluetooth earphone.
[0136] The processor 910 is configured to determine the first distance according to the receiving time of the second audio received by the fourth audio transceiver, the fourth audio transceiver being an audio transceiver in the same Bluetooth earphone except the third audio transceiver.
[0137] In the embodiments of the present application, by utilizing the characteristics of sound wave transmission, the first distance between the two audio transceivers in the same Bluetooth earphone in the wearing state can be accurately determined, and the positioning accuracy of the target earphone is improved.
[0138] It should be understood that in the embodiments of the present application, the input unit 904 can include a graphics processor (GPU) 9041 and a microphone 9042. The graphics processor 9041 processes image data of a still picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 906 can include a display panel 9061, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 907 includes at least one of a touch panel 9071 and other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 can include two parts of a touch detection device and a touch controller. The other input devices 9072 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, etc.), trackballs, mice, joysticks, and the like, which will not be described here.
[0139] The memory 909 can be used to store software programs and various data. The memory 909 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), and the like. In addition, the memory 909 can include a volatile memory or a non-volatile memory, or the memory 909 can include both a volatile memory and a non-volatile memory. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synch link DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory 909 in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.
[0140] The processor 910 can include one or more processing units; optionally, the processor 910 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 910.
[0141] The embodiments of the present application also provide a readable storage medium, and the readable storage medium stores programs or instructions, the programs or instructions are executed by a processor to realize various processes of the above-mentioned method embodiments and achieve the same technical effects. To avoid repetition, details are not described here.
[0142] The processor is a processor in the electronic device in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0143] The chip provided in the embodiments of the present application includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used to run programs or instructions to realize the processes of the positioning method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.
[0144] It should be understood that the chip mentioned in the embodiments of the present application can also be referred to as a system-level chip, a system chip, a chip system, or a system-on-chip, etc.
[0145] The embodiments of the present application provide a computer program product stored in a storage medium, which is executed by at least one processor to realize the processes of the positioning method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.
[0146] It should be noted that in this document, the terms "comprising", "including", or any other variant thereof are intended to cover non-exclusive inclusion, so that processes, methods, articles, or devices including a series of elements not only include those elements, but also include other elements not explicitly listed, or include elements inherent to such processes, methods, articles, or devices. Without more limitations, the element defined by the statement "including a" does not exclude the presence of additional identical elements in the process, method, article, or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to the order of performing the functions as shown or discussed, but can also include performing the functions in a substantially simultaneous manner or in a reverse order, for example, the described method can be performed in an order different from the described order, and various steps can be added, omitted, or combined. In addition, the features described with reference to certain examples can be combined in other examples.
[0147] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by means of software and necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, or optical disk), and includes a plurality of instructions for making a terminal (which can be a mobile phone, computer, server, or network device, etc.) execute the method of each embodiment of the present application.
[0148] The embodiments of the present application are described above with reference to the accompanying drawings, but the present application is not limited to the above-described specific embodiments, and the above-described specific embodiments are merely illustrative, but not restrictive, and a person of ordinary skill in the art can make many forms under the inspiration of the present application without departing from the purpose of the present application and the scope protected by the claims.
Claims
1. A positioning method applied to a first electronic device, characterized in that, The first electronic device is connected with at least two pairs of Bluetooth earphones, each pair of the Bluetooth earphones comprises two audio transceivers, the first electronic device is communicatively connected with a second electronic device, the second electronic device is a wearable electronic device, a user identity of the first electronic device is bound with the second electronic device, and the positioning method comprises: In a wearing state of the Bluetooth earphones, a first distance of each pair of the Bluetooth earphones is acquired, the first distance being a distance between the audio transceivers in the same pair of the Bluetooth earphones; According to the first distance, a target earphone in the at least two pairs of Bluetooth earphones is determined; The determination of the target earphone in the at least two pairs of Bluetooth earphones according to the first distance comprises: The Bluetooth earphone with the first distance in a first preset range is determined as a first earphone; In a wearing state of the second electronic device, position information of each first earphone relative to the second electronic device is acquired; According to the position information, the target earphone in the first earphones is screened.
2. The positioning method according to claim 1, characterized in that, The determination of the target earphone in the at least two pairs of Bluetooth earphones according to the first distance further comprises: In an unwearing state of the second electronic device, and when the number of the first earphones is one, the first earphone is determined as the target earphone.
3. The positioning method according to claim 2, characterized in that, The position information comprises a second distance between a first audio transceiver in the same pair of the first earphones and the second electronic device, and a third distance between a second audio transceiver and the second electronic device; The acquisition of the position information of each first earphone relative to the second electronic device comprises: The second electronic device outputs a first audio; According to receiving instants of the first audio received by the first audio transceiver and the second audio transceiver, the second distance and the third distance are determined.
4. The positioning method according to claim 3, characterized in that, The screening of the target earphone in the first earphones according to the position information further comprises: The first earphone with the second distance smaller than a first distance threshold value and the third distance smaller than a second distance threshold value is determined as a second earphone; A preset numerical relationship of the second distance and the third distance corresponding to the second earphone, and a second preset range of a target distance in the second distance and the third distance are determined; According to the preset numerical relationship and the second preset range, the target earphone in the second earphones is screened.
5. The positioning method according to claim 4, characterized in that, The screening of the target earphone in the second earphones according to the preset numerical relationship and the second preset range comprises: In a case where the second distance and the third distance corresponding to the second earphone satisfy a preset numerical relationship, the second earphone is determined as the target earphone; In a case where the second distance and the third distance corresponding to the second earphone do not satisfy the preset numerical relationship, the second earphone with the target distance in the second preset range is determined as the target earphone.
6. The positioning method according to any one of claims 1 to 5, characterized in that, The acquisition of the first distance of each pair of the Bluetooth earphones comprises: A third audio transceiver plays a second audio, the third audio transceiver being any audio transceiver in the same pair of the Bluetooth earphones; The first distance is determined according to a receiving time of the second audio by a fourth audio transceiver, the fourth audio transceiver being an audio transceiver other than the third audio transceiver in the same Bluetooth earphone.
7. A positioning apparatus applied to a first electronic device, characterized in that, The first electronic device is connected with at least two pairs of Bluetooth earphones, each pair of Bluetooth earphones including two audio transceivers, the first electronic device is in communication connection with a second electronic device, the second electronic device being a wearable electronic device, a user identity of the first electronic device and the second electronic device being bound, and the positioning apparatus comprising: An acquisition module is configured to acquire a first distance of each pair of Bluetooth earphones when the Bluetooth earphones are in a wearing state, the first distance being a distance between the audio transceivers in the same pair of Bluetooth earphones; A determination module is configured to determine a target earphone in the at least two pairs of Bluetooth earphones according to the first distance; The determination module is configured to determine a first earphone as the Bluetooth earphone whose first distance is within a first preset range. The acquisition module is configured to acquire position information of each first earphone relative to the second electronic device when the second electronic device is in a wearing state. The positioning apparatus further comprises: A screening module is configured to screen the target earphone in the first earphone according to the position information.
8. The positioning device of claim 7, wherein, The determination module is configured to determine the first earphone as the target earphone when the second electronic device is in an unwearing state and the number of the first earphones is one.
9. The positioning device of claim 8, wherein, The position information includes a second distance between a first audio transceiver in the same pair of first earphones and the second electronic device, and a third distance between a second audio transceiver and the second electronic device. The positioning apparatus further comprises: A first control device is configured to control the second electronic device to output a first audio. The determination module is configured to determine the second distance and the third distance according to receiving times of the first audio received by the first audio transceiver and the second audio transceiver.
10. The positioning apparatus according to claim 9, wherein The determination module is configured to determine a second earphone as the first earphone whose second distance is less than a first distance threshold and whose third distance is less than a second distance threshold. The determination module is configured to determine a preset numerical relationship between the second distance and the third distance corresponding to the second earphone, and a second preset range of a target distance in the second distance and the third distance. The screening module is configured to screen the target earphone in the second earphone according to the preset numerical relationship and the second preset range.
11. An electronic device, comprising: The apparatus comprises: A processor and a memory, the memory storing programs or instructions executable on the processor, the programs or instructions being executed by the processor to implement the steps of the positioning method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Identity authentication method and device and electronic equipment
CN115134701A
Audio sharing method and apparatus, terminal, audio device and storage medium
WO2022247558A1