Headphone Upgrade Package Transmission Method, Headphone and Storage Medium

By using the asynchronous serial port transmission channel in wireless Bluetooth headphones, the headphone upgrade packet data received by the main headphones is directly sent to the secondary headphones, which solves the problem of long-term headphone upgrade time and improves the headphone upgrade efficiency.

CN115002740BActive Publication Date: 2025-06-20SHENZHEN GOERTEK TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210613061.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2025-06-20
Estimated Expiration
2042-05-31

AI Technical Summary

Technical Problem

When upgrading wireless Bluetooth headsets, after receiving the headset upgrade package sent by the user terminal, the main headset needs to send it to the secondary headset, resulting in an increase in the time spent on upgrading the headsets and low upgrade efficiency.

Method used

Through the asynchronous serial port transmission channel provided by the headset box, the headset upgrade packet data received by the main headset is sent directly to the secondary headset to avoid waiting for the main headset to complete reception before transmission.

Benefits of technology

It reduces the time spent on headphone upgrades, improves the efficiency of headphone upgrades, and reduces the time spent on transmitting headphone upgrade packages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115002740B_ABST
    Figure CN115002740B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for transmitting a headphone upgrade package, a headphone and a storage medium. The method for transmitting a headphone upgrade package is applied to a main headphone, and the method for transmitting a headphone upgrade package includes the following steps: when it is determined that both the main headphone and the sub-headphone corresponding to the main headphone are in the headphone case, detecting whether the main headphone has completed receiving the headphone upgrade package sent by the user terminal through the Bluetooth serial port transmission channel; when it is determined that the main headphone has not completed receiving the headphone upgrade package, sending the received upgrade package data in the headphone upgrade package to the sub-headphone through the asynchronous serial port transmission channel provided by the headphone case. The present invention reduces the time required for headphone upgrade and improves the efficiency of headphone upgrade.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of earphones, and particularly to a method for transmitting an earphone upgrade package, an earphone and a storage medium. Background Art

[0002] With the update and iteration of earphones, the earphone upgrade package gradually becomes larger. When a wireless Bluetooth earphone is being upgraded, after the master earphone finishes receiving the earphone upgrade package sent by the user terminal, the master earphone sends the earphone upgrade package to the slave earphone. When the slave earphone finishes receiving the earphone upgrade package, the master earphone and the slave earphone are respectively upgraded using the earphone upgrade package, resulting in an increase in the time required for earphone upgrade and low upgrade efficiency. Summary of the Invention

[0003] The main purpose of the present invention is to provide a method for transmitting an earphone upgrade package, an earphone and a storage medium, aiming to reduce the time taken for earphone upgrade and improve the earphone upgrade efficiency.

[0004] To achieve the above object, the present invention provides a method for transmitting an earphone upgrade package. The method for transmitting an earphone upgrade package is applied to a master earphone, and the method for transmitting an earphone upgrade package includes the following steps:

[0005] When it is determined that both the master earphone and the slave earphone corresponding to the master earphone are in the earphone case, detect whether the master earphone has finished receiving the earphone upgrade package sent by the user terminal through the Bluetooth serial port transmission channel;

[0006] When it is determined that the master earphone has not finished receiving the earphone upgrade package, send the received upgrade package data in the earphone upgrade package to the slave earphone through the asynchronous serial port transmission channel provided by the earphone case.

[0007] Optionally, after the step of detecting whether the master earphone has finished receiving the earphone upgrade package sent by the user terminal through the Bluetooth serial port transmission channel, the method further includes:

[0008] When it is determined that the master earphone has finished receiving the earphone upgrade package and it is determined that the slave earphone has not finished receiving the earphone upgrade package, detect whether the Bluetooth connection status between the master earphone and the slave earphone is normal;

[0009] When it is determined that the Bluetooth connection status between the master earphone and the slave earphone is normal, send the earphone upgrade package to the slave earphone through the Bluetooth serial port transmission channel.

[0010] Optionally, after the step of detecting whether the Bluetooth connection status between the master earphone and the slave earphone is normal, the method further includes:

[0011] When it is determined that the Bluetooth connection status between the master earphone and the slave earphone is abnormal, send the earphone upgrade package to the slave earphone through the asynchronous serial port transmission channel.

[0012] To achieve the above object, the present invention further provides a method for transmitting an earphone upgrade package. The method for transmitting an earphone upgrade package is applied to a slave earphone, and the method for transmitting an earphone upgrade package includes the following steps:

[0013] When it is determined that both the slave earphone and the corresponding master earphone are in the earphone case, detect whether the master earphone has completed receiving the earphone upgrade package sent by the user terminal through the Bluetooth serial port transmission channel;

[0014] When it is determined that the master earphone has not completed receiving the earphone upgrade package, send a first request message to the master earphone through the asynchronous serial port transmission channel provided by the earphone case, so as to request the master earphone to send the received upgrade package data in the earphone upgrade package to the slave earphone through the asynchronous serial port transmission channel;

[0015] Receive the upgrade package data sent by the master earphone through the asynchronous serial port transmission channel.

[0016] Optionally, after the step of detecting whether the master earphone has completed receiving the earphone upgrade package sent by the user terminal through the Bluetooth serial port transmission channel, it further includes:

[0017] When it is determined that the master earphone has completed receiving the earphone upgrade package and the slave earphone has not completed receiving the earphone upgrade package, detect whether the Bluetooth connection status between the master earphone and the slave earphone is normal;

[0018] When it is determined that the Bluetooth connection status between the master earphone and the slave earphone is normal, send a second request message to the master earphone through the Bluetooth serial port transmission channel, so as to request the master earphone to send the earphone upgrade package to the slave earphone through the Bluetooth serial port transmission channel;

[0019] Receive the earphone upgrade package sent by the master earphone through the Bluetooth serial port transmission channel.

[0020] Optionally, after the step of detecting whether the Bluetooth connection status between the master earphone and the slave earphone is normal, it further includes:

[0021] When it is determined that the Bluetooth connection status between the master earphone and the slave earphone is abnormal, send a third request message to the master earphone through the asynchronous serial port transmission channel, so as to request the master earphone to send the earphone upgrade package to the slave earphone through the asynchronous serial port transmission channel;

