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

Wireless earphone and upgrading method and device thereof Download PDF

Info

Publication number
CN110795127A
CN110795127A CN201911038036.8A CN201911038036A CN110795127A CN 110795127 A CN110795127 A CN 110795127A CN 201911038036 A CN201911038036 A CN 201911038036A CN 110795127 A CN110795127 A CN 110795127A
Authority
CN
China
Prior art keywords
ear
upgrading
upgrade
slave
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.)
Granted
Application number
CN201911038036.8A
Other languages
Chinese (zh)
Other versions
CN110795127B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses an upgrading method and a device of a wireless earphone, wherein the method is applied to the wireless earphone of a main ear and a slave ear which can be connected through an earphone head strip, and 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 a transmission line for upgrading, writes the upgrade package into the memory for upgrading, and sends a synchronous upgrade command to the slave ear when receiving upgrade preparation ready information of the slave ear. Therefore, on one hand, the method does not need to switch the master ear and the slave ear, on the other hand, the master ear can transmit the upgrade package to the slave ear through the transmission line while writing the upgrade package into the memory, time multiplexing is achieved, and the upgrade of the master ear and the upgrade of the slave ear are carried out simultaneously in the same period of time.

Description

Wireless earphone and upgrading method and device thereof
Technical Field
The invention relates to the technical field of wireless earphones, in particular to a wireless earphone and an upgrading method and device thereof.
Background
The application of wireless headsets is very common in people's daily life. Wireless headsets 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 and slave ears. The main ear is used for communication connection with the mobile terminal, for example 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, the upgrading of the earphone generally adopts OTA (over the air) upgrading, firstly, a main ear is connected with a mobile terminal, the mobile terminal transmits an OTA upgrading packet to the main ear, after the main ear is upgraded, the main ear is switched with a slave ear, so that the slave ear is changed into the main ear to be communicated with the mobile terminal, then, the OTA upgrading packet is transmitted to the slave ear, and the slave ear is upgraded. Therefore, in the upgrading process, the master ear and the slave ear need to be switched and are in flow operation, and the upgrading time is the 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 invention aims to provide a wireless earphone and an upgrading method and device thereof, which are used for reducing the upgrading time and improving the experience of a user when the wireless earphone is upgraded.
In order to solve the above technical problem, the present invention provides an upgrade method for a wireless headset, which is applied to a wireless headset having a primary ear and a secondary ear that can be connected via a headset head, wherein the headset head includes a transmission line for connecting the primary ear and the secondary ear, and the method includes:
acquiring an upgrade package sent by a mobile terminal;
sending the upgrading packet to the slave ear through the transmission line for upgrading, and writing the upgrading packet into a memory for upgrading;
and when receiving the upgrade readiness information of the slave ear, sending a synchronous upgrade command to the slave ear.
Preferably, the earphone headset further includes an MCU, and after the obtaining of the upgrade package transmitted by the mobile terminal, the method further includes:
judging whether the upgrade package is an upgrade package for upgrading the earphone;
if yes, adding a first indication mark to the upgrade package;
the sending the upgrade package to the slave ear through the transmission line is specifically:
transmitting the upgrade package added with the first indication mark to the MCU to be transmitted to the slave ear through the MCU;
and 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 synchronous 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 the following steps:
receiving a query command of the mobile terminal;
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.
In order to solve the above technical problem, the present invention further provides an upgrade apparatus for a wireless headset, which is applied to a wireless headset having a main ear and a sub ear that can be connected via a headset head, wherein the headset head includes a transmission line for connecting the main ear and the sub ear, and the upgrade apparatus comprises:
the acquisition module is used for acquiring the upgrade package sent by the mobile terminal;
the processing module is used for sending the upgrading packet to the slave ear through the transmission line for upgrading, and simultaneously writing the upgrading packet into a memory for upgrading;
and the upgrading module is used for sending a synchronous upgrading command to the slave ear when the information of the upgrading readiness of the slave ear is received.
In order to solve the above technical problem, the present invention further provides an upgrade method for a wireless headset, which is applied to a wireless headset including a primary ear and a secondary ear that can be connected via a headset head, wherein the headset head includes a transmission line for connecting the primary ear and the secondary 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 for upgrading;
sending upgrading preparation ready information to the main ear through the transmission line, and upgrading after receiving a synchronous upgrading command sent by the main ear.
In order to solve the above technical problem, the present invention further provides an upgrade apparatus for a wireless headset, which is applied to a wireless headset having a main ear and a sub ear that can be connected via a headset head, wherein the headset head includes a transmission line for connecting the main ear and the sub ear, and the upgrade apparatus comprises:
the system comprises an acquisition module, a transmission line and a transmission 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 a mobile terminal;
the processing module is used for writing the upgrade package into a memory for upgrading;
and the upgrading module is used for sending upgrading preparation ready information to the main ear through the transmission line and upgrading after receiving a synchronous upgrading command sent by the main ear.
In order to solve the above technical problem, the present invention further provides an upgrade method for a wireless headset, which is applied to a wireless headset including a primary ear and a secondary ear that can be connected via a headset head, wherein the headset head includes a transmission line for connecting the primary ear and the secondary ear, and the method includes:
the master ear acquires an upgrade package sent by a mobile terminal, sends the upgrade package to the slave ear through the transmission line for upgrading, writes the upgrade package into a memory for upgrading, and sends a synchronous upgrade command to the slave ear when receiving upgrade preparation information of the slave ear;
the slave ear acquires an upgrade package transmitted by the main ear through the transmission line, writes the upgrade package into a memory for upgrading, sends upgrade readiness information to the main ear through the transmission line, and upgrades after receiving a synchronous upgrade command sent by the main ear.
In order to solve the above technical problem, the present invention further provides an upgrade device for a wireless headset, which is applied to a wireless headset with a primary ear and a secondary ear that can be connected through a headset bar, wherein the headset bar comprises a transmission line for connecting the primary ear and the secondary ear, and the upgrade device comprises a memory for storing a computer program;
a processor for implementing the steps of the method for upgrading a wireless headset as described when executing the computer program.
In order to solve the above technical problem, the present invention further provides a wireless headset, including a master ear and a slave ear, and further including a headset head, wherein the headset head includes a transmission line for connecting the master ear and the slave ear;
the method comprises the steps that a master ear acquires an upgrade package sent by a mobile terminal, sends the upgrade package to a slave ear through a transmission line for upgrading, writes the upgrade package into a memory for upgrading, 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 main ear through the transmission line, writes the upgrade package into a memory for upgrading, sends upgrade readiness information to the main ear through the transmission line, and upgrades after receiving a synchronous upgrade command sent by the main ear.
The method for upgrading the wireless earphone is applied to the wireless earphone of the main 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 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 a transmission line for upgrading, writes the upgrade package into the memory for upgrading, and sends a synchronous upgrade command to the slave ear when receiving upgrade preparation ready information of the slave ear. Therefore, on one hand, the method does not need to switch the master ear and the slave ear, on the other hand, the master ear can transmit the upgrade package to the slave ear through the transmission line while writing the upgrade package into the memory, time multiplexing is achieved, and the upgrade of the master ear and the upgrade of the slave ear are carried out simultaneously in the same period of time.
In addition, the wireless earphone and the upgrading device thereof provided by the invention correspond to the method, and the effect is the same as that of the method.
Drawings
In order to illustrate the embodiments of the present invention more clearly, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart illustrating an upgrading method for a wireless headset applied to a main ear according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for upgrading a wireless headset according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for upgrading a wireless headset according to an embodiment of the present invention;
fig. 4 is a flowchart of an upgrading method for a wireless headset in an application scenario according to an embodiment of the present invention;
fig. 5 is a structural diagram of an upgrading apparatus for a wireless headset according to an embodiment of the present invention;
fig. 6 is a flowchart of an upgrading method applied to a wireless headset from an ear side according to an embodiment of the present invention;
fig. 7 is a structural diagram of another method for upgrading a wireless headset according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
The core of the invention is to provide a wireless earphone and an upgrading method and device thereof, which are used for reducing the upgrading time and improving the experience of a user when the wireless earphone is upgraded.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
It should be noted that, the upgrade mentioned in the present invention mainly refers to firmware upgrade, and the number of the master ear and the slave ear is not limited, and usually, one master ear and one slave ear are respectively worn on the left ear and the right ear of the user. The main ear and the slave ear are opposite and can be switched, only one of the main ear and the slave ear is the main ear at the same time, and the difference between the main ear and the slave ear is that the main ear is directly connected with a mobile terminal, such as a mobile phone. The slave ear is not directly connected with the mobile terminal, but realizes the communication with the mobile terminal through the forwarding of the master ear. The wireless earphone provided by the invention can be realized through an earphone head strip, and particularly, the earphone head strip comprises a transmission line, such as a serial port line, and the serial port line connects a main ear and a slave ear to realize the transmission of data packets. It will be appreciated that the headset may be detachably connected to the master and slave ears since the headset is only required for firmware upgrades. The invention 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 illustrating an upgrading method for a wireless headset applied to a main ear side according to an embodiment of the present invention. As shown in fig. 1, the method includes:
s10: and acquiring the upgrade package sent by the mobile terminal.
In a specific implementation, the mobile terminal is connected to the main ear via a communication module, for example, via 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 main ear, record the current version number after feedback is obtained, and access the server at a set moment so as to determine whether a version which is newer than the current version number exists in the server, and if so, send an upgrade request to the main ear.
After receiving the upgrade request, the master ear can determine whether to upgrade according to the states of the master ear and the slave ear. It should be noted that, the state here may be to determine whether the electric quantity of the slave ear and the electric quantity of the slave ear are greater than a preset electric quantity, and if so, it is indicated that the upgrade is possible, and otherwise, the upgrade is not possible. It is to be understood that determining whether to upgrade via the power level parameter is merely one specific implementation and is not intended to represent the only such implementation. When the requirement corresponding to the upgrading request is met, the main ear can respond to the request, namely the main ear sends information capable of being upgraded to the mobile terminal.
And 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 upgrade package of the current main ear, and sends the new upgrade package to the main ear if the version number of the new upgrade package is higher than that of the upgrade package of the current main ear.
In order to verify the validity of the mobile terminal, the main ear may also authenticate the mobile terminal, for example, the mobile terminal needs to send an agreed verification code, and receive the upgrade package sent by the mobile terminal after the verification is passed, otherwise, the upgrade package is not received.
S11: and sending the upgrade package to the slave ear through a transmission line for upgrading, and simultaneously writing the upgrade package into the memory for upgrading.
Because the channel of the Bluetooth communication module can only transmit one signal at the same time, in order to not influence the function of the wireless earphone normally used by a user, the upgrade package transmitted between the master ear and the slave ear is not transmitted through Bluetooth, but is transmitted through a transmission line. As a preferred embodiment, the transmission line may be a serial port line. In a normal use state, the earphone head strip may not be connected to the master ear and the slave ear, and when the firmware is upgraded, the earphone head strip may be connected to the master ear and the slave ear, so in a specific embodiment, before the upgrade package is sent to the slave ear through the transmission line, the master ear may further determine whether the earphone head strip is connected to the slave ear, and if the upgrade package is not connected to the slave ear, the master ear may further determine whether the earphone head strip is connected to the slave ear, and send a prompt message to prompt, for example, the prompt message may be sent to the mobile terminal, and prompt (prompt on a screen) may be sent through a specific prompt mode of the mobile terminal or prompt through a vibration component or an indicator lamp of the. For the user, if the prompt message is received, the earphone head 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 the transmission line on the earphone head strip.
It should be noted that, in order to ensure the security of data transmission, it is usually necessary to encrypt the data packet, for example, when the mobile terminal sends the upgrade packet to the main ear, the upgrade packet is first encrypted, and then, correspondingly, after receiving the upgrade packet, the main ear needs to decrypt according to a corresponding decryption method.
After receiving the upgrade package, the master ear sends the upgrade package to the slave ear on the one hand, and writes the upgrade package into the memory on the other hand, obviously, during the transmission process, the upgrade package can be written into the memory, so the time can be multiplexed, and the write-in operation is performed after the transmission is not needed, thereby greatly reducing the time required by the upgrade.
For the master ear, after the upgrade package is completely written into the memory, the upgrade ready work is completed, but the master ear does not restart immediately but waits for the upgrade ready information of the slave ear. After the upgrading packet is written into the memory, the slave ear sends upgrading ready information to the master ear, and the upgrading ready information indicates that the upgrading ready work is completed.
S12: when receiving the upgrade readiness information of the slave ear, a synchronous upgrade command is sent to the slave ear.
Because the upgrade packages corresponding to the master ear and the slave ear are the same, and the master ear writes the upgrade packages into the memory before the slave ear, the master ear usually completes the work of writing into the memory before the slave ear. Therefore, after the writing is completed, the master ear will mark the position 1 (for representing that the upgrade is ready), wait for the upgrade ready information of the slave ear (the slave ear will mark the position 1 after the upgrade is ready, otherwise, it is 0), and send the synchronous upgrade command to the slave ear when receiving the upgrade ready information (detecting the mark position 1 of the slave ear). The synchronous upgrade command may be upgraded at a predetermined time, and the corresponding operation is a restart. After the restart, the respective MCUs of the master ear and the slave ear will read the data (newly written data) in the memory, thereby realizing the firmware upgrade.
The method for upgrading the wireless headset provided by the embodiment is applied to the wireless headset of a main ear and a slave ear which can be connected through a headset head strip, wherein the headset 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 a transmission line for upgrading, writes the upgrade package into the memory for upgrading, and sends a synchronous upgrade command to the slave ear when receiving upgrade preparation ready information of the slave ear. Therefore, on one hand, the method does not need to switch the master ear and the slave ear, on the other hand, the master ear can transmit the upgrade package to the slave ear through the transmission line while writing the upgrade package into the memory, time multiplexing is achieved, and the upgrade of the master ear and the upgrade of the slave ear are carried out simultaneously in the same period of time.
Fig. 2 is a flowchart of another method for upgrading a wireless headset according to an embodiment of the present invention. On the basis of the above embodiment, as a preferred implementation, the earphone head strip further comprises 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 the upgrade package sent by the mobile terminal.
S22: and judging whether the upgrade patch is an upgrade patch for upgrading the earphone by the main ear, if so, adding a first indication mark to the upgrade patch, and otherwise, adding a second indication mark to the upgrade patch.
S23: the master ear transmits the upgrade package added with the first indication mark to the MCU to be transmitted to the slave ear through the MCU or transmits the upgrade package added with the second indication mark to the MCU to upgrade the MCU.
S24: the MCU receives the upgrade package added with the first indication mark or the upgrade package added with the second indication mark.
S25: and if the MCU receives the upgrading packet added with the second indication mark, the MCU carries out upgrading.
S26: and 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 the upgrade package added with the first indication mark from the ear, and writing the upgrade package into the memory.
S28: an upgrade readiness information is sent from the ear to the master ear.
S29: the master ear sends a synchronous upgrade order to the slave ear.
As shown in fig. 2, when sending the upgrade readiness information, the slave ear may send to the master ear through the MCU, or may send directly to the master ear, and it can be understood that, if the upgrade readiness information is sent, the information is transmitted through the transmission line, and if the upgrade readiness information is sent, the information is transmitted through the original communication manner of the master ear and the slave ear, for example, through bluetooth. In this embodiment, the latter is adopted because the update-ready information is very small compared to the transmission of the update package, and does not affect the normal use of the master ear and the slave ear.
Fig. 3 is a flowchart of another method for upgrading a wireless headset according to an embodiment of the present invention. As shown in fig. 3, on the basis of the foregoing embodiment, before sending the synchronous upgrade command, the method further includes:
s30: it is judged whether or not confirmation information for permitting the upgrade is received, and if so, it proceeds to S12.
In a specific implementation, in order to ensure the security of the upgrade, a human-computer interaction mode may be set for the main ear, for example, a physical button is set on the main ear, and when the physical button is received and triggered, the confirmation information allowing the upgrade is considered to be received, or a voice interaction manner is adopted, for example, when a voice containing a keyword is received, the confirmation information allowing the upgrade is considered to be received. It is understood that, besides the above-mentioned modes, other modes capable of realizing human-computer interaction are possible and are not limited to the above two modes. In addition, if the determination of the confirmation information is required, the method further comprises the following steps: the main ear outputs prompt information for prompting the upgrade operation, for example, the main ear outputs a specific voice by voice (i.e., to upgrade, please confirm whether the upgrade is to be performed), or the vibration sensor built in the main ear vibrates. It is understood that, in fig. 3, the sequence of step S30 may be changed according to the actual situation, for example, the mobile terminal confirms before sending the upgrade package to the main ear, in other words, only needs to perform before sending the synchronous upgrade command, and this does not affect the implementation of the present solution.
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 query for a current version number, and if so, S33 is entered.
S33: and returning the current version number to the mobile terminal.
In the implementation, the purpose of the mobile terminal to communicate with the master ear is various, for example, to query the power of the master ear or the slave ear, or to query the current version numbers of the master ear and the slave ear, and the specific query command is implemented by a fixed protocol. The mobile terminal can determine the current latest version number through accessing the server, then sends a command for inquiring the current version number to the main ear, compares whether the current version number is the same as the latest version number after receiving the current version number sent by the main ear, if so, ends the communication, if not, sends an upgrade request to the main ear, and sends the latest upgrade package to the main ear after obtaining the confirmation of the main ear. It is to be understood that since the mobile terminal is connected to the master ear only, and therefore the current version number of the slave ear is also transmitted to the mobile terminal by the master ear, returning the current version number to the mobile terminal in S33 also includes transmitting the current version number of the slave ear. In order to reduce the transmission amount, in general, if the master ear judges that the current version number of the slave ear is the same as the version number of the master ear, only one current version number is sent by default, and when the two version numbers are not consistent, the two version numbers are sent to the mobile terminal.
In order to make the technical solutions provided by the present invention more clear to those skilled in the art, a specific application scenario involving a server, a mobile terminal, a master ear, an MCU and a slave ear is further provided herein for explanation, and fig. 4 is a flowchart of an upgrading method of a wireless headset in an application scenario provided in an embodiment of the present invention. As shown in fig. 4, the method includes the steps of:
s40: the mobile terminal accesses the server to download the latest upgrade package.
S41: and the mobile terminal sends a command for inquiring the current version number to the main ear.
S42: and the main ear sends the current version number to the mobile terminal.
S43: and the mobile terminal judges whether the version number of the latest upgrade package is higher than the current version number.
S44: and 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 main ear.
S45: and after receiving the upgrading request, the main ear judges whether the current electric quantity is larger than the preset electric quantity.
S46: and if the power is larger than the preset power, the main ear sends information capable of being upgraded to the mobile terminal.
S47: the mobile terminal encrypts the upgrade package and adds an upgrade flag for indicating the upgrade of the earphone.
S48: the mobile terminal sends the upgrade package to the main ear through the Bluetooth.
S49: and the main ear determines the upgrade package as the upgrade package for upgrading the earphone according to the upgrade mark, writes the upgrade package into the memory, and adds a first indication mark to the upgrade package.
S50: and the main ear transmits the upgrade package added with the first indication mark to the MCU.
S51: the MCU receives the upgrade package added with the first indication mark.
S52: the MCU transmits the upgrade package added with the first indication mark to the slave ear.
S53: and receiving the upgrade package added with the first indication mark from the ear, and writing the upgrade package into the memory.
S54: an upgrade readiness information is sent from the ear to the master ear.
S55: the master ear sends a synchronous upgrade order to the slave ear.
The above steps are a specific application scenario, and corresponding steps may be added in other application scenarios, which are not limited herein. .
Fig. 5 is a structural diagram of an upgrading apparatus for a wireless headset according to an embodiment of the present invention. As shown in fig. 5, the apparatus includes:
an obtaining module 10, configured to obtain an upgrade package sent by a mobile terminal;
the processing module 11 is used for sending the upgrade package to the slave ear through the transmission line for upgrading, and simultaneously writing the upgrade package into the memory for upgrading;
and the upgrading module 12 is used for sending a synchronous upgrading command to the slave ear when the information of upgrading readiness of the slave ear is received.
Preferably, the earphone head strip further comprises an MCU, the apparatus further comprising:
the first judgment module is used for judging whether the upgrade package is the upgrade package for upgrading the earphone, if so, the first indication mark is added to the upgrade package, if not, the second indication mark is added to the upgrade package, the upgrade package added with the second indication mark is sent to the MCU to upgrade the MCU, and the processing module 11 is specifically used for sending the upgrade package added with the first indication mark to the MCU to be sent to the slave ear through the MCU.
Preferably, the method further comprises the following steps:
and a second judging module, configured to judge whether a confirmation message allowing for upgrading is received before sending the synchronous upgrading command, and if so, trigger the upgrading module 12.
Preferably, the method further comprises the following steps:
the receiving module is used for receiving the query 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, and if so, returning the current version number to the mobile terminal.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
The upgrading device of the wireless earphone provided by the embodiment does not need to switch the master ear and the slave ear on the one hand, and on the other hand, the master ear can transmit the upgrading packet to the slave ear through the transmission line while writing the upgrading packet into the memory, so that time multiplexing is realized.
In the above, the embodiment of the upgrade method of the wireless headset is described in detail from the primary ear side, and in this embodiment, the secondary ear side is used for explanation. Fig. 6 is a flowchart of an upgrading method applied to a wireless headset from an ear side according to an embodiment of the present invention. 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: and writing the upgrade package into the memory for upgrading.
S62: sending the ready-to-upgrade information to the main ear through a transmission line, and upgrading after receiving a synchronous upgrade command sent by the main ear.
For the embodiment of the slave ear side, please refer to the embodiment corresponding to the master ear side, and the description of this embodiment is omitted.
According to the wireless earphone upgrading method provided by the embodiment, on one hand, the main ear and the slave ear do not need to be switched, on the other hand, the main ear can send the upgrading packet to the slave ear through the transmission line while writing the upgrading packet into the memory, time multiplexing is achieved, and in the same period of time, the upgrading of the main ear and the upgrading of the slave ear are carried out simultaneously.
Further, the present invention also provides an upgrading device for a wireless headset, which is applied to the ear side, and specifically includes:
the system comprises an acquisition module, a transmission line and a mobile terminal, 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 for upgrading;
and the upgrading module is used for sending upgrading preparation ready information to the main ear through a transmission line and upgrading after receiving a synchronous upgrading command sent by the main ear.
For the embodiment of the slave ear side, please refer to the embodiment corresponding to the master ear side, and the description of this embodiment is omitted.
The upgrading device of the wireless earphone provided by the embodiment does not need to switch the master ear and the slave ear on the one hand, and on the other hand, the master ear can transmit the upgrading packet to the slave ear through the transmission line while writing the upgrading packet into the memory, so that time multiplexing is realized.
Further, the present invention also provides an upgrading method of a wireless headset, which is applied to a wireless headset side, and the method includes:
the method comprises the steps that a master ear acquires an upgrade package sent by a mobile terminal, sends the upgrade package to a slave ear through a transmission line for upgrading, writes the upgrade package into a memory for upgrading, and sends a synchronous upgrade command to the slave ear when receiving upgrade preparation information of the slave ear;
the slave ear acquires the upgrade package transmitted by the master ear through the transmission line, writes the upgrade package into the memory for upgrading, sends upgrade preparation information to the master ear through the transmission line, and upgrades the upgrade package after receiving a synchronous upgrade command sent by the master ear.
For the embodiment, the main ear and the slave ear related to the present embodiment are the same as the above embodiments corresponding to the main ear side and the slave ear side, please refer to the above together, and the description of the embodiment is omitted.
According to the wireless earphone upgrading method provided by the embodiment, on one hand, the main ear and the slave ear do not need to be switched, on the other hand, the main ear can send the upgrading packet to the slave ear through the transmission line while writing the upgrading packet into the memory, time multiplexing is achieved, and in the same period of time, the upgrading of the main ear and the upgrading of the slave ear are carried out simultaneously.
The above mentioned further upgrading device for wireless earphone is described from the perspective of functional module, and further, the present invention also provides an upgrading device for wireless earphone, which is described from the perspective of hardware. Fig. 7 is a structural diagram of another method for upgrading a wireless headset according to an embodiment of the present invention. As shown in fig. 7, the apparatus comprises a memory 70 for storing a computer program;
a processor 71, configured to implement the steps of the method for upgrading a wireless headset as mentioned in the above embodiments when executing the computer program.
The processor 71 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like, among others. The processor 71 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 71 may also include a main processor and a coprocessor, the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 71 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 71 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
The 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 for storing a computer program 701, wherein after being loaded and executed by the processor 71, the computer program can implement the relevant steps of the upgrade method of the wireless headset disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 70 may also include an operating system 702, data 703, and the like, and the storage manner may be a transient storage or a permanent storage. Operating system 702 may include Windows, Unix, Linux, etc. Data 703 may include, but is not limited to, corresponding data in an upgrade package, and the like.
In some embodiments, the diagnostic device 70 may also include a display 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 configuration shown in fig. 7 does not constitute a limitation of the upgrade apparatus for a wireless headset, and may include more or fewer components than those shown.
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be substantially or partially implemented in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods of the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, the embodiment of the invention also provides a wireless earphone, which comprises a main ear, a slave ear and an earphone head strip, wherein the earphone head strip comprises a transmission line for connecting the main ear and the slave ear;
the method comprises the steps that a master ear acquires an upgrade package sent by a mobile terminal, sends the upgrade package to a slave ear through a transmission line for upgrading, writes the upgrade package into a memory for upgrading, and sends a synchronous upgrade command to the slave ear when receiving upgrade preparation information of the slave ear;
the slave ear acquires the upgrade package transmitted by the master ear through the transmission line, writes the upgrade package into the memory for upgrading, sends upgrade preparation information to the master ear through the transmission line, and upgrades the upgrade package after receiving a synchronous upgrade command sent by the master ear.
Since the main ear and the slave ear in the wireless headset are described in detail above, the description of this embodiment is omitted.
The wireless headset and the upgrading method and device thereof provided by the invention are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It is further noted that, in the present 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. An upgrade method for a wireless headset, applied to a wireless headset having a master ear and a slave ear connectable via a headset bar, wherein the headset bar includes a transmission line for connecting the master ear and the slave ear, the method comprising:
acquiring an upgrade package sent by a mobile terminal;
sending the upgrading packet to the slave ear through the transmission line for upgrading, and writing the upgrading packet into a memory for upgrading;
and when receiving the upgrade readiness information of the slave ear, sending a synchronous upgrade command to the slave ear.
2. The method for upgrading a wireless headset according to claim 1, wherein the headset bar further comprises an MCU, and after the obtaining of 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;
if yes, adding a first indication mark to the upgrade package;
the sending the upgrade package to the slave ear through the transmission line is specifically:
transmitting the upgrade package added with the first indication mark to the MCU to be transmitted to the slave ear through the MCU;
and 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 for upgrading a wireless headset according to claim 1, further comprising, before transmitting the synchronization upgrade command:
judging whether confirmation information allowing upgrading is received or not;
and if so, sending the synchronous upgrading command.
4. The method for upgrading a wireless headset according to any one of claims 1-3, further comprising:
receiving a query command of the mobile terminal;
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.
5. An upgrade apparatus for a wireless headset, applied to a wireless headset having a master ear and a slave ear connectable via a headset bar, the headset bar including a transmission line for connecting the master ear and the slave ear, the apparatus comprising:
the acquisition module is used for acquiring the upgrade package sent by the mobile terminal;
the processing module is used for sending the upgrading packet to the slave ear through the transmission line for upgrading, and simultaneously writing the upgrading packet into a memory for upgrading;
and the upgrading module is used for sending a synchronous upgrading command to the slave ear when the information of the upgrading readiness of the slave ear is received.
6. An upgrade method for a wireless headset, applied to a wireless headset having a master ear and a slave ear connectable via a headset bar, wherein the headset bar includes a transmission line for connecting the master ear and the slave ear, the method comprising:
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 for upgrading;
sending upgrading preparation ready information to the main ear through the transmission line, and upgrading after receiving a synchronous upgrading command sent by the main ear.
7. An upgrade apparatus for a wireless headset, applied to a wireless headset having a master ear and a slave ear connectable via a headset bar, the headset bar including a transmission line for connecting the master ear and the slave ear, the apparatus comprising:
the system comprises an acquisition module, a transmission line and a transmission 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 a mobile terminal;
the processing module is used for writing the upgrade package into a memory for upgrading;
and the upgrading module is used for sending upgrading preparation ready information to the main ear through the transmission line and upgrading after receiving a synchronous upgrading command sent by the main ear.
8. An upgrade method for a wireless headset, applied to a wireless headset having a master ear and a slave ear connectable via a headset bar, wherein the headset bar includes a transmission line for connecting the master ear and the slave ear, the method comprising:
the master ear acquires an upgrade package sent by a mobile terminal, sends the upgrade package to the slave ear through the transmission line for upgrading, writes the upgrade package into a memory for upgrading, and sends a synchronous upgrade command to the slave ear when receiving upgrade preparation information of the slave ear;
the slave ear acquires an upgrade package transmitted by the main ear through the transmission line, writes the upgrade package into a memory for upgrading, sends upgrade readiness information to the main ear through the transmission line, and upgrades after receiving a synchronous upgrade command sent by the main ear.
9. An upgrade apparatus for a wireless headset, applied to a wireless headset having a master ear and a slave ear connectable via a headset bar, the headset bar including a transmission line for connecting the master ear and the slave ear, the apparatus comprising a memory for storing a computer program;
a processor for implementing the steps of the method of upgrading a wireless headset according to any of claims 1 to 4, 6, 8 when executing the computer program.
10. A 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 which is used for connecting the main ear and the slave ear;
the method comprises the steps that a master ear acquires an upgrade package sent by a mobile terminal, sends the upgrade package to a slave ear through a transmission line for upgrading, writes the upgrade package into a memory for upgrading, 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 main ear through the transmission line, writes the upgrade package into a memory for upgrading, sends upgrade readiness information to the main ear through the transmission line, and upgrades after receiving a synchronous upgrade command sent by the main 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 true CN110795127A (en) 2020-02-14
CN110795127B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111464920A (en) * 2020-03-31 2020-07-28 歌尔科技有限公司 Earphone debugging method, device and storage medium
CN112104028A (en) * 2020-09-10 2020-12-18 歌尔科技有限公司 Charging device, electric quantity correction method of wireless earphone and readable storage medium
CN113613045A (en) * 2021-07-05 2021-11-05 Oppo广东移动通信有限公司 Bluetooth peripheral upgrading method and device, terminal equipment and storage medium
CN116208882A (en) * 2022-07-08 2023-06-02 荣耀终端有限公司 Earphone upgrading method and wireless earphone

