Equipment pairing method and device, equipment and storage medium

By generating a target authorization code and controlling the pairing of TWS headphones with the target headphone box, the problem of low headphone pairing efficiency in the existing technology is solved, and fast and convenient headphone pairing is achieved, improving the user experience.

CN120076069AActive Publication Date: 2025-05-30GOERTEK INC
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510237977.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-28
Publication Date
2025-05-30
Estimated Expiration
2045-02-28

AI Technical Summary

Technical Problem

In the prior art, the pairing efficiency of TWS headphones and charging boxes is low, especially when the headphones are lost or exchanged, it needs to be returned to the factory and re-paired, which takes a long time.

Method used

By detecting the headset's identification information when entering the box data, if the identification information is not stored for the preset, a target authorization code is generated, and when the current headset connection status is in the preset state, the headset and the target headset are controlled to pair the headset box according to the target authorization code and the pairing request of the headset.

Benefits of technology

It improves the efficiency of headphone pairing, realizes the pairing of different headphones, is suitable for a variety of application scenarios, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120076069A_ABST
    Figure CN120076069A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment pairing method and device, equipment and a storage medium, and relates to the technical field of intelligent equipment, and the method comprises the steps: generating a target authorization code according to identification information and equipment information of a current earphone when the identification information is not preset storage identification information; and when the connection state of the current earphone is a preset state, controlling the current earphone to be paired with the target earphone box according to the target authorization code and a pairing request sent by the current earphone. According to the mode, when the identification information of the current earphone is determined not to be the preset storage identification information, it is indicated that the current earphone and the target earphone box cannot be directly paired, at the moment, the target authorization code is generated according to the identification information and the equipment information of the current earphone, authorization of the current earphone is completed according to the target authorization code, and pairing with the current earphone is allowed; at the moment, the current earphone is controlled to be paired with the target earphone box according to the pairing request, so that the earphone pairing efficiency can be effectively improved, the method is suitable for various pairing scenes, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of intelligent devices, and particularly to a device pairing method, apparatus, device, and storage medium. Background Art

[0002] With the continuous development of intelligent wearable technology, the developed intelligent devices have the characteristics of multiple functions, exquisite appearance, and small size, and are deeply favored by users. Especially for TWS earphones, the earphone case is indispensable during the use of TWS earphones. For example, charging and information synchronization. The prerequisite for completing the above functions is that the TWS earphones have been paired with the charging case, which is set at the factory of the device. However, during actual use, situations such as earphone loss and earphone exchange may occur. For new earphones or exchanged earphones, they need to be returned to the factory to be re-paired, but this will consume a lot of time. Based on this, the efficiency of pairing earphones in the above manner is relatively low.

[0003] The above content is only used to assist in understanding the technical solution of this application, and does not represent an admission that the above content is prior art. Summary of the Invention

[0004] The main purpose of this application is to provide a device pairing method, apparatus, device, and storage medium, aiming to solve the technical problem of relatively low efficiency in pairing earphones in the prior art.

[0005] To achieve the above purpose, this application proposes a device pairing method, and the method includes:

[0006] When detecting earphone-in-case data, obtain the identification information of the current earphone;

[0007] When the identification information is not the preset stored identification information, generate a target authorization code according to the identification information and the device information of the current earphone;

[0008] When the connection state of the current earphone is the preset state, control the current earphone to be paired with the target earphone case according to the target authorization code and the pairing request sent by the current earphone.

[0009] In an embodiment, the step of controlling the current earphone to be paired with the target earphone case according to the target authorization code and the pairing request sent by the current earphone when the connection state of the current earphone is the preset state includes:

[0010] When the connection state of the current earphone is the preset state, write the target authorization code into the target earphone case;

[0011] Control the target earphone case to parse the target authorization code, and generate an allow pairing instruction according to the parsed identification information;

[0012] Control the pairing of the current earphone and the target earphone case according to the allowed pairing instruction and the pairing request sent by the current earphone.

[0013] In one embodiment, the step of controlling the pairing of the current earphone and the target earphone case according to the allowed pairing instruction and the pairing request sent by the current earphone includes:

[0014] Based on the physical connection contacts, control the target earphone case to send an allowed pairing instruction to the current earphone;

[0015] Control the current earphone to enter the pairing mode according to the allowed pairing instruction;

[0016] Obtain the pairing request sent by the current earphone based on the pairing mode;

[0017] Control the pairing of the current earphone and the target earphone case according to the pairing request.

[0018] In one embodiment, the step of generating a target authorization code according to the identification information and the device information of the current earphone when the identification information is not the preset stored identification information includes:

[0019] When the identification information is not the preset stored identification information, perform a security detection on the current earphone;

[0020] When there is no dangerous information in the detection result, determine the type of the current earphone according to the device information of the current earphone;

[0021] When the type of the current earphone is the same as the type of the historical earphone, generate a target authorization code according to the identification information and the device information of the current earphone.

[0022] In one embodiment, after the step of generating a target authorization code according to the identification information and the device information of the current earphone when the identification information is not the preset stored identification information, the following steps are further included:

[0023] When the connection state of the current earphone is not the preset state, query the earphone case corresponding to the current earphone according to the identification information;

[0024] Send an interrupt operation instruction to the earphone case;

[0025] When receiving the disconnection information fed back by the earphone case according to the interrupt operation instruction, continue to execute the control of the pairing of the current earphone and the target earphone case according to the target authorization code and the pairing request sent by the current earphone.

[0026] In one embodiment, after the step of controlling the pairing of the current earphone with the target earphone case according to the target authorization code and the pairing request sent by the current earphone when the connection state of the current earphone is a preset state, the method further includes:

[0027] Controlling the lighting component of the target earphone case to flash a light of a first color;

[0028] Obtaining the remaining power of the current earphone;

[0029] When the remaining power is lower than a preset power threshold, controlling the target earphone case to charge the current earphone;

[0030] During the charging process, synchronously displaying the real-time power of the current earphone and its own real-time power based on the target earphone case.

[0031] In one embodiment, the step of controlling the pairing of the current earphone with the target earphone case according to the target authorization code and the pairing request sent by the current earphone when the connection state of the current earphone is a preset state includes:

[0032] If it is detected that the target earphone case is in an idle state within a preset time period, controlling the target earphone case to perform information search;

[0033] When there is identification information of a paired earphone in the search result, controlling the lighting component of the target earphone case to flash a light of a second color;

[0034] Controlling the sound component of the target earphone case to play a preset prompt message.

[0035] In addition, to achieve the above object, the present application further provides a device pairing device, where the device pairing device includes:

[0036] An obtaining module, configured to obtain the identification information of the current earphone when detecting earphone-in-case data;

[0037] A generating module, configured to generate a target authorization code according to the identification information and the device information of the current earphone when the identification information is not the preset stored identification information;

[0038] A pairing module, configured to control the pairing of the current earphone with the target earphone case according to the target authorization code and the pairing request sent by the current earphone when the connection state of the current earphone is a preset state.

[0039] In addition, to achieve the above object, the present application further provides a device pairing device, where the device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the device pairing method as described above.

[0040] In addition, to achieve the above object, the present application further provides a storage medium, which is a computer-readable storage medium. A computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the device pairing method described above are implemented.

[0041] One or more technical solutions proposed by the present application have at least the following technical effects: when detecting the data of the earphone entering the case, obtaining the identification information of the current earphone; when the identification information is not the preset stored identification information, generating a target authorization code according to the identification information and the device information of the current earphone; when the connection state of the current earphone is the preset state, controlling the pairing of the current earphone with the target earphone case according to the target authorization code and the pairing request sent by the current earphone. By the above method, when it is determined that the identification information of the current earphone is not the preset stored identification information, it indicates that the current earphone cannot be directly paired with the target earphone case. At this time, a target authorization code is generated according to the identification information and the device information of the current earphone, and the current earphone is authorized according to the target authorization code to allow pairing with the current earphone. At this time, the pairing of the current earphone with the target earphone case is controlled according to the pairing request, so as to effectively improve the efficiency of pairing earphones, realize the pairing of different earphones, be applicable to various application scenarios, and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0044] Figure 1 It is a schematic flowchart provided for Embodiment 1 of the device pairing method of the present application;

[0045] Figure 2 It is a schematic flowchart provided for Embodiment 2 of the device pairing method of the present application;

[0046] Figure 3 It is a schematic module structure diagram of the device pairing device according to an embodiment of the present application;

