CN110795127B - Wireless earphone and upgrading method and device thereof - Google Patents

Wireless earphone and upgrading method and device thereof Download PDF

Info

Publication number
CN110795127B
CN110795127B CN201911038036.8A CN201911038036A CN110795127B CN 110795127 B CN110795127 B CN 110795127B CN 201911038036 A CN201911038036 A CN 201911038036A CN 110795127 B CN110795127 B CN 110795127B
Authority
CN
China
Prior art keywords
ear
upgrade
slave
master
upgrade package
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911038036.8A
Other languages
Chinese (zh)
Other versions
CN110795127A (en
Inventor
刘鑫
杨培
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201911038036.8A priority Critical patent/CN110795127B/en
Publication of CN110795127A publication Critical patent/CN110795127A/en
Application granted granted Critical
Publication of CN110795127B publication Critical patent/CN110795127B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data

Abstract

The application discloses a method and a device for upgrading a wireless earphone, wherein the method is applied to the wireless earphone which can be connected with a master ear and a slave ear through an earphone head strip, and the earphone head strip comprises a transmission line for connecting the master ear and the slave ear. The master ear acquires an upgrade package sent by the mobile terminal, sends the upgrade package to the slave ear through a transmission line to upgrade, writes the upgrade package into a memory to upgrade, and sends a synchronous upgrade command to the slave ear when upgrade readiness information of the slave ear is received. Therefore, the method does not need to switch the master ear and the slave ear, and on the other hand, the master ear can send the upgrade package to the slave ear through the transmission line while writing the upgrade package into the memory, so that time multiplexing is realized, which is equivalent to the fact that the master ear upgrade and the slave ear upgrade are simultaneously carried out in the same period of time, and compared with the running water type upgrade mode in the prior art, the upgrade time is greatly shortened.

Description

Wireless earphone and upgrading method and device thereof
Technical Field
The present application relates to the field of wireless headphones, and in particular, to a wireless headphone and an upgrading method and apparatus thereof.
Background
The use of wireless headphones has become very popular in people's daily lives. Wireless headphones typically have at least two audio output devices, typically two, for wearing on the left and right ears, respectively, referred to in the industry as the master ear and the slave ear. The main ear is for communication connection with the mobile terminal, e.g. via a bluetooth connection.
In the use process of the wireless earphone, the upgrading of the earphone is an important link, and the performance of the earphone can be improved. In the prior art, an over-the-air (OTA) upgrade is generally adopted for an earphone upgrade, firstly, a master ear is connected with a mobile terminal, the mobile terminal transmits an OTA upgrade packet to the master ear, after the master ear is upgraded, the master ear and a slave ear are switched, so that the slave ear becomes the master ear to be communicated with the mobile terminal, and then the OTA upgrade packet is transmitted to the slave ear, and then the slave ear is upgraded. Therefore, in the upgrading process, the master ear and the slave ear need to be switched, and the operation is running water, and the upgrading time is superposition of the respective upgrading time of the master ear and the slave ear, so that the upgrading time is longer.
Disclosure of Invention
The application aims to provide a wireless earphone, an upgrading method and an upgrading device thereof, which are used for reducing upgrading time and improving experience of a user when the wireless earphone is upgraded.
In order to solve the technical problem, the present application provides an upgrade method of a wireless earphone, which is applied to a wireless earphone of a master ear and a slave ear that can be connected by an earphone head strip, wherein the earphone head strip includes a transmission line for connecting the master ear and the slave ear, and the method includes:
acquiring an upgrade package sent by a mobile terminal;
the upgrade package is sent to the slave ear through the transmission line to upgrade, and meanwhile, the upgrade package is written into a memory to upgrade;
and when the upgrade readiness information of the slave ear is received, sending a synchronous upgrade command to the slave ear.
Preferably, the headset strip further comprises an MCU, and after the acquiring the upgrade package sent by the mobile terminal, the method further comprises:
judging whether the upgrade package is an upgrade package for upgrading the earphone or not;
if yes, adding a first indication mark to the upgrade package;
the step of sending the upgrade package to the slave ear through the transmission line is specifically as follows:
transmitting the upgrade package added with the first indication mark to the MCU to be transmitted to the slave ear through the MCU;
if not, adding a second indication mark to the upgrade package, and sending the upgrade package added with the second indication mark to the MCU to upgrade the MCU.
Preferably, before sending the synchronization upgrade command, the method further includes:
judging whether confirmation information allowing upgrading is received or not;
and if so, sending the synchronous upgrading command.
Preferably, the method further comprises:
receiving a query command of the mobile terminal;
judging whether the query command is a command characterized by being used for querying the current version number;
and if so, returning the current version number to the mobile terminal.
In order to solve the technical problem, the present application further provides an upgrade apparatus for a wireless earphone, which is applied to a wireless earphone with a master ear and a slave ear that can be connected by an earphone head strip, wherein the earphone head strip includes a transmission line for connecting the master ear and the slave ear, and the apparatus includes:
the mobile terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring an upgrade package sent by the mobile terminal;
the processing module is used for sending the upgrade package to the slave ear through the transmission line to upgrade, and writing the upgrade package into a memory to upgrade;
and the upgrading module is used for sending a synchronous upgrading command to the slave ear when receiving the upgrading readiness information of the slave ear.
In order to solve the technical problem, the present application further provides an upgrade method of a wireless earphone, which is applied to a wireless earphone of a master ear and a slave ear that can be connected by an earphone head strip, wherein the earphone head strip includes a transmission line for connecting the master ear and the slave ear, and the method includes:
acquiring an upgrade package transmitted by the main ear through the transmission line, wherein the upgrade package is sent to the main ear by a mobile terminal;
writing the upgrade package into a memory to upgrade;
and sending upgrade readiness information to the main ear through the transmission line, and upgrading after receiving the synchronous upgrade command sent by the main ear.
In order to solve the technical problem, the present application further provides an upgrade apparatus for a wireless earphone, which is applied to a wireless earphone with a master ear and a slave ear that can be connected by an earphone head strip, wherein the earphone head strip includes a transmission line for connecting the master ear and the slave ear, and the apparatus includes:
the acquisition module is used for acquiring an upgrade package transmitted by the main ear through the transmission line, wherein the upgrade package is sent to the main ear by the mobile terminal;
the processing module is used for writing the upgrade package into the memory to upgrade;
and the upgrading module is used for sending the upgrade readiness information to the main ear through the transmission line and upgrading after receiving the synchronous upgrade command sent by the main ear.
In order to solve the technical problem, the present application further provides an upgrade method of a wireless earphone, which is applied to a wireless earphone of a master ear and a slave ear that can be connected by an earphone head strip, wherein the earphone head strip includes a transmission line for connecting the master ear and the slave ear, and the method includes:
the master ear acquires an upgrade package sent by the mobile terminal, sends the upgrade package to the slave ear through the transmission line to upgrade, writes the upgrade package into a memory to upgrade, and sends a synchronous upgrade command to the slave ear when receiving upgrade readiness information of the slave ear;
the slave ear acquires an upgrade package transmitted by the master ear through the transmission line, writes the upgrade package into a memory for upgrade, transmits upgrade readiness information to the master ear through the transmission line, and upgrades after receiving a synchronous upgrade command transmitted by the master ear.
In order to solve the technical problem, the application also provides an upgrading device of the wireless earphone, which is applied to the wireless earphone of the master ear and the slave ear which can be connected through the earphone head strip, wherein the earphone head strip comprises a transmission line for connecting the master ear and the slave ear, and the device comprises a memory for storing a computer program;
and the processor is used for realizing the steps of the wireless earphone upgrading method when executing the computer program.
In order to solve the technical problem, the application also provides a wireless earphone which comprises a main ear and a slave ear, and also comprises an earphone head strip, wherein the earphone head strip comprises a transmission line for connecting the main ear and the slave ear;
the master ear acquires an upgrade package sent by the mobile terminal, sends the upgrade package to the slave ear through the transmission line to upgrade, writes the upgrade package into a memory to upgrade, and sends a synchronous upgrade command to the slave ear when receiving upgrade readiness information of the slave ear;
the slave ear acquires an upgrade package transmitted by the master ear through the transmission line, writes the upgrade package into a memory for upgrade, transmits upgrade readiness information to the master ear through the transmission line, and upgrades after receiving a synchronous upgrade command transmitted by the master ear.
The upgrading method of the wireless earphone is applied to the wireless earphone of the master ear and the slave ear which can be connected through the earphone head strip, and the earphone head strip comprises a transmission line for connecting the master ear and the slave ear. The master ear acquires an upgrade package sent by the mobile terminal, sends the upgrade package to the slave ear through a transmission line to upgrade, writes the upgrade package into a memory to upgrade, and sends a synchronous upgrade command to the slave ear when upgrade readiness information of the slave ear is received. Therefore, the method does not need to switch the master ear and the slave ear, and on the other hand, the master ear can send the upgrade package to the slave ear through the transmission line while writing the upgrade package into the memory, so that time multiplexing is realized, which is equivalent to the fact that the master ear upgrade and the slave ear upgrade are simultaneously carried out in the same period of time, and compared with the running water type upgrade mode in the prior art, the upgrade time is greatly shortened.
In addition, the wireless earphone and the upgrading device thereof provided by the application correspond to the method and have the same effects.
Drawings
For a clearer description of embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
Fig. 1 is a flowchart of an upgrade method of a wireless earphone applied to a main ear side according to an embodiment of the present application;
fig. 2 is a flowchart of another method for upgrading a wireless headset according to an embodiment of the present application;
fig. 3 is a flowchart of another method for upgrading a wireless headset according to an embodiment of the present application;
fig. 4 is a flowchart of a method for upgrading a wireless earphone in an application scenario provided by an embodiment of the present application;
fig. 5 is a block diagram of an upgrade apparatus for a wireless earphone according to an embodiment of the present application;
fig. 6 is a flowchart of an upgrade method applied to a wireless earphone on the ear side according to an embodiment of the present application;
fig. 7 is a block diagram of another method for upgrading a wireless headset according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by a person of ordinary skill in the art without making any inventive effort are within the scope of the present application.
The core of the application is to provide a wireless earphone and an upgrading method and device thereof, which are used for reducing upgrading time and improving user experience when upgrading the wireless earphone.
In order to better understand the aspects of the present application, the present application will be described in further detail with reference to the accompanying drawings and detailed description.
It should be noted that, in the present application, the upgrade mainly refers to firmware upgrade, and the number of the master ear and the slave ear is not limited, and in general, one master ear and one slave ear are worn on the left ear and the right ear of the user respectively. The master ear and the slave ear are opposite and can be switched, only one is the master ear at the same time, and the master ear and the slave ear are different in that the master ear is directly connected with the mobile terminal, for example, connected with a mobile phone. The slave ear is not directly connected with the mobile terminal, but communication with the mobile terminal is realized through forwarding of the master ear. The wireless earphone provided by the application can be realized through an earphone head strip, and particularly, the earphone head strip comprises a transmission line, such as a serial line, which connects a master ear with a slave ear to realize the transmission of a data packet. It will be appreciated that since the headpiece is only required when a firmware upgrade is performed, the headset headpiece may be detachably connected to the master ear and the slave ear. The application describes the upgrading method of the wireless earphone from multiple sides, namely a main ear side, a slave ear side and an earphone side, and the specific content is as follows.
Fig. 1 is a flowchart of an upgrade method of a wireless earphone applied to a main ear side according to an embodiment of the present application. As shown in fig. 1, the method includes:
s10: and acquiring an upgrade package sent by the mobile terminal.
In particular implementations, the mobile terminal is connected to the main ear through a communication module, for example, through a bluetooth module, and the communication of the mobile terminal with the main ear may include, but is not limited to, transmission of audio signals. The mobile terminal can send a command for inquiring the current version number to the master ear, record the current version number after feedback is obtained, access the server at a set moment so as to confirm whether a version newer than the current version number exists in the server, and send an upgrade request to the master ear if the version newer than the current version number exists in the server.
After receiving the upgrade request, the master ear can determine whether to upgrade according to the state of the master ear and the slave ear. It should be noted that, the state here may be to determine whether the own power and the power of the slave ear are greater than the preset power, and if so, the description may be updated, otherwise, the update may not be performed. It will be appreciated that determining whether an upgrade is to be performed by the parameter power is merely one specific implementation and is not representative of only this. When the requirements corresponding to the upgrading request are met, the master ear responds to the request, namely, the master ear sends upgrading-available information to the mobile terminal.
After receiving the information, the mobile terminal downloads the corresponding upgrade package from the server, compares whether the version number of the new upgrade package is higher than that of the current main ear, and if so, sends the new upgrade package to the main ear.
In order to verify the validity of the mobile terminal, the master ear may also authenticate the mobile terminal, for example, the mobile terminal needs to send a contracted verification code, and after the verification is passed, the upgrade package sent by the mobile terminal is received, otherwise, the upgrade package is not received.
S11: and sending the upgrade package to the slave ear through a transmission line to upgrade, and simultaneously writing the upgrade package into the memory to upgrade.
Because the channel of the Bluetooth communication module can only transmit one signal at the same time, in order not to influence the normal use function of the wireless earphone by a user, the upgrade packet is transmitted between the master ear and the slave ear in the application, not through Bluetooth, but through a transmission line. As a preferred embodiment, the transmission line may be a serial line. In a normal use state, the headset head strip can be not connected with the master ear and the slave ear, and can be connected with the master ear and the slave ear again when the firmware is upgraded, therefore, in a specific embodiment, before the upgrade package is sent to the slave ear through the transmission line, the master ear can also judge whether to be connected with the headset head strip, if the upgrade package is not connected with the slave ear, prompt information is sent to prompt, for example, the upgrade package can be sent to a mobile terminal, and prompt is performed through a specific prompt mode of the mobile terminal (prompt on a screen) or prompt through a vibration part or an indicator light of the master ear. For the user, if the prompt information is received, the headset strip needs to be connected with the master ear and the slave ear, so that the master ear can send the upgrade package to the slave ear through a transmission line on the headset strip.
It should be noted that, in order to ensure the security of data transmission, in general, the data packet needs to be encrypted, for example, when the mobile terminal sends the upgrade packet to the master ear, the upgrade packet is first encrypted, and then the master ear needs to decrypt according to the corresponding decryption method after receiving the upgrade packet.
After receiving the upgrade package, the master ear sends the upgrade package to the slave ear, and writes the upgrade package into the memory, so that the upgrade package can be written into the memory in the transmission process, the upgrade package can be reused in time, and writing operation is not needed after the transmission is finished, thereby greatly reducing the time required for upgrading.
When the master ear writes the upgrade package into the memory, the upgrade readiness is completed, but the master ear does not restart immediately, but waits for upgrade readiness information of the slave ear. After the slave ear writes the upgrade package into the memory, upgrade ready information is sent to the master ear, indicating that the upgrade readiness work has been completed.
S12: when the upgrade readiness information of the slave ear is received, a synchronous upgrade command is sent to the slave ear.
Since the upgrade packages corresponding to the master ear and the slave ear are the same, and the master ear writes the upgrade package into the memory before the slave ear, the master ear completes the writing operation into the memory before the slave ear in normal circumstances. Thus, the master ear will flag position 1 (used to characterize upgrade readiness) after writing is completed and wait for upgrade readiness information of the slave ear (the slave ear will flag position 1 after upgrade readiness, otherwise 0), and send a synchronous upgrade command to the slave ear upon receiving the upgrade readiness information (flag position 1 of the slave ear is detected). The synchronous upgrade command can be upgrade in a contracted time, and the corresponding operation is restarting. After restarting, the MCU of the master ear and the slave ear can read the data (newly written data) in the memory, thereby realizing firmware upgrading.
The upgrading method of the wireless earphone provided by the embodiment is applied to the wireless earphone of the master ear and the slave ear which can be connected through the earphone head strip, and the earphone head strip comprises a transmission line for connecting the master ear and the slave ear. The master ear acquires an upgrade package sent by the mobile terminal, sends the upgrade package to the slave ear through a transmission line to upgrade, writes the upgrade package into a memory to upgrade, and sends a synchronous upgrade command to the slave ear when upgrade readiness information of the slave ear is received. Therefore, the method does not need to switch the master ear and the slave ear, and on the other hand, the master ear can send the upgrade package to the slave ear through the transmission line while writing the upgrade package into the memory, so that time multiplexing is realized, which is equivalent to the fact that the master ear upgrade and the slave ear upgrade are simultaneously carried out in the same period of time, and compared with the running water type upgrade mode in the prior art, the upgrade time is greatly shortened.
Fig. 2 is a flowchart of another method for upgrading a wireless headset according to an embodiment of the present application. On the basis of the above embodiment, as a preferred implementation manner, the earphone head strip further includes an MCU. As shown in fig. 2, the method includes:
s20: and the mobile terminal sends an upgrade package to the main ear.
S21: the main ear acquires an upgrade package transmitted by the mobile terminal.
S22: the main ear judges whether the upgrade package is an upgrade package for upgrading the earphone, if so, the upgrade package is added with a first indication mark, and if not, the upgrade package is added with a second indication mark.
S23: the master ear transmits an upgrade package added with the first indication mark to the MCU to be transmitted to the slave ear through the MCU or transmits an upgrade package added with the second indication mark to the MCU to upgrade the MCU.
S24: the MCU receives an upgrade package added with a first indication mark or an upgrade package added with a second indication mark.
S25: if the MCU receives the upgrade package added with the second indication mark, the MCU performs upgrade.
S26: if the MCU receives the upgrade package added with the first indication mark, the MCU sends the upgrade package added with the first indication mark to the slave ear.
S27: and receiving an upgrade package added with the first indication mark from the ear, and writing the upgrade package into the memory.
S28: the upgrade readiness information is sent from the ear to the master ear.
S29: the master ear transmits a synchronous upgrade command to the slave ear.
As shown in fig. 2, when the upgrade readiness information is transmitted, the slave ear may transmit to the master ear through the MCU, or may directly transmit to the master ear, and it will be understood that if the former is, the information is transmitted through a transmission line, and if the latter is, the information is transmitted through the original communication means of the master ear and the slave ear, for example, through bluetooth. In this embodiment, the latter is adopted because the upgrade readiness information is very small compared to the transmission of the upgrade package, and normal use of the master and slave ears is not affected.
Fig. 3 is a flowchart of another method for upgrading a wireless headset according to an embodiment of the present application. As shown in fig. 3, before sending the synchronous upgrade command, the method further includes:
s30: whether confirmation information for allowing upgrading is received or not is judged, and if so, the process proceeds to S12.
In a specific implementation, in order to ensure the security of the upgrade, a man-machine interaction mode may be set for the main ear, for example, a physical key is set on the main ear, and when the physical key is triggered, the confirmation information that allows the upgrade is considered to be received, or a voice interaction mode is adopted, for example, when the voice containing the keyword is received, the confirmation information that allows the upgrade is considered to be received. It will be appreciated that other ways of achieving human-computer interaction besides the above ways are possible and are not limited to the above two ways. In addition, if the determination of the confirmation information is needed, the method further comprises: the main ear outputs prompt information for prompting the upgrade operation, for example, the main ear outputs specific voice (i.e. to be upgraded, please confirm whether to perform upgrade) in a voice manner, or a vibration sensor built in the main ear vibrates. It can be understood that in fig. 3, the order of step S30 may be changed according to practical situations, for example, the mobile terminal confirms before sending the upgrade package to the main ear, in other words, only before sending the synchronous upgrade command, which does not affect the implementation of the scheme.
As shown in fig. 3, on the basis of the above embodiment, the method further includes:
s31: and receiving a query command of the mobile terminal.
S32: it is determined whether the query command is a command characterizing a current version number for query, and if so, S33 is entered.
S33: and returning the current version number to the mobile terminal.
In a specific implementation, the purpose of the mobile terminal to communicate with the master ear is various, for example, to inquire the electric quantity of the master ear or the slave ear, or to inquire the current version numbers of the master ear and the slave ear, and a specific inquiry command is implemented through a fixed protocol. The mobile terminal can determine the current latest version number through the access server, then sends a command for inquiring the current version number to the master ear, compares whether the current version number is the same as the latest version number after receiving the current version number sent by the master ear, ends the communication if the current version number is the same as the latest version number, sends an upgrading request to the master ear if the current version number is lower than the latest version number, and sends the latest upgrading packet to the master ear after confirming the master ear. It will be appreciated that since the mobile terminal is only connected to the master ear, the current version number of the slave ear is also transmitted to the mobile terminal by the master ear, so that in S33, returning the current version number to the mobile terminal also includes transmitting the current version number of the slave ear. In order to reduce the transmission amount, in general, if the master ear determines that the current version number of the slave ear is the same as the own version number, only one current version number is transmitted by default, and when the two version numbers are inconsistent, the two version numbers are transmitted to the mobile terminal.
In order to make the technical solution provided by the present application more clear for those skilled in the art, a specific application scenario is also provided herein for explanation, in which the scenario involves a server, a mobile terminal, a master ear, an MCU and a slave ear, and fig. 4 is a flowchart of a method for upgrading a wireless earphone in an application scenario provided by an embodiment of the present application. As shown in fig. 4, the method comprises the steps of:
s40: the mobile terminal accesses the server to download the latest upgrade package.
S41: the mobile terminal sends a command for inquiring the current version number to the master ear.
S42: and the master ear sends the current version number to the mobile terminal.
S43: the mobile terminal judges whether the version number of the latest upgrade package is higher than the current version number.
S44: when the version number of the latest upgrade package is higher than the current version number, the mobile terminal sends an upgrade request to the master ear.
S45: after receiving the upgrade request, the main ear judges whether the current electric quantity is larger than the preset electric quantity.
S46: if the power is larger than the preset power, the main ear sends information capable of being updated to the mobile terminal.
S47: the mobile terminal encrypts the upgrade package and adds an upgrade mark for indicating the upgrade of the earphone.
S48: the mobile terminal sends the upgrade package to the main ear through Bluetooth.
S49: the main ear determines the upgrade package to be used for upgrading the earphone according to the upgrade mark, writes the upgrade package into the memory, and adds the upgrade package with the first indication mark.
S50: the master ear sends an upgrade package added with the first indication mark to the MCU.
S51: the MCU receives an upgrade package added with a first indication mark.
S52: the MCU transmits an upgrade package added with the first indication mark to the slave ear.
S53: and receiving an upgrade package added with the first indication mark from the ear, and writing the upgrade package into the memory.
S54: the upgrade readiness information is sent from the ear to the master ear.
S55: the master ear transmits a synchronous upgrade command to the slave ear.
The above steps are a specific application scenario, and corresponding steps may be added in other application scenarios, which is not limited herein. .
Fig. 5 is a block diagram of an upgrade apparatus for a wireless headset according to an embodiment of the present application. As shown in fig. 5, the apparatus includes:
an acquisition module 10 for acquiring an upgrade package transmitted by a mobile terminal;
the processing module 11 is used for sending the upgrade package to the slave ear through the transmission line to upgrade, and writing the upgrade package into the memory to upgrade;
the upgrade module 12 is configured to send a synchronous upgrade command to the slave ear when upgrade readiness information of the slave ear is received.
Preferably, the earphone head strip further comprises an MCU, and the apparatus further comprises:
the first judging module is configured to judge whether the upgrade package is an upgrade package for upgrading the earphone, if yes, add the upgrade package with the first indication mark, if no, add the upgrade package with the second indication mark, and send the upgrade package with the second indication mark to the MCU to upgrade the MCU, where the processing module 11 is specifically configured to send the upgrade package with the first indication mark to the MCU to be sent to the slave ear through the MCU.
Preferably, the method further comprises:
and a second judging module, configured to judge whether acknowledgement information for allowing upgrading is received before sending the synchronous upgrading command, and if so, trigger the upgrading module 12.
Preferably, the method further comprises:
the receiving module is used for receiving the inquiry command of the mobile terminal;
and the third judging module is used for judging whether the query command is a command for querying the current version number or not, and if so, returning the current version number to the mobile terminal.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
According to the upgrading device of the wireless earphone, on one hand, the master ear and the slave ear do not need to be switched, on the other hand, the master ear can send the upgrading packet to the slave ear through the transmission line while writing the upgrading packet into the memory, so that time multiplexing is achieved, and the upgrading of the master ear and the upgrading of the slave ear are simultaneously carried out in the same period of time, and compared with a running water type upgrading mode in the prior art, the upgrading time is greatly shortened.
The embodiments of the method for upgrading a wireless headset from the main ear side are described in detail above, and in this embodiment, the description is made from the ear side. Fig. 6 is a flowchart of an upgrade method applied to a wireless earphone on the slave ear side according to an embodiment of the present application. As shown in fig. 6, the method includes:
s60: and acquiring an upgrade package transmitted by the main ear through a transmission line, wherein the upgrade package is sent to the main ear by the mobile terminal.
S61: writing the upgrade package into the memory for upgrading.
S62: and sending upgrade readiness information to the master ear through a transmission line, and upgrading after receiving a synchronous upgrade command sent by the master ear.
For the embodiment from the ear side, please refer to the corresponding embodiment of the main ear side, and the description of this embodiment is omitted.
According to the upgrading method of the wireless earphone, on one hand, the master ear and the slave ear do not need to be switched, on the other hand, the master ear can send the upgrading packet to the slave ear through the transmission line while writing the upgrading packet into the memory, so that time multiplexing is achieved, and the upgrading of the master ear and the upgrading of the slave ear are simultaneously carried out in the same period of time, and compared with a running water type upgrading mode in the prior art, the upgrading time is greatly shortened.
Furthermore, the application also provides an upgrading device of the wireless earphone, which is applied to the slave ear side and specifically comprises the following steps:
the mobile terminal comprises an acquisition module, a transmission line and a control module, wherein the acquisition module is used for acquiring an upgrade package transmitted by a main ear through the transmission line, and the upgrade package is sent to the main ear by the mobile terminal;
the processing module is used for writing the upgrade package into the memory to upgrade;
and the upgrading module is used for sending the upgrade readiness information to the main ear through the transmission line and upgrading after receiving the synchronous upgrade command sent by the main ear.
For the embodiment from the ear side, please refer to the corresponding embodiment of the main ear side, and the description of this embodiment is omitted.
According to the upgrading device of the wireless earphone, on one hand, the master ear and the slave ear do not need to be switched, on the other hand, the master ear can send the upgrading packet to the slave ear through the transmission line while writing the upgrading packet into the memory, so that time multiplexing is achieved, and the upgrading of the master ear and the upgrading of the slave ear are simultaneously carried out in the same period of time, and compared with a running water type upgrading mode in the prior art, the upgrading time is greatly shortened.
Furthermore, the application also provides an upgrading method of the wireless earphone, which is applied to the wireless earphone side and comprises the following steps:
the master ear acquires an upgrade package sent by the mobile terminal, sends the upgrade package to the slave ear through a transmission line to upgrade, writes the upgrade package into a memory to upgrade, and sends a synchronous upgrade command to the slave ear when receiving upgrade readiness information of the slave ear;
the slave ear acquires an upgrade package transmitted by the master ear through a transmission line, writes the upgrade package into a memory for upgrade, transmits upgrade readiness information to the master ear through the transmission line, and upgrades after receiving a synchronous upgrade command transmitted by the master ear.
For the master ear and the slave ear in this embodiment, which are the same as the embodiments corresponding to the master ear side and the slave ear side above, please refer to the above together, and the description of this embodiment is omitted.
According to the upgrading method of the wireless earphone, on one hand, the master ear and the slave ear do not need to be switched, on the other hand, the master ear can send the upgrading packet to the slave ear through the transmission line while writing the upgrading packet into the memory, so that time multiplexing is achieved, and the upgrading of the master ear and the upgrading of the slave ear are simultaneously carried out in the same period of time, and compared with a running water type upgrading mode in the prior art, the upgrading time is greatly shortened.
The further wireless earphone upgrading device is described from the perspective of the functional module, and further, the application also provides a wireless earphone upgrading device which is described from the perspective of hardware. Fig. 7 is a block diagram of another method for upgrading a wireless headset according to an embodiment of the present application. As shown in fig. 7, the apparatus comprises a memory 70 for storing a computer program;
a processor 71 for implementing the steps of the method for upgrading a wireless headset as mentioned in the above embodiments when executing a computer program.
Processor 71 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 71 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 71 may also include a main processor, which is a processor for processing data in an awake state, also called a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 71 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 71 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
Memory 70 may include one or more computer-readable storage media, which may be non-transitory. Memory 70 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 70 is at least used to store a computer program 701, where the computer program, when loaded and executed by the processor 71, is capable of implementing the relevant steps of the method for upgrading a wireless headset disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 70 may further include an operating system 702, data 703, and the like, where the storage manner may be transient storage or permanent storage. The operating system 702 may include Windows, unix, linux, among other things. The data 703 may include, but is not limited to, corresponding data in an upgrade package, and the like.
In some embodiments, diagnostic device 70 may further include a display screen 72, an input-output interface 73, a communication interface 74, a power supply 75, and a communication bus 76.
Those skilled in the art will appreciate that the structure shown in fig. 7 is not limiting of the upgrade apparatus of the wireless headset and may include more or fewer components than shown.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in part or in whole or in part in the form of a software product stored in a storage medium for performing all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, the embodiment of the application also provides a wireless earphone which comprises a master ear and a slave ear, and also comprises an earphone head strip, wherein the earphone head strip comprises a transmission line for connecting the master ear and the slave ear;
the master ear acquires an upgrade package sent by the mobile terminal, sends the upgrade package to the slave ear through a transmission line to upgrade, writes the upgrade package into a memory to upgrade, and sends a synchronous upgrade command to the slave ear when receiving upgrade readiness information of the slave ear;
the slave ear acquires an upgrade package transmitted by the master ear through a transmission line, writes the upgrade package into a memory for upgrade, transmits upgrade readiness information to the master ear through the transmission line, and upgrades after receiving a synchronous upgrade command transmitted by the master ear.
Since the main ear and the sub-ear in the wireless earphone are described in detail above, the description of this embodiment is omitted.
The wireless earphone, the upgrading method and the upgrading device thereof provided by the application are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the application can be made without departing from the principles of the application and these modifications and adaptations are intended to be within the scope of the application as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.

Claims (10)

1. The upgrading method of the wireless earphone is characterized by being applied to a wireless earphone of a master ear and a slave ear which can be connected through an earphone head strip, wherein the earphone head strip comprises a transmission line for connecting the master ear and the slave ear, and the method comprises the following steps:
acquiring an upgrade package sent by a mobile terminal through the main ear;
transmitting the upgrade package to the slave ear through the transmission line by utilizing the master ear so as to upgrade, and writing the upgrade package into a memory so as to upgrade;
and when the upgrade readiness information of the slave ear is received, a synchronous upgrade command is sent to the slave ear through the master ear.
2. The method for upgrading a wireless headset according to claim 1, wherein the headset strip further comprises an MCU, and after the acquiring the upgrade package transmitted by the mobile terminal, the method further comprises:
judging whether the upgrade package is an upgrade package for upgrading the earphone or not;
if yes, adding a first indication mark to the upgrade package;
the step of sending the upgrade package to the slave ear through the transmission line is specifically as follows:
transmitting the upgrade package added with the first indication mark to the MCU to be transmitted to the slave ear through the MCU;
if not, adding a second indication mark to the upgrade package, and sending the upgrade package added with the second indication mark to the MCU to upgrade the MCU.
3. The method of upgrading a wireless headset of claim 1, further comprising, prior to transmitting the synchronization upgrade command:
judging whether confirmation information allowing upgrading is received or not;
and if so, sending the synchronous upgrading command.
4. A method of upgrading a wireless headset according to any of claims 1-3, further comprising:
receiving a query command of the mobile terminal;
judging whether the query command is a command characterized by being used for querying the current version number;
and if so, returning the current version number to the mobile terminal.
5. The utility model provides an upgrade device of wireless earphone, its characterized in that is applied to the wireless earphone of master ear and slave ear that can connect through the earphone head strip, including being used for connecting in the earphone head strip master ear and slave ear transmission line, this device includes:
the acquisition module is used for acquiring an upgrade package sent by the mobile terminal through the main ear;
the processing module is used for sending the upgrade package to the slave ear through the transmission line by utilizing the master ear so as to upgrade, and writing the upgrade package into a memory so as to upgrade;
and the upgrading module is used for sending a synchronous upgrading command to the slave ear through the master ear when the upgrading readiness information of the slave ear is received.
6. The upgrading method of the wireless earphone is characterized by being applied to a wireless earphone of a master ear and a slave ear which can be connected through an earphone head strip, wherein the earphone head strip comprises a transmission line for connecting the master ear and the slave ear, and the method comprises the following steps:
acquiring an upgrade package transmitted by the master ear through the transmission line through the slave ear, wherein the upgrade package is sent to the master ear by a mobile terminal;
writing the upgrade package into a memory through the slave ear so as to upgrade;
and sending upgrade readiness information to the master ear by the slave ear through the transmission line, and upgrading after receiving a synchronous upgrade command sent by the master ear.
7. The utility model provides an upgrade device of wireless earphone, its characterized in that is applied to the wireless earphone of master ear and slave ear that can connect through the earphone head strip, including being used for connecting in the earphone head strip master ear and slave ear transmission line, this device includes:
the acquisition module is used for acquiring an upgrade package transmitted by the master ear through the transmission line through the slave ear, wherein the upgrade package is sent to the master ear by the mobile terminal;
the processing module is used for writing the upgrade package into the memory through the slave ear so as to upgrade;
and the upgrading module is used for sending upgrading readiness information to the master ear through the transmission line by utilizing the slave ear and upgrading after receiving the synchronous upgrading command sent by the master ear.
8. The upgrading method of the wireless earphone is characterized by being applied to a wireless earphone of a master ear and a slave ear which can be connected through an earphone head strip, wherein the earphone head strip comprises a transmission line for connecting the master ear and the slave ear, and the method comprises the following steps:
the master ear acquires an upgrade package sent by the mobile terminal, sends the upgrade package to the slave ear through the transmission line to upgrade, writes the upgrade package into a memory to upgrade, and sends a synchronous upgrade command to the slave ear when receiving upgrade readiness information of the slave ear;
the slave ear acquires an upgrade package transmitted by the master ear through the transmission line, writes the upgrade package into a memory for upgrade, transmits upgrade readiness information to the master ear through the transmission line, and upgrades after receiving a synchronous upgrade command transmitted by the master ear.
9. An upgrade device of a wireless earphone is characterized by being applied to a wireless earphone of a master ear and a slave ear which can be connected through an earphone head strip, wherein the earphone head strip comprises a transmission line for connecting the master ear and the slave ear, and the device comprises a memory for storing a computer program;
a processor for implementing the steps of the method for upgrading a wireless headset according to any of claims 1 to 4, 6, 8 when executing said computer program.
10. The wireless earphone comprises a main ear and a slave ear, and is characterized by further comprising an earphone head strip, wherein the earphone head strip comprises a transmission line and is used for connecting the main ear and the slave ear;
the master ear acquires an upgrade package sent by the mobile terminal, sends the upgrade package to the slave ear through the transmission line to upgrade, writes the upgrade package into a memory to upgrade, and sends a synchronous upgrade command to the slave ear when receiving upgrade readiness information of the slave ear;
the slave ear acquires an upgrade package transmitted by the master ear through the transmission line, writes the upgrade package into a memory for upgrade, transmits upgrade readiness information to the master ear through the transmission line, and upgrades after receiving a synchronous upgrade command transmitted by the master ear.
CN201911038036.8A 2019-10-29 2019-10-29 Wireless earphone and upgrading method and device thereof Active CN110795127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911038036.8A CN110795127B (en) 2019-10-29 2019-10-29 Wireless earphone and upgrading method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911038036.8A CN110795127B (en) 2019-10-29 2019-10-29 Wireless earphone and upgrading method and device thereof

Publications (2)

Publication Number Publication Date
CN110795127A CN110795127A (en) 2020-02-14
CN110795127B true CN110795127B (en) 2023-09-22

Family

ID=69441811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911038036.8A Active CN110795127B (en) 2019-10-29 2019-10-29 Wireless earphone and upgrading method and device thereof

Country Status (1)

Country Link
CN (1) CN110795127B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111464920B (en) * 2020-03-31 2022-01-07 歌尔科技有限公司 Earphone debugging method, device and storage medium
CN112104028B (en) * 2020-09-10 2022-05-10 歌尔科技有限公司 Charging device, electric quantity correction method of wireless earphone and readable storage medium
CN114866526B (en) * 2022-07-08 2022-12-27 荣耀终端有限公司 Earphone upgrading method and wireless earphone

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105262627A (en) * 2015-10-30 2016-01-20 Tcl集团股份有限公司 Firmware upgrade method, device and system
CN106488352A (en) * 2015-08-26 2017-03-08 Ag收购公司 The open system and method to closed headphone audio compensation
CN107106063A (en) * 2014-11-02 2017-08-29 恩戈格勒公司 Intelligent audio headset system
CN206506665U (en) * 2017-02-16 2017-09-19 周志钢 It is combined into the modularization headset designs structure of wired earphone or bluetooth earphone
CN107734589A (en) * 2017-10-09 2018-02-23 维沃移动通信有限公司 A kind of data transmission method and mobile terminal based on wireless headset
CN108882211A (en) * 2018-06-15 2018-11-23 歌尔科技有限公司 A kind of method, system and the TWS earphone of the upgrading of TWS earphone program
CN109089330A (en) * 2018-08-23 2018-12-25 维沃移动通信有限公司 A kind of audio data transmission method and terminal
CN109218892A (en) * 2018-11-29 2019-01-15 歌尔科技有限公司 A kind of head-type charging equipment and wear-type wireless headphone system
CN109413140A (en) * 2018-09-06 2019-03-01 蓝网科技股份有限公司 The method of PACS server remote automatic upgrading
CN110366063A (en) * 2019-07-26 2019-10-22 歌尔科技有限公司 A kind of upgrade method of wireless headset, device and charging box

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130259255A1 (en) * 2012-03-30 2013-10-03 Imation Corp. Extensible smart headphone system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107106063A (en) * 2014-11-02 2017-08-29 恩戈格勒公司 Intelligent audio headset system
CN106488352A (en) * 2015-08-26 2017-03-08 Ag收购公司 The open system and method to closed headphone audio compensation
CN105262627A (en) * 2015-10-30 2016-01-20 Tcl集团股份有限公司 Firmware upgrade method, device and system
CN206506665U (en) * 2017-02-16 2017-09-19 周志钢 It is combined into the modularization headset designs structure of wired earphone or bluetooth earphone
CN107734589A (en) * 2017-10-09 2018-02-23 维沃移动通信有限公司 A kind of data transmission method and mobile terminal based on wireless headset
CN108882211A (en) * 2018-06-15 2018-11-23 歌尔科技有限公司 A kind of method, system and the TWS earphone of the upgrading of TWS earphone program
CN109089330A (en) * 2018-08-23 2018-12-25 维沃移动通信有限公司 A kind of audio data transmission method and terminal
CN109413140A (en) * 2018-09-06 2019-03-01 蓝网科技股份有限公司 The method of PACS server remote automatic upgrading
CN109218892A (en) * 2018-11-29 2019-01-15 歌尔科技有限公司 A kind of head-type charging equipment and wear-type wireless headphone system
CN110366063A (en) * 2019-07-26 2019-10-22 歌尔科技有限公司 A kind of upgrade method of wireless headset, device and charging box

Also Published As

Publication number Publication date
CN110795127A (en) 2020-02-14

Similar Documents

Publication Publication Date Title
CN110795127B (en) Wireless earphone and upgrading method and device thereof
US20190150215A1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
CN110719542B (en) TWS earphone, upgrading method and device thereof, and computer storage medium
US11368777B2 (en) Method and system for upgrading program of TWS headset, and TWS headset
WO2019237460A1 (en) Tws earphone, charging case, upgrading method thereof and storage medium
CN110825411B (en) Upgrading method and device for TWS (two way satellite System) earphone system and computer-readable storage medium
CN108810741B (en) Method and device for connecting double wireless earphones and wireless earphones
CN110209072B (en) User interface display method of self-recognition driver and related device
WO2016173128A1 (en) Method and device for downloading software version, and storage medium
CN111464920B (en) Earphone debugging method, device and storage medium
CN109547897A (en) A kind of method, apparatus, system and the wireless headset box of wireless headset connection
EP3111738A1 (en) Method for controlling operation of an agricultural machine and system
CN111787098B (en) Earphone upgrading method and device, earphone and storage medium
JP2020042799A (en) Ear set control method and system
CN108513196B (en) Wireless earphone and pairing method thereof
CN110764806B (en) TWS earphone and upgrading method and device thereof
CN110972058B (en) Method and device for determining position of wireless communication device
US20180084331A1 (en) Battery-less, noise-cancellation headset
KR101609064B1 (en) Interactive guide using augmented reality
CN111615030A (en) Upgrading method, device and medium for novel TWS earphone
KR20150069297A (en) Terminal Apparatus and Method for Connecting of Head-Unit for Vehicle
CN107809418B (en) Autonomous binding method and system for LoRa terminal equipment
JP2015144381A (en) Vehicle system, acquisition method of compatible information between vehicle device and portable terminal, program and recording medium
US20200213838A1 (en) Method and Apparatus for Communication Authentication Processing, and Electronic Device
CN113692043B (en) Prompt message synchronization method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant