CN110366063A - A kind of upgrade method of wireless headset, device and charging box - Google Patents

A kind of upgrade method of wireless headset, device and charging box Download PDF

Info

Publication number
CN110366063A
CN110366063A CN201910684272.0A CN201910684272A CN110366063A CN 110366063 A CN110366063 A CN 110366063A CN 201910684272 A CN201910684272 A CN 201910684272A CN 110366063 A CN110366063 A CN 110366063A
Authority
CN
China
Prior art keywords
earphone
charging box
firmware updating
updating packet
firmware
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.)
Pending
Application number
CN201910684272.0A
Other languages
Chinese (zh)
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 CN201910684272.0A priority Critical patent/CN110366063A/en
Publication of CN110366063A publication Critical patent/CN110366063A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • H04R1/1025Accumulators or arrangements for charging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of upgrade methods of wireless headset, comprising: charging box obtains the earphone firmware updating packet that default terminal is sent;It obtains the earphone in earphone firmware updating packet and upgrades data, and using being connect with the wire communication between two wireless headsets, data are upgraded according to earphone, two wireless headsets are carried out while being upgraded;The present invention is connected using the wire communication between charging box and two wireless headsets, is made charging box that earphone firmware updating packet can be used and to two wireless headsets while being carried out firmware updating simultaneously, reduces the update time of wireless headset, the user experience is improved;And earphone firmware updating packet is stored in charging box, and the memory size for avoiding wireless headset influences upgrading, and the low memory that can solve wireless headset leads to not the problem of accommodating earphone firmware updating packet and then inconvenient upgraded version.In addition, the present invention also provides a kind of update device of wireless headset and charging boxes, equally there is above-mentioned beneficial effect.

Description

