Method, device, charging box and storage medium for wireless earphone pairing

By incorporating a distance detection module and a lid opening/closing status detection function in the charging case, buttonless pairing between the earphones and communication devices is automatically achieved. This solves the risks and costs associated with button designs in charging cases and improves the convenience and efficiency of earphone pairing.

CN115914924BActive Publication Date: 2026-04-14GEER TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-25
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

The button design of existing TWS earphone charging cases poses risks of water, dust, and static electricity, and the hardware cost is high, making it difficult to achieve pairing between earphones and communication devices without relying on buttons.

Method used

By incorporating a distance detection module and a lid opening/closing status detection module in the charging case, the system can determine the user's pairing intention and automatically send a pairing command when the conditions are met, enabling buttonless pairing between the earphones and communication devices.

Benefits of technology

The hardware design cost of the charging case has been reduced, the waterproof, dustproof and anti-static capabilities have been improved, the level of intelligence has been enhanced, and the convenience and efficiency of earphone pairing have been improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115914924B_ABST
    Figure CN115914924B_ABST
Patent Text Reader

Abstract

The application discloses a wireless earphone pairing method and device, a charging box and a computer readable storage medium. The method comprises the following steps: determining the current distance between a to-be-paired device and the charging box; if the current distance is less than or equal to a first preset distance, determining the open-close cover state of the charging box; and if the open-close cover state is an open cover state, sending a pairing instruction to a target earphone connected to the charging box, so that the target earphone is paired and connected with the to-be-paired device. The wireless earphone pairing method in the application is applied to the charging box, the hardware design cost of the charging box is reduced, the charging box is more integrated, and the convenience and efficiency of earphone pairing are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of headphone technology, and more particularly to a method, apparatus, charging case, and computer-readable storage medium for pairing wireless headphones. Background Technology

[0002] With the rapid development and continuous innovation of TWS (True Wireless Stereo) earphones in recent years, TWS earphones have gradually replaced traditional Bluetooth earphones and become the choice of more and more users. To solve the problem of battery life in traditional Bluetooth earphones, TWS earphones are generally equipped with a charging case, which extends the battery life of TWS earphones.

[0003] Current TWS charging cases all have buttons for pairing and unpairing the earbuds with communication devices (such as mobile phones). The pairing process involves opening the earbud cover and pressing and holding the function button. Because of the button design, the charging case needs to have openings, which poses a risk to waterproofing, dustproofing, and electrostatic discharge protection. Furthermore, pairing is difficult when the charging case is covered with a protective case, and the hardware design for this button is costly. To overcome the shortcomings of the button design on the charging case, there is an urgent need for a technical solution that allows TWS earbuds to pair with communication devices without requiring buttons on the charging case. Summary of the Invention

[0004] The main objective of this invention is to provide a method, apparatus, charging case, and computer-readable storage medium for pairing wireless earphones, aiming to solve the technical problem of how to achieve pairing between TWS earphones and communication devices without requiring a button design on the charging case.

[0005] To achieve the above objectives, the present invention provides a method for pairing wireless earphones, wherein the method is applied to the charging case of the wireless earphones, and the method includes the following steps:

[0006] Determine the current distance between the device to be paired and the charging case;

[0007] If the current distance is less than or equal to the first preset distance, then determine the open / closed state of the charging case.

[0008] If the lid is in the open state, a pairing command is sent to the target earphone connected to the charging case so that the target earphone is paired with the device to be paired.

[0009] Optionally, before the step of determining the current distance between the device to be paired and the charging case, the method further includes:

[0010] Obtain multiple real-time distances between the device to be paired and the charging case;

[0011] Based on the multiple real-time distances, determine the corresponding distance change trend;

[0012] If the distance change trend is a decreasing trend, then the step of determining the current distance between the device to be paired and the charging box is performed.

[0013] Optionally, after the step of saying that the current distance is less than or equal to a first preset distance, the method further includes:

[0014] Determine the target distance interval corresponding to the current distance;

[0015] Determine the duration of distance maintenance corresponding to the target distance range;

[0016] If the distance is maintained for a duration greater than or equal to a preset duration, then the step of determining the open / closed state of the charging case is executed.

[0017] Optionally, prior to the step of sending a pairing command to the target earphone connected to the charging case, the method further includes:

[0018] If the lid is in the open state, then detect whether the target earphone is connected inside the charging case;

[0019] If a target earphone is connected inside the charging case, then the step of sending a pairing command to the target earphone connected to the charging case is executed;

[0020] If no target earphones are connected in the charging case, the user will be prompted to place the earphones in the charging case.

[0021] Optionally, after the step of determining the current distance between the device to be paired and the charging case, the method further includes:

[0022] If the current distance is less than or equal to the second preset distance, the opening / closing state of the charging case is adjusted to the open state, and the step of sending a pairing command to the target earphone connected to the charging case is executed; wherein the second preset distance is less than the first preset distance.

[0023] Optionally, after the step of determining the open / closed state of the charging case, the method further includes:

[0024] If the cover is closed, then wireless earphone pairing information is sent to the device to be paired.

[0025] If a connection response command is received from the device to be paired based on the wireless earphone pairing information, the opening / closing state of the charging case is adjusted to the open state, and the step of sending a pairing command to the target earphone connected to the charging case is executed.

[0026] Optionally, after the step of sending a pairing command to the target earphone connected to the charging case to pair the target earphone with the device to be paired, the method further includes:

[0027] Obtain the pairing result between the target earphone and the device to be paired;

[0028] If the pairing result is successful, the system will respond to the user's action of taking out the earphones and remind the user to close the charging case lid.

[0029] Furthermore, to achieve the above objectives, the present invention also provides a wireless earphone pairing device, the wireless earphone pairing device comprising:

[0030] The distance detection module is used to determine the current distance between the device to be paired and the charging case;

[0031] The lid detection module is used to determine the open / closed state of the charging box if the current distance is less than or equal to a first preset distance.

[0032] The pairing connection module is used to send a pairing command to the target earphone connected to the charging case if the opening / closing state is the open state, so that the target earphone is paired with the device to be paired.

[0033] In addition, to achieve the above objectives, the present invention also provides a charging case, including a processor, a storage unit, and a wireless earphone pairing program stored on the storage unit and executable by the processor, wherein when the wireless earphone pairing program is executed by the processor, the steps of the wireless earphone pairing method described above are implemented.

[0034] The present invention also provides a computer-readable storage medium storing a wireless earphone pairing program, wherein when the wireless earphone pairing program is executed by a processor, it implements the steps of the wireless earphone pairing method described above.

[0035] The wireless earphone pairing method in this invention detects and determines the current distance between the device to be paired and the charging case. When the current distance is less than a first preset distance, that is, when the device to be paired and the charging case are relatively close, it can be assumed that the user intends to pair the earphones in the charging case with the device to be paired. Furthermore, by judging the open / closed state of the charging case, when the open / closed state is that the charging case lid is open, it can be determined that the user intends to pair the earphones in the charging case with the device to be paired. Then, the charging case sends a pairing command to the earphones, thereby controlling the earphones to achieve pairing connection with the device to be paired. This invention eliminates the need for a conventional button design (pairing button) on the charging case, allowing pairing between the earphones and the communication device (the device to be paired) without the need for a pairing button. The user's pairing intention is determined simply by detecting the distance between the earphones and the communication device, automatically establishing a pairing connection. This reduces the hardware design cost of the charging case, resulting in a more seamless and integrated design. It also improves the charging case's waterproof, dustproof, and anti-static capabilities, as well as its intelligence. Furthermore, users no longer need to press and hold the pairing button to pair the earphones with the communication device, significantly enhancing the convenience and efficiency of earphone pairing. Attached Figure Description

[0036] Figure 1 This is a schematic diagram of the hardware operating environment of the charging box involved in the embodiments of the present invention;

[0037] Figure 2 This is a flowchart illustrating the first embodiment of the wireless earphone pairing method of the present invention;

[0038] Figure 3 This is a flowchart illustrating the process prior to step S10 in one embodiment of the wireless earphone pairing method of the present invention;

[0039] Figure 4 This is a detailed flowchart illustrating step S20 of an embodiment of the wireless earphone pairing method of the present invention;

[0040] Figure 5 This is a flowchart illustrating the process prior to step S30 in the first embodiment of the wireless earphone pairing method of the present invention;

[0041] Figure 6 This is a comparative design schematic diagram of the charging case involved in the wireless earphone pairing method of the present invention;

[0042] Figure 7 This is a schematic diagram of the frame structure of the wireless earphone pairing device of the present invention.

[0043] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0044] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0045] This invention provides a charging case. The charging case can include any type of headphone charging case, and there are no limitations herein.

[0046] like Figure 1 As shown, Figure 1 This is a schematic diagram of the hardware operating environment of the charging box involved in the embodiments of the present invention.

[0047] like Figure 1 As shown, the charging case may include: a processor 1001, such as a CPU; a network interface 1004; a user interface 1003; a storage unit 1005; and a communication bus 1002. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display or an input unit such as a control panel; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The storage unit 1005 may be a high-speed RAM storage unit or a stable storage unit (non-volatile memory), such as a disk storage unit. The storage unit 1005 may also optionally be a storage device independent of the aforementioned processor 1001. The storage unit 1005, as a computer storage medium, may include a program for pairing wireless headphones.