[0022] Receive the earphone upgrade package sent by the master earphone through the asynchronous serial port transmission channel.

[0023] Optionally, the step of sending a second request message to the master earphone through the Bluetooth serial port transmission channel, so as to request the master earphone to send the earphone upgrade package to the slave earphone through the Bluetooth serial port transmission channel, includes:

[0024] According to the upgrade package data received by the slave earphone in the earphone upgrade package, determine the offset address of the upgrade package data not received by the slave earphone in the earphone upgrade package;

[0025] Send the second request message carrying the offset address to the main earphone through the Bluetooth serial port transmission channel, so as to request the main earphone to send the upgrade package data that the slave earphone has not received in the earphone upgrade package to the slave earphone according to the offset address through the Bluetooth serial port transmission channel.

[0026] To achieve the above object, the present invention also provides an earphone, which includes: a memory, a processor, and an earphone upgrade package transmission program stored on the memory and executable on the processor. When the earphone upgrade package transmission program is executed by the processor, the steps of the above earphone upgrade package transmission method are implemented.

[0027] To achieve the above object, the present invention also provides an earphone, which includes: a memory, a processor, and an earphone upgrade package transmission program stored on the memory and executable on the processor. When the earphone upgrade package transmission program is executed by the processor, the steps of the above earphone upgrade package transmission method are implemented.

[0028] In addition, to achieve the above object, the present invention also proposes a computer-readable storage medium, on which an earphone upgrade package transmission program is stored. When the earphone upgrade package transmission program is executed by the processor, the steps of the above earphone upgrade package transmission method are implemented.

[0029] In the present invention, when it is determined that both the main earphone and the slave earphone corresponding to the main earphone are in the earphone case, the main earphone detects whether the main earphone has completed receiving the earphone upgrade package sent by the user terminal through the Bluetooth serial port transmission channel. When it is determined that the main earphone has not completed receiving the earphone upgrade package, the main earphone sends the received upgrade package data in the earphone upgrade package to the slave earphone through the asynchronous serial port transmission channel provided by the earphone case. The present invention realizes reducing the time used for earphone upgrade and improving the efficiency of earphone upgrade. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a schematic flowchart of the first embodiment of the earphone upgrade package transmission method of the present invention;

[0031] Figure 2 It is a schematic flowchart of the second embodiment of the earphone upgrade package transmission method of the present invention;

[0032] Figure 3 It is a scene diagram of an earphone upgrade package transmission related to an embodiment of the present invention;

[0033] Figure 4 It is a flowchart of an earphone upgrade related to an embodiment of the present invention.

[0034] The realization, functional features and advantages of the object of the present invention will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0035] It should be understood that the specific embodiments described herein are merely for explaining the present invention and are not used to limit the present invention.

[0036] An embodiment of the present invention provides a method for transmitting an earphone upgrade package. Referring to Figure 1 , Figure 1 is a schematic flowchart of the first embodiment of a method for transmitting an earphone upgrade package according to the present invention. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than here. The method for transmitting an earphone upgrade package in the embodiment of the present invention is applied to the main earphone. The method for transmitting an earphone upgrade package includes:

[0037] Step S10, when it is determined that both the main earphone and the sub-earphone corresponding to the main earphone are in the earphone case, detect whether the main earphone has completed receiving the earphone upgrade package sent by the user terminal through the Bluetooth serial port transmission channel;

[0038] Data transmission between the main earphone and the sub-earphone of the wireless Bluetooth earphone and between the main earphone and the user terminal is based on the SPP (Serial Port Profile) protocol through their respective Bluetooth serial ports. For convenience of description below, this data transmission channel is referred to as the Bluetooth serial port transmission channel. Among them, when two earphones are used as a pair, the earphone that establishes a communication connection with the user terminal is called the main earphone, and the other earphone is called the sub-earphone. It can be understood that any one of a pair of earphones can be used as the main earphone or the sub-earphone.

[0039] Due to the characteristics of the Bluetooth controller, when the main earphone and the sub-earphone or the user terminal perform data transmission through the Bluetooth serial port transmission channel, they cannot simultaneously perform data transmission with another device through the Bluetooth serial port transmission channel. Therefore, during the upgrade of the wireless Bluetooth earphone, the main earphone must complete receiving the earphone upgrade package sent by the user terminal through the Bluetooth serial port transmission channel before it can send the earphone upgrade package to the sub-earphone through the Bluetooth serial port transmission channel.

[0040] In this embodiment, when the main earphone receives the earphone upgrade package through the Bluetooth serial port transmission channel, data transmission can be performed between the main earphone and the earphone case, and between the earphone case and the sub-earphone, based on the asynchronous serial port transmission protocol through the UART (Universal Asynchronous Receiver / Transmitter) provided on the earphone case. For convenience of description below, this data transmission channel is referred to as the asynchronous serial port transmission channel. The specific process of data transmission through the asynchronous serial port transmission channel can be: the main earphone sends data to the earphone case, and after the earphone case receives the data sent by the main earphone, it sends the data to the sub-earphone.

[0041] Specifically, in this embodiment, the main earphone detects whether both the main earphone and the sub-earphone corresponding to the main earphone are in the earphone case. In the specific implementation, the earphone case can be an earphone charging case with a charging function, or it can be without a charging function, which is not limited specifically in this embodiment.

[0042] When it is determined that both the main earphone and the sub-earphone are in the earphone case, at this time, the main earphone can send the earphone upgrade package to the sub-earphone through the asynchronous serial port transmission channel provided by the earphone case; when it is determined that both the main earphone and the sub-earphone are not in the earphone case, at this time, the main earphone cannot send the earphone upgrade package to the sub-earphone through the asynchronous serial port transmission channel.

[0043] When the main earphone determines that both the main earphone and the sub-earphone are in the earphone case, it detects whether the main earphone has completed receiving the earphone upgrade package.

[0044] Step S20, when it is determined that the main earphone has not completed receiving the earphone upgrade package, send the received upgrade package data in the earphone upgrade package to the sub-earphone through the asynchronous serial port transmission channel provided by the earphone case.