[0047] Figure 4 It is a schematic device structure diagram of the hardware operating environment involved in the device pairing method according to an embodiment of the present application.

[0048] The realization of the purpose, functional features and advantages of this application will be further described with reference to the embodiments and the accompanying drawings. Specific Embodiments

[0049] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, a pairing device, etc. that can implement the above functions. Hereinafter, taking the pairing device as an example, this embodiment and the following embodiments will be described.

[0050] Based on this, the embodiment of this application provides a device pairing method, referring to Figure 1 , Figure 1 is a schematic flowchart of the first embodiment of the device pairing method of this application.

[0051] In this embodiment, the device pairing method includes steps S10 to S30:

[0052] Step S10, when detecting the data of the earphone entering the case, obtain the identification information of the current earphone.

[0053] It should be noted that when detecting the data of the earphone entering the case, it indicates that an earphone is placed in the target earphone case. This earphone can be a TWS earphone. The identification information refers to the information for identifying different earphones. This identification information can be an ID. This identification information is fixed when the current earphone leaves the factory. For example, the ID of earphone A is 000001, the ID of earphone B is 000002, etc. The current earphone can be the left earphone and the right earphone, or any one of them.

[0054] Step S20, when the identification information is not the preset stored identification information, generate a target authorization code according to the identification information and the device information of the current earphone.

[0055] It can be understood that the preset stored identification information refers to the identification information stored in the target charging case. An earphone with the identification information being the preset stored identification information can be paired with the target charging case. When the identification information is not the preset stored identification information, even earphones of the same brand and the same type cannot be directly paired with the target charging case.

[0056] It should be understood that the target authorization code refers to the code that authorizes the current earphone to be paired with the target charging case. That is, after the target charging case receives the target authorization code, it knows that in addition to the earphone matched at the factory, it can also be paired with the earphone corresponding to the identification information in the target authorization code. At this time, the target charging case can correctly identify the current earphone and, after receiving the pairing request sent by the current earphone, pair with the current earphone. In addition, the current earphone can be a newly purchased earphone by the user or an earphone exchanged with other users. For example, the factory earphone is lost, or the user wants to experience music played by other earphones, which is applicable to a variety of application scenarios.

[0057] It should be noted that only the user account that purchases the target charging case and the historical earphone will be configured with the permission to generate the target authorization code. For other user accounts, there is no permission to generate the target authorization code, and thus the pairing of the target charging case and the current earphone cannot be achieved.

[0058] Further, step S20 includes: when the identification information is not the preset stored identification information, performing a security detection on the current earphone; when there is no dangerous information in the detection result, determining the type of the current earphone according to the device information of the current earphone; when the type of the current earphone is the same as the type of the historical earphone, generating a target authorization code according to the identification information and the device information of the current earphone.

[0059] It should be understood that in order to ensure the security of the target charging case, before pairing, it is necessary to perform a security detection on the current earphone to determine whether there is dangerous information, such as a potential virus. When there is no dangerous information in the detection result, it indicates that the current earphone is safe.

[0060] It can be understood that the historical earphone refers to the earphone that can be successfully paired with the target charging case at the factory. When it is determined that the type of the current earphone is the same as the type of the historical earphone, it indicates that the earphones to be paired are of the same type. Since the current earphone can also be placed in the target charging case, the appearance of the current earphone is the same as that of the historical earphone. At this time, a target authorization code is generated by combining the identification information and the device information of the current earphone. For different earphones, the generated target authorization codes are also different.

[0061] Further, after step S20, it further includes: when the connection state of the current earphone is not the preset state, querying the earphone case corresponding to the current earphone according to the identification information; sending an interruption operation instruction to the earphone case; when receiving the disconnection information fed back by the earphone case according to the interruption operation instruction, continuing to execute controlling the pairing of the current earphone and the target earphone case according to the target authorization code and the pairing request sent by the current earphone.