Citations (11)

* 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
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

Patent Citations (11)

* 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
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

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111464920A (en) * 2020-03-31 2020-07-28 歌尔科技有限公司 Earphone debugging method, device and storage medium
CN111464920B (en) * 2020-03-31 2022-01-07 歌尔科技有限公司 Earphone debugging method, device and storage medium
CN112104028A (en) * 2020-09-10 2020-12-18 歌尔科技有限公司 Charging device, electric quantity correction method of wireless earphone and readable storage medium
CN113613045A (en) * 2021-07-05 2021-11-05 Oppo广东移动通信有限公司 Bluetooth peripheral upgrading method and device, terminal equipment and storage medium
CN116208882A (en) * 2022-07-08 2023-06-02 荣耀终端有限公司 Earphone upgrading method and wireless earphone
CN116208882B (en) * 2022-07-08 2023-12-19 荣耀终端有限公司 Earphone upgrading method and wireless earphone

Also Published As

Publication number Publication date
CN110795127B (en) 2023-09-22

Similar Documents

Publication Publication Date Title
CN110795127A (en) Wireless earphone and upgrading method and device thereof
EP2582160B1 (en) Methods and apparatus to control accessories
US8443096B2 (en) Accessory identification for mobile computing devices
CN108429979B (en) Charging box upgrading method, charging box, wireless headset and TWS headset
EP3873004A1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
CN111078448B (en) Method for processing audio abnormity and electronic equipment
US11368777B2 (en) Method and system for upgrading program of TWS headset, and TWS headset
CN109600694A (en) A kind of matching method of wireless headset, device, terminal and charging box
CN110825411B (en) Upgrading method and device for TWS (two way satellite System) earphone system and computer-readable storage medium
CN110719542B (en) TWS earphone, upgrading method and device thereof, and computer storage medium
US20230224654A1 (en) Earphone debugging method and device, and storage medium
CN109547897A (en) A kind of method, apparatus, system and the wireless headset box of wireless headset connection
CN111371695B (en) Service flow limiting method and device
CN110764806B (en) TWS earphone and upgrading method and device thereof
CN110781014B (en) Recording data multi-process distribution method and system based on Android device
KR102333306B1 (en) Data communication method and system, electronic device, chip and storage medium
CN111787098B (en) Earphone upgrading method and device, earphone and storage medium
CN111615030A (en) Upgrading method, device and medium for novel TWS earphone
WO2017166606A1 (en) Audio playback method and apparatus, terminal device, electronic device, and storage medium
CN108184193B (en) Play control method of Bluetooth play terminal, Bluetooth device and computer storage medium
CN114866526B (en) Earphone upgrading method and wireless earphone
CN114466099A (en) Control method and device of Bluetooth equipment and storage medium
CN113692043B (en) Prompt message synchronization method and device
KR20160015036A (en) Method and apparatus for operating trigger between electronic devices and jack accessory applying the same
KR100593843B1 (en) An application program management system for a mobile telecommunication terminal

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