[0045] In this embodiment, when it is determined that the main earphone has not completed receiving the earphone upgrade package, it can be determined that the main earphone is in the process of receiving the earphone upgrade package sent by the user terminal through the Bluetooth serial port transmission channel. At this time, the main earphone sends the received upgrade package data in the earphone upgrade package to the sub-earphone through the asynchronous serial port transmission channel provided by the earphone case.

[0046] It can be understood that the main earphone not completing the reception of the earphone upgrade package may mean that the main earphone has not completed receiving all the upgrade package data in the earphone upgrade package, or it may mean that the main earphone has not received any upgrade package data in the earphone upgrade package sent by the user terminal.

[0047] It should be noted that when the main earphone receives the earphone upgrade package sent by the user terminal through the Bluetooth serial port transmission channel, and sends the received upgrade package data in the earphone upgrade package to the sub-earphone through the asynchronous serial port transmission channel, compared with the main earphone sending the earphone upgrade package to the sub-earphone after completing the reception of the earphone upgrade package sent by the user terminal, it reduces the time used for transmitting the earphone upgrade package and improves the earphone upgrade efficiency.

[0048] Further, in an embodiment, after the step of detecting whether the main earphone has completed receiving the earphone upgrade package sent by the user terminal through the Bluetooth serial port transmission channel in step S10, it further includes:

[0049] Step S30, when it is determined that the main earphone has completed receiving the earphone upgrade package and it is determined that the sub-earphone has not completed receiving the earphone upgrade package, detect whether the Bluetooth connection status between the main earphone and the sub-earphone is normal;

[0050] In this embodiment, when it is determined that the master earphone has completed receiving the earphone upgrade package sent by the user terminal through the Bluetooth transmission channel, the master earphone can determine the transmission channel according to the Bluetooth connection status between the master earphone and the slave earphone.

[0051] Specifically, in this embodiment, it is detected whether the slave earphone has completed receiving the earphone upgrade package. When the slave earphone has not completed receiving the earphone upgrade package, at this time, the master earphone needs to send the received earphone upgrade package to the slave earphone; when the slave earphone has completed receiving the earphone upgrade package, at this time, the master earphone does not need to send the earphone upgrade package to the slave earphone. It can be understood that the slave earphone not completing the reception of the earphone upgrade package may mean that the slave earphone has not received all the upgrade package data of the earphone upgrade package, or that the slave earphone has not received the earphone upgrade package sent by the master earphone.

[0052] The master earphone detecting whether the slave earphone has completed receiving the earphone upgrade package can be before detecting whether the master earphone has completed receiving the earphone upgrade package, or after detecting whether the master earphone has completed receiving the earphone upgrade package. Specifically, it can be set according to actual needs and is not limited here.

[0053] When the master earphone determines that the master earphone has completed receiving the earphone upgrade package and determines that the slave earphone has not completed receiving the earphone upgrade package, the master earphone detects whether the Bluetooth connection status between the master earphone and the slave earphone is normal. In a specific embodiment, when the Bluetooth connection status between the master earphone and the slave earphone is normal, the master earphone can send the earphone upgrade package to the slave earphone through the Bluetooth serial port transmission channel or through the asynchronous serial port transmission channel; when the Bluetooth connection status between the master earphone and the slave earphone is abnormal, the master earphone can send the earphone upgrade package to the slave earphone through the asynchronous serial port transmission channel.

[0054] Further, in an embodiment, after the master earphone determines that the slave earphone has completed receiving the earphone upgrade package, the master earphone and the slave earphone respectively restart to move the earphone upgrade package to their respective operating areas for earphone upgrade.

[0055] Step S40, when it is determined that the Bluetooth connection status between the master earphone and the slave earphone is normal, send the earphone upgrade package to the slave earphone through the Bluetooth serial port transmission channel.

[0056] When the master earphone determines that the Bluetooth connection status between the master earphone and the slave earphone is normal, the master earphone sends the earphone upgrade package to the slave earphone through the Bluetooth serial port transmission channel.

[0057] It should be noted that since the transmission rate through the Bluetooth serial port transmission channel is higher than that through the asynchronous serial port transmission channel, when the main earphone determines that the Bluetooth connection status between the main earphone and the sub - earphone is normal, the main earphone sends the headphone upgrade package to the sub - earphone through the Bluetooth serial port transmission channel. Compared with sending the headphone upgrade package to the sub - earphone through the asynchronous serial port transmission channel, it can reduce the time used to transmit the headphone upgrade package and improve the headphone upgrade efficiency.

[0058] Further, in one embodiment, when the main earphone determines that the Bluetooth connection status between the main earphone and the sub - earphone is normal, the main earphone can send the headphone upgrade package to the sub - earphone through the asynchronous serial port transmission channel.

[0059] Further, in one embodiment, after the step of detecting whether the Bluetooth connection status between the main earphone and the sub - earphone is normal in step S30, it further includes:

[0060] Step S50, when it is determined that the Bluetooth connection status between the main earphone and the sub - earphone is abnormal, send the headphone upgrade package to the sub - earphone through the asynchronous serial port transmission channel.

[0061] In this embodiment, when the main earphone determines that the Bluetooth connection status between the main earphone and the sub - earphone is abnormal, at this time, the Bluetooth serial port transmission channel between the main earphone and the sub - earphone cannot be used, and the main earphone can send the headphone upgrade package to the sub - earphone through the asynchronous serial port transmission channel.

[0062] It should be noted that when the Bluetooth connection status between the main earphone and the sub - earphone is abnormal, the main earphone sends the headphone upgrade package to the sub - earphone through the asynchronous serial port transmission channel, which realizes that when the Bluetooth connection status between the main earphone and the sub - earphone is abnormal, the sub - earphone can receive the headphone upgrade package, so that the headphone can be normally upgraded when the Bluetooth connection status between the main earphone and the sub - earphone is abnormal.