[0048] Those skilled in the art will understand that Figure 1 The hardware structure shown does not constitute a limitation on the device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0049] Continue to refer to Figure 1 , Figure 1 The storage unit 1005, which serves as a computer-readable storage medium, may include an operating system, a user interface module, a network communication module, and a program for pairing wireless earphones.

[0050] exist Figure 1 In this module, the network communication module is mainly used to connect to the server and communicate with it; while the processor 1001 can call the wireless headset pairing program stored in the storage unit 1005 and perform the following operations:

[0051] Determine the current distance between the device to be paired and the charging case;

[0052] If the current distance is less than or equal to the first preset distance, then determine the open / closed state of the charging case.

[0053] If the lid is in the open state, a pairing command is sent to the target earphone connected to the charging case so that the target earphone is paired with the device to be paired.

[0054] Furthermore, the processor 1001 can call the wireless earphone pairing program stored in the memory 1005, and also perform the following operations:

[0055] Obtain multiple real-time distances between the device to be paired and the charging case;

[0056] Based on the multiple real-time distances, determine the corresponding distance change trend;

[0057] If the distance change trend is a decreasing trend, then the step of determining the current distance between the device to be paired and the charging box is performed.

[0058] Furthermore, the processor 1001 can call the wireless earphone pairing program stored in the memory 1005, and also perform the following operations:

[0059] Determine the target distance interval corresponding to the current distance;

[0060] Determine the duration of distance maintenance corresponding to the target distance range;

[0061] If the distance is maintained for a duration greater than or equal to a preset duration, then the step of determining the open / closed state of the charging case is executed.

[0062] Furthermore, the processor 1001 can call the wireless earphone pairing program stored in the memory 1005, and also perform the following operations:

[0063] If the lid is in the open state, then detect whether the target earphone is connected inside the charging case;

[0064] If a target earphone is connected inside the charging case, then the step of sending a pairing command to the target earphone connected to the charging case is executed;

[0065] If no target earphones are connected in the charging case, the user will be prompted to place the earphones in the charging case.

[0066] Furthermore, the processor 1001 can call the wireless earphone pairing program stored in the memory 1005, and also perform the following operations:

[0067] If the current distance is less than or equal to the second preset distance, the opening / closing state of the charging case is adjusted to the open state, and the step of sending a pairing command to the target earphone connected to the charging case is executed; wherein the second preset distance is less than the first preset distance.

[0068] Furthermore, the processor 1001 can call the wireless earphone pairing program stored in the memory 1005, and also perform the following operations:

[0069] If the cover is closed, then wireless earphone pairing information is sent to the device to be paired.

[0070] If a connection response command is received from the device to be paired based on the wireless earphone pairing information, the opening / closing state of the charging case is adjusted to the open state, and the step of sending a pairing command to the target earphone connected to the charging case is executed.

[0071] Furthermore, the processor 1001 can call the wireless earphone pairing program stored in the memory 1005, and also perform the following operations:

[0072] Obtain the pairing result between the target earphone and the device to be paired;

[0073] If the pairing result is successful, the system will respond to the user's action of taking out the earphones and remind the user to close the charging case lid.

[0074] Based on the hardware structure of the controller described above, various embodiments of the wireless earphone pairing method of the present invention are proposed.

[0075] To facilitate understanding of the various embodiments of the present invention, the embodiments of the technical solution of the present invention are briefly summarized in terms of the overall solution:

[0076] This invention primarily utilizes a UWB (Ultra Wide Band) distance detection (positioning) module or other distance detection modules (such as infrared distance detection modules, ultrasonic distance detection modules, etc.) embedded in the charging case. The distance detection module acquires the distance between the charging case and the device to be paired. Based on this distance and its changes, it initially determines whether the user intends to pair the earphones. Furthermore, it confirms the user's pairing intention by observing the opening and closing of the charging case or other user actions. Once the user's pairing intention is accurately determined, the charging case controls the earphones within it to achieve pairing with the device to be paired. The entire pairing process is simple and quick, providing a user experience far superior to pairing via a pairing button.

[0077] This invention provides a method for pairing wireless earphones.

[0078] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating a first embodiment of the wireless earphone pairing method of the present invention. In the first embodiment, the wireless earphone pairing method is applied to the charging case of the wireless earphones, and the method includes the following steps:

[0079] Step S10: Determine the current distance between the device to be paired and the charging case;