A kind of upgrade method of wireless headset, device and charging box
Technical field
The present invention relates to portable listening equipment technical field, in particular to a kind of upgrade method of wireless headset, device And charging box.
Background technique
Current earphone can be divided into wired earphone and wireless headset, and wherein wired earphone needs two earphones in left and right to pass through Wired connection type forms left and right acoustic channels, generates stereophonic effect, and it is inconvenient to wear.And wireless headset is then to pass through channel radio Letter agreement (such as bluetooth) is communicated with terminal, is had for wired earphone without tidying up data line, using just Prompt feature.Wherein most emerging really radio interconnected I tech clip S (TWS earphone) is exactly in wireless headset at present It is more typical a kind of, such as the wireless headset of TWS earphone, generally require to be equipped with one with storage, charging and display TWS earphone The charging box of status function.
In the prior art, earphone firmware updating packet is generally large (such as 1368K), in R&D process, when in wireless headset There is limit and when software version needs iteration, needs to dismantle earphone again, lead line is completed also to need group again after upgrading is good Earphone is filled, process is cumbersome.The upgrade method of existing TWS earphone is usually that earphone main first and mobile phone establish BT (bluetooth) connection Earphone firmware updating packet is obtained, main earphone completes upgrading;Then carrying out master-slave swap from earphone becomes main earphone and mobile phone foundation BT connection obtains earphone firmware updating packet, completes upgrading;Last Earphone box and new main earphone establish connection and obtain firmware updating Packet completes upgrading.In this way, upgrading a wireless headset every time, completed under Android system using SPP link (a kind of Bluetooth link) One time OTA (over the air) firmware updating needs 30 minutes or so, completes an OTA liter using SPP link under IOS system Grade firmware needs 60 minutes or so, so that the update time of two wireless headsets is too long, is unfavorable for user experience.
Therefore, how a kind of upgrade method of wireless headset is provided, reduces the update time of wireless headset, avoids nothing The low memory of line earphone leads to not the case where accommodating earphone firmware updating packet and then inconvenient upgraded version, promotes user's body It tests, is urgent problem now.
Summary of the invention
The object of the present invention is to provide a kind of upgrade method of wireless headset, device and charging boxes, to utilize charging box pair Two wireless headsets carry out while upgrading, and reduce the update time of wireless headset, avoid the memory size of wireless headset to upgrading It influences, promotes user experience.
In order to solve the above technical problems, the present invention provides a kind of upgrade method of wireless headset, comprising:
Charging box obtains the earphone firmware updating packet that default terminal is sent;
Obtain in the earphone firmware updating packet earphone upgrading data, and using with it is wired between two wireless headsets Communication connection upgrades data according to the earphone and two wireless headsets is carried out while being upgraded.
Optionally, this method further include:
Obtain the charging box firmware updating packet that the default terminal is sent;
Obtain in the charging box firmware updating packet charging box upgrading data, and according to the charging box upgrade data into Row upgrading.
Optionally, the charging box obtains the earphone firmware updating packet that default terminal is sent, comprising:
The current earphone version number of two wireless headsets is obtained, and sends described preset for current earphone version number Terminal;
It receives and stores the earphone firmware updating packet that the default terminal returns in earphone firmware working area;Wherein, The earphone firmware updating packet is the institute that the default terminal is sent when current earphone version number is not newest earphone version number State the corresponding earphone firmware updating packet of newest earphone version number.
Optionally, the current earphone version number for obtaining two wireless headsets, comprising:
Using the earphone version number of the current earphone firmware updating packet in earphone firmware backup area as current earphone version number;
It is corresponding, it is described using being connect with the wire communication between two wireless headsets, data are upgraded according to the earphone Two wireless headsets are carried out while being upgraded, comprising:
If two wireless headsets upgrade successfully, by the current earphone firmware updating in the earphone firmware backup area Packet is updated to the earphone firmware updating packet.
Optionally, the charging box obtains the earphone firmware updating packet that default terminal is sent, comprising:
The newest earphone version that the current earphone version number and the default terminal for obtaining two wireless headsets send Number;
Judge current earphone version number whether not for the newest earphone version number;
If so, sending request of data to the default terminal, receive and described default in the storage of earphone firmware working area The earphone firmware updating packet that terminal returns;Wherein, the earphone firmware updating packet is that the newest earphone version number is corresponding Earphone firmware updating packet.
Optionally, the charging box obtains the earphone firmware updating packet that default terminal is sent, comprising:
The upgrade status information of two wireless headsets is obtained, and sends described preset for the upgrade status information Terminal;
It receives and stores the earphone firmware updating packet that the default terminal returns in earphone firmware working area;Wherein, The earphone firmware updating packet is the ear that the default terminal is sent when the upgrade status information meets ears upgrade status Machine firmware updating packet.
Optionally, the upgrade status information includes: the respective information about power of two wireless headsets, the charging box Information about power, the status information in place of two wireless headsets and the box cover of the charging box are opened and closed shape in the charging box When state information, the reception and earphone firmware working area store the earphone firmware updating packet that the default terminal returns it Before, further includes:
The default terminal according to the information about power of two the wireless headset respective information about power and the charging box, Judge whether the electricity of two wireless headsets and the charging box is sufficient;
If so, judging whether the charging box closes lid according to the box cover open and-shut mode information;
If closing lid, according to the status information in place of two wireless headsets in the charging box, judge described in two Whether wireless headset is in the charging box;
If in the charging box, it is determined that the upgrade status information meets the ears upgrade status, and to institute It states charging box and sends the earphone firmware updating packet.
Optionally, before the earphone upgrading data obtained in the earphone firmware updating packet, further includes:
Obtain the upgrade status information of two wireless headsets;
Judge whether the upgrade status information meets ears upgrade status;
If so, executing the step of earphone obtained in the earphone firmware updating packet upgrades data.
The present invention also provides a kind of update devices of wireless headset, comprising:
Firmware obtains module, the earphone firmware updating packet sent for obtaining default terminal;
Ears upgraded module for obtaining the upgrading data of the earphone in the earphone firmware updating packet, and utilizes and two Wire communication connection between wireless headset upgrades data according to the earphone and two wireless headsets is carried out while being risen Grade.
In addition, the present invention also provides a kind of charging boxes, comprising:
Memory, for storing computer program;
Processor realizes the upgrading side of wireless headset as described in any one of the above embodiments when for executing the computer program The step of method.
A kind of upgrade method of wireless headset provided by the present invention utilizes having between charging box and two wireless headsets Line communication connection makes charging box that earphone firmware updating packet can be used and to two wireless headsets while carrying out firmware updating simultaneously, The update time of wireless headset is reduced, the user experience is improved;And earphone firmware updating packet is stored in charging box, is avoided The memory size of wireless headset influences upgrading, and the low memory that can solve wireless headset leads to not accommodate earphone upgrading The problem of firmware packet and then inconvenient upgraded version.In addition, the present invention also provides a kind of update device of wireless headset and filling Electric box equally has above-mentioned beneficial effect.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the upgrade method of wireless headset provided by the embodiment of the present invention;
Fig. 2 is the schematic illustration of the upgrade method of another kind wireless headset provided by the embodiment of the present invention;
Fig. 3 is a kind of hardware structural diagram of charging box provided by the embodiment of the present invention;
Fig. 4 is the flow chart of the upgrade method of another kind wireless headset provided by the embodiment of the present invention;
Fig. 5 is the flow diagram of the upgrade method of another kind wireless headset provided by the embodiment of the present invention;
Fig. 6 is a kind of structural block diagram of the update device of wireless headset provided by the embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Referring to FIG. 1, Fig. 1 is a kind of flow chart of the upgrade method of wireless headset provided by the embodiment of the present invention.It should Method may include:
Step 101: charging box obtains the earphone firmware updating packet that default terminal is sent.
Wherein, the default terminal in this step can be the terminal device that connect with charging box, as smart phone, computer and Wearable smart machine etc..Earphone firmware updating packet in this step can for for two wireless headsets in charging box into Firmware updating packet needed for row upgrading can be by designer's self-setting, such as the particular content of earphone firmware updating packet It can realize that the present embodiment does not do any limit to this using the same or similar mode of firmware updating packet with existing earphone System.
Specifically, the concrete mode for the earphone firmware updating packet that default terminal is sent is obtained for charging box in this step, That is the specific connection type of charging box and default terminal, can by designer's self-setting, as charging box can by with it is pre- If BT (bluetooth) connection between terminal receives earphone firmware updating packet, i.e., in charging box can with embedded with bluetooth chip, for Default terminal establishes BT connection;Charging box can also connect (such as USB connection) by the wire communication between default terminal and connect Earphone firmware updating packet is received to connect as USB interface can be set on charging box for establishing USB with default terminal.As long as charging The earphone firmware updating packet that the available default terminal of box is sent, the present embodiment do not do any restrictions to this.
It is corresponding, it is needed using the earphone firmware updating packet obtained in this step by charging box in this present embodiment to wired Two wireless headsets of communication connection carry out while upgrading, therefore charging box can store the earphone upgrading of acquisition admittedly in this step Part packet, in order to use later, as shown in Fig. 2, the earphone firmware updating packet obtained can be stored in earphone firmware working area.
It is understood that the purpose of this step can obtain needed for wireless headset upgrading for charging box from default terminal Earphone firmware updating packet.The detailed process for the earphone firmware updating packet that default terminal is sent is obtained for charging box in this step, Such as whether wireless headset can be judged by default terminal by designer according to usage scenario and user demand self-setting Need to upgrade, i.e., the current earphone version number of two wireless headsets that charging box can will acquire is sent to default terminal, with Default terminal determines current earphone version number not and is after newest earphone version number (i.e. wireless headset needs to upgrade), receives and in ear Machine firmware working area stores the corresponding earphone firmware updating packet of newest earphone version number that default terminal returns.It can also be by charging Box itself judges whether wireless headset needs to upgrade, i.e., the newest earphone version number that sends of the default terminal that will acquire of charging box and The current earphone version number of two wireless headsets is compared, and determines whether current earphone version number is newest earphone version number, I.e. whether wireless headset needs to upgrade;If so, sending the earphone firmware updating packet pair of newest earphone version number to default terminal The request of data answered receives and stores the earphone firmware updating packet that default terminal returns in earphone firmware working area.The present embodiment Any restrictions are not done to this.
Step 102: obtain earphone firmware updating packet in earphone upgrade data, and using between two wireless headsets Wire communication connection upgrades data according to earphone and two wireless headsets is carried out while being upgraded.
It is understood that the purpose of this step can directly use earphone firmware updating packet pair wired with it for charging box Two wireless headsets of communication connection carry out while upgrading, i.e., are connected by the wire communication between charging box and two wireless headsets It connects, data (earphone upgrading data) required for upgrading charging box by wireless headset in earphone firmware updating packet are sent to Wireless headset avoids wireless headset needs acquisition earphone upgrading data from the earphone firmware updating that itself is stored in the prior art The case where, directly using charging box as the external storage of wireless headset, so that two wireless headsets be made directly to deposit using charging box The earphone firmware updating packet of storage carries out while upgrading.
It is corresponding, the earphone upgrading data in earphone firmware updating packet are obtained for charging box in this step and utilize earphone The concrete mode that two wireless headsets that upgrading data connects wire communication carry out while upgrading, can use and the prior art Middle wireless headset is realized in such a way that the method that earphone firmware updating packet is upgraded is similar, as long as with charging box wire communication Connection two wireless headsets can directly be upgraded using the earphone firmware updating packet in charging box, the present embodiment to this not Do any restrictions.
Specifically, in the present embodiment in charging box the charge position of two wireless headsets can be respectively arranged to wirelessly Earphone carry out wire communication connection communication interface, make two wireless headsets be put into after charging box not only with the charging of charging box Mouth connection, also connect with the communication interface in charging box.It is corresponding, in the present embodiment, also it can be set in each wireless headset Corresponding communication interface, for being connect after being put into charging box with the communication interface of the charging box of place charge position.For this In step between charging box and two wireless headsets wire communication connection specific connection type, can by designer according to Practical scene and user demand self-setting, as shown in figure 3, can in charging box two wireless headsets (left earphone and auris dextras Machine) charge position be respectively arranged to realize wireless headset OTA upgrading UART (Universal Asynchronous Receiver/Transmitter, universal asynchronous receiving-transmitting transmitter) interface, it (is connect using the TX (transmission) and RX of UART interface Receive), serial communication is carried out with the wireless headset respectively connecting, realizes that charging box is the function that two wireless headsets upgrade simultaneously; Can also in charging box the charge position of wireless headset other communication interfaces are respectively set.As long as charging box can be with two Wireless headset carries out wire communication, and two wireless headsets are carried out while being upgraded using the earphone upgrading data of itself storage, this Embodiment does not do any restrictions to this.
It should be noted that the success rate for upgrading in order to guarantee wireless headset, in this step before can also include determining Whether two wireless headsets are completed the step of upgrading simultaneously, that is, determine that can charging box be completed while rise to two wireless headsets Grade.For determining whether two wireless headsets complete the concrete mode upgraded simultaneously, can such as be filled by designer's self-setting Electric box can be before receiving earphone firmware updating packet from default terminal, the upgrade status information for two wireless headsets that will acquire It is sent to default terminal, determines that upgrade status information meets ears upgrade status by default terminal, i.e., default terminal is according to upgrading Status information judges whether that the state (ears upgrade status) upgraded simultaneously can be completed in two wireless headsets;If so, Earphone firmware updating packet is sent to charging box.Charging box itself can also determine whether that two wireless headsets are completed while being risen Grade, i.e. the upgrade status information of available two wireless headsets of charging box, and judge whether upgrade status information meets ears Upgrade status;If so, receiving earphone firmware updating packet using from default terminal, two wireless headsets are carried out while being upgraded.
Corresponding, the particular content of the upgrade status information of two wireless headsets obtained for above-mentioned charging box can be with It by designer's self-setting, such as may include for determining whether charging box connect with two wireless headset wire communications Information, as the charge position of two wireless headsets in charging box is respectively arranged to connecting with each wireless headset wire communication When communication interface (such as UART reception), upgrade status information may include the state in place letter of two wireless headsets in charging box Breath;It also may include the information about power of charging box or charging box and two wireless headsets, to guarantee electricity or the charging of charging box The electricity of box and two wireless headsets can support two wireless headsets to complete while upgrade;It can also include for determining user Whether information using wireless headset is needed in certain time, as the charge position of two wireless headsets in charging box is respectively set When communication interface (such as UART reception) for connecting with each wireless headset wire communication, upgrade status information may include filling The box cover open and-shut mode information of electric box can determine user within a certain period of time in the closure state in the box cover of charging box It does not need using two wireless headsets in charging box, can carry out while upgrade for two wireless headsets.As long as default terminal And/or charging box can determine whether that the present embodiment does not do this any in ears upgrade status according to upgrade status information Limitation.
It is understood that the present embodiment is using the earphone firmware updating packet obtained with charging box to two wireless headsets The displaying carried out for (ears upgrading) is carried out while upgrading, charging box can also utilize the charging box firmware updating packet pair obtained Itself upgraded (charging kit upgrading), i.e., the present embodiment can also include the charging that the available default terminal of charging box is sent Kit upgrading firmware packet;It obtains the charging box in charging box firmware updating packet and upgrades data, and data are upgraded according to charging box and are carried out The step of upgrading.It is corresponding, charging box upgrades itself using charging box firmware updating packet, and is upgraded using earphone Firmware packet and charging box firmware updating packet are to two wireless headsets and itself are upgraded the specific side of (upgrading of charging box ears) Formula can realize that the present embodiment does not do any restrictions to this using mode similar with method provided by the present embodiment.
In the present embodiment, the embodiment of the present invention is connected using the wire communication between charging box and two wireless headsets, is made Charging box can be used earphone firmware updating packet and to two wireless headsets while carry out firmware updating simultaneously, reduce wireless headset Update time, the user experience is improved;And earphone firmware updating packet is stored in charging box, avoids the interior of wireless headset Depositing capacity influences upgrading, and the low memory that can solve wireless headset leads to not accommodate earphone firmware updating packet and then not side Just the problem of upgraded version.
Referring to FIG. 4, Fig. 4 is the flow chart of the upgrade method of another kind wireless headset provided by the embodiment of the present invention. This method may include:
Step 201: charging box obtains the upgrade status information of version number information and two wireless headsets, and version number is believed Breath and upgrade status information are sent to default terminal;Wherein, version number information includes the current earphone version of two wireless headsets Number and charging box current charging box version number.
It is understood that the purpose of this step can be believed for charging box by sending the version number obtained to default terminal Breath and upgrade status information allow default terminal to determine whether wireless headset and charging box need to upgrade and be able to carry out liter Grade, and corresponding firmware updating is sent to charging box when wireless headset and/or charging box need to upgrade and be able to carry out upgrading It wraps (earphone firmware updating packet and/or charging box firmware updating packet).
It is corresponding, it can also include default terminal version number information and upgrade status letter based on the received after this step Breath, determines whether charging box and two wireless headsets need the step of upgrading and being able to carry out upgrading.
Specifically, sending version number information and upgrade status information to for charging box in this step the tool of default terminal Body process, i.e., default terminal determine charging box and two according to the upgrade status information of version number information and two wireless headsets Whether wireless headset needs to upgrade and be able to carry out the detailed process of upgrading, can be by designer according to practical scene and user Demand self-setting, as charging box can after establishing connection (such as BT is connect) with default terminal, directly by version number information and Upgrade status information sends default terminal;It can also be after default terminal establishes connection, according to preset rules successively by version Number information and upgrade status information are sent to default terminal.Such as charging box and mobile phone (default terminal) are established after BT connect, it will It the firmware version number (current earphone version number and current charging box version number) of two wireless headsets and charging box and is sent to Cell phone application.Firstly, cell phone application detects whether the firmware version number that charging box is sent is newest version (newest earphone version Number);If not newest version, upgrade status information will be obtained from charging box, further identify whether to fill in electricity Foot and the state for closing lid (promotion condition);When meeting promotion condition, cell phone application intelligent recognition is charging box or earphone needs Upgraded;Only ears upgrading, charging kit upgrading and charging box and earphone is broadly divided into according to recognition result upgrading to require Upgrade (upgrading of charging box ears) three kinds of situations;Then, mobile phone by corresponding firmware updating packet (earphone firmware updating packet and/or Charging box firmware updating packet) it is sent to charging box, updating operation is carried out respectively according to three kinds of different situations.As long as default terminal can With the version number information and upgrade status information sent according to charging box, determine whether charging box and two wireless headsets need to rise Grade and it is able to carry out upgrading, and returns to corresponding firmware updating packet, the present embodiment does not do any restrictions to this.
As shown in figure 5, the APP in mobile phone (default terminal) can first receive the earphone of charging box transmission and consolidating for charging box Information about power in part version number (current earphone version number and current charging box version number) and upgrade status information, according to firmware Version number determines in charging box and wireless headset with the presence or absence of lower than current version of firmware number (newest charging box version in Cloud Server This number) firmware;When there is the firmware for being lower than current version of firmware number, according to information about power, the electricity in charging box is determined Or whether the electricity in charging box and two wireless headsets can be supported to upgrade;If supporting upgrading, upgrade status information is received In charging box box cover open and-shut mode information, determine whether charging box closes lid, i.e., user whether do not need in the short time using Wireless headset in charging box;Firmware (charging box and/or the wireless headset for needing to upgrade are determined according to firmware version number later In firmware);If desired the firmware upgraded is only the firmware in charging box, then confirms that current charging box version number is not newest fills Electricity He version number and upgrade status information meets charging box upgrade status sends charging box firmware to be upgraded (most to charging box The corresponding charging box firmware updating packet of new charging box version number).When including the firmware of wireless headset in the firmware if desired upgraded, The status information in place for receiving two wireless headsets in upgrade status information determines whether two wireless headsets are in place (in nothing Charge position in line earphone), i.e., whether two wireless headsets connect with the communication interface of charge position in charging box;Two When a wireless headset is in place, the firmware if desired upgraded is only the firmware in two wireless headsets, then confirms current earphone version This number for newest earphone version number and upgrade status information meets ears upgrade status, and it is to be upgraded to send earphone to charging box Firmware (newest earphone version number corresponding earphone firmware updating packet);It is two wireless headsets and charging in the firmware for needing to upgrade Firmware in box, then it is not newest charging box that current earphone version number, which is not newest earphone version number, current charging box version number, Version number and upgrade status information meet charging box ears upgrade status, send charging box to charging box and earphone is to be upgraded consolidates Part (the newest corresponding earphone firmware updating packet of earphone version number and the corresponding charging box firmware updating of newest charging box version number Packet).
It should be noted that obtaining the upgrade status of version number information and two wireless headsets for charging box in this step The concrete mode of information, can be by designer's self-setting, as shown in Figures 2 and 3, and the storage equipment in charging box can be set Charging box firmware storage areas and the two firmware storage areas of earphone firmware storage areas are set, each firmware storage areas includes that firmware is standby again Part area and firmware working area, firmware backup area is for storing the firmware updating packet after upgrading successfully, and firmware working area is for storing The firmware updating packet that the needs that default terminal is sent upgrade, i.e. charging box can be standby from earphone firmware backup area and charging box firmware Charging box and the current version number of two wireless headsets are determined in the firmware updating packet of part area storage;As firmware backup area only stores When one newest firmware updating packet upgraded successfully, charging box can be by the current earphone firmware updating in earphone firmware backup area The earphone version number of packet is as the current earphone version number in version number information, by the current charging in charging box firmware backup area The charging box version number of kit upgrading firmware packet is corresponding as the current charging box version number in version number information, charging box and/ Or after wireless headset upgrades successfully, the firmware updating packet in firmware backup area can be updated in corresponding firmware working area Firmware updating packet.As shown in figure 3, charging box can use each wireless headset charge position setting it is in place detect connect Mouth obtains the status information in place of two wireless headsets in upgrade status information, and directly receives upgrading shape by UART interface The information about power of two wireless headsets in state information.As long as the available version number information of charging box and upgrade status information, The present embodiment does not do any restrictions to this.
Step 202: receiving and store the earphone firmware updating packet that default terminal returns in earphone firmware working area;Wherein, Earphone firmware updating packet is that default terminal is not newest earphone version number in current earphone version number and upgrade status information meets The corresponding earphone firmware updating packet of newest earphone version number sent when ears upgrade status.
It is understood that this step can be newest earphone version determining current earphone version number not for default terminal Number and after upgrade status information meets ears upgrade status, charging box receives two wireless headsets that default terminal is sent and needs to rise The firmware updating packet (newest earphone version number corresponding earphone firmware updating packet) of grade.
Step 203: obtain earphone firmware updating packet in earphone upgrade data, and using between two wireless headsets Wire communication connection upgrades data according to earphone and two wireless headsets is carried out while being upgraded.
Wherein, the purpose of this step can directly use two that earphone firmware updating packet connects wire communication with charging box Wireless headset is upgraded.It, can be by designer's self-setting, as charging box can be first with filling for specific escalation process The electricity of each wireless headset is charged to default electricity by electrical interface, then stops charging, and utilizes the cable modem between wireless headset News connection, upgrades wireless headset using earphone firmware updating packet.
It is corresponding, it, can will be currently stored in earphone firmware backup area after two wireless headsets whiles upgrades successfully Earphone firmware updating packet is updated to the earphone firmware updating packet in earphone firmware working area;Upgrade while two wireless headsets and loses When losing, the currently stored earphone firmware updating packet that can use in earphone firmware backup area restores original firmware version.
Step 204: receiving and store the charging box firmware updating packet that default terminal returns in charging box firmware working area;Its In, it in current charging box version number is not newest charging box version number and upgrade status that charging box firmware updating packet, which is default terminal, Information meets the corresponding charging box firmware updating packet of newest charging box version number sent when charging box upgrade status.
It is understood that this step can not be newest charging box in the current charging box version number of determination for default terminal After version number and upgrade status information meet charging box upgrade status, charging box receives the charging box that default terminal is sent and needs to rise The firmware updating packet (newest charging box version number corresponding charging box firmware updating packet) of grade.
Step 205: obtain charging box firmware updating packet in charging box upgrade data, and according to charging box upgrade data into Row upgrading.
Wherein, the purpose of this step directly can upgrade itself using charging box firmware updating packet with charging box.It is right It answers, it, can be by the currently stored charging box firmware updating packet in charging box firmware backup area after the upgrading successfully of charging box The charging box firmware updating packet being updated in charging box firmware working area;When the kit upgrading that charges fails, it is solid to can use charging box Currently stored charging box firmware updating packet restores original firmware version in part backup area, guarantees the stability of product.
Step 206: receiving earphone firmware updating packet and charging box firmware updating packet that default terminal returns, and solid in earphone Part working area stores earphone firmware updating packet, stores charging box firmware updating packet in charging box firmware working area.
Wherein, it in current earphone version number is not most that earphone firmware updating packet and charging box firmware updating packet, which are default terminal, New earphone version number, current charging box version number is not newest charging box version number and upgrade status information meets charging box ears When upgrade status, the corresponding earphone firmware updating packet of newest earphone version number of transmission and newest charging box version number is corresponding fills Electric kit upgrading firmware packet.
That is, this step can for default terminal determine current earphone version number not and be newest earphone version number, Current charging box version number is not newest charging box version number and after upgrade status information meets charging box ears upgrade status, fills Electric box receives firmware updating packet (the newest earphone version number that the charging box that default terminal is sent and two wireless headsets need to upgrade The corresponding charging box firmware updating packet of corresponding earphone firmware updating packet and newest charging box version number).
Step 207: the earphone upgrading data in earphone firmware updating packet and the charging in charging box firmware updating packet respectively Kit upgrading data, and data are upgraded according to earphone and carry out two nothings that charging box is connected with wire communication with charging box upgrading data Upgrade while line earphone.
It is understood that this step is similar to step 203 and step 205, details are not described herein.
In the present embodiment, the embodiment of the present invention not only can use charging box to two wireless headsets while carry out firmware liter Grade, can also realize the firmware upgrade of the firmware upgrade and charging box and two wireless headsets of charging box itself simultaneously;And It carry out upgrading in the state that user is unconscious can automatically, can reduce upgrading failure rate, promote user satisfaction.
Referring to FIG. 6, Fig. 6 is a kind of structural block diagram of the update device of wireless headset provided by the embodiment of the present invention. The apparatus may include:
Firmware obtains module 10, the earphone firmware updating packet sent for obtaining default terminal;
Ears upgraded module 20 for obtaining the upgrading data of the earphone in earphone firmware updating packet, and utilizes and two nothings Wire communication connection between line earphone, upgrades data according to earphone and two wireless headsets is carried out while being upgraded.
Optionally, which can also include:
Charging box firmware obtains module, the charging box firmware updating packet sent for obtaining default terminal;
Charging box upgraded module, for obtaining the upgrading data of the charging box in charging box firmware updating packet, and according to charging Kit upgrading data are upgraded.
Optionally, firmware obtains module 10, may include:
Version number obtains sending submodule, for obtaining the current earphone version number of two wireless headsets, and will work as vestibule Machine version number is sent to default terminal;
First firmware receiving submodule, for receiving and storing the earphone liter that default terminal returns in earphone firmware working area Grade firmware packet;Wherein, earphone firmware updating packet is default terminal hair when current earphone version number is not newest earphone version number The corresponding earphone firmware updating packet of newest earphone version number sent.
Optionally, version number obtains sending submodule, may include:
Acquiring unit, for using the earphone version number of the current earphone firmware updating packet in earphone firmware backup area as working as Preceding earphone version number.
Corresponding, ears upgraded module 20 may include:
Submodule is updated, if upgrading successfully for two wireless headsets, by the current earphone in earphone firmware backup area Firmware updating packet is updated to earphone firmware updating packet.
Optionally, firmware obtains module 10, may include:
Version number obtains receiving submodule, for obtaining the current earphone version number and default terminal hair of two wireless headsets The newest earphone version number sent;
Judging submodule, for judging whether current earphone version number is not newest earphone version number;
Request receiving submodule then sends request of data to default terminal if not being used for newest earphone version number, receives And the earphone firmware updating packet that default terminal returns is stored in earphone firmware working area;Wherein, earphone firmware updating packet is newest The corresponding earphone firmware updating packet of earphone version number.
Optionally, firmware obtains module 10, comprising:
Upgrade status obtains sending submodule, for obtaining the upgrade status information of two wireless headsets, and will upgrade shape State information is sent to default terminal;
Second firmware receiving submodule, for receiving and storing the earphone liter that default terminal returns in earphone firmware working area Grade firmware packet;Wherein, earphone firmware updating packet is preset terminal and is sent when upgrade status information meets ears upgrade status Earphone firmware updating packet.
Optionally, which can also include:
Upgrade status obtains module, for obtaining the upgrade status information of two wireless headsets;
Judgment module, for judging whether upgrade status information meets ears upgrade status;If so, upgrading mould to ears Block 20 sends enabling signal.
In the present embodiment, the embodiment of the present invention is by ears upgraded module 20 using between charging box and two wireless headsets Wire communication connection, so that charging box earphone firmware updating packet can be used is upgraded simultaneously to two wireless headsets while carrying out and consolidate Part reduces the update time of wireless headset, and the user experience is improved;And earphone firmware updating packet is stored in charging box, The memory size for avoiding wireless headset influences upgrading, and the low memory that can solve wireless headset leads to not accommodate earphone The problem of firmware updating packet and then inconvenient upgraded version.
The embodiment of the invention also provides a kind of charging boxes, comprising: memory, for storing computer program;Processor, The step of upgrade method of the wireless headset as provided by above-mentioned any embodiment is realized when for executing computer program.
Wherein, two communication interfaces (UART interface in such as Fig. 3) can be set in the charging box in the present embodiment, makes to charge Box can establish wired connection with two wireless headsets simultaneously.As shown in figure 3, each UART interface (communication interface) can be set It, not only can be with charging when making the charge position in wireless headset mode charging box in the charge position of corresponding wireless headset Mouth connection can also be connect with UART interface.
In addition, the embodiment of the invention also provides a kind of TWS earphones, comprising: charging box provided by an embodiment as above With two wireless headsets.
Wherein, communication interface (such as UART interface) can be set in each wireless headset in TWS earphone, is used for and charging box In communication interface connection, realize that the wire communication of wireless headset and charging box connects.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment, fill For electric box and TWS earphone, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place Referring to method part illustration.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
Detailed Jie has been carried out to a kind of upgrade method of wireless headset provided by the present invention, device and charging box above It continues.Used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only It is to be used to help understand method and its core concept of the invention.It should be pointed out that for those skilled in the art For, it without departing from the principle of the present invention, can be with several improvements and modifications are made to the present invention, these improve and repair Decorations are also fallen within the protection scope of the claims of the present invention.

Claims (10)

1. a kind of upgrade method of wireless headset characterized by comprising
Charging box obtains the earphone firmware updating packet that default terminal is sent;
The earphone upgrading data in the earphone firmware updating packet are obtained, and are utilized and the wire communication between two wireless headsets Connection upgrades data according to the earphone and two wireless headsets is carried out while being upgraded.
2. the upgrade method of wireless headset according to claim 1, which is characterized in that further include:
Obtain the charging box firmware updating packet that the default terminal is sent;
The charging box upgrading data in the charging box firmware updating packet are obtained, and data are upgraded according to the charging box and are risen Grade.
3. the upgrade method of wireless headset according to claim 1, which is characterized in that the charging box obtains default terminal The earphone firmware updating packet of transmission, comprising:
The current earphone version number of two wireless headsets is obtained, and sends the default end for current earphone version number End;
It receives and stores the earphone firmware updating packet that the default terminal returns in earphone firmware working area;Wherein, described Earphone firmware updating packet be described in the default terminal is sent when current earphone version number is not newest earphone version number most The corresponding earphone firmware updating packet of new earphone version number.
4. the upgrade method of wireless headset according to claim 3, which is characterized in that two wireless ears of the acquisition The current earphone version number of machine, comprising:
Using the earphone version number of the current earphone firmware updating packet in earphone firmware backup area as current earphone version number;
It is corresponding, it is described using being connect with the wire communication between two wireless headsets, data are upgraded to two according to the earphone A wireless headset carries out while upgrading, comprising:
If two wireless headsets upgrade successfully, more by the current earphone firmware updating packet in the earphone firmware backup area It is newly the earphone firmware updating packet.
5. the upgrade method of wireless headset according to claim 1, which is characterized in that the charging box obtains default terminal The earphone firmware updating packet of transmission, comprising:
The newest earphone version number that the current earphone version number and the default terminal for obtaining two wireless headsets send;
Judge current earphone version number whether not for the newest earphone version number;
If so, sending request of data to the default terminal, receiving and storing the default terminal in earphone firmware working area The earphone firmware updating packet returned;Wherein, the earphone firmware updating packet is the corresponding ear of the newest earphone version number Machine firmware updating packet.
6. the upgrade method of wireless headset according to any one of claims 1 to 5, which is characterized in that the charging box obtains The earphone firmware updating packet for taking default terminal to send, comprising:
The upgrade status information of two wireless headsets is obtained, and sends the default end for the upgrade status information End;
It receives and stores the earphone firmware updating packet that the default terminal returns in earphone firmware working area;Wherein, described Earphone firmware updating packet is the earphone liter that the default terminal is sent when the upgrade status information meets ears upgrade status Grade firmware packet.
7. the upgrade method of wireless headset according to claim 6, which is characterized in that the upgrade status information includes: The respective information about power of two wireless headsets, the information about power of the charging box, in the charging box two it is described wireless When the status information in place of earphone and the box cover open and-shut mode information of the charging box, the reception and in earphone firmware working area Before the earphone firmware updating packet for storing the default terminal return, further includes:
Information about power of the default terminal according to two the wireless headset respective information about power and the charging box, judgement Whether the electricity of two wireless headsets and the charging box is sufficient;
If so, judging whether the charging box closes lid according to the box cover open and-shut mode information;
If closing lid, according to the status information in place of two wireless headsets in the charging box, judge two it is described wirelessly Whether earphone is in the charging box;
If in the charging box, it is determined that the upgrade status information meets the ears upgrade status, and fills to described Electric box sends the earphone firmware updating packet.
8. the upgrade method of wireless headset according to any one of claims 1 to 5, which is characterized in that described in the acquisition Before earphone upgrading data in earphone firmware updating packet, further includes:
Obtain the upgrade status information of two wireless headsets;
Judge whether the upgrade status information meets ears upgrade status;
If so, executing the step of earphone obtained in the earphone firmware updating packet upgrades data.
9. a kind of update device of wireless headset characterized by comprising
Firmware obtains module, the earphone firmware updating packet sent for obtaining default terminal;
Ears upgraded module for obtaining the upgrading data of the earphone in the earphone firmware updating packet, and is utilized with two wirelessly Wire communication connection between earphone upgrades data according to the earphone and two wireless headsets is carried out while being upgraded.
10. a kind of charging box characterized by comprising
Memory, for storing computer program;
Processor realizes the wireless ear as described in any one of claim 1 to 6 and 8 when for executing the computer program The step of upgrade method of machine.
CN201910684272.0A 2019-07-26 2019-07-26 A kind of upgrade method of wireless headset, device and charging box Pending CN110366063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910684272.0A CN110366063A (en) 2019-07-26 2019-07-26 A kind of upgrade method of wireless headset, device and charging box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910684272.0A CN110366063A (en) 2019-07-26 2019-07-26 A kind of upgrade method of wireless headset, device and charging box