[0063] In this embodiment, when the main earphone determines that both the main earphone and the sub - earphone corresponding to the main earphone are in the earphone case, the main earphone detects whether the main earphone has completed receiving the headphone upgrade package sent by the user terminal through the Bluetooth serial port transmission channel. When it is determined that the main earphone has not completed receiving the headphone upgrade package, send the received upgrade package data in the headphone upgrade package to the sub - earphone through the asynchronous serial port transmission channel provided by the earphone case, which realizes reducing the time used to transmit the headphone upgrade package and improving the headphone upgrade efficiency.

[0064] Further, based on the above - mentioned first embodiment, a second embodiment of the headphone upgrade package transmission method of the present invention is proposed. The headphone upgrade package transmission method of this embodiment is applied to the sub - earphone. In this embodiment, referring to Figure 2 , the headphone upgrade package transmission method includes:

[0065] Step A10, when it is determined that both the secondary earphone and the primary earphone corresponding to the secondary earphone are in the earphone case, detect whether the primary earphone has completed receiving the earphone upgrade package sent by the user terminal through the Bluetooth serial port transmission channel;

[0066] In this embodiment, when the primary earphone receives the earphone upgrade package through the Bluetooth serial port transmission channel, the secondary earphone receives the earphone upgrade package sent by the primary earphone through the asynchronous serial port transmission channel provided by the earphone case, which can reduce the time used to transmit the earphone upgrade package and improve the earphone upgrade efficiency.

[0067] Refer to Figure 3 , the specific process for the secondary earphone to receive the earphone upgrade package sent by the primary earphone through the asynchronous serial port transmission channel provided by the earphone case can be: the secondary earphone sends a request message for the earphone upgrade package to the earphone case, the earphone case sends the request message sent by the secondary earphone to the primary earphone, the earphone case receives the earphone upgrade package sent by the primary earphone through the asynchronous serial port transmission channel after receiving the request message, and the earphone case sends the received earphone upgrade package to the secondary earphone.

[0068] Specifically, in this embodiment, the secondary earphone detects whether both the primary earphone and the primary earphone corresponding to the secondary earphone are in the earphone case. When it is determined that both the primary earphone and the secondary earphone are in the earphone case, at this time, the secondary earphone determines that it can establish a communication connection with the primary earphone through the asynchronous serial port transmission channel; when it is determined that the primary earphone and the secondary earphone are not both in the earphone case, at this time, the secondary earphone determines that it cannot establish a communication connection with the primary earphone through the asynchronous serial port transmission channel.

[0069] When the secondary earphone determines that both the primary earphone and the secondary earphone are in the earphone case, the secondary earphone detects whether the primary earphone has completed receiving the earphone upgrade package sent by the user terminal through the Bluetooth transmission channel.

[0070] The specific detection method involved in the above detection process can refer to the prior art and will not be limited here.

[0071] Step A20, when it is determined that the primary earphone has not completed receiving the earphone upgrade package, send a first request message to the primary earphone through the asynchronous serial port transmission channel provided by the earphone case to request the primary earphone to send the received upgrade package data in the earphone upgrade package to the secondary earphone through the asynchronous serial port transmission channel;

[0072] When the secondary earphone determines that the primary earphone has not completed receiving the earphone upgrade package, the secondary earphone sends a request message (hereinafter referred to as the first request message for distinction) to the primary earphone through the asynchronous serial port transmission channel provided by the earphone case to request the primary earphone to send the received upgrade package data in the earphone upgrade package to the secondary earphone through the asynchronous serial port transmission channel after receiving the first request message.

[0073] It can be understood that the main earphone fails to complete receiving the earphone upgrade package may mean that the main earphone fails to receive all the upgrade package data in the earphone upgrade package, or that the main earphone fails to receive the earphone upgrade package sent by the user terminal.

[0074] Step A30: Receive the upgrade package data sent by the main earphone through the asynchronous serial port transmission channel.

[0075] The secondary earphone receives the upgrade package data sent by the main earphone through the asynchronous serial port transmission channel.

[0076] It should be noted that when the main earphone receives the earphone upgrade package sent by the user terminal through the Bluetooth serial port transmission channel, the secondary earphone sends a first request message to the main earphone through the asynchronous serial port transmission channel and receives part of the upgrade package data sent by the main earphone through the asynchronous serial port transmission channel. Compared with the secondary earphone requesting the main earphone to send the earphone upgrade package after the main earphone completes receiving the earphone upgrade package and receiving the earphone upgrade package sent by the main earphone, it reduces the time used for transmitting the earphone upgrade package, reduces the time used for earphone upgrade, and improves the earphone upgrade efficiency.

[0077] Further, in an embodiment, before the step of detecting in step A10 whether the main earphone has completed receiving the earphone upgrade package sent by the user terminal through the Bluetooth serial port transmission channel, it further includes:

[0078] Step A40: When it is determined that the main earphone has completed receiving the earphone upgrade package and it is determined that the secondary earphone has not completed receiving the earphone upgrade package, detect whether the Bluetooth connection status between the main earphone and the secondary earphone is normal;

[0079] In this embodiment, when it is determined that the main earphone has completed receiving the earphone upgrade package, the secondary earphone can determine the transmission channel according to the Bluetooth connection status between the main earphone and the secondary earphone.

[0080] Specifically, in this embodiment, to detect whether the secondary earphone has completed receiving the earphone upgrade package, when the secondary earphone determines that it has not completed receiving the earphone upgrade package, at this time the secondary earphone requests the main earphone to send the received earphone upgrade package to the secondary earphone; when the secondary earphone determines that it has completed receiving the earphone upgrade package, at this time the secondary earphone does not need to request the main earphone to send the received earphone upgrade package to the secondary earphone. It can be understood that the secondary earphone fails to complete receiving the earphone upgrade package may mean that the secondary earphone fails to receive all the upgrade package data of the earphone upgrade package, or that the secondary earphone fails to receive the earphone upgrade package sent by the main earphone.

[0081] The secondary earphone detecting whether it has completed receiving the earphone upgrade package can be before detecting whether the main earphone has completed receiving the earphone upgrade package, or after detecting whether the main earphone has completed receiving the earphone upgrade package. Specifically, it can be set according to actual needs and is not limited here.

