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

TWS earphone and upgrading method and device thereof Download PDF

Info

Publication number
CN110764806B
CN110764806B CN201911038051.2A CN201911038051A CN110764806B CN 110764806 B CN110764806 B CN 110764806B CN 201911038051 A CN201911038051 A CN 201911038051A CN 110764806 B CN110764806 B CN 110764806B
Authority
CN
China
Prior art keywords
ear
upgrade
mobile terminal
upgrade package
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.)
Active
Application number
CN201911038051.2A
Other languages
Chinese (zh)
Other versions
CN110764806A (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

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)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Acoustics & Sound (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a TWS earphone and an upgrading method and 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 master 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 package without the main ear and the slave ear is realized through the earphone head strip, and the mode of mutually switching and then connecting with the mobile terminal in a communication way is not needed, so that a certain time is saved. In addition, for the TWS earphone, the upgrade of the master ear and the slave ear can be completed only by receiving the upgrade package of the mobile terminal once, so that the upgrade time is further saved.

Description

TWS earphone and upgrading method and device thereof
Technical Field
The invention relates to the technical field of TWS (time varying signal), in particular to a TWS earphone and an upgrading method and device thereof.
Background
With the development of earphone technology, TWS (truly wireless stereo) earphones are protruding in the market by virtue of wearing free feeling, good sound quality and the like, and the demand is exponentially increasing. TWS headphones typically have at least two audio output devices, typically two, for wearing to the left and right ears, respectively, referred to in the industry as the master ear and the slave ear.
Because of new requirements and presence of on-line BUGs (holes), the TWS earphone needs to be upgraded, usually firmware, in the use process, and the adopted upgrading mode is OTA (over the air technology) upgrading, although the upgrading frequency is not high, the upgrading process has very important influence on the user experience.
In the prior art, when a TWS earphone is upgraded, a mobile terminal is connected with a master ear, an upgrade package is sent to the master ear, after the master ear is upgraded according to data of the upgrade package, the master ear and a slave ear are switched, so that the slave ear is used as the master ear to be connected with the mobile terminal, and the mobile terminal sends the upgrade package to the slave ear and upgrades the slave ear. Therefore, in the upgrading process, connection with the mobile terminal is required to be established twice, and the upgrading package is required to be acquired twice, so that the upgrading time is too long, and the experience of a user is affected.
Disclosure of Invention
The invention aims to provide an upgrading method of TWS (time varying signal) headphones, which is characterized in that a headphone head strip is communicated with a mobile terminal to receive an upgrading packet, and then the headphone head strip is used for directly sending the upgrading packet to a master ear and a slave ear, so that the master ear and the slave ear do not need to be switched in the upgrading process, and only the upgrading packet is required to be received once, the upgrading efficiency is improved, and the user experience is further improved. In addition, the invention further provides a TWS earphone and an upgrading device thereof.
In order to solve the technical problems, the present invention provides an upgrade method of a TWS headset, which is applied to a TWS headset with a master ear and a slave ear that can be connected by a headset strip, wherein the headset strip includes an MCU, a communication module and a transmission line, and the method includes:
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.
Preferably, the receiving, by the communication module, the upgrade package sent by the mobile terminal specifically includes:
controlling the communication module to establish communication connection with the mobile terminal;
receiving an upgrade request of the mobile terminal;
judging whether the current states of the master ear and the slave ear meet upgrading conditions or not;
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 the mode of receiving n data packets in the upgrade packet in each round, wherein n is the bit number of the bitmap;
each time a corresponding bit position 1 is received for the data packet;
judging whether the current round receives n data packets;
if the round of receiving is not finished, returning to the step of acquiring the corresponding data packets according to the mode of receiving n data packets in the upgrade packet in each round;
if the round of receiving is finished, judging whether the upgrade package is received completely or not;
and if the upgrade package is not received completely, returning to the step of acquiring the corresponding data packages according to the mode of receiving n data packages in the upgrade package in each round.
Preferably, the step of sending the upgrade package to the master ear and the slave ear through the transmission line to write the upgrade package into the memory for upgrade specifically includes: 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.
Preferably, if the upgrade package is received, the method further comprises:
and sending an end identifier to the master ear and the slave ear.
Preferably, the method further comprises:
receiving upgrade readiness signals sent by the master ear and the slave ear;
and sending a synchronous upgrade command to the master ear and the slave ear.
Preferably, after receiving the upgrade package, the method further comprises:
and controlling the communication module to disconnect the communication connection with the mobile terminal.
In order to solve the technical problem, the invention also provides an upgrading device of the TWS earphone, which is applied to the TWS earphone of a master 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 device comprises:
the receiving module is used for receiving the upgrade package sent by the mobile terminal through the communication module;
and the sending module 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.
In order to solve the technical problem, the invention also provides an upgrading device of the TWS earphone, which comprises a memory for storing a computer program;
and the processor is used for realizing the steps of the TWS earphone upgrading method when executing the computer program.
In order to solve the technical problems, the invention provides a TWS earphone, which comprises a master ear and a slave ear, and further comprises an earphone head strip used for connecting the master ear and the slave ear, wherein the earphone head strip 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 headset is applied to a headset head strip, the headset 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 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 master 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 package without the main ear and the slave ear is realized through the earphone head strip, and the mode of mutually switching and then connecting with the mobile terminal in a communication way is not needed, so that a certain time is saved. In addition, for the TWS earphone, the upgrade of the master ear and the slave ear can be completed only by receiving the upgrade package of the mobile terminal once, so that the upgrade 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 have the same effects.
Drawings
For a clearer description of embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
Fig. 1 is a flowchart of an upgrade method of a TWS headset according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for upgrading a TWS headset according to an embodiment of the present invention;
fig. 3 is a flowchart of an upgrade method of a TWS headset in an application scenario provided by an embodiment of the present invention;
fig. 4 is a block diagram of an upgrade apparatus of a TWS headset according to an embodiment of the present invention;
fig. 5 is a block diagram of another method for upgrading a wireless headset according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without making any inventive effort are within the scope of the present invention.
The core of the invention is to provide an upgrading method of TWS earphone, which is to communicate with a mobile terminal through an earphone head strip to receive an upgrading packet, and then directly send the upgrading packet to a master ear and a slave ear through the earphone head strip, so that the master ear and the slave ear do not need to be switched in the upgrading process, and only the upgrading packet is required to be received once, thereby improving the upgrading efficiency and further improving the user experience. In addition, the invention further provides a TWS earphone and an upgrading device thereof.
In order to better understand the aspects of the present invention, the present invention will be described in further detail with reference to the accompanying drawings and detailed description.
In the TWS earphone according to the present invention, the number of the master ear and the slave ear is not limited, and in general, one master ear and one slave ear are worn on the left and right ears of the user, respectively. The master ear and the slave ear are opposite and can be switched, only one is the master ear at the same time, and the master ear and the slave ear are different in that the master ear is directly connected with the mobile terminal, for example, connected with a mobile phone. The slave ear is not directly connected with the mobile terminal, but communication with the mobile terminal is realized through forwarding of the master ear. Main ear and from main function chip, speaker, rechargeable battery, bluetooth module etc. that mainly include in the ear, main function chip provides bluetooth connection, music broadcast, conversation function, tone quality promotion etc. this method is not repeated.
The upgrading method of the wireless earphone provided by the invention can be realized through the earphone head strip, and specifically, 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 headset 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 slave ear is received through a transmission line to perform relevant processing. In an implementation, the headset strip may further include a charging chip, and the charging chip charges the rechargeable batteries of the master ear and the slave ear through the control of the MCU, which is not described in detail in this embodiment. In this embodiment, the transmission line may be a serial line, where the serial line connects the master ear and the slave ear, so as to implement transmission of the data packet. It will be appreciated that since the headpiece is only required when a firmware upgrade is performed, the headset headpiece may be detachably connected to the master ear and the slave ear.
Fig. 1 is a flowchart of an upgrade method of a TWS headset according to an embodiment of the present invention. As shown in fig. 1, the method for upgrading the TWS headset includes:
s10: and receiving the upgrade package sent by the mobile terminal through the communication module.
In a specific implementation, the mobile terminal is connected to the headset strip through a communication module, for example, through a bluetooth module. It should be noted that after the headset strip and the mobile terminal are in communication connection, the interaction modes are various, and the MCU can directly send a request for acquiring the upgrade package to the mobile terminal or the mobile terminal sends the upgrade request to the MCU, so that the realization of the technical scheme of the invention is not affected. And for the MCU, no matter what way is adopted, when the MCU determines that the mobile terminal is to be upgraded, the communication module receives an upgrade package sent by the mobile terminal. It will be appreciated that the upgrade package typically comprises a plurality of data packets, which may be generated in an encrypted manner, and that decryption according to a corresponding decryption method is required for the MCU.
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 the upgrade package is not encrypted, the upgrade package can be directly sent to the master ear and the slave ear, and it is to 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, for example, a serial port line, and specifically, the master ear and the slave ear have corresponding interfaces, for example, a Uart (universal asynchronous receiver transmitter) interface.
Because the master ear and the slave ear do not need to be directly received in the process of transmitting the upgrade package by the mobile terminal, the master ear and the slave ear can be communicated with the mobile terminal according to the original mode, for example, the master ear receives an audio signal sent by the mobile terminal through a Bluetooth module and transmits the audio signal to the slave ear for playing together, and normal use of the master ear and the slave ear is not influenced.
After the master ear and the slave ear receive the upgrade package, writing data corresponding to the upgrade package into the memory for upgrading. In a specific implementation, the master ear and the slave ear may be independently performed or may be simultaneously performed, for the former, the master ear immediately restarts after writing the data corresponding to the upgrade package into the memory, and for the latter, the master ear or the slave ear immediately restarts after writing the data corresponding to the upgrade package into the memory, waits for the other party after writing both of them into the memory, and then restarts again. The two modes can realize the upgrading of the TWS earphone, and the embodiment is not limited.
The upgrading method of the TWS headset is applied to a headset head strip, the headset 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 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 master 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 package without the main ear and the slave ear is realized through the earphone head strip, and the mode of mutually switching and then connecting with the mobile terminal in a communication way is not needed, so that a certain time is saved. In addition, for the TWS earphone, the upgrade of the master ear and the slave ear can be completed only by receiving the upgrade package of the mobile terminal once, so that the upgrade time is further saved.
Fig. 2 is a flowchart of another method for upgrading a TWS headset according to an embodiment of the present invention. Based on the implementation, the receiving, by the communication module, the upgrade package sent by the mobile terminal specifically includes:
s100: the control communication module establishes communication connection with the mobile terminal.
S101: and receiving an upgrade request of the mobile terminal.
S102: and judging whether the current states of the master ear and the slave ear meet the upgrading conditions.
S103: and if so, sending an upgrade package acquisition request to the mobile terminal.
S104: and receiving the 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 only when the TWS headset needs to be upgraded, the connection is performed. For the MCU in the headset 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 headset strip is controlled to be matched with the Bluetooth module of the mobile terminal. For the mobile terminal, the upgrade package may be obtained by detecting that the bluetooth modules in the headset strip are paired, and then downloading the latest upgrade package from the server, or downloading the latest upgrade package in advance. In a specific application scenario, the server is accessed at a set moment so as to confirm whether a new version exists in the server, if so, after communication connection with the headset strip is established, the mobile terminal can send a command for inquiring the current version number to the MCU, after feedback is obtained, whether the current version number is lower than the new version number in the server is judged, and if so, an upgrade request is sent to the MCU.
After receiving the upgrade request, the MCU judges whether the current states of the master ear and the slave ear meet the upgrade condition. It should be noted that, the upgrade condition may be to determine whether the own power and the power of the slave ear are greater than the preset power, and if so, the upgrade condition is satisfied, otherwise, the upgrade condition is not satisfied. It will be appreciated that determining whether an upgrade is to be performed by the parameter power is merely one specific implementation and is not representative of only this. When the requirements corresponding to the upgrading request are met, the master ear responds to the request, namely, the master ear sends upgrading-available information to the mobile terminal. After receiving the information, the mobile terminal downloads a 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 master ear may also authenticate the mobile terminal, for example, the mobile terminal needs to send a contracted verification code, and after the verification is passed, the upgrade package sent by the mobile terminal is received, otherwise, the upgrade package is not received.
In this embodiment, before the upgrade package is obtained, whether the current states of the master ear and the slave ear meet the upgrade condition is determined in advance, and only if yes, the upgrade is performed, so that the problem of interruption after the upgrade is started can be effectively prevented.
As shown in fig. 2, on the basis of the above embodiment, S104 specifically includes:
s1040: and acquiring corresponding data packets according to the mode of receiving n data packets in the upgrade packet in each round, wherein n is the bit number of the bitmap.
S1041: each time a packet is received, the corresponding bit position 1 will be received.
S1042: whether the present round has received n data packets is judged, if not, the process returns to S1043, and if yes, the process proceeds to S1043.
S1043: and judging whether the upgrade package is received completely, and if not, returning to S1040.
The upgrade package is usually larger, and is generally divided into a plurality of data packages for transmission, in a specific embodiment, n may be 8, that is, the bitmap is 8 bits, that is, 8 data packages are requested each time, each data package is 512 bytes, and the meaning of the bitmap indicates: 0 represents that the corresponding single packet fragment needs to be transmitted; 1 indicates that the corresponding single packet fragment does not need to be transmitted. For example, the first request data may send 00000000 representing 8 packets of data in succession. Since the data packet may have a problem of transmission failure during the transmission process, in order to overcome this problem, a timeout retransmission mechanism is adopted during the transmission process, that is, 8 data packets are not received within a preset time, the missing data packet is retransmitted (the data packet that has been transmitted is not retransmitted any more), for example, there is a packet loss during the transmission process, the 5 th, 7 th and 12 th packets are not received, retransmission is required, bitmaps are 11110101 (the 5 th and 7 th data packets are transmitted in the first round) and 11101111 (the 12 th data packet is transmitted in the second round), that is, in the first round, only the 5 th and 7 th data packets need to be transmitted, and in the second round, only the 12 th data packet needs to be transmitted. In one embodiment, the preset time in the timeout retransmission mechanism may be 2 seconds. In step S1043, whether the upgrade packet is received is determined by whether an end identifier is received, specifically, the mobile terminal adds the end identifier, which may be sent separately after the complete data packet is sent, or may be added to the last data packet.
In order to avoid the packet loss phenomenon, it is not generally adopted to receive a data packet and transmit the data packet to the master ear and the slave ear, but the received data packet is buffered, and as a preferred implementation manner, the upgrade packet is sent to the master ear and the slave ear through a transmission line so as to write the upgrade packet into the memory for upgrading, which is specifically: and after receiving the data packet corresponding to one round, transmitting 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 end identification to the master ear and the slave ear.
It can be understood that, in this embodiment, the end identifier is similar to the end identifier that is sent to the MCU by the mobile terminal and is used to characterize that the upgrade packet is sent, so the method for adding the end identifier is not limited either, and the end identifier may be sent separately after the complete packet is sent, or the end identifier may be added to the last packet.
Further, the method further comprises the following steps:
s13: an upgrade ready signal sent by the master ear and slave ear is received.
S14: and sending synchronous upgrade commands to the master ear and the slave ear.
The master ear and the slave ear can independently complete respective upgrades after obtaining the upgrade package, or can send upgrade ready signals to the MCU after writing data corresponding to the upgrade package into the memory, so as to characterize that the operations of writing into the memory are completed. It will be appreciated that, since the upgrade readiness signal is very small and the transmission is very fast, transmission may be performed using a transmission line or using a bluetooth module, i.e. the bluetooth module of the main ear sends the upgrade readiness signal to the bluetooth module in the headset and the bluetooth module of the main ear sends the upgrade readiness signal to the bluetooth module in the headset. For the MCU, when upgrade readiness signals of the master and slave ears are received, a synchronous upgrade command is transmitted to the master and slave ears, for example, restarting after 1 second. Similarly, the data volume of the synchronous upgrade command is also small, so that the synchronous upgrade command can be transmitted through a transmission line or a Bluetooth module.
In this embodiment, the master ear and the slave ear are controlled to synchronously upgrade, so that a fault occurring in an upgrade process can be effectively avoided, for example, after the master ear is successfully upgraded, a user is prompted to upgrade, but in fact, the slave ear fails, and data of an upgrade package is not written into a memory, so that the slave ear upgrade fails.
Further, after receiving the upgrade package, the method further comprises:
s15: the control communication module disconnects the communication with the mobile terminal.
Since the earphone head strip is mainly used in upgrading, long-time connection with the master ear and the slave ear and long-time communication with the mobile terminal are not needed. When disconnected, the master ear or slave ear may prompt the user to disconnect or the mobile terminal prompts the user to disconnect, and the user may disconnect the headset strip from the master ear and slave ear.
In order to make the technical solution provided by the present invention more clear for those skilled in the art, a specific application scenario is also provided herein for explanation, where the scenario involves a server, a mobile terminal, a master ear, an earphone head strip and a slave ear, and fig. 3 is a flowchart of a method for upgrading a TWS earphone in the application scenario provided by the 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 headset strip and sends an upgrading request to the headset strip.
S32: the earphone head strip receives an upgrade request of the mobile terminal, and judges whether the current states of the master ear and the slave ear meet upgrade conditions.
S33: if so, the headset strip sends an upgrade package acquisition request to the mobile terminal.
S34: the mobile terminal sends an upgrade package to the headset strip.
S35: the headset strip receives the upgrade package.
S36: the earphone head strip sends an upgrade package to the main ear through a transmission line.
S37: the headset strip transmits the upgrade package from the ear through the transmission line.
S38: 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 upgrade readiness information to the earphone head strip.
S41: after writing the upgrade package into the memory, upgrade readiness information is sent from the ear to the headset head.
S42: the earphone head strip sends a synchronous upgrade command to the main ear.
S43: the headset strip 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 is not limited herein.
Fig. 4 is a block diagram of an upgrade apparatus for a TWS headset according to an embodiment of the present invention. The device is applied to TWS earphone of master ear and slave ear that can be connected through earphone head strip, contains MCU, communication module and transmission line in the earphone head strip, as shown in FIG. 4, and the device includes:
a receiving module 10 for receiving an 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 ending marks to the master ear and the slave ear.
Preferably, the method further comprises:
an upgrade readiness signal receiving module for receiving upgrade readiness signals sent by the master ear and the slave ear;
and the synchronous upgrade command sending module is used for sending synchronous upgrade commands to the master ear and the slave ear.
Preferably, after receiving the upgrade package, the method further comprises:
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 embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
According to the TWS earphone upgrading device, the main ear and the mode of acquiring the upgrading package from the ear are achieved through the earphone head strip, and the TWS earphone upgrading device does not need to be mutually switched and then is in communication connection with the mobile terminal, so that a certain time is saved. In addition, for the TWS earphone, the upgrade of the master ear and the slave ear can be completed only by receiving the upgrade package of the mobile terminal once, so that the upgrade time is further saved.
The upgrade device of the TWS earphone is described from the perspective of a functional module, and further, the invention also provides an upgrade device of the TWS earphone, which is described from the perspective of hardware. Fig. 5 is a block 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 a computer program.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 21 may also comprise a main processor, which is a processor for processing data in an awake state, also called CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
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 a computer program 201, where the computer program, when loaded and executed by the processor 21, can implement the relevant steps of the method for upgrading a wireless headset disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may further include an operating system 202, data 203, and the like, where the storage manner may be transient storage or permanent storage. The operating system 202 may include Windows, unix, linux, among others. The data 203 may include, but is not limited to, corresponding data in an upgrade package, and the like.
In some embodiments, the upgrade apparatus 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 structure shown in fig. 5 is not limiting of the upgrade apparatus of the wireless headset and may include more or fewer components than shown.
According to the upgrading device of the TWS earphone, when the processor executes the computer program stored in the memory, the main ear and the auxiliary ear can be upgraded, in the method, the main ear and the auxiliary ear acquire an upgrading packet through the earphone head strip, and the main ear and the auxiliary ear do not need to be mutually switched and are in communication connection with the mobile terminal, so that a certain time is saved. In addition, for the TWS earphone, the upgrade of the master ear and the slave ear can be completed only by receiving the upgrade package of the mobile terminal once, so that the upgrade time is further saved.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution contributing to the prior art, or in a software product stored in a storage medium, performing all or part of the steps of the methods of the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, the embodiment of the invention also provides a TWS earphone, which comprises a master ear and a slave ear, and further comprises an earphone head strip used for connecting the master ear and the slave ear, wherein the earphone head strip comprises an MCU, a communication module and a transmission line, and the MCU is used for receiving an upgrade package sent by the 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.
Since the earphone head strip in the TWS earphone and the interaction between the earphone head strip and the mobile terminal, the master ear and the slave ear are described in detail above, the description of this embodiment is omitted.
The TWS earphone provided by the embodiment is connected with the master ear and the slave ear through the earphone head strip, and after the earphone head strip obtains the upgrade package from the mobile terminal, the upgrade package 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 mutually switched and then are in communication connection with the mobile terminal, so that a certain time is saved. In addition, for the TWS earphone, the upgrade of the master ear and the slave ear can be completed only by receiving the upgrade package of the mobile terminal once, so that the upgrade time is further saved.
The TWS earphone, the upgrading method and the upgrading device thereof provided by the invention are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (9)

1. The utility model provides an upgrade method of TWS earphone, its characterized in that is applied to the TWS earphone of master ear and slave ear that can connect through earphone head strip, including MCU, communication module and transmission line in the earphone head strip, earphone head strip can adopt detachable connected mode with master ear and slave ear connection, this method includes:
receiving an upgrade package sent by a mobile terminal through the communication module;
the upgrade package is sent to the master ear and the slave ear through the transmission line so as to be written into a memory for upgrading;
the receiving, by the communication module, the upgrade package sent by the mobile terminal specifically includes:
controlling the communication module to establish communication connection with the mobile terminal;
receiving an upgrade request of the mobile terminal;
after receiving an upgrading request, the headset strip judges whether the current states of the master ear and the slave ear meet upgrading conditions;
if yes, sending an upgrade package acquisition request to the mobile terminal;
and receiving the upgrade package sent by the mobile terminal.
2. The method for upgrading a TWS headset according to claim 1, wherein the receiving the upgrade package sent by the mobile terminal specifically includes:
acquiring corresponding data packets according to the mode of receiving n data packets in the upgrade packet in each round, wherein n is the bit number of the bitmap;
each time a corresponding bit position 1 is received for the data packet;
judging whether the current round receives n data packets;
if the round of receiving is not finished, returning to the step of acquiring the corresponding data packets according to the mode of receiving n data packets in the upgrade packet in each round;
if the round of receiving is finished, judging whether the upgrade package is received completely or not;
and if the upgrade package is not received completely, returning to the step of acquiring the corresponding data packages according to the mode of receiving n data packages in the upgrade package in each round.
3. The method for upgrading a TWS headset according to claim 2, wherein the step of transmitting 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 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.
4. The method for upgrading a TWS headset according to claim 2, further comprising, if the upgrade package is received,:
and sending an end identifier to the master ear and the slave ear.
5. The method for upgrading a TWS headset according to any one of claims 1-4, further comprising:
receiving upgrade readiness signals sent by the master ear and the slave ear;
and sending a synchronous upgrade command to the master ear and the slave ear.
6. The method of upgrading a TWS headset of claim 1, further comprising, after receiving the upgrade package:
and controlling the communication module to disconnect the communication connection with the mobile terminal.
7. The utility model provides an upgrade device of TWS earphone, its characterized in that is applied to the TWS earphone of master ear and slave ear that can connect through the earphone head strip, including MCU, communication module and transmission line in the earphone head strip, earphone head strip can adopt detachable connected mode with master ear with slave ear is connected, the device includes:
the receiving module is used for receiving the upgrade package sent by the mobile terminal through the communication module;
the transmission module is used for transmitting 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 receiving module is specifically configured to:
controlling the communication module to establish communication connection with the mobile terminal;
receiving an upgrade request of the mobile terminal;
after receiving an upgrading request, the headset strip judges whether the current states of the master ear and the slave ear meet upgrading conditions;
if yes, sending an upgrade package acquisition request to the mobile terminal;
and receiving the upgrade package sent by the mobile terminal.
8. An upgrade apparatus of a TWS headset, comprising a memory for storing a computer program;
processor for implementing the steps of the method for upgrading a TWS headset according to any one of claims 1 to 6 when executing said computer program.
9. The TWS earphone comprises a main ear and a slave ear, and is characterized by further comprising an earphone head strip used for connecting the main ear and the slave ear, wherein the earphone head strip comprises an MCU, a communication module and a transmission line, the earphone head strip can be connected with the main ear and the slave ear in a detachable connection mode, 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 main ear and the slave ear through the transmission line so as to write the upgrade package into a memory for upgrading; the receiving, by the communication module, the upgrade package sent by the mobile terminal specifically includes:
controlling the communication module to establish communication connection with the mobile terminal;
receiving an upgrade request of the mobile terminal;
after receiving an upgrading request, the headset strip judges whether the current states of the master ear and the slave ear meet upgrading conditions;
if yes, sending an upgrade package acquisition request to the mobile terminal;
and receiving the upgrade package sent by the mobile terminal.
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 CN110764806A (en) 2020-02-07
CN110764806B true 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)

Families Citing this family (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

Also Published As

Publication number Publication date
CN110764806A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN108600892B (en) Upgrading method and device, wireless headset, TWS headset and charging box
CN108429979B (en) Charging box upgrading method, charging box, wireless headset and TWS headset
CN110795127B (en) Wireless earphone and upgrading method and device thereof
US20210219041A1 (en) Voice data transmission method, wireless earphone and tws earphone
US20190150215A1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
US11368777B2 (en) Method and system for upgrading program of TWS headset, and TWS headset
WO2022161004A1 (en) Baud rate switching method and apparatus for uart communication, and initiator terminal
CN110764806B (en) TWS earphone and upgrading method and device thereof
CN112055349B (en) Wireless communication method and Bluetooth device
US20230224654A1 (en) Earphone debugging method and device, and storage medium
CN110719542B (en) TWS earphone, upgrading method and device thereof, and computer storage medium
CN112235404B (en) Method and equipment for silent upgrading of earphone and charging box
CN112437371B (en) BLE link switching method, equipment, earphone pair, chip and medium
CN111371695B (en) Service flow limiting method and device
US20220124435A1 (en) Earphone upgrade method, earphone assembly, upgrade device and non-transitory computer readable storage medium
KR102333306B1 (en) Data communication method and system, electronic device, chip and storage medium
CN111615030A (en) Upgrading method, device and medium for novel TWS earphone
CN112105005A (en) Method and device for controlling Bluetooth equipment to play
CN112925538B (en) Equipment updating method, system and device
CN112203170B (en) Upgrading method, device, medium and equipment of optical network unit
CN115967927A (en) Bluetooth connection method and device, earphone and storage medium
CN115175149A (en) Equipment adding method and device, bluetooth chip and equipment
CN105206292B (en) A kind of method and device for playing end and responding more control terminal controls
CN114245453B (en) Time synchronization method, device, TWS earphone, computer equipment and storage medium
WO2022237353A1 (en) Method, apparatus, and device for configuring earphones in earphone holding case, and program product

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