[0080] In this embodiment, the distance and position relationship between the charging case and other paired devices can be established by setting one or more distance detection modules, such as a UWB distance detection module, an ultrasonic distance detection module, an infrared distance detection module, and a Bluetooth distance detection module. When setting any of the above distance detection modules, the distance detection module can be placed at any position within the charging case. To maintain a more aesthetically pleasing and integrated appearance, it can be placed inside the charging case shell and not exposed on the visible outer or inner surfaces.

[0081] By replacing the traditional pairing button design with a distance detection module, it is possible to... Figure 6 The difference between the two can be seen in the text. Figure 6 The left side shows a conventional charging case with a pairing button, representing the existing design of charging cases. The right side shows a novel charging case that eliminates the button design, representing the improved design of this invention. It should be noted that the charging cases shown in the figures are merely examples and are not intended to limit the shape or appearance of charging cases.

[0082] Since the device to be paired also has a UWB equidistant detection module, the charging case can detect the current distance between the device and the charging case at a certain detection frequency based on the aforementioned UWB equidistant detection module. The device to be paired refers to a communication device that has not yet completed pairing with the earphones in the charging case. This can be any communication device with earphone pairing and other communication functions, such as a mobile phone, tablet, or laptop; there are no restrictions on this. For example, when a user intends to pair newly purchased earphones or a new mobile phone, they can place the charging case containing the phone or earphones in a location close to the other device. At this time, the charging case can detect the current position between the phone and the charging case.

[0083] In one embodiment, prior to step S10, the method further includes:

[0084] Step a: Obtain the identification information of the communication device, and determine whether the communication device is a device to be paired based on the identification information;

[0085] Step b: If it is a device to be paired, then execute step S10.

[0086] Step c: If the device is already paired, no further action is required.

[0087] In this embodiment, the identification information of the communication device includes, but is not limited to, device identification code, device Bluetooth address, etc. The charging box compares the obtained identification information with the paired identification information table stored in the charging box system. If the identification information exists in the paired identification information table, the communication device is determined to be a paired device, and no processing is required to prevent the communication device that has been paired with the earphone in the charging box from frequently and accidentally pairing. If the identification information does not exist in the paired identification information table or the identification information is empty (i.e., no identification information of the communication device is obtained), the communication device is determined to be a device to be paired, and then the step of determining the current distance between the device to be paired and the charging box is performed to pair the earphones of the device to be paired.

[0088] Please refer to Figure 3 In one embodiment, prior to step S10, the method further includes:

[0089] Step S100: Obtain multiple real-time distances between the device to be paired and the charging case;

[0090] Before determining the current distance between the device to be paired and the charging case, the charging case needs to detect multiple real-time distances between itself and the device to be paired within a preset detection period. That is, multiple real-time distances are acquired at a certain detection frequency within the preset detection period to analyze changes in the distance between the device to be paired and the charging case. For example, if the preset detection period is 1 second and the detection frequency is 3 times / second, then 3 real-time distances will be acquired within that detection period. It should be noted that the detection period and detection frequency can be set according to actual needs and are not limited here, but it is necessary to ensure that at least 2 real-time distances are acquired within the preset detection period.

[0091] Step S110: Determine the corresponding distance change trend based on the multiple real-time distances;

[0092] After acquiring multiple real-time distances, the system compares adjacent real-time distances acquired in chronological order to determine the distance trend between the charging case and the device to be paired. If, for any two adjacent real-time distances, the distance acquired later is smaller than the distance acquired later, it indicates a decreasing distance trend, meaning the charging case and the device to be paired are getting closer. For example, if three real-time distances are acquired in chronological order (15cm, 12cm, and 9cm), it can be seen that the distance between the charging case and the device to be paired is decreasing, indicating a decreasing distance trend.

[0093] If for any two adjacent real-time distances, the real-time distance acquired later is greater than the real-time distance acquired later, it indicates that the corresponding distance change trend is a distance extension trend, meaning the distance between the charging case and the device to be paired is increasing. For example, taking three real-time distances acquired in chronological order (8cm, 13cm, 17cm), we can see that the distance between the charging case and the device to be paired is increasing, i.e., a distance extension trend.

[0094] If there are more than three real-time distances, and if there are both instances where the real-time distance obtained later is less than that obtained later, and instances where the real-time distance obtained later is greater than that obtained later, then the distance change trend is neither a distance shortening trend nor a distance lengthening trend, and the user's behavioral intention is in a pending state. For example, if three real-time distances are obtained, in the order of their acquisition time, they are 10cm, 15cm, and 11cm respectively. It can be seen that the distance between the charging box and the device to be paired is neither a distance shortening trend nor a distance lengthening trend.

[0095] Step S120: If the distance change trend is a distance shortening trend, then perform the step of determining the current distance between the device to be paired and the charging box.