[0082] When the slave earphone determines that the master earphone has completed receiving the earphone upgrade package and determines that the slave earphone has not completed receiving the earphone upgrade package, the slave earphone detects whether the Bluetooth connection status between the master earphone and the slave earphone is normal. In a specific implementation manner, when the Bluetooth connection status between the master earphone and the slave earphone is normal, the slave earphone can establish a communication connection with the master earphone through the Bluetooth serial port transmission channel or through the asynchronous serial port transmission channel; when the Bluetooth connection status between the master earphone and the slave earphone is abnormal, the slave earphone can establish a communication connection with the master earphone through the asynchronous serial port transmission channel.

[0083] The detection processes involved in this implementation manner can all refer to the prior art and will not be elaborated here.

[0084] Step A50, when it is determined that the Bluetooth connection status between the master earphone and the slave earphone is normal, send a second request message to the master earphone through the Bluetooth serial port transmission channel to request the master earphone to send the earphone upgrade package to the slave earphone through the Bluetooth serial port transmission channel;

[0085] In this implementation manner, when the slave earphone determines that the Bluetooth connection status between the master earphone and the slave earphone is normal, the slave earphone sends a request message (hereinafter referred to as the second request message for distinction) to the master earphone through the Bluetooth serial port transmission channel, so as to request the master earphone to send the earphone upgrade package to the slave earphone through the Bluetooth serial port transmission channel after receiving the second request message.

[0086] Step A60, receive the earphone upgrade package sent by the master earphone through the Bluetooth serial port transmission channel.

[0087] The slave earphone receives the earphone upgrade package sent by the master earphone through the Bluetooth serial port transmission channel.

[0088] It should be noted that when the slave earphone determines that the Bluetooth connection status between the master earphone and the slave earphone is normal, sending a second request message to the master earphone through the Bluetooth serial port transmission channel and receiving the slave earphone sent by the master earphone through the Bluetooth serial port transmission channel can reduce the time used to transmit the earphone upgrade package compared to using the asynchronous serial port transmission channel, reduce the time used for upgrading, and improve the earphone upgrade efficiency.

[0089] Furthermore, in an implementation manner, when the slave earphone determines that the Bluetooth connection status between the master earphone and the slave earphone is normal, the slave earphone can request the master earphone to send the earphone upgrade package through the asynchronous serial port transmission channel through the asynchronous serial port transmission channel and receive the earphone upgrade package sent by the master earphone through the asynchronous serial port transmission channel.

[0090] Further, in an embodiment, when the slave earphone determines that it has completed receiving the earphone upgrade package, it sends a prompt message to the master earphone to prompt the master earphone to perform the upgrade. The master earphone and the slave earphone restart respectively to move the earphone upgrade package to their respective operating areas for earphone upgrade.

[0091] Further, in an embodiment, the step of detecting whether the Bluetooth connection status between the master earphone and the slave earphone is normal in step A40 includes:

[0092] Step A70, when it is determined that the Bluetooth connection status between the master earphone and the slave earphone is abnormal, send a third request message to the master earphone through the asynchronous serial port transmission channel to request the master earphone to send the earphone upgrade package to the slave earphone through the asynchronous serial port transmission channel;

[0093] In this embodiment, when the slave earphone determines that the Bluetooth connection status between the master earphone and the slave earphone is abnormal, at this time, the Bluetooth serial port transmission channel between the master earphone and the slave earphone cannot be used. The slave earphone sends a request message (hereinafter referred to as the third request message for distinction) to the master earphone through the asynchronous serial port transmission channel, so as to request the master earphone to receive the third request message and then send the earphone upgrade package to the slave earphone through the asynchronous serial port transmission channel.

[0094] Step A80, receive the earphone upgrade package sent by the master earphone through the asynchronous serial port transmission channel.

[0095] The slave earphone receives the earphone upgrade package sent by the master earphone through the asynchronous serial port transmission channel.

[0096] It should be noted that when the Bluetooth connection status between the master earphone and the slave earphone is abnormal, the slave earphone communicates and transmits with the master earphone through the asynchronous serial port transmission channel, realizing that when the Bluetooth connection status between the master earphone and the slave earphone is abnormal, the slave earphone can receive the earphone upgrade package, so that the earphone can be normally upgraded.

[0097] Further, in an embodiment, the step of sending a second request message to the master earphone through the Bluetooth serial port transmission channel in step A50 to request the master earphone to send the earphone upgrade package to the slave earphone through the Bluetooth serial port transmission channel includes:

[0098] Step A501, determine the offset address of the upgrade package data not received by the slave earphone in the earphone upgrade package according to the upgrade package data already received by the slave earphone in the earphone upgrade package;

[0099] In this embodiment, the slave earphone may have received some of the upgrade package data in the earphone upgrade package. For example, the slave earphone has received some of the upgrade package data sent by the master earphone through the asynchronous transmission channel during the process of the master earphone receiving the earphone upgrade package. When the master earphone finishes receiving the earphone upgrade package while the slave earphone has not finished receiving the earphone upgrade package, at this time, the slave earphone can request the master earphone to send the upgrade package data that the slave earphone has not received in the earphone upgrade package to the slave earphone through the Bluetooth serial port transmission channel.

[0100] Specifically, the slave earphone determines the offset address of the upgrade package data that the slave earphone has not received in the earphone upgrade package according to the upgrade package data that the slave earphone has received in the earphone upgrade package. The specific processing process may be: the slave earphone records the length of the received upgrade package data, and determines the offset address of the upgrade package data that the slave earphone has not received in the earphone upgrade package according to the length of the received upgrade package data and the length of the earphone upgrade package. According to the offset address of the upgrade package data that the slave earphone has not received in the earphone upgrade package, the offset address of the upgrade package data that the slave earphone has not received in the earphone upgrade package is determined.

[0101] Step A502: Send a second request message carrying the offset address to the master earphone through the Bluetooth serial port transmission channel, so as to request the master earphone to send the upgrade package data that the slave earphone has not received in the earphone upgrade package to the slave earphone through the Bluetooth serial port transmission channel according to the offset address.