[0062] It can be understood that the preset state can be the unconnected state. When it is determined that the connection state of the current earphone is not the preset state, it indicates that the current earphone may be connecting to other devices. At this time, the pairing operation with the target charging case cannot be performed. At this time, an interruption operation instruction is sent to the earphone case corresponding to the current earphone. After receiving the interruption operation instruction, the earphone case controls the current earphone to disconnect from other devices, that is, the connection state of the current earphone becomes the preset state. At this time, the disconnection information is fed back, and then the pairing process with the target earphone case continues. For example, the current earphone is used by user B, but user A wants to borrow the current earphone. At this time, the current earphone is still connected to user B's mobile phone. At this time, the connection with user B's mobile phone will be disconnected through the interruption operation instruction, so that the connection state of the current earphone becomes the unconnected state.

[0063] Step S30, when the connection state of the current earphone is the preset state, control the current earphone to be paired with the target earphone case according to the target authorization code and the pairing request sent by the current earphone.

[0064] It should be understood that the pairing request refers to the request initiated when the current earphone wants to be paired with the target earphone case. The target authorization code is the same as the identification information of the current earphone and is also fixed in the target charging case. When receiving the pairing request sent by the current earphone, control the current earphone to be paired with the target earphone case according to the target authorization code.

[0065] Further, after step S30, it further includes: controlling the lighting component of the target earphone case to flash a light of the first color; obtaining the remaining power of the current earphone; when the remaining power is lower than the preset power threshold, controlling the target earphone case to charge the current earphone; during the charging process, synchronously display the real-time power of the current earphone and its own real-time power based on the target earphone case.

[0066] It can be understood that after the pairing is successful, control the lighting component of the target earphone case to flash a light of the first color, and the color of the light can be adjusted according to the appearance color of the target charging case. For example, when the appearance color is white, it flashes green light. The target charging case of this embodiment also has a power display function, that is, directly synchronously display the real-time power of the current earphone and its own real-time power on the target earphone case without relying on the connected external device.

[0067] Further, after step S30, it further includes: if it is detected that the target earphone case is in an idle state within a preset time period, control the target earphone case to perform information search; when the identification information of the paired earphone exists in the search result, control the lighting component of the target earphone case to flash a light of the second color; control the sound component of the target earphone case to play a preset prompt message.

[0068] It should be understood that when the detected target earphone case is in an idle state within a preset time period, it indicates that the earphone may be lost by the user in a certain corner. At this time, in order to help the user find the earphone, the target earphone case is controlled to perform information search. When the identification information of the paired earphone exists in the search result, it indicates that the earphone is within the search range of the target earphone case. At this time, the lighting component of the target earphone case is controlled to flash the light of the second color, and the sound component of the target earphone case is controlled to play a preset prompt message to assist the user in finding the earphone paired with the target earphone case. The second color can be white.

[0069] In this embodiment, when the earphone-in-case data is detected, the identification information of the current earphone is obtained; when the identification information is not the preset stored identification information, a target authorization code is generated according to the identification information and the device information of the current earphone; when the connection state of the current earphone is the preset state, the current earphone is controlled to be paired with the target earphone case according to the target authorization code and the pairing request sent by the current earphone. Through the above method, when it is determined that the identification information of the current earphone is not the preset stored identification information, it indicates that the current earphone cannot be directly paired with the target earphone case. At this time, a target authorization code is generated according to the identification information and the device information of the current earphone, and the current earphone is authorized according to the target authorization code, allowing it to be paired with the current earphone. At this time, the current earphone is controlled to be paired with the target earphone case according to the pairing request, so as to effectively improve the efficiency of pairing earphones, realize the pairing of different earphones, be applicable to various application scenarios, and improve the user experience.

[0070] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar content as that in the above-mentioned first embodiment can be referred to the above introduction and will not be repeated hereinafter. On this basis, please refer to Figure 2 , step S30 includes steps S301 to S303:

[0071] Step S301, when the connection state of the current earphone is the preset state, write the target authorization code into the target earphone case.

[0072] It should be noted that when it is determined that the connection state of the current earphone is the preset state, it indicates that the current earphone is not connected to other devices. At this time, the target authorization code can be written into the target earphone case. For the target earphone case, the fixed data includes the preset stored identification information and the target authorization code.

[0073] Step S302, control the target earphone case to parse the target authorization code, and generate an allow-pairing instruction according to the parsed identification information.

[0074] It can be understood that the allow pairing instruction refers to an instruction for controlling the earphone to enter the pairing mode. For example, when the parsed identification information is the identification information of the current earphone, an allow pairing instruction for controlling the current earphone to enter the pairing mode is generated at this time.