Publications (1)

Publication Number Publication Date
CN110366063A true CN110366063A (en) 2019-10-22

Family

ID=68222002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910684272.0A Pending CN110366063A (en) 2019-07-26 2019-07-26 A kind of upgrade method of wireless headset, device and charging box

Country Status (1)

Country Link
CN (1) CN110366063A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795127A (en) * 2019-10-29 2020-02-14 歌尔科技有限公司 Wireless earphone and upgrading method and device thereof
CN110830973A (en) * 2020-01-09 2020-02-21 易兆微电子(杭州)有限公司 Method for transmitting audio information by using wireless earphone
CN111556117A (en) * 2020-04-22 2020-08-18 歌尔科技有限公司 Earphone upgrading method and device, earphone control method, earphone set and storage medium
CN112104028A (en) * 2020-09-10 2020-12-18 歌尔科技有限公司 Charging device, electric quantity correction method of wireless earphone and readable storage medium
CN112118503A (en) * 2020-09-14 2020-12-22 歌尔科技有限公司 Earphone upgrading method, earphone charging box, earphone and storage medium
CN112181460A (en) * 2020-09-27 2021-01-05 深圳市豪恩声学股份有限公司 Program firmware upgrading method and device, electronic equipment and storage medium
CN112235404A (en) * 2020-10-14 2021-01-15 歌尔科技有限公司 Silent upgrade method and equipment for earphone and charging box
CN112230960A (en) * 2020-10-16 2021-01-15 广州极飞科技有限公司 Firmware upgrading method and device, intelligent battery and storage medium
CN113010202A (en) * 2021-04-27 2021-06-22 歌尔股份有限公司 Data upgrading method, data upgrading device and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107634859A (en) * 2017-09-30 2018-01-26 飞天诚信科技股份有限公司 A kind of firmware upgrade method and device
CN108804124A (en) * 2018-06-15 2018-11-13 歌尔科技有限公司 A kind of TWS earphones, charging box and its upgrade method, storage medium
CN108874421A (en) * 2018-06-15 2018-11-23 歌尔科技有限公司 A kind of TWS earphone and its upgrade method, device, storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107634859A (en) * 2017-09-30 2018-01-26 飞天诚信科技股份有限公司 A kind of firmware upgrade method and device
CN108804124A (en) * 2018-06-15 2018-11-13 歌尔科技有限公司 A kind of TWS earphones, charging box and its upgrade method, storage medium
CN108874421A (en) * 2018-06-15 2018-11-23 歌尔科技有限公司 A kind of TWS earphone and its upgrade method, device, storage medium

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795127A (en) * 2019-10-29 2020-02-14 歌尔科技有限公司 Wireless earphone and upgrading method and device thereof
CN110795127B (en) * 2019-10-29 2023-09-22 歌尔科技有限公司 Wireless earphone and upgrading method and device thereof
CN110830973A (en) * 2020-01-09 2020-02-21 易兆微电子(杭州)有限公司 Method for transmitting audio information by using wireless earphone
CN111556117A (en) * 2020-04-22 2020-08-18 歌尔科技有限公司 Earphone upgrading method and device, earphone control method, earphone set and storage medium
WO2021212798A1 (en) * 2020-04-22 2021-10-28 歌尔股份有限公司 Earphone upgrade method, device, earphone control method, earphone set, and storage medium
CN112104028A (en) * 2020-09-10 2020-12-18 歌尔科技有限公司 Charging device, electric quantity correction method of wireless earphone and readable storage medium
CN112118503A (en) * 2020-09-14 2020-12-22 歌尔科技有限公司 Earphone upgrading method, earphone charging box, earphone and storage medium
CN112181460A (en) * 2020-09-27 2021-01-05 深圳市豪恩声学股份有限公司 Program firmware upgrading method and device, electronic equipment and storage medium
CN112181460B (en) * 2020-09-27 2024-01-16 深圳市豪恩声学股份有限公司 Program firmware upgrading method and device, electronic equipment and storage medium
CN112235404A (en) * 2020-10-14 2021-01-15 歌尔科技有限公司 Silent upgrade method and equipment for earphone and charging box
CN112230960A (en) * 2020-10-16 2021-01-15 广州极飞科技有限公司 Firmware upgrading method and device, intelligent battery and storage medium
CN113010202A (en) * 2021-04-27 2021-06-22 歌尔股份有限公司 Data upgrading method, data upgrading device and readable storage medium