[0096] If the distance trend is a decreasing trend, that is, the user is placing the charging case and the device to be paired closer and closer, it can be reasonably and accurately determined that the user's behavioral intention is to pair the earphones in the charging case with the device to be paired. Then, the step of determining the current distance between the device to be paired and the charging case is executed to further determine the user's clear and true behavioral intention.

[0097] In one embodiment, if the distance change trend is neither a distance shortening trend nor a distance lengthening trend, or if it is neither a distance shortening trend nor a distance lengthening trend, no processing is required. This ensures accurate determination of the user's earphone pairing intention, prevents various possible accidental triggering of pairing operations, and avoids unnecessary interference to the user.

[0098] Step S20: If the current distance is less than or equal to the first preset distance, determine the open / closed state of the charging case.

[0099] The current distance is compared with a first preset distance in the system. If the current distance is less than or equal to the first preset distance, it indicates that the distance between the charging case and the device to be paired is relatively close. This allows for further determination of whether the user's behavior constitutes an intention to pair the earphones. Furthermore, the user's true and explicit behavioral intention can be identified by judging the open / closed state of the charging case. Specifically, a Hall IC (Hall Sensor) device can be built into the charging case to identify the open / closed state of the charging case. It should be noted that the first preset distance can be set according to actual needs, such as 10cm, and is not limited here.

[0100] Please refer to Figure 4 In one embodiment, after step S20, if the current distance is less than or equal to a first preset distance, the method further includes:

[0101] Step S200: Determine the target distance interval corresponding to the current distance;

[0102] In this embodiment, considering that it is difficult for the user to maintain a precise current distance while moving the charging case or the device to be paired, the current distance may not be constant due to hand tremors or attempts to pair at a closer distance. Therefore, after determining that the current distance is less than or equal to a first preset distance, a target distance interval can be determined based on the current distance. The method for determining the target distance interval can be as follows: taking the current distance as a reference, the minimum value of the target distance interval is 0 or any other value less than the current distance, and the maximum value is the sum of the current distance and the preset compensation distance, thereby forming the corresponding target distance interval. The preset compensation distance can be set according to actual needs, such as 2cm. The purpose of setting this compensation distance is mainly to prevent hand tremors from causing the distance between the charging case and the device to be paired to exceed the first preset distance, thus terminating the pairing. For example, if the current distance is 9cm and the first preset distance is 10cm, the target distance interval corresponding to the current distance can be [0, 11], [8, 11], [7, 11], etc.

[0103] Step S210: Determine the duration of distance maintenance corresponding to the target distance interval;

[0104] As long as the current distance between the device to be paired and the charging box is still within the target distance range corresponding to the original current distance, the distance maintenance time can be continuously counted, thereby further identifying the user's behavioral intentions.

[0105] Step S220: If the distance maintenance duration is greater than or equal to a preset duration, then the step of determining the open / closed state of the charging case is executed.

[0106] If the distance is maintained for a duration greater than or equal to a preset duration, it indicates that the user intends to pair the earphones. The user's true intention is then determined by judging the open / closed state of the charging case. The preset duration can be set as needed, such as 1 second or 2 seconds, and is not limited here.

[0107] This embodiment further tracks and confirms that the user's behavioral intent is likely to be the intent to pair the headphones, which further improves the recognition of the user's intent to pair the headphones, thereby accurately pairing the headphones with the device to be paired and preventing accidental pairing.

[0108] Step S30: If the opening / closing state is open, a pairing command is sent to the target earphone connected to the charging case so that the target earphone is paired with the device to be paired.

[0109] When the charging case is determined to be in the open state (i.e., the lid is open), the user's true intention is to pair the earphones. Simultaneously, if the lid is open, the target earphones within the charging case are activated, allowing a pairing command to be sent. The target earphones can be TWS earphones or other earphones connected to the charging case, and can be one or a pair. The charging case has a built-in pop-pin (communication connection terminal) for connecting to the target earphones. After sending the pairing command, the target earphones activate their broadcast mode and appear in the list of available devices for pairing. Upon user interaction, the pairing device receives the pairing information from the target earphones, completing the pairing connection. Furthermore, if the user wishes to cancel the pairing, they can do so through the pairing device itself.

[0110] Please refer to Figure 5 In one embodiment, prior to step S30, which involves sending a pairing command to the target earphone connected to the charging case, the method further includes:

[0111] Step S300: If the opening / closing state is open, then detect whether the target earphone is connected inside the charging case.

[0112] In this embodiment, if the lid is in the open state, that is, the charging case lid is open, it is possible to further detect whether there are target earphones connected inside the charging case, and also to determine the number of target earphones connected inside the charging case.