[0075] Step S303: Control the current earphone to be paired with the target earphone case according to the allow pairing instruction and the pairing request sent by the current earphone.

[0076] Further, step S303 includes: based on the physical connection contacts, control the target earphone case to send an allow pairing instruction to the current earphone; control the current earphone to enter the pairing mode according to the allow pairing instruction; obtain the pairing request sent by the current earphone based on the pairing mode; control the current earphone to be paired with the target earphone case according to the pairing request.

[0077] It can be understood that since the allow pairing instruction is generated based on the identification information, the object sending the allow pairing instruction can be determined, which is the current earphone. After receiving the allow pairing instruction, the current earphone automatically enters the pairing mode, generates and sends a pairing request. At this time, control the current earphone to be paired with the target earphone case according to the pairing request. At this time, the target earphone case can charge the current earphone and synchronize the remaining power of the current earphone to the target earphone case.

[0078] In this embodiment, when the connection state of the current earphone is a preset state, the target authorization code is written into the target earphone case; control the target earphone case to parse the target authorization code, and generate an allow pairing instruction according to the parsed identification information; control the current earphone to be paired with the target earphone case according to the allow pairing instruction and the pairing request sent by the current earphone. In the above manner, when it is determined that the connection state of the current earphone is a preset state, control the target earphone case to parse the written target authorization code, generate an allow pairing instruction according to the parsed identification information, control the current earphone to enter the pairing mode. The current earphone in the pairing mode will send a pairing request. At this time, control the current earphone to be paired with the target earphone case according to the pairing request, so as to be able to pair different earphones and improve the user experience.

[0079] This application also provides a device pairing device. Please refer to Figure 3 The device pairing device includes:

[0080] An obtaining module 10, configured to obtain the identification information of the current earphone when detecting earphone-in-case data.

[0081] A generating module 20, configured to generate a target authorization code according to the identification information and the device information of the current earphone when the identification information is not the preset stored identification information.

[0082] A pairing module 30, configured to control the current earphone to be paired with a target earphone case according to the target authorization code and a pairing request sent by the current earphone when the connection state of the current earphone is a preset state.

[0083] In this embodiment, when detecting earphone-in-case data, the identification information of the current earphone is obtained; when the identification information is not the preset stored identification information, a target authorization code is generated according to the identification information and the device information of the current earphone; when the connection state of the current earphone is a preset state, the current earphone is controlled to be paired with the target earphone case according to the target authorization code and the pairing request sent by the current earphone. By the above method, when it is determined that the identification information of the current earphone is not the preset stored identification information, it indicates that the current earphone cannot be directly paired with the target earphone case. At this time, a target authorization code is generated according to the identification information and the device information of the current earphone, and the current earphone is authorized according to the target authorization code to allow pairing with the current earphone. At this time, the current earphone is controlled to be paired with the target earphone case according to the pairing request, so as to effectively improve the efficiency of pairing earphones, realize the pairing of different earphones, be applicable to various application scenarios, and improve the user experience.

[0084] The device pairing device provided in this application adopts the device pairing method in the above embodiment, and can solve the technical problem of low efficiency of pairing earphones in the prior art. Compared with the prior art, the beneficial effects of the device pairing device provided in this application are the same as those of the device pairing method provided in the above embodiment, and other technical features in the device pairing device are the same as the features disclosed in the method of the above embodiment, and will not be elaborated here.

[0085] In one embodiment, the generating module 20 is further configured to perform a security detection on the current earphone when the identification information is not the preset stored identification information; determine the type of the current earphone according to the device information of the current earphone when there is no dangerous information in the detection result; and generate a target authorization code according to the identification information and the device information of the current earphone when the type of the current earphone is the same as the type of the historical earphone.

[0086] In one embodiment, the generating module 20 is further configured to query an earphone case corresponding to the current earphone according to the identification information when the connection state of the current earphone is not the preset state; send an interruption operation instruction to the earphone case; and continue to execute controlling the current earphone to be paired with the target earphone case according to the target authorization code and the pairing request sent by the current earphone when receiving the disconnection information fed back by the earphone case according to the interruption operation instruction.

