CN110764806A - TWS earphone and upgrading method and device thereof - Google Patents

TWS earphone and upgrading method and device thereof Download PDF

Info

Publication number
CN110764806A
CN110764806A CN201911038051.2A CN201911038051A CN110764806A CN 110764806 A CN110764806 A CN 110764806A CN 201911038051 A CN201911038051 A CN 201911038051A CN 110764806 A CN110764806 A CN 110764806A
Authority
CN
China
Prior art keywords
ear
upgrading
upgrade
mobile terminal
receiving
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
CN201911038051.2A
Other languages
Chinese (zh)
Other versions
CN110764806B (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 CN201911038051.2A priority Critical patent/CN110764806B/en
Publication of CN110764806A publication Critical patent/CN110764806A/en
Application granted granted Critical
Publication of CN110764806B publication Critical patent/CN110764806B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones

Landscapes

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

Abstract

The invention discloses a TWS earphone and an upgrading method and a device thereof, wherein the method is applied to an earphone head strip, the earphone head strip comprises an MCU, a communication module and a transmission line, the communication module is used for being in communication connection with a mobile terminal, the MCU controls the communication module and the transmission line to transmit, and the transmission line is connected with a master ear and a slave ear. After receiving the upgrade package sent by the mobile terminal through the communication module, the upgrade package is sent to the main ear and the slave ear through the transmission line so as to write the upgrade package into the memory for upgrading. Therefore, in the method, the mode of acquiring the upgrade patch without the main ear and the slave ear is realized by the earphone head strip, and the mode of switching the earphone head strip with the slave ear to be in communication connection with the mobile terminal is not needed, so that certain time is saved. Moreover, for the TWS earphone, the upgrading of the main ear and the auxiliary ear can be completed only by receiving the upgrading packet of the mobile terminal once, so that the upgrading time is further saved.

Description

TWS earphone and upgrading method and device thereof
Technical Field
The invention relates to the technical field of TWS (two way communication), in particular to a TWS earphone and an upgrading method and device thereof.
Background
With the development of earphone technology, the demand of TWS (true wireless stereo) earphones is exponentially increased due to the fact that the TWS earphones are different in market by virtue of the advantages of free wearing feeling and good sound quality. TWS headphones typically have at least two audio output devices, typically two, for wearing over the left and right ears, respectively, referred to in the industry as the master and slave ears.
Due to new requirements and the existence of on-line BUG, the TWS headset needs to be upgraded in the using process, usually firmware upgrade, and the adopted upgrading mode is OTA (over the air) upgrade, although the upgrading frequency is not high, the upgrading process has very important influence on the user experience.
In the prior art, when the TWS headset is upgraded, the mobile terminal is connected with the main ear, the upgrade package is sent to the main ear, after the main ear is upgraded according to the data of the upgrade package, the main ear is switched with the slave ear, so that the slave ear is connected with the mobile terminal as the main ear, the mobile terminal sends the upgrade package to the slave ear, and the slave ear is upgraded. Therefore, in the upgrading process, connection with the mobile terminal needs to be established twice, and the upgrading package needs to be acquired twice, so that the upgrading time is too long, and the experience of a user is influenced.
Disclosure of Invention
The invention aims to provide an upgrading method of a TWS earphone, which is characterized in that an earphone head strip is communicated with a mobile terminal to receive an upgrading packet, and then the upgrading packet is directly sent to a main ear and a slave ear by the earphone head strip, so that the main ear and the slave ear do not need to be switched in the upgrading process, and only the upgrading packet needs to be received once, thus the upgrading efficiency is improved, and the user experience is further improved. In addition, the invention also aims to provide the TWS earphone and the upgrading device thereof.
In order to solve the above technical problem, the present invention provides an upgrading method for a TWS headset, which is applied to a TWS headset having a primary ear and a secondary ear that can be connected by a headset bar, wherein the headset bar includes an MCU, a communication module, and a transmission line, and the method includes:
receiving an upgrade package transmitted by a mobile terminal through the communication module;
and sending the upgrading packet to the main lug and the auxiliary lug through the transmission line so as to write the upgrading packet into a memory for upgrading.
Preferably, the receiving, by the communication module, the upgrade package transmitted by the mobile terminal specifically includes:
controlling the communication module to establish communication connection with the mobile terminal;
receiving an upgrading request of the mobile terminal;
judging whether the current states of the master ear and the slave ear meet an upgrading condition;
if yes, sending an upgrade package acquisition request to the mobile terminal;
and receiving the upgrade package sent by the mobile terminal.
Preferably, the receiving the upgrade package sent by the mobile terminal specifically includes:
acquiring corresponding data packets according to a mode of receiving n data packets in the upgrade packets in each round, wherein n is the digit of bitmap;
the bit position 1 corresponding to each received data packet;
judging whether the round receives n data packets;
if the round does not finish receiving, returning to the step of obtaining the corresponding data packets according to the mode of receiving the n data packets in the upgrade packets in each round;
if the receiving of the current round is finished, judging whether the upgrade package is completely received;
and if the upgrade package is not received completely, returning to the step of acquiring the corresponding data package in a mode of receiving n data packages in the upgrade package in each round.
Preferably, the sending the upgrade patch to the master ear and the slave ear through the transmission line to write the upgrade patch into the memory for upgrading specifically includes: and sending the data packet corresponding to the round to the master ear and the slave ear after receiving the data packet corresponding to the round.
Preferably, if the upgrade package is received, the method further includes:
and sending an end identification to the master ear and the slave ear.
Preferably, the method further comprises the following steps:
receiving upgrade ready signals sent by the master ear and the slave ear;
and sending a synchronous upgrading command to the master ear and the slave ear.
Preferably, after receiving the upgrade package, the method further includes:
and controlling the communication module to disconnect the communication connection with the mobile terminal.
In order to solve the above technical problem, the present invention further provides an upgrading apparatus for a TWS headset, which is applied to a TWS headset having a primary ear and a secondary ear that can be connected by a headset bar, wherein the headset bar includes an MCU, a communication module, and a transmission line, and the apparatus includes:
the receiving module is used for receiving the upgrading packet sent by the mobile terminal through the communication module;
and the sending module is used for sending the upgrading packet to the main lug and the auxiliary lug through the transmission line so as to write the upgrading packet into a memory for upgrading.
In order to solve the above technical problem, the present invention further provides an upgrading apparatus for a TWS headset, including a memory for storing a computer program;
a processor for implementing the steps of the upgrading method of the TWS headset as described when executing the computer program.
In order to solve the technical problem, the invention provides a TWS headset, which comprises a master ear and a slave ear, and further comprises a headset bar for connecting the master ear and the slave ear, wherein the headset bar comprises an MCU, a communication module and a transmission line, the MCU is used for receiving an upgrade package sent by a mobile terminal through the communication module, and sending the upgrade package to the master ear and the slave ear through the transmission line so as to write the upgrade package into a memory for upgrading.
The upgrading method of the TWS earphone provided by the invention is applied to an earphone head strip, the earphone head strip comprises an MCU, a communication module and a transmission line, wherein the communication module is used for being in communication connection with a mobile terminal, the MCU controls the communication module and the transmission line to transmit, and the transmission line is connected with a main ear and a slave ear. After receiving the upgrade package sent by the mobile terminal through the communication module, the upgrade package is sent to the main ear and the slave ear through the transmission line so as to write the upgrade package into the memory for upgrading. Therefore, in the method, the mode of acquiring the upgrade patch without the main ear and the slave ear is realized by the earphone head strip, and the mode of switching the earphone head strip with the slave ear to be in communication connection with the mobile terminal is not needed, so that certain time is saved. Moreover, for the TWS earphone, the upgrading of the main ear and the auxiliary ear can be completed only by receiving the upgrading packet of the mobile terminal once, so that the upgrading time is further saved.
In addition, the upgrading device of the TWS earphone and the TWS earphone provided by the invention correspond to the method, and the effect is the same as the effect.
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 of an upgrading method for a TWS headset according to an embodiment of the present invention;
fig. 2 is a flowchart of another TWS headset upgrading method according to an embodiment of the present invention;
fig. 3 is a flowchart of an upgrading method for a TWS headset in an application scenario according to an embodiment of the present invention;
fig. 4 is a structural diagram of an upgrading apparatus for a TWS headset according to an embodiment of the present invention;
fig. 5 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 an upgrading method of a TWS earphone, which is characterized in that an earphone head strip is communicated with a mobile terminal to receive an upgrading packet, and then the earphone head strip directly sends the upgrading packet to a main ear and a slave ear, so that the main ear and the slave ear do not need to be switched in the upgrading process, and only the upgrading packet needs to be received once, thereby improving the upgrading efficiency and further improving the user experience. In addition, the invention also aims to provide the TWS earphone and the upgrading device thereof.
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 TWS headset of the present invention is not limited to the number of the main ear and the sub-ear, and is usually a main ear and a sub-ear, which are respectively worn on the left and right ears 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 main ear and the slave ear mainly comprise a main function chip, a loudspeaker, a rechargeable battery, a Bluetooth module and the like, wherein the main function chip provides Bluetooth connection, music playing, a conversation function, tone quality improvement and the like, and the method is not repeated.
The method for upgrading the wireless earphone provided by the invention can be realized through the earphone head strip, and particularly, the earphone head strip comprises an MCU (micro control unit), a communication module and a transmission line. The MCU is a control part of the earphone head strip and controls other modules to work, for example, the communication module is controlled to establish communication connection with the mobile terminal, and information sent by the main ear and the auxiliary ear is received through the transmission line to carry out relevant processing. In a specific implementation, the earphone head strip may further include a charging chip, and the charging chip charges the rechargeable batteries of the main ear and the auxiliary ear through the control of the MCU, which is not described in this embodiment. In this embodiment, the transmission line may be a serial port line, and the serial port line connects the master ear and the slave ear to realize transmission of the data packet. 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.
Fig. 1 is a flowchart of an upgrading method for a TWS headset according to an embodiment of the present invention. As shown in fig. 1, the upgrading method of the TWS headset includes:
s10: and receiving the upgrade package transmitted by the mobile terminal through the communication module.
In a specific implementation, the mobile terminal is connected to the headset via a communication module, for example via a bluetooth module. It should be noted that after the earphone head strip establishes communication connection with the mobile terminal, there are various interaction modes, and the MCU may directly send a request for obtaining an upgrade package to the mobile terminal, or the mobile terminal may send an upgrade request to the MCU, without affecting the implementation of the technical solution of the present invention. For the MCU, no matter what method is adopted, when upgrading is determined, the upgrading package sent by the mobile terminal is received through the communication module. It will be appreciated that the upgrade package, which typically comprises a plurality of data packages, may be generated in an encrypted manner, and then it is necessary for the MCU to decrypt the data packages according to a corresponding decryption method.
S11: and sending the upgrade package to the master ear and the slave ear through the transmission line so as to write the upgrade package into the memory for upgrading.
After receiving the upgrade package, if not encrypted, the upgrade package may be directly sent to the master ear and the slave ear, where it should be noted that, in the transmission process, the upgrade package is not transmitted through the bluetooth modules of the master ear and the slave ear, but is transmitted through a transmission line, such as a serial port line, and specifically, the master ear and the slave ear have corresponding interfaces, such as Uart (universal asynchronous receiver transmitter) interfaces.
In the process of transmitting the upgrade package by the mobile terminal, the master ear and the slave ear do not need to be directly received, so the master ear and the slave ear can communicate with the mobile terminal in an original mode, for example, the master ear receives an audio signal sent by the mobile terminal through the Bluetooth module, and transmits the audio signal to the slave ear for playing, and the normal use of the master ear and the slave ear is not influenced.
And after the master ear and the slave ear receive the upgrade package, writing the data corresponding to the upgrade package into the memory for upgrading. In a specific implementation, the upgrading of the master ear and the slave ear may be performed independently or simultaneously, in the former case, the master ear restarts immediately after writing the data corresponding to the upgrade package into the memory, in the same way, the slave ear restarts immediately after writing the data corresponding to the upgrade package into the memory, and in the latter case, the master ear or the slave ear waits for the other party after writing the data corresponding to the upgrade package into the memory, and restarts both after writing the data into the memory. The two ways can be used to upgrade the TWS headset, and this embodiment is not limited.
The upgrading method of the TWS headset provided by this embodiment is applied to a headset bar, where the headset bar includes an MCU, a communication module and a transmission line, where the communication module is used for communication connection with a mobile terminal, the MCU controls the communication module and the transmission line to transmit, and the transmission line is connected to a master ear and a slave ear. After receiving the upgrade package sent by the mobile terminal through the communication module, the upgrade package is sent to the main ear and the slave ear through the transmission line so as to write the upgrade package into the memory for upgrading. Therefore, in the method, the mode of acquiring the upgrade patch without the main ear and the slave ear is realized by the earphone head strip, and the mode of switching the earphone head strip with the slave ear to be in communication connection with the mobile terminal is not needed, so that certain time is saved. Moreover, for the TWS earphone, the upgrading of the main ear and the auxiliary ear can be completed only by receiving the upgrading packet of the mobile terminal once, so that the upgrading time is further saved.
Fig. 2 is a flowchart of another TWS headset upgrading method according to an embodiment of the present invention. On the basis of the above implementation, receiving, by the communication module, the upgrade package transmitted by the mobile terminal specifically includes:
s100: and controlling the communication module to establish communication connection with the mobile terminal.
S101: and receiving an upgrading request of the mobile terminal.
S102: and judging whether the current states of the master ear and the slave ear meet the upgrading condition.
S103: and if so, sending an upgrade package acquisition request to the mobile terminal.
S104: and receiving an upgrade package sent by the mobile terminal.
In a specific implementation, when the TWS headset does not need to be upgraded, the headset head strip does not need to be connected with the master ear and the slave ear, and the connection is performed only when the TWS headset needs to be upgraded. For the MCU in the earphone head strip, when the upgrade trigger signal is detected, the communication module is controlled to establish communication connection with the mobile terminal, for example, the Bluetooth module in the earphone head strip is controlled to be paired with the Bluetooth module of the mobile terminal. For the mobile terminal, the obtaining of the upgrade package may be downloading the latest upgrade package from the server after detecting that the bluetooth module in the headset is paired, or may be downloading in advance. In a specific application scenario, the server is accessed at a set moment so as to determine whether a new version exists in the server, if so, after establishing communication connection with the headset, the mobile terminal may send a command for querying the current version number to the MCU, after obtaining feedback, determine whether the current version number is lower than the new version number in the server, and if so, send an upgrade request to the MCU.
And after receiving the upgrading request, the MCU judges whether the current states of the master ear and the slave ear meet the upgrading conditions. It should be noted that the upgrade condition 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 indicates that the upgrade condition is satisfied, otherwise, it is not satisfied. 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 and sends the new upgrade package to the 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.
In this embodiment, before obtaining the upgrade package, whether the current states of the master ear and the slave ear satisfy the upgrade condition or not is judged in advance, and only when the current states satisfy, the upgrade is performed, so that the problem of interruption after the upgrade is started can be effectively prevented.
As shown in fig. 2, based on the foregoing embodiment, S104 specifically includes:
s1040: and acquiring corresponding data packets according to a mode of receiving n data packets in the upgrade packets in each round, wherein n is the digit of bitmap.
S1041: and bit position 1 corresponding to each received data packet.
S1042: and judging whether the round receives n data packets, if not, returning to S1043, and if so, entering S1043.
S1043: and judging whether the upgrade package is received completely, if not, returning to the S1040.
The upgrade package is generally large, and is generally divided into a plurality of data packages for transmission, in a specific embodiment, n may be 8, that is, the bitmap (bitmap) used is 8 bits, that is, 8 data packages are requested each time, the size of each data package is 512 bytes, and the meaning of bit indicates that: 0 indicates that the corresponding single packet fragment needs to be sent; a 1 indicates that the corresponding single packet fragment does not need to be sent. For example, the first request data may send 00000000 to indicate that 8 data packets are requested consecutively. Because a transmission failure problem may occur in the transmission process of a data packet, in order to overcome this problem, an overtime retransmission mechanism is adopted in the transmission process, that is, 8 data packets are not received within a preset time, missing data packets are retransmitted (data packets that have been transmitted are not retransmitted), for example, packet loss occurs in the transmission process, packets 5, 7 and 12 are not received, and retransmission is required, then bitmaps are 11110101 (data packets 5 and 7 are transmitted in a first round) and 11101111 (data packets 12 are transmitted in a second round), that is, only data packets 5 and 7 need to be transmitted in the first round, and only data packets 12 need to be transmitted in the second round. In one embodiment, the preset time in the timeout retransmission mechanism may be 2 seconds. In step S1043, it is determined whether the upgrade package is received completely, and it may be determined whether an end identifier is received, specifically, the end identifier is added by the mobile terminal, the end identifier may be sent separately after the complete data package is sent, or the end identifier is added in the last data package.
In order to avoid the packet loss phenomenon, generally, a data packet is not transmitted to the master ear and the slave ear upon receiving the data packet, but the received data packet is buffered, as a preferred embodiment, sending the upgrade packet to the master ear and the slave ear through the transmission line to write the upgrade packet into the memory for upgrading is specifically: and after receiving the data packet corresponding to one round, sending the data packet corresponding to the round to the master ear and the slave ear.
Further, as shown in fig. 2, if the upgrade package is received, the method further includes:
s12: and sending the ending identification to the master ear and the slave ear.
It can be understood that, the end identifier in this embodiment is similar to the end identifier sent by the mobile terminal to the MCU, and indicates that the upgrade package is sent completely, and therefore, the adding method of the end identifier is not limited, and the end identifier may be sent separately after the complete data package is sent, or the end identifier may be added to the last data package.
Further, still include:
s13: and receiving upgrade readiness signals sent by the master ear and the slave ear.
S14: and sending synchronous upgrading commands to the master ear and the slave ear.
As mentioned above, the master ear and the slave ear may independently complete their respective upgrades after obtaining the upgrade package, or may send an upgrade ready signal to the MCU after writing the data corresponding to the upgrade package into the memory, to represent that the operation of writing into the memory has been completed. It can be understood that, because the ready-to-upgrade signal is very small and the transmission is very fast, the transmission line transmission can be adopted, and the bluetooth module transmission can also be adopted, that is, the bluetooth module of the main ear sends the ready-to-upgrade signal to the bluetooth module in the headset head bar, and the bluetooth module of the slave ear sends the ready-to-upgrade signal to the bluetooth module in the headset head bar. For the MCU, when receiving the upgrade ready signals of the master and slave ears, a synchronous upgrade command is transmitted to the master and slave ears, for example, to restart after 1 second. Similarly, the data volume of the synchronous upgrade command is small, so that the synchronous upgrade command can be transmitted through a transmission line and also can be transmitted through a Bluetooth module.
In this embodiment, controlling the synchronous upgrade of the master ear and the slave ear can effectively avoid a failure occurring in the upgrade process, for example, after the master ear is successfully upgraded, the user is prompted to complete the upgrade, but in fact, the slave ear fails, and the data of the upgrade packet is not written into the memory, which results in the failure of the slave ear upgrade.
Further, after receiving the upgrade package, the method further includes:
s15: and controlling the communication module to disconnect the communication connection with the mobile terminal.
Since the earphone head strip is mainly used during upgrading, long-time connection with the main ear and the auxiliary ear is not needed, and long-time communication with the mobile terminal is also not needed. When disconnected, the master or slave ear may prompt the user to disconnect or the mobile terminal prompts the user to disconnect, and the user may disconnect the earphone headset from the master and slave ears.
In order to make the technical solutions provided by the present invention more clear for those skilled in the art, a specific application scenario involving a server, a mobile terminal, a primary ear, a headphone head strip, and a secondary ear is further provided herein for explaining, and fig. 3 is a flowchart of an upgrading method of a TWS headphone in an application scenario provided in an embodiment of the present invention. As shown in fig. 3, the method comprises the steps of:
s30: the mobile terminal accesses the server to download the latest upgrade package.
S31: the mobile terminal establishes communication connection with the earphone head strip and sends an upgrading request to the earphone head strip.
S32: the earphone head strip receives an upgrading request of the mobile terminal and judges whether the current states of the main ear and the auxiliary ear meet upgrading conditions or not.
S33: and if so, sending an upgrade patch acquisition request to the mobile terminal by the headset.
S34: and the mobile terminal sends an upgrade package to the headset.
S35: the earphone head strip receives the upgrade package.
S36: the earphone head strip sends the upgrade package to the main ear through the transmission line.
S37: the headset sends the upgrade package to the slave ear via the transmission line.
S38: and the main ear receives the upgrade package and writes the upgrade package into the memory.
S39: and receiving the upgrade package from the ear, and writing the upgrade package into the memory.
S40: after the upgrade package is written into the memory, the main ear sends the ready-to-upgrade information to the earphone head strip.
S41: and after the upgrade package is written into the memory, sending upgrade preparation ready information to the earphone head strip from the ear.
S42: the headset bar sends a synchronization upgrade command to the primary ear.
S43: the headset bar sends a synchronization 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 are not limited herein.
Fig. 4 is a structural diagram of an upgrading apparatus for a TWS headset according to an embodiment of the present invention. The device is applied to a TWS headset of a master ear and a slave ear which can be connected through a headset bar, the headset bar contains a MCU, a communication module and a transmission line, as shown in fig. 4, the device includes:
a receiving module 10 for receiving the upgrade package transmitted by the mobile terminal through the communication module;
and the sending module 11 is used for sending the upgrade package to the master ear and the slave ear through the transmission line so as to write the upgrade package into the memory for upgrading.
Preferably, if the upgrade package is received, the method further comprises:
and the ending mark sending module is used for sending the ending marks to the master ear and the slave ear.
Preferably, the method further comprises the following steps:
the system comprises an upgrade ready signal receiving module, a master ear receiving module and an upgrade ready signal receiving module, wherein the upgrade ready signal receiving module is used for receiving upgrade ready signals sent by the master ear and the slave ear;
and the synchronous upgrading command sending module is used for sending synchronous upgrading commands to the master ear and the slave ear.
Preferably, after receiving the upgrade package, the method further includes:
and the control module is used for controlling the communication module to disconnect the communication connection with 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.
In the upgrading device of the TWS headset provided by this embodiment, the mode of acquiring the upgrade patch by the main ear and the slave ear is realized by the headset head strip, and the two are not required to be switched to each other and then to be in communication connection with the mobile terminal, so that a certain time is saved. Moreover, for the TWS earphone, the upgrading of the main ear and the auxiliary ear can be completed only by receiving the upgrading packet of the mobile terminal once, so that the upgrading time is further saved.
The above mentioned upgrading device of the TWS headset is described from the perspective of the functional module, and further, the present invention also provides an upgrading device of the TWS headset, which is described from the perspective of hardware. Fig. 5 is a structural diagram of another method for upgrading a wireless headset according to an embodiment of the present invention. As shown in fig. 5, the apparatus comprises a memory 20 for storing a computer program;
a processor 21 for implementing the steps of the method for upgrading a wireless headset as mentioned in the above embodiments when executing the computer program.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 21 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 21 may also include a main processor and a coprocessor, where 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 21 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 21 may further include an AI (Artificial Intelligence) processor for processing a calculation operation related to machine learning.
The memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 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 20 is at least used for storing the following computer program 201, wherein after being loaded and executed by the processor 21, 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 20 may also include an operating system 202, data 203, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. Operating system 202 may include, among others, Windows, Unix, Linux, and the like. Data 203 may include, but is not limited to, corresponding data in an upgrade package, and the like.
In some embodiments, the upgrading device of the TWS headset may further include a display 22, an input-output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the configuration shown in fig. 5 does not constitute a limitation of the upgrade apparatus for a wireless headset and may include more or fewer components than those shown.
In the method, the mode of acquiring the upgrade package by the main ear and the slave ear is realized through the earphone head strip, and the main ear and the slave ear do not need to be switched with each other and then are in communication connection with the mobile terminal, so that certain time is saved. Moreover, for the TWS earphone, the upgrading of the main ear and the auxiliary ear can be completed only by receiving the upgrading packet of the mobile terminal once, so that the upgrading time is further saved.
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, an embodiment of the present invention further provides a TWS headset, including a master ear and a slave ear, and further including a headset bar for connecting the master ear and the slave ear, where the headset bar includes an MCU, a communication module, and a transmission line, and the MCU is configured to receive an upgrade package sent by the mobile terminal through the communication module, and send the upgrade package to the master ear and the slave ear through the transmission line to write the upgrade package into a memory for upgrading.
Since the above detailed description is made on the earphone head strip in the TWS earphone and the interaction between the earphone head strip and the mobile terminal, the main ear and the auxiliary ear, the detailed description is omitted in this embodiment.
The TWS headset provided in this embodiment connects the master ear and the slave ear through the headset head strip, and after the headset head strip obtains the upgrade patch from the mobile terminal, the upgrade patch is sent to the master ear and the slave ear through the transmission line. Therefore, in the upgrading process of the master ear and the slave ear, the master ear and the slave ear do not need to be switched with each other to be in communication connection with the mobile terminal, and therefore certain time is saved. Moreover, for the TWS earphone, the upgrading of the main ear and the auxiliary ear can be completed only by receiving the upgrading packet of the mobile terminal once, so that the upgrading time is further saved.
The TWS headset and the upgrading method and apparatus thereof provided by the present 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. A method for upgrading a TWS earphone is applied to the TWS earphone of a main ear and a slave ear which can be connected through an earphone head strip, wherein the earphone head strip comprises an MCU, a communication module and a transmission line, and the method comprises the following steps:
receiving an upgrade package transmitted by a mobile terminal through the communication module;
and sending the upgrading packet to the main lug and the auxiliary lug through the transmission line so as to write the upgrading packet into a memory for upgrading.
2. The upgrading method of TWS headset according to claim 1, wherein said receiving, by the communication module, the upgrade package transmitted by the mobile terminal specifically includes:
controlling the communication module to establish communication connection with the mobile terminal;
receiving an upgrading request of the mobile terminal;
judging whether the current states of the master ear and the slave ear meet an upgrading condition;
if yes, sending an upgrade package acquisition request to the mobile terminal;
and receiving the upgrade package sent by the mobile terminal.
3. The upgrading method of TWS headset according to claim 1, wherein said receiving the upgrade package sent by the mobile terminal specifically includes:
acquiring corresponding data packets according to a mode of receiving n data packets in the upgrade packets in each round, wherein n is the digit of bitmap;
the bit position 1 corresponding to each received data packet;
judging whether the round receives n data packets;
if the round does not finish receiving, returning to the step of obtaining the corresponding data packets according to the mode of receiving the n data packets in the upgrade packets in each round;
if the receiving of the current round is finished, judging whether the upgrade package is completely received;
and if the upgrade package is not received completely, returning to the step of acquiring the corresponding data package in a mode of receiving n data packages in the upgrade package in each round.
4. The upgrading method for the TWS headset according to claim 3, wherein the sending the upgrade patch to the master ear and the slave ear via the transmission line to write the upgrade patch into a memory for upgrading specifically includes: and sending the data packet corresponding to the round to the master ear and the slave ear after receiving the data packet corresponding to the round.
5. The upgrading method of TWS headset according to claim 3, further comprising, if the upgrade package is received, the step of:
and sending an end identification to the master ear and the slave ear.
6. The upgrading method of the TWS headset of any of claims 1-5, further comprising:
receiving upgrade ready signals sent by the master ear and the slave ear;
and sending a synchronous upgrading command to the master ear and the slave ear.
7. The upgrading method of TWS headset according to claim 2, further comprising, after receiving the upgrade package, the step of:
and controlling the communication module to disconnect the communication connection with the mobile terminal.
8. An upgrading device of TWS earphones is characterized in that the upgrading device is applied to the TWS earphones of a main ear and a slave ear which can be connected through an earphone head strip, the earphone head strip comprises an MCU, a communication module and a transmission line, and the upgrading device comprises:
the receiving module is used for receiving the upgrading packet sent by the mobile terminal through the communication module;
and the sending module is used for sending the upgrading packet to the main lug and the auxiliary lug through the transmission line so as to write the upgrading packet into a memory for upgrading.
9. An upgrade apparatus for a TWS headset, comprising a memory for storing a computer program;
a processor for implementing the steps of the upgrade method for a TWS headset according to any one of claims 1 to 7 when executing the computer program.
10. The utility model provides a TWS earphone, includes main ear and follows the ear, its characterized in that, still including being used for connecting the earphone strip of main ear with follow the ear, contain MCU, communication module and transmission line in the earphone strip, MCU is used for through the upgrading package that mobile terminal sent is received to communication module, and will the upgrading package passes through the transmission line send to main ear with follow the ear with will the upgrading package is write in the memory and is upgraded.
CN201911038051.2A 2019-10-29 2019-10-29 TWS earphone and upgrading method and device thereof Active CN110764806B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911038051.2A CN110764806B (en) 2019-10-29 2019-10-29 TWS earphone and upgrading method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911038051.2A CN110764806B (en) 2019-10-29 2019-10-29 TWS earphone and upgrading method and device thereof

Publications (2)

Publication Number Publication Date
CN110764806A true CN110764806A (en) 2020-02-07
CN110764806B CN110764806B (en) 2023-12-26

Family

ID=69334440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911038051.2A Active CN110764806B (en) 2019-10-29 2019-10-29 TWS earphone and upgrading method and device thereof

Country Status (1)

Country Link
CN (1) CN110764806B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111556117A (en) * 2020-04-22 2020-08-18 歌尔科技有限公司 Earphone upgrading method and device, earphone control method, earphone set and storage medium
CN112995319A (en) * 2021-03-02 2021-06-18 山东鲁能软件技术有限公司智能电气分公司 Method and system for reliably upgrading visual monitoring system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012025011A1 (en) * 2010-08-27 2012-03-01 腾讯科技(深圳)有限公司 Software update system, method and computer storage medium
CN104951344A (en) * 2015-06-19 2015-09-30 北京汉王鹏泰科技有限公司 Method and device for upgrading firmware by utilizing acoustical signal
CN106101889A (en) * 2016-06-13 2016-11-09 青岛歌尔声学科技有限公司 A kind of anti-corona earphone and method for designing thereof
CN106470369A (en) * 2016-09-23 2017-03-01 广东佳禾声学科技有限公司 Intelligent neck wears earphone and its method realizing loudspeaker switching
CN106843942A (en) * 2016-12-31 2017-06-13 歌尔科技有限公司 The firmware upgrade method and Wearable of Wearable
CN107608721A (en) * 2017-09-13 2018-01-19 北京小鸟看看科技有限公司 Wear the upgrade method of virtual reality device and its bootstrap loader
CN108419161A (en) * 2018-02-02 2018-08-17 温州大学瓯江学院 A kind of detachable earphone based on big data
CN108848163A (en) * 2018-06-15 2018-11-20 歌尔科技有限公司 The upgrade method and TWS earphone of TWS earphone
CN109218892A (en) * 2018-11-29 2019-01-15 歌尔科技有限公司 A kind of head-type charging equipment and wear-type wireless headphone system
CN109491691A (en) * 2018-11-30 2019-03-19 歌尔科技有限公司 A kind of TWS earphone and its upgrade method, device, medium
CN110225427A (en) * 2019-05-11 2019-09-10 出门问问信息科技有限公司 Earphone charging box and its data transmission method, earphone

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012025011A1 (en) * 2010-08-27 2012-03-01 腾讯科技(深圳)有限公司 Software update system, method and computer storage medium
CN104951344A (en) * 2015-06-19 2015-09-30 北京汉王鹏泰科技有限公司 Method and device for upgrading firmware by utilizing acoustical signal
CN106101889A (en) * 2016-06-13 2016-11-09 青岛歌尔声学科技有限公司 A kind of anti-corona earphone and method for designing thereof
CN106470369A (en) * 2016-09-23 2017-03-01 广东佳禾声学科技有限公司 Intelligent neck wears earphone and its method realizing loudspeaker switching
CN106843942A (en) * 2016-12-31 2017-06-13 歌尔科技有限公司 The firmware upgrade method and Wearable of Wearable
CN107608721A (en) * 2017-09-13 2018-01-19 北京小鸟看看科技有限公司 Wear the upgrade method of virtual reality device and its bootstrap loader
CN108419161A (en) * 2018-02-02 2018-08-17 温州大学瓯江学院 A kind of detachable earphone based on big data
CN108848163A (en) * 2018-06-15 2018-11-20 歌尔科技有限公司 The upgrade method and TWS earphone of TWS earphone
CN109218892A (en) * 2018-11-29 2019-01-15 歌尔科技有限公司 A kind of head-type charging equipment and wear-type wireless headphone system
CN109491691A (en) * 2018-11-30 2019-03-19 歌尔科技有限公司 A kind of TWS earphone and its upgrade method, device, medium
CN110225427A (en) * 2019-05-11 2019-09-10 出门问问信息科技有限公司 Earphone charging box and its data transmission method, earphone

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111556117A (en) * 2020-04-22 2020-08-18 歌尔科技有限公司 Earphone upgrading method and device, earphone control method, earphone set and storage medium
CN112995319A (en) * 2021-03-02 2021-06-18 山东鲁能软件技术有限公司智能电气分公司 Method and system for reliably upgrading visual monitoring system

Also Published As

Publication number Publication date
CN110764806B (en) 2023-12-26

Similar Documents

Publication Publication Date Title
CN108600892B (en) Upgrading method and device, wireless headset, TWS headset and charging box
CN108848163B (en) Upgrading method of TWS earphone and TWS earphone
US10939490B2 (en) Method for establishing classic Bluetooth connection between dual-mode Bluetooth devices, and dual-mode Bluetooth device
CN108429979B (en) Charging box upgrading method, charging box, wireless headset and TWS headset
US11368777B2 (en) Method and system for upgrading program of TWS headset, and TWS headset
US20210219041A1 (en) Voice data transmission method, wireless earphone and tws earphone
CN110795127A (en) Wireless earphone and upgrading method and device thereof
CN110719542B (en) TWS earphone, upgrading method and device thereof, and computer storage medium
WO2022161004A1 (en) Baud rate switching method and apparatus for uart communication, and initiator terminal
CN111163387B (en) TWS earphone upgrading method and device, charging box and storage medium
US20230224654A1 (en) Earphone debugging method and device, and storage medium
CN108833542B (en) Upgrading method of TWS earphone and TWS earphone
CN110764806B (en) TWS earphone and upgrading method and device thereof
CN112235404B (en) Method and equipment for silent upgrading of earphone and charging box
CN109547897A (en) A kind of method, apparatus, system and the wireless headset box of wireless headset connection
US20200413456A1 (en) Method for pairing and connecting secondary earphone with sound source device
US20170357474A1 (en) Mode Switchable Audio Processor for Digital Audio
US20220124435A1 (en) Earphone upgrade method, earphone assembly, upgrade device and non-transitory computer readable storage medium
WO2017049549A1 (en) Mobile terminal, power supply adapter, and upgrading method thereof
CN111615030A (en) Upgrading method, device and medium for novel TWS earphone
CN110719651B (en) Data transmission method and device
WO2022227615A1 (en) Data upgrade method, data upgrade device, and readable storage medium
CN112203170B (en) Upgrading method, device, medium and equipment of optical network unit
CN115175149A (en) Equipment adding method and device, bluetooth chip and equipment
CN110968233A (en) Music playing switching operation method, system, storage medium and equipment

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