[0113] Step S310: If a target earphone is connected inside the charging case, then the step of sending a pairing command to the target earphone connected to the charging case is executed.

[0114] If there are target earphones connected to the charging case, the number of target earphones can be determined, and then pairing instructions can be sent to each target earphone connected to the charging case according to the number.

[0115] Step S320: If no target earphone is connected in the charging case, remind the user to place the earphone in the charging case.

[0116] If no target earphones are connected in the charging case, it can generally be determined that there are no earphones in the charging case. This can remind the user to place the earphones in the charging case, thus helping the user to successfully complete the earphone pairing. Another situation where no target earphones are connected in the charging case is that there is poor contact between the target earphones and the charging case. In this case, the user can be reminded to correctly restore the target earphones to their position in the charging case to further complete the earphone pairing.

[0117] The wireless earphone pairing method in this invention detects and determines the current distance between the device to be paired and the charging case. When the current distance is less than a first preset distance, that is, when the device to be paired and the charging case are relatively close, it can be assumed that the user intends to pair the earphones in the charging case with the device to be paired. Furthermore, by judging the open / closed state of the charging case, when the open / closed state is that the charging case lid is open, it can be determined that the user intends to pair the earphones in the charging case with the device to be paired. Then, the charging case sends a pairing command to the earphones, thereby controlling the earphones to achieve pairing connection with the device to be paired. This invention eliminates the need for a conventional button design (pairing button) on the charging case, allowing pairing between the earphones and communication devices without the need for a pairing button. The user's pairing intention is determined simply by detecting the distance between the earphones and the communication device, automatically establishing a pairing connection. This reduces the hardware design cost of the charging case, resulting in a more seamless and integrated design. It also improves the charging case's waterproof, dustproof, and anti-static capabilities, as well as its intelligence. Furthermore, users no longer need to press and hold the pairing button to pair the earphones with the communication device, significantly enhancing the convenience and efficiency of earphone pairing.

[0118] In one embodiment, after step S10, the method further includes:

[0119] If the current distance is less than or equal to the second preset distance, the opening / closing state of the charging case is adjusted to the open state, and the step of sending a pairing command to the target earphone connected to the charging case is executed; wherein the second preset distance is less than the first preset distance.

[0120] In this embodiment, the second preset distance is less than the first preset distance. For example, if the first preset distance is 10cm, the corresponding second preset distance can be 8cm, 7cm, etc. In addition, the second preset distance can also be 0, that is, the charging box is in contact with the device to be paired.

[0121] If the current distance is less than or equal to a second preset distance, it indicates that the distance between the charging case and the device to be paired is very close, and the user's intention to pair the headphones can be recognized. Considering that many users often forget to open the charging case lid or are unaware that pairing headphones requires opening the lid, this system can automatically adjust the charging case lid to the open state, i.e., automatically open the lid, and execute the step of sending the pairing command to the target headphones connected to the charging case to achieve pairing connection between the target headphones and the device to be paired. Through this embodiment, the pairing needs of more users can be met to the greatest extent, avoiding the inability to pair headphones when users are unaware of or forget the pairing process, and providing greater convenience, choice, and intelligence for pairing connections between headphones and devices to be paired.

[0122] In one embodiment, after step S20, which determines the open / closed state of the charging case, the method further includes:

[0123] If the cover is closed, then wireless earphone pairing information is sent to the device to be paired.

[0124] In this embodiment, if the lid is closed, the target earphone is usually in a dormant state. Considering that some users may forget or not understand the pairing process, in order to further determine the user's true intention, the charging case can simulate the target earphone in the charging case sending wireless earphone pairing information to the device to be paired. Specifically, the earphone identifier or Bluetooth identifier of the target earphone can be obtained, and then the charging case can simulate the broadcast (wireless earphone pairing information) of the target earphone through the UWB module or other communication module using the earphone identifier and the Bluetooth identifier, so that the target earphone is displayed in the device list of the device to be paired.

[0125] If a connection response command is received from the device to be paired based on the wireless earphone pairing information, the opening / closing state of the charging case is adjusted to the open state, and the step of sending a pairing command to the target earphone connected to the charging case is executed.

[0126] If a user sees the target earphones displayed in the device list and performs a pairing operation, the corresponding charging case receives a connection response command from the device to be paired based on the wireless earphone pairing information. At this point, the user's earphone pairing intention can be clearly determined, and the charging case's open / closed state can be adjusted to the open state, that is, the case lid can be automatically opened (popped open), or the user can be prompted to open the case lid. After the case lid is opened and the target earphones are activated, the step of sending a pairing command to the target earphones connected to the charging case is executed, thereby realizing the pairing and connection between the target earphones and the device to be paired.

