TWS headset positioning method, system, device, equipment and storage medium
By monitoring the motion status and sending position information in the TWS headset, the problem of user forgetting or losing the headset is solved, and a low-cost and efficient positioning assistance function is realized.
Patent Information
- Application Number
- CN202111550428.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-17
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2041-12-17
AI Technical Summary
In daily use, TWS headphones are prone to being unable to retract the headphone box in time due to different wear of users or being worn by different people, resulting in the problem of forgetting or losing.
Add positioning assistance function to TWS headsets, and positioning information is determined and sent to the headset box by monitoring the movement status of the headset when it leaves the headset box.
Users can promptly obtain the position information of the headphones, avoid forgetting or losing, and realize positioning assistance functions under low production costs and design difficulties.
Smart Images

Figure CN114245458B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communication technologies, and in particular to a positioning method, system, device, equipment and storage medium for a TWS headset. Background Art
[0002] With the maturity of wireless audio transmission technology, more and more TWS earphones are entering the consumer electronics market. With its compact appearance and high-quality sound experience, TWS earphones have been favored by consumers and have become a key product that major manufacturers are competing to develop.
[0003] However, in daily use, users often do not wear two TWS earphones at the same time. For example, a user may only wear one TWS earphone and put the other TWS earphone outside the earphone box; or, a pair of TWS earphones may be worn by two different people for a considerable period of time. Based on the above situation, the TWS earphones may not be retracted into the earphone box in time, causing the user to forget where the earphones are placed, or not be able to find the earphones when they are needed, or even cause the earphones to be lost. Summary of the invention
[0004] The main purpose of the present invention is to provide a positioning method, device, equipment and computer storage medium for TWS headphones, aiming to add a positioning assistance function to the TWS headphones so that users can promptly know the location information of the TWS headphones.
[0005] To achieve the above object, the present invention provides a positioning method for a TWS headset, the positioning method for the TWS headset is applied to a TWS (True Wireless Stereo) headset, and the positioning method for the TWS headset comprises the following steps:
[0006] When it is detected that the TWS earphone leaves the corresponding earphone box, monitoring the first motion state of the TWS earphone;
[0007] Determine first position information of the TWS headset according to the first motion state;
[0008] The first position information is sent to the earphone box so that the earphone box can locate the TWS earphone according to the first position information.
[0009] Furthermore, the step of sending the first position information to the earphone box may include:
[0010] detecting whether the first motion state is a stationary state;
[0011] If the first motion state is the static state, detecting whether the duration of the static state reaches a first preset time threshold;
[0012] If yes, the first location information is sent to the earphone box.
[0013] Furthermore, the step of sending the first position information to the earphone box may include:
[0014] Detecting the power level of the TWS headset;
[0015] If the power value reaches a preset power threshold, the first position information is sent to the earphone box.
[0016] In addition, to achieve the above-mentioned purpose, the present invention provides a positioning method for a TWS headset, the positioning method for the TWS headset is applied to an earphone box, and the positioning method for the TWS headset comprises the following steps:
[0017] When it is detected that the TWS earphone leaves the earphone box, the current position of the earphone box is set as the origin position;
[0018] Receiving first location information sent by the TWS headset;
[0019] The relative position between the TWS earphone and the earphone box is determined based on the first position information and the origin position to position the TWS earphone.
[0020] Further, after the step of receiving the first location information sent by the TWS headset, it also includes:
[0021] Monitoring a second motion state of the earphone box after it leaves the origin position;
[0022] If the second motion state is a stationary state and lasts for a second preset time threshold, recording the second position information of the earphone box;
[0023] The step of determining the relative position between the TWS earphone and the earphone box based on the first position information and the origin position may include:
[0024] The relative position between the TWS earphone and the earphone box is determined based on the first position information, the second position information and the origin position.
[0025] Further, after the step of determining the relative position between the TWS earphone and the earphone box based on the first position information and the origin position, the method further includes:
[0026] Get the headset search command;
[0027] Instruction information is issued based on the headset search instruction and the relative position.
[0028] In addition, to achieve the above-mentioned purpose, the present invention further provides a positioning system for a TWS headset, wherein the positioning system for the TWS headset comprises a TWS headset and an earphone box, and the positioning system for the TWS headset comprises the following steps:
[0029] When the TWS earphone detects that it has left the earphone box, monitoring a first motion state of the TWS earphone;
[0030] When the earphone box detects that the TWS earphone leaves the earphone box, the current position is set as the origin position;
[0031] The TWS headset determines first position information according to the first motion state;
[0032] The TWS earphone sends the first location information to the earphone box;
[0033] The earphone box receives the first position information sent by the TWS earphone;
[0034] The earphone box determines the relative position between the TWS earphone and the earphone box based on the first position information and the origin position.
[0035] In addition, to achieve the above-mentioned purpose, the present invention also provides a positioning device for a TWS headset, and the positioning device for a TWS headset comprises:
[0036] A detection module, configured to monitor a first motion state of the TWS earphone when the TWS earphone leaves the earphone box;
[0037] A determination module, configured to determine first position information according to the first motion state;
[0038] A sending module is used to send the first position information to the earphone box.
[0039] Each functional module of the positioning device of the TWS headset of the present invention implements the steps of the positioning method of the TWS headset as described above during operation.
[0040] In addition, to achieve the above-mentioned purpose, the present invention also provides a positioning device for a TWS headset, wherein the positioning device for the TWS headset comprises a TWS headset and an earphone box;
[0041] The TWS headset includes: a first memory, a first processor, and a computer program stored in the first memory and executable on the first processor, wherein the computer program implements the steps of the TWS headset positioning method as described above when executed by the first processor;
[0042] The earphone box includes: a second memory, a second processor, and a computer program stored in the second memory and executable on the second processor, wherein the computer program implements the steps of the TWS earphone positioning method as described above when executed by the second processor.
[0043] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the positioning method of the TWS headset as described above are implemented.
[0044] In addition, an embodiment of the present invention further proposes a computer program product, which includes a positioning program for a TWS headset. When the positioning program for the TWS headset is executed by a processor, the steps of the positioning method for the TWS headset as described above are implemented.
[0045] Among them, the steps implemented when the TWS headset positioning program running on the processor is executed can refer to the various embodiments of the TWS headset positioning method of the present invention, and will not be repeated here.
[0046] The positioning method, device, equipment and computer storage medium of the TWS headset proposed in the present invention monitor the first motion state of the TWS headset when the TWS headset detects leaving the headset box; determines the first position information according to the first motion state; and sends the first position information to the headset box.
[0047] The present invention enables the TWS earphone to monitor its own first motion state when the user takes it out of the earphone box, determines its own first position information according to the first motion state, and then sends the first position information to the earphone box, so that the user can timely know the position information of the TWS earphone through the earphone box.
[0048] In this way, the TWS earphone positioning method provided by the present invention can add a positioning assistance function to the TWS earphone on the basis of low production cost and low design difficulty, so that the user can timely know the location information of the TWS earphone, avoiding the situation where the user forgets the location of the TWS earphone or loses the TWS earphone due to not wearing both TWS earphones at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a schematic diagram of the structure of the hardware operating environment of the terminal device involved in the embodiment of the present invention;
[0050] Figure 2 It is a flow chart of an embodiment of a positioning method for a TWS headset of the present invention;
[0051] Figure 3 It is a structural schematic diagram of a TWS headset and a corresponding headset box involved in an embodiment of the present invention;
[0052] Figure 4 is an application flow chart involved in an embodiment of the present invention;
[0053] Figure 5 It is a schematic diagram of the module structure of a positioning device for a TWS headset of the present invention.
[0054] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0055] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0056] like Figure 1 As shown, Figure 1 It is a structural diagram of the hardware operating environment of the terminal device involved in the embodiment of the present invention.
[0057] It should be noted that Figure 1 The terminal device of the embodiment of the present invention may be a terminal device for implementing the positioning method of a TWS headset, such as a TWS headset and a corresponding headset box, a PC, a portable computer, and other devices.
[0058] like Figure 1 As shown, the terminal device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0059] Those skilled in the art will understand that Figure 1 The terminal device structure shown in the figure does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0060] like Figure 1As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a distributed task processing program. The operating system is a program that manages and controls the hardware and software resources of the sample terminal device, and supports the operation of the distributed task processing program and other software or programs.
[0061] exist Figure 1 In the terminal device shown, the user interface 1003 is mainly used to communicate data with each terminal; the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; and the processor 1001 can be used to call the positioning program of the TWS headset stored in the memory 1005 and perform the following operations:
[0062] When it is detected that the TWS earphone leaves the corresponding earphone box, monitoring the first motion state of the TWS earphone;
[0063] Determine first position information of the TWS headset according to the first motion state;
[0064] The first position information is sent to the earphone box so that the earphone box can locate the TWS earphone according to the first position information.
[0065] Further, the processor 1001 may call a positioning program of the TWS headset stored in the memory 1005, and further perform the following operations:
[0066] detecting whether the first motion state is a stationary state;
[0067] If the first motion state is the static state, detecting whether the duration of the static state reaches a first preset time threshold;
[0068] If yes, the first location information is sent to the earphone box.
[0069] Further, the processor 1001 may call a positioning program of the TWS headset stored in the memory 1005, and further perform the following operations:
[0070] Detecting the power level of the TWS headset;
[0071] If the power value reaches a preset power threshold, the first position information is sent to the earphone box.
[0072] Further, the processor 1001 may call a positioning program of the TWS headset stored in the memory 1005, and further perform the following operations:
[0073] When it is detected that the TWS earphone leaves the earphone box, the current position of the earphone box is set as the origin position;
[0074] Receiving first location information sent by the TWS headset;
[0075] The relative position between the TWS earphone and the earphone box is determined based on the first position information and the origin position to position the TWS earphone.
[0076] Further, after the step of receiving the first location information sent by the TWS headset, the processor 1001 may call a positioning program of the TWS headset stored in the memory 1005, and further perform the following operations:
[0077] Monitoring a second motion state of the earphone box after it leaves the origin position;
[0078] If the second motion state is a stationary state and lasts for a second preset time threshold, recording the second position information of the earphone box;
[0079] The step of determining the relative position between the TWS earphone and the earphone box based on the first position information and the origin position may include:
[0080] The relative position between the TWS earphone and the earphone box is determined based on the first position information, the second position information and the origin position.
[0081] Further, after the step of determining the relative position between the TWS headset and the headset box based on the first position information and the origin position, the processor 1001 may call a positioning program of the TWS headset stored in the memory 1005, and further perform the following operations:
[0082] Get the headset search command;
[0083] Instruction information is issued based on the headset search instruction and the relative position.
[0084] Based on the above structure, various embodiments of the positioning method of the TWS headset of the present invention are proposed.
[0085] It should be noted that in daily use, users often do not wear two TWS earphones at the same time. For example, a user may only wear one TWS earphone and put the other TWS earphone outside the earphone box; or, a pair of TWS earphones may be worn by two different people for a considerable period of time. Based on the above situation, the TWS earphones may not be retracted into the earphone box in time, causing the user to forget where the earphones are placed, or not be able to find the earphones when they need to use them, or even cause the earphones to be lost.
[0086] Based on the above phenomenon, various embodiments of the positioning method of the TWS headset of the present invention are proposed. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here.
[0087] First embodiment: Please refer to Figure 2 , Figure 2 The first embodiment of the positioning method of the TWS headset provided by the present invention is applied to the TWS headset, wherein, Figure 3 As shown, the TWS headset includes an ACC (Adaptive Cruise Control) SENSOR module (adaptive cruise sensing module) for monitoring the motion state and a Bluetooth module SOC (Bluetooth chip-level system) for wireless communication. The positioning method of the TWS headset includes:
[0088] Step S110: When it is detected that the TWS earphone leaves the corresponding earphone box, the first motion state of the TWS earphone is monitored.
[0089] When the TWS earphones detect that they have left the corresponding earphone box, they will automatically wake up the functional module in the TWS earphones for monitoring the movement status of the TWS earphones, and record the moving direction and distance of the TWS earphones.
[0090] Specifically, for example, when the user takes out the TWS earphones from the earphone box, the TWS earphones detect that they are disconnected from the earphone box. At this time, the ACC SENSOR module in the TWS earphones used to monitor the movement status of the TWS earphones is automatically awakened, and then starts to record the moving direction and distance of the TWS earphones.
[0091] Step S120: Determine first position information of the TWS headset according to the first motion state.
[0092] After acquiring its own first motion state, the TWS headset determines the first position information corresponding to the coordinate system of the user preset algorithm according to the first motion state.
[0093] Specifically, for example, the TWS headset determines its own position information in a preset coordinate system according to its own moving direction and moving distance.
[0094] Step S130: Send the first position information to the earphone box so that the earphone box can locate the TWS earphone according to the first position information.
[0095] After the TWS headset determines its own first position information corresponding to the coordinate system of the preset algorithm, the first position information is sent to the corresponding earphone box, so that the earphone box can locate the TWS headset according to the first position information.
[0096] Specifically, for example, after the TWS headset determines its own position information in the preset coordinate system, it sends the position information to the corresponding earphone box through the Bluetooth module SOC, so that the earphone box can locate the TWS headset according to the position information, and the user can obtain the position information of the TWS headset in time through the earphone box.
[0097] In this embodiment, when the TWS earphone detects that it has left the corresponding earphone box, it will automatically wake up the functional module in the TWS earphone for monitoring the movement status of the TWS earphone, and record the moving direction and distance of the TWS earphone, and then determine its own first position information corresponding to the coordinate system of the user's preset algorithm, and then send the first position information to the corresponding earphone box, so that the earphone box can locate the TWS earphone according to the first position information.
[0098] In this way, this embodiment can add a positioning assistance function to the TWS headset on the basis of low production cost and low design difficulty, so that users can promptly know the location information of the TWS headset, thereby avoiding the situation where users forget the location of the TWS headset or lose the TWS headset due to not wearing both TWS headsets at the same time.
[0099] Furthermore, based on the above-mentioned first embodiment of the positioning method of the TWS headset, a second embodiment of the positioning method of the TWS headset of the present invention is proposed.
[0100] In a second embodiment of the positioning method of a TWS headset of the present invention, in the above step S300, the step of sending the first location information to the headset box may include:
[0101] Step A1, detecting whether the first motion state is a static state.
[0102] When the TWS headset detects that its moving direction and moving distance have not changed, it is judged that it is in a stationary state.
[0103] Step A2: if the first motion state is the static state, detecting whether the duration of the static state reaches a first preset time threshold.
[0104] It should be noted that, in this embodiment, the first preset time threshold is a time length standard pre-set by the TWS headset manufacturer or the user, and is used to measure whether the TWS headset is in a stable position after leaving the corresponding headset box.
[0105] When the TWS earphones monitor that their movement direction and distance do not change after leaving the earphone box, and the duration reaches the pre-set time standard, they judge that they are in a stable position.
[0106] Specifically, for example, Figure 4 As shown, assuming that the preset time threshold is 10 seconds, when the TWS headset monitors that its own moving direction and moving distance do not change for 10 seconds after leaving the headset box, it is judged that it is in a stable position state.
[0107] Step A3: If yes, the first location information is sent to the earphone box.
[0108] After the TWS earphone determines that it is in a stable position, it sends its first position information corresponding to the coordinate system of the preset algorithm to the corresponding earphone box.
[0109] In this embodiment, the TWS headset monitors that its own moving direction and moving distance do not change, and it is judged that it is in a stationary state at this time. If the duration of the stationary state reaches a preset time length standard, it is judged that it is in a stable position state. After the TWS headset determines that it is in a stable position state, it sends its first position information corresponding to the coordinate system of the preset algorithm to the corresponding earphone box.
[0110] In this way, this embodiment realizes that after the TWS earphone leaves the corresponding earphone box, the current position information is sent to the corresponding earphone box only when it is determined that it is in a stable position state, thereby avoiding unnecessary energy loss of the TWS earphone and increasing the receiving and storage costs of the earphone box due to continuous sending of redundant position information to the earphone box, thereby improving the practicality of the positioning method of the TWS earphone of the present invention.
[0111] Furthermore, based on the first embodiment of the positioning method for TWS earphones described above, a third embodiment of the positioning method for TWS earphones of the present invention is proposed.
[0112] In a third embodiment of the positioning method of a TWS headset of the present invention, in the above step S300, the step of sending the first location information to the headset box may include:
[0113] Step B1, detecting the power value of the TWS headset.
[0114] Step B2: if the power value reaches a preset power threshold, the first position information is sent to the earphone box.
[0115] It should be noted that, in this embodiment, the preset power threshold is a power standard preset by the TWS headset manufacturer or the user, which is used to measure whether the TWS headset is in a low-power state.
[0116] like Figure 4 As shown, after the TWS earphone leaves the corresponding earphone box, if it detects that its own power reaches the preset power standard, it determines that it is in a low-power state and immediately sends its first position information corresponding to the coordinate system of the preset algorithm to the corresponding earphone box.
[0117] Specifically, for example, assuming the preset power threshold is 10%, when the TWS headset monitors that the remaining power reaches 10% after leaving the earphone box, it determines that it is in a low-power state and immediately sends its corresponding position information in the preset coordinate system to the corresponding earphone box.
[0118] In this embodiment, after the TWS earphone leaves the corresponding earphone box, if it detects that its own power level has reached a preset power standard, it determines that it is in a low-power state and immediately sends its first position information corresponding to the coordinate system of the preset algorithm to the corresponding earphone box.
[0119] In this way, this embodiment realizes that after the TWS headset leaves the corresponding earphone box, the location information of the TWS headset can be sent to the corresponding earphone box in time when the power is sufficient to maintain wireless communication between the TWS headset and the corresponding earphone box, thereby avoiding the situation where the TWS headset cannot wirelessly communicate with the corresponding earphone box due to insufficient power, thereby improving the practicality of the positioning method of the TWS headset of the present invention.
[0120] Further, in a fourth embodiment of a positioning method for a TWS headset of the present invention, the positioning method for a TWS headset is applied to an earphone box corresponding to the TWS headset, wherein, Figure 3 As shown, the earphone box includes a Flash module for storing a preset algorithm program, and a Bluetooth module SOC for wireless communication with the TWS earphone. The positioning method of the TWS earphone includes:
[0121] Step S210, when it is detected that the TWS earphone leaves the earphone box, the current position of the earphone box is set as the origin position.
[0122] When the earphone box detects that the TWS earphone has left the earphone box, it will automatically use the current position of the earphone box as the origin position in the coordinate system of the preset algorithm.
[0123] Specifically, for example, when the user takes out the TWS earphones from the earphone box, the earphone box detects that the connection with the TWS earphones is disconnected. At this time, the earphone box uses the Flash module to record the current position of the earphone box as the origin position in the preset coordinate system. Among them, since the origin position is recorded at the moment when the TWS earphones leave the earphone box, it can be considered that the positions of the TWS earphones and the earphone box at that moment are the same, both of which are the origin position.
[0124] Step S220, receiving first location information sent by the TWS headset.
[0125] After the TWS earphone leaves the corresponding earphone box, it still maintains wireless communication with the earphone box. The earphone box can receive the first location information sent by the TWS earphone through the Bluetooth module SOC.
[0126] Step S230: Determine the relative position between the TWS earphone and the earphone box based on the first position information and the origin position to position the TWS earphone.
[0127] After the earphone box receives the first position information sent by the TWS earphone through the Bluetooth module SOC, it compares and calculates the first position information with the origin position in the coordinate system of the preset algorithm to determine the relative position between the TWS earphone and the earphone box, thereby realizing positioning of the TWS earphone.
[0128] In this embodiment, when the earphone box detects that the TWS earphone has left the earphone box, the current position of the earphone box will be automatically used as the origin position in the coordinate system of the preset algorithm; after the TWS earphone leaves the corresponding earphone box, it still maintains wireless communication with the earphone box, and the earphone box can receive the first position information sent by the TWS earphone through the Bluetooth module SOC; after the earphone box receives the first position information sent by the TWS earphone through the Bluetooth module SOC, the first position information is compared and calculated with the origin position in the coordinate system of the preset algorithm to determine the relative position between the TWS earphone and the earphone box, thereby realizing positioning of the TWS earphone.
[0129] In this way, this embodiment realizes the monitoring and positioning of the TWS earphones based on the earphone box on the basis of low production cost and low design difficulty, so that the user can timely know the location information of the TWS earphones, avoiding the situation where the user forgets the position of the TWS earphones or loses the TWS earphones due to not wearing both TWS earphones at the same time.
[0130] Furthermore, based on the fourth embodiment of the positioning method of the TWS headset described above, a fifth embodiment of the positioning method of the TWS headset of the present invention is proposed.
[0131] In the fifth embodiment of the positioning method of the TWS headset of the present invention, after the above step S220, it also includes:
[0132] Step C1, monitoring a second motion state of the earphone box after it leaves the origin position.
[0133] When the earphone box detects that the TWS earphones have left, it will automatically wake up the functional module in the earphone box for monitoring the movement status of the earphone box, and record the moving direction and distance of the earphone box after it leaves the origin.
[0134] Specifically, for example, when the user takes out the TWS earphones from the earphone box, the earphone box detects that the connection with the TWS earphones is disconnected. At this time, the ACC SENSOR module in the earphone box for monitoring the movement status of the earphone box is automatically awakened, and then starts to record the moving direction and distance of the earphone box after leaving the origin position.
[0135] Step C2: if the second motion state is a stationary state and lasts for a second preset time threshold, then the second position information of the earphone box is recorded.
[0136] It should be noted that, in this embodiment, the second preset time threshold is a time length standard preset by the TWS headset manufacturer or the user, and is used to measure whether the earphone box is in a stable position.
[0137] When the earphone box monitors that its own moving direction and moving distance do not change after leaving the origin position, and the duration reaches a preset time standard, it determines that it is in a stable position state and records its second position information in the coordinate system of the preset algorithm.
[0138] Specifically, for example, Figure 4 As shown, assuming that the preset time threshold is 10 seconds, when the earphone box monitors that its own moving direction and moving distance do not change for 10 seconds after leaving the origin position, it is judged that it is in a stable position state and records its position information in the preset coordinate system.
[0139] In this embodiment, in the above step S230, the step of determining the relative position between the TWS earphone and the earphone box based on the first position information and the origin position may include:
[0140] Step S231: determine the relative position between the TWS earphone and the earphone box based on the first position information, the second position information and the origin position.
[0141] In the coordinate system of the preset algorithm, the earphone box compares and calculates the first position information sent by the TWS earphone, the second position information recorded by itself, and the initially set origin position to determine the relative position between the TWS earphone and the earphone box, thereby achieving positioning of the TWS earphone.
[0142] In this embodiment, when the earphone box detects that the TWS earphone has left, it will automatically wake up the functional module in the earphone box for monitoring the movement status of the earphone box, and record the moving direction and distance of the earphone box after it leaves the origin position; when the earphone box monitors that its own moving direction and moving distance do not change after leaving the origin position, and the duration reaches the preset time length standard, it is judged that it is in a stable position state, and records its second position information in the coordinate system of the preset algorithm; in the coordinate system of the preset algorithm, the earphone box compares and calculates the first position information sent by the TWS earphone, the second position information recorded by itself, and the initially set origin position, to determine the relative position between the TWS earphone and the earphone box, thereby realizing positioning of the TWS earphone.
[0143] In this way, this embodiment defines the specific steps for calculating the relative positions of the earphone box and the TWS earphones to locate the TWS earphones when the earphone box moves, thereby improving the practicality of the positioning method of the TWS earphones of the present invention.
[0144] Furthermore, based on the fifth embodiment of the positioning method for TWS earphones described above, a sixth embodiment of the positioning method for TWS earphones of the present invention is proposed.
[0145] In the sixth embodiment of the positioning method of the TWS headset of the present invention, after the above step S230, it also includes:
[0146] Step D1, obtaining a headset search instruction;
[0147] Step D2: issuing an indication message based on the headset search instruction and the relative position.
[0148] like Figure 4 As shown, the earphone box is provided with a button and an indicator light. When the user needs to find the TWS earphone, the button provided on the earphone box is pressed to enable the earphone box to obtain the earphone search instruction actively triggered by the user, and then the earphone box will send an indication information to the user through the indicator light according to the relative position between the TWS earphone and the earphone box. For example, the indicator light is a cross-shaped indicator light, and the light on the front / back / left / right side is controlled to light up according to the relative position between the TWS earphone and the earphone box to indicate the position of the TWS earphone relative to the earphone box, and then the distance of the TWS earphone relative to the earphone box is indicated by adjusting the brightness or flashing frequency of the indicator light.
[0149] In this embodiment, the user presses a button on the earphone box to trigger the earphone search instruction, and then an indicator light on the earphone box sends an indication message so that the user can find the TWS earphone according to the indication of the earphone box.
[0150] In addition, to achieve the above-mentioned purpose, the present invention further provides a positioning system for a TWS headset, wherein the positioning system for the TWS headset comprises a TWS headset and an earphone box, and the positioning system for the TWS headset comprises the following steps:
[0151] When the TWS earphone detects that it has left the earphone box, monitoring the first motion state of the TWS earphone;
[0152] When the earphone box detects that the TWS earphone has left the earphone box, the current position is set as the origin position;
[0153] The TWS headset determines first position information according to the first motion state;
[0154] The TWS earphone sends the first location information to the earphone box;
[0155] The earphone box receives the first position information sent by the TWS earphone;
[0156] The earphone box determines the relative position between the TWS earphone and the earphone box based on the first position information and the origin position.
[0157] In addition, please refer to Figure 5 The embodiment of the present invention further provides a positioning device for a TWS headset. The positioning device for a TWS headset of the present invention includes:
[0158] A detection module, configured to monitor a first motion state of the TWS earphone when the TWS earphone leaves the earphone box;
[0159] A determination module, configured to determine first position information according to the first motion state;
[0160] A sending module is used to send the first position information to the earphone box.
[0161] Preferably, the positioning device of the TWS headset includes:
[0162] The first detection unit is used to detect whether the first motion state is a static state; if the first motion state is the static state, detect whether the duration of the static state reaches a first preset time threshold; if so, send the first position information to the earphone box.
[0163] Preferably, the positioning device of the TWS headset includes:
[0164] The second detection unit is used to detect the power value of the TWS headset; if the power value reaches a preset power threshold, the first location information is sent to the headset box.
[0165] In addition, an embodiment of the present invention further proposes a positioning device for a TWS headset, and the positioning device for the TWS headset includes a TWS headset and an earphone box.
[0166] The TWS headset includes: a first memory, a first processor, and a computer program stored in the first memory and executable on the first processor, wherein the computer program implements the steps of the TWS headset positioning method as described above when executed by the first processor;
[0167] The earphone box includes: a second memory, a second processor, and a computer program stored in the second memory and executable on the second processor, wherein the computer program implements the steps of the TWS earphone positioning method as described above when executed by the second processor.
[0168] In addition, an embodiment of the present invention also proposes a storage medium, which is applied to a computer. The storage medium may be a non-volatile computer-readable storage medium, which stores a positioning program for TWS headphones. When the positioning program for TWS headphones is executed by a processor, the steps of the positioning method for TWS headphones as described above are implemented.
[0169] Among them, the steps implemented when the TWS headset positioning program running on the processor is executed can refer to the various embodiments of the TWS headset positioning method of the present invention, and will not be repeated here.
[0170] In addition, an embodiment of the present invention further proposes a computer program product, which includes a positioning program for a TWS headset. When the positioning program for the TWS headset is executed by a processor, the steps of the positioning method for the TWS headset as described above are implemented.
[0171] Among them, the steps implemented when the TWS headset positioning program running on the processor is executed can refer to the various embodiments of the TWS headset positioning method of the present invention, and will not be repeated here.
[0172] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0173] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0174] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention is essentially or part of the contribution to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), including a number of instructions for enabling the positioning device of the TWS headset to execute the methods described in each embodiment of the present invention.
[0175] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A positioning method for a TWS headset, characterized in that: The positioning method of the TWS headset is applied to the TWS headset, and the positioning method of the TWS headset includes: When it is detected that the TWS headset leaves the corresponding headset box, the first motion state of the TWS headset is monitored; when the TWS headset detects that it leaves the corresponding headset box, a functional module for monitoring the motion state of the TWS headset in the TWS headset is automatically awakened, and the moving direction and moving distance of the TWS headset are recorded; Determine first position information of the TWS headset according to the first motion state; The first position information is sent to the earphone box, so that the earphone box can locate the TWS earphone according to the first position information, so as to determine the relative position between the TWS earphone and the earphone box, and send indication information through the indicator light of the earphone box according to the relative position when the earphone search instruction is triggered, wherein the indicator light is a cross-shaped indicator light, and the step of sending indication information through the indicator light according to the relative position includes: controlling the lights on the front / rear / left / right side to light up according to the relative position between the TWS earphone and the earphone box to indicate the position of the TWS earphone relative to the earphone box, and indicating the distance of the TWS earphone relative to the earphone box by adjusting the brightness or flashing frequency of the indicator light; The step of sending the first position information to the earphone box may include: detecting whether the first motion state is a stationary state; If the first motion state is the static state, detecting whether the duration of the static state reaches a first preset time threshold; If yes, sending the first location information to the earphone box; The step of sending the first position information to the earphone box may further include: Detecting the power level of the TWS headset; If the power value reaches a preset power threshold, the first position information is sent to the earphone box.
2. A positioning method for a TWS headset, characterized in that: The positioning method of the TWS earphone is applied to an earphone box corresponding to the TWS earphone, and the positioning method of the TWS earphone includes: When it is detected that the TWS earphone leaves the earphone box, the current position of the earphone box is set as the origin position; when the TWS earphone detects that it leaves the corresponding earphone box, it automatically wakes up the functional module in the TWS earphone for monitoring the movement status of the TWS earphone, and records the moving direction and moving distance of the TWS earphone; Receiving first location information sent by the TWS headset, wherein the first location information is sent by the TWS headset, the TWS headset detects the power value of the TWS headset, and sends the first location information to the headset box when the power value reaches a preset power threshold; Determine the relative position between the TWS earphone and the earphone box based on the first position information and the origin position to locate the TWS earphone, and send indication information through the indicator light of the earphone box according to the relative position when triggering the earphone search instruction, wherein the indicator light is a cross-shaped indicator light, and the step of sending indication information through the indicator light according to the relative position includes: controlling the lights on the front / rear / left / right side to light up according to the relative position between the TWS earphone and the earphone box to indicate the position of the TWS earphone relative to the earphone box, and indicating the distance of the TWS earphone relative to the earphone box by adjusting the brightness or flashing frequency of the indicator light; After the step of receiving the first location information sent by the TWS headset, the method further includes: Monitoring a second motion state of the earphone box after it leaves the origin position; If the second motion state is a stationary state and lasts for a second preset time threshold, the second position information of the earphone box is recorded.
3. The positioning method of a TWS headset according to claim 2, characterized in that: The step of determining the relative position between the TWS earphone and the earphone box based on the first position information and the origin position may include: The relative position between the TWS earphone and the earphone box is determined based on the first position information, the second position information and the origin position.
4. The TWS headset positioning method according to claim 2, characterized in that: After the step of determining the relative position between the TWS earphone and the earphone box based on the first position information and the origin position, the method further includes: Get the headset search command; Instruction information is issued based on the headset search instruction and the relative position.
5. A positioning system for a TWS headset, characterized in that: The positioning system of the TWS earphone includes a TWS earphone and an earphone box, and the positioning system of the TWS earphone performs the following steps: When the TWS earphone detects that it has left the earphone box, it monitors the first motion state of the TWS earphone; when the TWS earphone detects that it has left the corresponding earphone box, it automatically wakes up the functional module in the TWS earphone for monitoring the motion state of the TWS earphone, and records the moving direction and moving distance of the TWS earphone; When the earphone box detects that the TWS earphone leaves the earphone box, the current position is set as the origin position; The TWS headset determines first position information according to the first motion state; The TWS earphone sends the first position information to the earphone box, the TWS earphone detects the power value of the TWS earphone, and sends the first position information to the earphone box when the power value reaches a preset power threshold, and the step of sending the first position information to the earphone box may include: detecting whether the first motion state is a static state; if the first motion state is the static state, detecting whether the duration of the static state reaches a first preset time threshold; if so, sending the first position information to the earphone box; The earphone box receives the first position information sent by the TWS earphone; The earphone box determines the relative position between the TWS earphone and the earphone box based on the first position information and the origin position, and sends indication information through the indicator light of the earphone box according to the relative position when the earphone finding instruction is triggered, wherein the indicator light is a cross-shaped indicator light, and the step of sending indication information through the indicator light according to the relative position includes: controlling the lights on the front / rear / left / right side to light up according to the relative position between the TWS earphone and the earphone box to indicate the position of the TWS earphone relative to the earphone box, and indicating the distance of the TWS earphone relative to the earphone box by adjusting the brightness or flashing frequency of the indicator light.
6. A positioning device for a TWS headset, characterized in that: The positioning device of the TWS headset includes: A detection module, for monitoring the first motion state of the TWS headset when the TWS headset leaves the headset box; when the TWS headset detects that it has left the corresponding headset box, it automatically wakes up a function module in the TWS headset for monitoring the motion state of the TWS headset, and records the moving direction and moving distance of the TWS headset; A determination module, configured to determine first position information according to the first motion state; a sending module, configured to send the first position information to the earphone box, so that the earphone box can locate the TWS earphone according to the first position information, so as to determine the relative position between the TWS earphone and the earphone box, and send indication information through the indicator light of the earphone box according to the relative position when triggering the earphone search instruction, wherein the indicator light is a cross-shaped indicator light, and the step of sending indication information through the indicator light according to the relative position includes: controlling the light on the front / rear / left / right side to light up according to the relative position between the TWS earphone and the earphone box to indicate the position of the TWS earphone relative to the earphone box, and indicating the distance of the TWS earphone relative to the earphone box according to the brightness or flashing frequency of the indicator light; the step of sending the first position information to the earphone box may include: detecting whether the first motion state is a stationary state; if the first motion state is the stationary state, detecting whether the duration of the stationary state reaches a first preset time threshold; if so, sending the first position information to the earphone box, and the step of sending the first position information to the earphone box may include: detecting the power value of the TWS earphone; if the power value reaches a preset power threshold, sending the first position information to the earphone box.
7. A positioning device for a TWS headset, characterized in that: The positioning device of the TWS earphone includes a TWS earphone and an earphone box; The TWS headset comprises: a first memory, a first processor, and a computer program stored in the first memory and executable on the first processor, wherein the computer program implements the steps of the positioning method of the TWS headset according to claim 1 when executed by the first processor; The earphone box includes: a second memory, a second processor, and a computer program stored in the second memory and executable on the second processor, wherein the computer program, when executed by the second processor, implements the steps of the positioning method for the TWS earphone as described in any one of claims 2 to 4.
8. A computer storage medium, characterized in that: The computer storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the positioning method of the TWS headset according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
State detection method of portable electronic anti-lost device, device and system
CN105472552A
Low battery processing method and device for wearable equipment
CN109640276A
Interaction method and system based on Bluetooth headset
CN112822594A