[0087] In one embodiment, the pairing module 30 is further configured to write the target authorization code into the target earphone case when the connection status of the current earphone is a preset status; control the target earphone case to parse the target authorization code, and generate an allow pairing instruction according to the parsed identification information; and control the current earphone to be paired with the target earphone case according to the allow pairing instruction and the pairing request sent by the current earphone.

[0088] In one embodiment, the pairing module 30 is further configured to control the target earphone case to send an allow pairing instruction to the current earphone based on a physical connection contact; control the current earphone to enter a pairing mode according to the allow pairing instruction; obtain a pairing request sent by the current earphone based on the pairing mode; and control the current earphone to be paired with the target earphone case according to the pairing request.

[0089] In one embodiment, the pairing module 30 is further configured to control a lighting component of the target earphone case to flash a light of a first color; obtain the remaining power of the current earphone; when the remaining power is lower than a preset power threshold, control the target earphone case to charge the current earphone; and during the charging process, synchronously display the real-time power of the current earphone and its own real-time power based on the target earphone case.

[0090] In one embodiment, the pairing module 30 is further configured to control the target earphone case to perform information search if it is detected that the target earphone case is in an idle state within a preset time period; when there is identification information of a paired earphone in the search result, control the lighting component of the target earphone case to flash a light of a second color; and control a sound component of the target earphone case to play a preset prompt message.

[0091] The present application provides a device pairing device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the device pairing method in the first embodiment above.

[0092] Reference is made below to Figure 4 , which shows a schematic structural diagram of a device pairing device suitable for implementing the embodiments of the present application. The device pairing device in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions: tablet computers), PMPs (Portable Media Players), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc.Figure 4 The paired device shown is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of this application.

[0093] As Figure 4 shown, the paired device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM: Read Only Memory) 1002 or the program loaded from the storage device 1003 into the random access memory (RAM: Random Access Memory) 1004. In the RAM 1004, various programs and data required for the operation of the paired device are also stored. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the paired device to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows a paired device with various systems, it should be understood that it is not required to implement or have all the shown systems. Instead, more or fewer systems can be implemented or had.

[0094] In particular, according to the embodiments disclosed in this application, the process described above with reference to the flowchart can be implemented as a computer software program. This computer program contains program codes for executing the method shown in the flowchart. In such an embodiment, this computer program can be downloaded and installed from the network through the communication device, or installed from the storage device 1003, or installed from the ROM 1002. When this computer program is executed by the processing device 1001, the above functions defined in the method of the disclosed embodiments of this application are executed.

[0095] The paired device provided in this application adopts the paired device method in the above embodiments and can solve the technical problem of the low efficiency of pairing headphones in the prior art. Compared with the prior art, the beneficial effects of the paired device provided in this application are the same as those of the paired device method provided in the above embodiments, and other technical features in this paired device are the same as those disclosed in the method of the previous embodiment, which will not be elaborated here.

[0096] It should be understood that each part disclosed in this application can be implemented by hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in a suitable manner in any one or more embodiments or examples.

[0097] As described above, the above are only specific embodiments of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application, and all should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

[0098] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the device pairing method in the above embodiments.

[0099] The computer-readable storage medium provided by this application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) or flash memory, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or combined with an instruction execution system, device, or device. The program code contained on the computer-readable storage medium can be transmitted by any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0100] The above computer-readable storage medium can be included in the device pairing device; or it can exist separately without being assembled into the device pairing device.

[0101] Computer program code for performing the operations of this application can be written in one or more programming languages or combinations thereof. The above-mentioned programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, by connecting through the Internet using an Internet service provider).

[0102] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems and methods according to various embodiments of this application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of the code, and this module, program segment, or part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutively represented blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0103] The modules described in the embodiments of this application can be implemented in software or in hardware. Among them, the name of the module does not constitute a limitation to the unit itself in some cases.

[0104] The readable storage medium provided by this application is a computer-readable storage medium. The computer-readable storage medium stores computer-readable program instructions (i.e., computer programs) for performing the above-mentioned device pairing method, and can solve the technical problem of the relatively low efficiency of pairing headphones in the prior art. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by this application are the same as those of the device pairing method provided by the above embodiments, and will not be elaborated here.