[0127] This embodiment can more accurately and reliably determine the user's headphone pairing intention. Even if the user forgets or is unclear about some headphone pairing procedures, it can provide the user with maximum headphone pairing convenience, thereby improving headphone pairing efficiency and enhancing the user experience.

[0128] In one embodiment, after step S30, the method further includes:

[0129] Obtain the pairing result between the target earphone and the device to be paired;

[0130] If the pairing result is successful, the system will respond to the user's action of taking out the earphones and remind the user to close the charging case lid.

[0131] In this embodiment, during the pairing process between the device to be paired and the target earphone in the charging case, the pairing result from the target earphone or the device to be paired can be obtained, i.e., the result of successful pairing or failed pairing.

[0132] If the target earbuds successfully pair with the device to be paired, upon receiving a disconnection command from the charging case, it can be determined that the user has removed the target earbuds. In response to the user's earbud removal operation, a timer begins. After a preset duration, the charging case lid can automatically close or remind the user to close the lid, preventing dust and other contaminants from entering the charging case and affecting future use, thus extending the lifespan of both the charging case and the earbuds. The preset duration can be set according to actual needs, for example, 2 seconds. That is, after the user removes the earbuds, if the charging case lid is still open after 2 seconds, it can automatically close the lid or remind the user to close it. The reminder can be given through the charging case's voice function or light function, or a reminder message can be sent to the device to be paired to remind the user to close the lid.

[0133] If pairing between the target earphone and the device to be paired fails, a pairing command can be resent to the target earphone connected to the charging case to ensure successful pairing.

[0134] In addition, refer to Figure 7 , Figure 7 This is a schematic diagram of the frame structure of the wireless earphone pairing device of the present invention. The present invention also proposes a wireless earphone pairing device, which includes:

[0135] The distance detection module A10 is used to determine the current distance between the device to be paired and the charging case;

[0136] The lid detection module A20 is used to determine the open / closed state of the charging box if the current distance is less than or equal to a first preset distance.

[0137] The pairing connection module A30 is used to send a pairing command to the target earphone connected to the charging case if the opening / closing state is the open state, so that the target earphone is paired with the device to be paired.

[0138] Optionally, the distance detection module A10 is further configured to:

[0139] Obtain multiple real-time distances between the device to be paired and the charging case;

[0140] Based on the multiple real-time distances, determine the corresponding distance change trend;

[0141] If the distance change trend is a decreasing trend, then the step of determining the current distance between the device to be paired and the charging box is performed.

[0142] Optionally, the distance detection module A10 is further configured to:

[0143] Determine the target distance interval corresponding to the current distance;

[0144] Determine the duration of distance maintenance corresponding to the target distance range;

[0145] If the distance is maintained for a duration greater than or equal to a preset duration, then the step of determining the open / closed state of the charging case is executed.

[0146] Optionally, the pairing connection module A30 is further configured to:

[0147] If the lid is in the open state, then detect whether the target earphone is connected inside the charging case;

[0148] If a target earphone is connected inside the charging case, then the step of sending a pairing command to the target earphone connected to the charging case is executed;

[0149] If no target earphones are connected in the charging case, the user will be prompted to place the earphones in the charging case.

[0150] Optionally, the compartment cover detection module A20 is further configured to:

[0151] If the current distance is less than or equal to the second preset distance, the opening / closing state of the charging case is adjusted to the open state, and the step of sending a pairing command to the target earphone connected to the charging case is executed; wherein the second preset distance is less than the first preset distance.

[0152] Optionally, the pairing connection module A30 is further configured to:

[0153] If the cover is closed, then wireless earphone pairing information is sent to the device to be paired.

[0154] If a connection response command is received from the device to be paired based on the wireless earphone pairing information, the opening / closing state of the charging case is adjusted to the open state, and the step of sending a pairing command to the target earphone connected to the charging case is executed.

[0155] Optionally, the pairing connection module A30 is further configured to:

[0156] Obtain the pairing result between the target earphone and the device to be paired;

[0157] If the pairing result is successful, the system will respond to the user's action of taking out the earphones and remind the user to close the charging case lid.

[0158] The specific implementation of the wireless earphone pairing device of the present invention is basically the same as the embodiments of the wireless earphone pairing method described above, and will not be repeated here.

[0159] Furthermore, the present invention also provides a computer-readable storage medium. The computer-readable storage medium of the present invention stores a program for pairing wireless headphones, wherein when the program for pairing wireless headphones is executed by a processor, it implements the steps of the wireless headphone pairing method as described above.

[0160] The method implemented when the wireless earphone pairing procedure is executed can be referred to in various embodiments of the wireless earphone pairing method of the present invention, and will not be repeated here.