[0102] The slave earphone sends a second request message carrying the offset address to the master earphone through the Bluetooth serial port transmission channel, so as to request the master earphone to send the upgrade package data that the slave earphone has not received in the earphone upgrade package to the slave earphone through the Bluetooth serial port transmission channel according to the offset address.

[0103] Further, in an embodiment, the step of sending a third request message to the master earphone through the asynchronous serial port transmission channel in step A60 to request the master earphone to send the earphone upgrade package to the slave earphone through the asynchronous serial port transmission channel includes: the slave earphone determines the offset address of the upgrade package data that the slave earphone has not received in the earphone upgrade package according to the upgrade package data that the slave earphone has received in the earphone upgrade package, and the slave earphone sends a third request message carrying the offset address to the master earphone through the asynchronous serial port transmission channel, so as to request the master earphone to send the upgrade package data that the slave earphone has not received in the earphone upgrade package to the slave earphone through the asynchronous serial port transmission channel according to the offset address.

[0104] In this embodiment, the secondary earphone may have received some of the upgrade package data in the earphone upgrade package. For example, when the primary earphone has completed receiving the earphone upgrade package while the secondary earphone has not, the secondary earphone has received some of the upgrade package data sent by the primary earphone through the Bluetooth serial port transmission channel. When the Bluetooth connection status between the primary earphone and the secondary earphone is abnormal, at this time, the secondary earphone can request the primary earphone to send the upgrade package data that the secondary earphone has not received in the earphone upgrade package to the secondary earphone through the asynchronous serial port transmission channel.

[0105] It should be noted that when the secondary earphone has received some of the upgrade package data in the earphone upgrade package, requesting the primary earphone to send the untransmitted upgrade package data in the earphone upgrade package to the secondary earphone can reduce the time used to transmit the upgrade package, reduce the time used for earphone upgrade, and improve the earphone upgrade efficiency compared to requesting the primary earphone to send all the upgrade package data in the earphone upgrade package to the secondary earphone.

[0106] In this embodiment, when it is determined that both the secondary earphone and the corresponding primary earphone are in the earphone case, the secondary earphone detects whether the primary earphone has completed receiving the earphone upgrade package sent by the user terminal through the Bluetooth serial port transmission channel. When it is determined that the primary earphone has not completed receiving the earphone upgrade package, the secondary earphone sends a first request message to the primary earphone through the asynchronous serial port transmission channel provided by the earphone case, so as to request the primary earphone to send the received upgrade package data in the earphone upgrade package to the secondary earphone through the asynchronous serial port transmission channel. The secondary earphone receives the upgrade package data sent by the primary earphone through the asynchronous serial port transmission channel, which reduces the time used to transmit the earphone upgrade package, reduces the time used for earphone upgrade, and improves the earphone upgrade efficiency.

[0107] Further, in one embodiment, referring to Figure 4 , the process of earphone upgrade can be as follows:

[0108] The primary earphone (i.e., the primary ear shown in Figure 4 ) checks whether the earphone meets the upgrade conditions. When it is determined that the earphone meets the upgrade conditions, the primary earphone requests an earphone upgrade package from the user terminal (i.e., the upgrade package shown in Figure 4 ). In a specific embodiment, the upgrade conditions can be that the battery levels of the primary earphone and the secondary earphone are not less than 10% of their respective full battery levels; or when the earphone case is a charging case for the earphone, the battery level of the earphone charging case is not less than 5% of its full battery level; or other conditions that the earphone needs to meet. Specifically, it can be set according to actual needs and will not be limited here.