Similar Documents

Publication Publication Date Title
CN110366063A (en) A kind of upgrade method of wireless headset, device and charging box
CN108769856A (en) A kind of method, apparatus, wireless headset and charging box for establishing single line connection
CN108429979B (en) Charging box upgrading method, charging box, wireless headset and TWS headset
CN108718467A (en) A kind of transmission method of voice data, wireless headset and TWS earphones
CN109491691A (en) A kind of TWS earphone and its upgrade method, device, medium
EP3367582A1 (en) Data processing method, charging device and mobile terminal
CN108696784A (en) A kind of method of wireless headset role switching, wireless headset and TWS earphones
CN108882211B (en) Method and system for upgrading TWS earphone program and TWS earphone
CN108600892A (en) A kind of upgrade method, device, wireless headset, TWS earphones and charging box
CN110166877A (en) A kind of audio frequency playing method, device and the charging box of TWS earphone
CN108449746A (en) A kind of method that establishing BT connections, wireless headset and TWS earphones
CN109150294A (en) A kind of means of communication, wireless headset and charging box
CN108810741A (en) A kind of method, apparatus and wireless headset of double wireless headset connections
KR101653499B1 (en) mobile phone case for charging wireless ear phones
CN109547897A (en) A kind of method, apparatus, system and the wireless headset box of wireless headset connection
CN109218889A (en) A kind of means of communication, system, wireless headset and charging box
WO2022161004A1 (en) Baud rate switching method and apparatus for uart communication, and initiator terminal
CN109768596B (en) Electric quantity display method, earphone charging device and earphone
CN110830868A (en) System and method for controlling earphone through charging bin
CN103164240A (en) Firmware upgrade function for deskphone electronic protocol converter
CN108810696A (en) A kind of electric quantity reminding method, TWS earphones and earphone charging equipment
CN108810697A (en) A kind of method, apparatus and wireless headset of wireless headset pairing
CN106416196A (en) Mobile terminal, power adapter and updating method thereof
CN209419856U (en) A kind of and the matching used terminal of wireless headset and TWS equipment
CN109275058B (en) Dual mode earphone system, bluetooth device and cable

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191022