[0105] The above are only some embodiments of the present application, and thus do not limit the patent scope of the present application. Any equivalent structural transformation made under the technical concept of the present application by using the content of the specification and drawings of the present application, or any direct / indirect application in other related technical fields is included in the patent protection scope of the present application.

Claims

1. A device pairing method, characterized in that: The method comprises: When the earphone is detected to be in the box, the identification information of the current earphone is obtained; When the identification information is not the preset storage identification information, generating a target authorization code according to the identification information and device information of the current headset; When the connection state of the current earphone is a preset state, the current earphone is controlled to be paired with the target earphone box according to the target authorization code and the pairing request sent by the current earphone.

2. The method according to claim 1, characterized in that The step of controlling the current headset to pair with the target headset box according to the target authorization code and the pairing request sent by the current headset when the connection state of the current headset is a preset state comprises: When the connection state of the current headset is a preset state, writing the target authorization code into the target headset box; Controlling the target earphone box to parse the target authorization code, and generating a pairing permission instruction according to the parsed identification information; The current headset is controlled to pair with the target headset box according to the pairing permission instruction and the pairing request sent by the current headset.

3. The method according to claim 2, characterized in that The step of controlling the current headset to pair with the target headset box according to the pairing permission instruction and the pairing request sent by the current headset comprises: Based on the physical connection contact, controlling the target earphone box to send a pairing permission instruction to the current earphone; Controlling the current headset to enter pairing mode according to the pairing permission instruction; Acquire a pairing request sent by the current headset based on the pairing mode; The current earphone is controlled to pair with the target earphone box according to the pairing request.

4. The method according to claim 1, characterized in that The step of generating a target authorization code according to the identification information and the device information of the current headset when the identification information is not the preset storage identification information includes: When the identification information is not the preset storage identification information, performing a safety check on the current headset; When there is no dangerous information in the detection result, determining the type of the current headset according to the device information of the current headset; When the type of the current headset is the same as the type of the historical headset, a target authorization code is generated according to the identification information and the device information of the current headset.

5. The method according to claim 1, characterized in that After the step of generating a target authorization code according to the identification information and the device information of the current headset when the identification information is not the preset storage identification information, the step further includes: When the connection state of the current earphone is not the preset state, querying the earphone box corresponding to the current earphone according to the identification information; Sending an interruption instruction to the earphone box; When the disconnection information fed back by the earphone box according to the interruption running instruction is received, the current earphone is continued to be paired with the target earphone box according to the target authorization code and the pairing request sent by the current earphone.

6. The method according to any one of claims 1 to 5, characterized in that After the step of controlling the current headset to pair with the target headset box according to the target authorization code and the pairing request sent by the current headset when the connection state of the current headset is the preset state, the method further includes: Controlling the light component of the target earphone box to flash a light of a first color; Get the remaining power of the current headset; When the remaining power is lower than a preset power threshold, controlling the target earphone box to charge the current earphone; During the charging process, the real-time power of the current earphones and the real-time power of the earphones themselves are synchronously displayed based on the target earphone box.

7. The method according to any one of claims 1 to 5, characterized in that The step of controlling the current headset to pair with the target headset box according to the target authorization code and the pairing request sent by the current headset when the connection state of the current headset is a preset state comprises: If it is detected that the target earphone box is in an idle state within a preset time period, the target earphone box is controlled to search for information; When identification information of a paired headset is present in the search results, controlling the light component of the target headset box to flash a light of a second color; Control the sound component of the target earphone box to play the preset prompt information.

8. A device pairing apparatus, characterized in that: The device comprises: An acquisition module is used to acquire identification information of the current earphone when the earphone is detected to be in the box; A generating module, configured to generate a target authorization code according to the identification information and device information of the current headset when the identification information is not the preset storage identification information; The pairing module is used to control the current headset to pair with the target headset box according to the target authorization code and the pairing request sent by the current headset when the connection state of the current headset is a preset state.

9. A device pairing device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the device pairing method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the device pairing method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Authentication method and device for intelligent headphones

    CN109040013A

  • Connection method and apparatus of earphone and terminal, and earphone box

    CN109495850A

  • Pairing method, wireless adapter and wireless earphone

    CN112770304A

  • Method and device for identifying mixed installation of earphones

    CN115696129A

  • Pairing connection method, related equipment and system

    CN118102493A