[0109] The secondary earphone (i.e., the secondary ear shown in Figure 4 ) detects whether the primary earphone has completed receiving the earphone upgrade package. When it is determined that the primary earphone has not completed receiving the earphone upgrade package, the secondary earphone sends a first request message (i.e., Figure 4Send a UART message as shown in to the master earphone to request the master earphone to send the earphone upgrade package through the asynchronous serial port transmission channel (i.e., Figure 4 Send a request packet to the master earphone from the offset (offset value, initial value is 0) as shown in . The slave earphone receives the earphone upgrade package sent by the master earphone through the asynchronous serial port transmission channel (i.e., Figure 4 The slave earphone receives the packet through UART as shown in .

[0110] When the slave earphone determines that the master earphone has completed receiving the earphone upgrade package and determines that the slave earphone has not completed receiving the earphone upgrade package, the slave earphone detects the Bluetooth connection status (i.e., Figure 4 The TWS connection as shown in ) to check if it is normal. When the slave earphone determines that the Bluetooth connection status is normal, the slave earphone determines the offset address of the upgrade package data that the slave earphone has not received in the earphone upgrade package based on the upgrade package data that the slave earphone has received in the earphone upgrade package (i.e., Figure 4 The recorded valid packet length offset as shown in ), and sends a second request message carrying the offset address to the master earphone through the Bluetooth serial port transmission channel to request the master earphone to send the upgrade package data that the slave earphone has not received in the earphone upgrade package to the slave earphone according to the offset address through the Bluetooth serial port transmission channel (i.e., Figure 4 Send a request packet to the master earphone starting from the offset as shown in ). The slave earphone receives the earphone upgrade package sent by the master earphone through the Bluetooth serial port transmission channel (i.e., Figure 4 The slave earphone receives the packet through SPP as shown in ); when the slave earphone determines that the Bluetooth connection status is abnormal, the slave earphone determines the offset address of the upgrade package data that the slave earphone has not received in the earphone upgrade package based on the upgrade package data that the slave earphone has received in the earphone upgrade package, and sends a third request message carrying the offset address to the master earphone through the asynchronous serial port transmission channel to request the master earphone to send the upgrade package data that the slave earphone has not received in the earphone upgrade package to the slave earphone according to the offset address through the asynchronous serial port transmission channel.

[0111] When it is determined that the slave earphone has completed receiving the earphone upgrade package, verify whether the earphone upgrade package received by the slave earphone is consistent with the earphone upgrade package sent by the master earphone. The specific verification process can be: check whether the check code in the earphone upgrade package sent by the master earphone matches the check code received by the slave earphone. When the above two check codes match, it is determined that the earphone upgrade package received by the slave earphone is consistent with the earphone upgrade package sent by the master earphone; when the above two check codes do not match, it is determined that the earphone upgrade package received by the slave earphone is inconsistent with the earphone upgrade package sent by the master earphone.

[0112] When it is determined that the earphone upgrade package received by the slave earphone is consistent with the earphone upgrade package sent by the master earphone, the master earphone and the slave earphone restart to transfer the earphone upgrade package to their respective operating areas for upgrade.

[0113] In addition, an embodiment of the present invention further provides a pair of earphones, which includes a structural housing, a communication module, a main control module (such as a micro control unit MCU), a speaker, a microphone, a memory, etc. The main control module may include a microprocessor, an audio decoding unit, a power supply and a power management unit, sensors required by the system, and other active or passive devices, etc. (which can be replaced, deleted or added according to actual functions), to implement the functions of receiving and playing audio. The earphones can establish a communication connection with a user terminal through the communication module. An earphone upgrade package transmission processing program may be stored in the memory of the earphones. When the earphones are used as the main earphones, the microprocessor can be used to call the earphone upgrade package transmission processing program stored in the memory and perform the following operations:

[0114] When it is determined that both the main earphone and the secondary earphone corresponding to the main earphone are in the earphone case, detect whether the main earphone has completed receiving the earphone upgrade package sent by the user terminal through the Bluetooth serial port transmission channel;

[0115] When it is determined that the main earphone has not completed receiving the earphone upgrade package, send the received upgrade package data in the earphone upgrade package to the secondary earphone through the asynchronous serial port transmission channel provided by the earphone case.

[0116] Further, after the operation of detecting whether the main earphone has completed receiving the earphone upgrade package sent by the user terminal through the Bluetooth serial port transmission channel, the microprocessor can also be used to call the earphone upgrade package transmission processing program stored in the memory and perform the following operations:

[0117] When it is determined that the main earphone has completed receiving the earphone upgrade package and the secondary earphone has not completed receiving the earphone upgrade package, detect whether the Bluetooth connection status between the main earphone and the secondary earphone is normal;

[0118] When it is determined that the Bluetooth connection status between the main earphone and the secondary earphone is normal, send the earphone upgrade package to the secondary earphone through the Bluetooth serial port transmission channel.

[0119] Further, after the operation of detecting whether the Bluetooth connection status between the main earphone and the secondary earphone is normal, the microprocessor can also be used to call the earphone upgrade package transmission processing program stored in the memory and perform the following operations:

[0120] When it is determined that the Bluetooth connection status between the main earphone and the secondary earphone is abnormal, send the earphone upgrade package to the secondary earphone through the asynchronous serial port transmission channel.

[0121] For each embodiment of the main earphone of the present invention, reference can be made to the first embodiment of the earphone upgrade processing method of the present invention, which will not be elaborated here.

[0122] In addition, an embodiment of the present invention further provides a headset, which includes a structural housing, a communication module, a main control module (such as a micro control unit MCU), a speaker, a microphone, a memory, etc. The main control module may include a microprocessor, an audio decoding unit, a power supply and a power management unit, sensors required by the system, and other active or passive devices, etc. (which can be replaced, deleted, or added according to actual functions), to implement the functions of receiving and playing audio. The headset can establish a communication connection with a user terminal through the communication module. A headset upgrade package transmission processing program may be stored in the memory of the headset. When the headset is used as a secondary headset, the microprocessor can be used to call the headset upgrade package transmission processing program stored in the memory and perform the following operations:

[0123] When it is determined that both the secondary headset and the corresponding primary headset are in the headset case, detect whether the primary headset has completed receiving the headset upgrade package sent by the user terminal through the Bluetooth serial port transmission channel;

[0124] When it is determined that the primary headset has not completed receiving the headset upgrade package, send a first request message to the primary headset through the asynchronous serial port transmission channel provided by the headset case, so as to request the primary headset to send the received upgrade package data in the headset upgrade package to the secondary headset through the asynchronous serial port transmission channel;

[0125] Receive the upgrade package data sent by the primary headset through the asynchronous serial port transmission channel.

[0126] Further, after the operation of detecting whether the primary headset has completed receiving the headset upgrade package sent by the user terminal through the Bluetooth serial port transmission channel, the microprocessor can also be used to call the headset upgrade package transmission processing program stored in the memory and perform the following operations:

[0127] When it is determined that the primary headset has completed receiving the headset upgrade package and it is determined that the secondary headset has not completed receiving the headset upgrade package, detect whether the Bluetooth connection status between the primary headset and the secondary headset is normal;

[0128] When it is determined that the Bluetooth connection status between the primary headset and the secondary headset is normal, send a second request message to the primary headset through the Bluetooth serial port transmission channel, so as to request the primary headset to send the headset upgrade package to the secondary headset through the Bluetooth serial port transmission channel;

[0129] Receive the headset upgrade package sent by the primary headset through the Bluetooth serial port transmission channel.

[0130] Further, after the operation of detecting whether the Bluetooth connection status between the primary headset and the secondary headset is normal, the microprocessor can also be used to call the headset upgrade package transmission processing program stored in the memory and perform the following operations:

[0131] When it is determined that the Bluetooth connection status between the main earphone and the secondary earphone is abnormal, a third request message is sent to the main earphone through the asynchronous serial port transmission channel to request the main earphone to send the earphone upgrade package to the secondary earphone through the asynchronous serial port transmission channel;

[0132] Receive the earphone upgrade package sent by the main earphone through the asynchronous serial port transmission channel.

[0133] Further, the operation of sending a second request message to the main earphone through the Bluetooth serial port transmission channel to request the main earphone to send the earphone upgrade package to the secondary earphone through the Bluetooth serial port transmission channel includes:

[0134] Determine the offset address of the upgrade package data not received by the secondary earphone in the earphone upgrade package according to the upgrade package data already received by the secondary earphone in the earphone upgrade package;

[0135] Send the second request message carrying the offset address to the main earphone through the Bluetooth serial port transmission channel to request the main earphone to send the upgrade package data not received by the secondary earphone in the earphone upgrade package to the secondary earphone according to the offset address through the Bluetooth serial port transmission channel.

[0136] For each embodiment of the earphone of the present invention, reference can be made to the second embodiment of the earphone upgrade processing method of the present invention, which will not be elaborated here.

[0137] In addition, an embodiment of the present invention also proposes a computer-readable storage medium, on which an earphone upgrade package transmission program is stored. When the earphone upgrade package transmission program is executed by a processor, the steps of the above earphone upgrade package transmission method are implemented.

[0138] For each embodiment of the computer-readable storage medium of the present invention, reference can be made to each embodiment of the earphone upgrade package transmission method of the present invention, which will not be elaborated here.

[0139] It should be noted that in this article, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or system. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or system including the element.

[0140] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments.

[0141] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. This computer software product is stored in a storage medium as described above (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to enable a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present invention.

[0142] The above are only the preferred embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present invention, or directly or indirectly applied to other related technical fields, shall be equally included in the patent protection scope of the present invention.

Claims

1. A method for transmitting an earphone upgrade package, characterized in that, The headphone upgrade package transmission method is applied to the master headphone, and the headphone upgrade package transmission method includes the following steps: When it is determined that both the master headphone and the slave headphone corresponding to the master headphone are in the headphone case, detect whether the master headphone has completed receiving the headphone upgrade package sent by the user terminal through the Bluetooth serial port transmission channel; When it is determined that the master headphone has not completed receiving the headphone upgrade package, in the case of receiving the first request information sent by the slave headphone through the asynchronous serial port transmission channel provided by the headphone case, send the received upgrade package data in the headphone upgrade package to the slave headphone through the asynchronous serial port transmission channel; When it is determined that the master headphone has completed receiving the headphone upgrade package and it is determined that the slave headphone has not completed receiving the headphone upgrade package, and it is determined that the Bluetooth connection status between the master headphone and the slave headphone is normal, in the case of receiving the second request information carrying the offset address sent by the slave headphone through the Bluetooth serial port transmission channel, send the upgrade package data in the headphone upgrade package that the slave headphone has not received to the slave headphone according to the offset address through the Bluetooth serial port transmission channel, where the offset address is the offset address of the upgrade package data that the slave headphone has not received in the headphone upgrade package; When it is determined that the master headphone has completed receiving the headphone upgrade package and it is determined that the slave headphone has not completed receiving the headphone upgrade package, and it is determined that the Bluetooth connection status between the master headphone and the slave headphone is abnormal, in the case of receiving the third request information sent by the slave headphone through the asynchronous serial port transmission channel, send the headphone upgrade package to the slave headphone through the asynchronous serial port transmission channel.

2. A method for transmitting an earphone upgrade package, characterized in that, The headphone upgrade package transmission method is applied to the slave headphone, and the headphone upgrade package transmission method includes the following steps: When it is determined that both the slave headphone and the master headphone corresponding to the slave headphone are in the headphone case, detect whether the master headphone has completed receiving the headphone upgrade package sent by the user terminal through the Bluetooth serial port transmission channel; When it is determined that the master headphone has not completed receiving the headphone upgrade package, send the first request information to the master headphone through the asynchronous serial port transmission channel provided by the headphone case to request the master headphone to send the received upgrade package data in the headphone upgrade package to the slave headphone through the asynchronous serial port transmission channel, and receive the upgrade package data sent by the master headphone through the asynchronous serial port transmission channel; When it is determined that the master earphone has completed receiving the earphone upgrade package and it is determined that the slave earphone has not completed receiving the earphone upgrade package, and the Bluetooth connection status between the master earphone and the slave earphone is normal, send second request information carrying an offset address to the master earphone through the Bluetooth serial port transmission channel, so as to request the master earphone to send the upgrade package data in the earphone upgrade package that the slave earphone has not received to the slave earphone according to the offset address through the Bluetooth serial port transmission channel, and receive the earphone upgrade package sent by the master earphone through the Bluetooth serial port transmission channel, where the offset address is the offset address of the upgrade package data that the slave earphone has not received in the earphone upgrade package; When it is determined that the master earphone has completed receiving the earphone upgrade package and it is determined that the slave earphone has not completed receiving the earphone upgrade package, and the Bluetooth connection status between the master earphone and the slave earphone is abnormal, send third request information to the master earphone through the asynchronous serial port transmission channel, so as to request the master earphone to send the earphone upgrade package to the slave earphone through the asynchronous serial port transmission channel, and receive the earphone upgrade package sent by the master earphone through the asynchronous serial port transmission channel.

3. The method for transmitting an earphone upgrade package according to claim 2, characterized in that, The step of sending second request information carrying an offset address to the master earphone through the Bluetooth serial port transmission channel, so as to request the master earphone to send the upgrade package data in the earphone upgrade package that the slave earphone has not received to the slave earphone according to the offset address through the Bluetooth serial port transmission channel includes: Determine the offset address of the upgrade package data that the slave earphone has not received in the earphone upgrade package according to the upgrade package data that the slave earphone has received in the earphone upgrade package; Send second request information carrying the offset address to the master earphone through the Bluetooth serial port transmission channel, so as to request the master earphone to send the upgrade package data in the earphone upgrade package that the slave earphone has not received to the slave earphone according to the offset address through the Bluetooth serial port transmission channel.

4. An earphone, characterized in that, The earphone includes: a memory, a processor, and an earphone upgrade package transmission program stored on the memory and executable on the processor, and the earphone upgrade package transmission program is configured to implement the steps of the earphone upgrade package transmission method as described in claim 1.

5. An earphone, characterized in that, The earphone includes: a memory, a processor, and an earphone upgrade package transmission program stored on the memory and executable on the processor, and the earphone upgrade package transmission program is configured to implement the steps of the earphone upgrade package transmission method as described in any one of claims 2 to 3.

6. A storage medium, characterized in that, An earphone upgrade package transmission program is stored on the storage medium, and when the earphone upgrade package transmission program is executed by a processor, it implements the steps of the earphone upgrade package transmission method as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • TWS earphone upgrading method and device, charging box and storage medium

    CN111163387A

  • TWS earphone, upgrading method and device thereof, and readable storage medium

    CN111200811A

  • Upgrading method and device and storage medium

    CN112947970A