[0161] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0162] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0163] These computer program instructions may also be stored in a computer-readable storage unit that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage unit produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0164] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0165] It should be noted that any reference signs placed between parentheses in the claims should not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention can be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.

[0166] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.

[0167] The above description is merely a preferred embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural transformations made using the contents of the present invention's specification and drawings under the inventive concept of the present invention, or direct / indirect applications in other related technical fields, are included within the patent protection scope of the present invention.

Claims

1. A method for pairing wireless earphones, characterized in that, The wireless earphone pairing method is applied to the charging case of the wireless earphones, and the method includes the following steps: Determine the current distance between the device to be paired and the charging case; If the current distance is less than or equal to the first preset distance, then determine the open / closed state of the charging case. If the opening / closing state is open, then when a target earphone is detected connected inside the charging case, a pairing command is sent to the target earphone connected to the charging case to turn on the broadcast mode of the target earphone, so that the target earphone is paired and connected with the device to be paired. If the cover is closed, then wireless earphone pairing information is sent to the device to be paired. If a connection response command is received from the device to be paired based on the wireless earphone pairing information, the opening and closing state of the charging case is adjusted to the open state, the charging case lid is automatically opened, and a pairing command is sent to the target earphone connected to the charging case to turn on the broadcast mode of the target earphone, so that the target earphone is paired and connected with the device to be paired. Prior to the step of determining the current distance between the device to be paired and the charging case, the method further includes: Obtain multiple real-time distances between the device to be paired and the charging case; Based on the multiple real-time distances, determine the corresponding distance change trend; If the distance change trend is a decreasing trend, then the step of determining the current distance between the device to be paired and the charging box is performed.

2. The wireless earphone pairing method as described in claim 1, characterized in that, After the step of stating that the current distance is less than or equal to a first preset distance, the method further includes: Determine the target distance interval corresponding to the current distance; Determine the duration of distance maintenance corresponding to the target distance range; If the distance is maintained for a duration greater than or equal to a preset duration, then the step of determining the open / closed state of the charging case is executed.

3. The wireless earphone pairing method as described in claim 1, characterized in that, Prior to the step of sending a pairing command to the target earphone connected to the charging case, the method further includes: If the lid is in the open state, and no target earphones are detected connected in the charging case, the user will be prompted to place the earphones into the charging case.

4. The wireless earphone pairing method as described in claim 1, characterized in that, After the step of determining the current distance between the device to be paired and the charging case, the method further includes: If the current distance is less than or equal to the second preset distance, the opening / closing state of the charging case is adjusted to the open state, and the step of sending a pairing command to the target earphone connected to the charging case is executed; wherein the second preset distance is less than the first preset distance.

5. The method for pairing wireless earphones as described in claim 1, characterized in that, After the step of sending a pairing command to the target earphone connected to the charging case to pair the target earphone with the device to be paired, the method further includes: Obtain the pairing result between the target earphone and the device to be paired; If the pairing result is successful, the system will respond to the user's action of taking out the earphones and remind the user to close the charging case lid.

6. A device for pairing wireless earphones, characterized in that, The wireless earphone pairing device includes: The distance detection module is used to determine the current distance between the device to be paired and the charging case; The lid detection module is used to determine the open / closed state of the charging box if the current distance is less than or equal to a first preset distance. The pairing connection module is used to send a pairing command to the target earphone connected to the charging case when the opening and closing state is the open state and a target earphone is detected connected inside the charging case, so as to turn on the broadcast mode of the target earphone and pair the target earphone with the device to be paired. If the cover is closed, then wireless earphone pairing information is sent to the device to be paired. If a connection response command is received from the device to be paired based on the wireless earphone pairing information, the opening and closing state of the charging case is adjusted to the open state, the charging case lid is automatically opened, and a pairing command is sent to the target earphone connected to the charging case to turn on the broadcast mode of the target earphone, so that the target earphone is paired and connected with the device to be paired. The following steps are included before executing the distance detection module: Obtain multiple real-time distances between the device to be paired and the charging case; Based on the multiple real-time distances, determine the corresponding distance change trend; If the distance change trend is a decreasing trend, then the distance detection module is executed.

7. A charging case, characterized in that, The charging case includes a processor, a storage unit, and a wireless earphone pairing program stored on the storage unit and executable by the processor, wherein when the wireless earphone pairing program is executed by the processor, it implements the steps of the wireless earphone pairing method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a wireless earphone pairing program, wherein when the wireless earphone pairing program is executed by a processor, it implements the steps of the wireless earphone pairing method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Prompt information display method and device, electronic equipment and storage medium

    CN113329391A