CN109491691A - A kind of TWS earphone and its upgrade method, device, medium - Google Patents

A kind of TWS earphone and its upgrade method, device, medium Download PDF

Info

Publication number
CN109491691A
CN109491691A CN201811457766.7A CN201811457766A CN109491691A CN 109491691 A CN109491691 A CN 109491691A CN 201811457766 A CN201811457766 A CN 201811457766A CN 109491691 A CN109491691 A CN 109491691A
Authority
CN
China
Prior art keywords
ota
request
tws earphone
upgrade package
ota upgrade
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
CN201811457766.7A
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 CN201811457766.7A priority Critical patent/CN109491691A/en
Publication of CN109491691A publication Critical patent/CN109491691A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

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

Abstract

This application discloses a kind of TWS earphone and its upgrade method, device, media, it is related to ear phone technology field, for solving the problems, such as that bluetooth connection stability and endpoint existing for traditional escalation process resume, wherein, TWS earphone has been internally integrated the first bluetooth communication agreement for receiving audio data, and is also integrated with the second bluetooth communication agreement;This programme includes: the communication link established between default terminal by the second bluetooth communication agreement;OTA upgrade request is sent to the default terminal by the communication link;Obtain the OTA upgrade package corresponding with the OTA upgrade request that the default terminal is transmitted by the communication link;It is finished when all OTA upgrade package in OTA firmware updating obtain, then completes updating operation using the OTA firmware updating.The application is able to ascend the stability of earphone bluetooth connection, and is conducive to promote breakpoint transmission function.

Description

A kind of TWS earphone and its upgrade method, device, medium
Technical field
This application involves ear phone technology field, in particular to a kind of TWS earphone and its upgrade method, device, medium.
Background technique
TWS (i.e. True Wireless Stereo, true wireless stereo) earphone is as convenient to wear and can be independent The earphone used, the increasingly favor by consumer masses, have a vast market foreground.
In TWS earphone, other than needing to integrate necessary physical device, it is also necessary to which installation is for driving above-mentioned physics The firmware program of device.TWS earphone can be provided normally by the cooperation between physical device and firmware program for consumer Use function.
However, it is not complete enough due to the limited of development time or to the understanding of physical device, so that a TWS earphone Firmware development personnel are difficult to accomplish disposably develop a perfect firmware for being most suitable for this TWS earphone.Very much In the case of, it requires after the firmware that TWS earphone installs a certain version, by firmware development personnel according to subsequent TWS earphone Actual use situation further appreciate that the firmware of current version there is also some loopholes, mistake or between physical device Incompatible place, then develop new one edition firmware, so as to using new version firmware to the legacy version in TWS earphone Firmware is upgraded.
Currently, TWS earphone escalation process specifically includes that mobile phone carries out bluetooth company with the first headphone unit as main earphone After connecing, when mobile phones enquiring to new version firmware, firmware actively can be handed down to the first headphone unit, then mobile phone disconnects and the The bluetooth connection of one headphone unit, and control the first headphone unit and the second headphone unit and carry out master-slave swap, then mobile phone with Second headphone unit carries out bluetooth connection, and firmware is handed down to the second headphone unit, finally when two headphone units receive To after corresponding firmware, carries out firmware upgrade and restart.Also, in the prior art, the audio data between mobile phone and earphone and The transmission of firmware updating is all based on same bluetooth communication agreement, such as spp Bluetooth protocol or rfcom Bluetooth protocol.
Wherein, there are following some problems for above-mentioned firmware upgrade process:
In TWS earphone firmware upgrade process, two headphone units will do it master-slave swap, at this time will short interruption TWS The bluetooth communication of the terminals such as earphone and mobile phone is connect, to affect the stability of earphone bluetooth connection;In addition, mobile phones enquiring arrives After new firmware version, firmware actively can be handed down to earphone, at this time controlling the initiative that firmware issues is by mobile phone control , it, will if the state of this headphone unit switches during mobile phone issues firmware updating to some headphone unit Upgrading failure can be easily lead to, breakpoint transmission function is affected.
Summary of the invention
In view of this, the application's is designed to provide a kind of TWS earphone and its upgrade method, device, medium, Neng Gou During two headphone units carry out master-slave swap, the bluetooth communication between avoidance breakout TWS earphone and default terminal is connected, The stability of earphone bluetooth connection is improved, and is conducive to promote breakpoint transmission function.Its concrete scheme is as follows:
In a first aspect, being applied to TWS earphone, wherein the TWS ear this application discloses a kind of TWS earphone upgrade method Machine has been internally integrated the first bluetooth communication agreement for receiving audio data, and is also integrated with the second bluetooth communication agreement; The described method includes:
The communication link between default terminal is established by the second bluetooth communication agreement;
OTA upgrade request is sent to the default terminal by the communication link;
Obtain OTA corresponding with the OTA upgrade request upgrading that the default terminal is transmitted by the communication link Packet;
It is finished when all OTA upgrade package in OTA firmware updating obtain, then completes to rise using the OTA firmware updating Grade operation.
Optionally, the second bluetooth communication agreement is BLE GATT agreement.
It is optionally, described that OTA upgrade request is sent to the default terminal by the communication link, comprising:
Determine the OTA upgrade package for currently needing to request;
According to the current OTA upgrade package for needing to request, phase is sent to the default terminal by the communication link The OTA upgrade request answered.
Optionally, the OTA upgrade package that the determination currently needs to request, comprising:
According to default upgrade package number parameter, from the also not requested OTA upgrade package of the OTA firmware updating, really Make the OTA upgrade package that the OTA upgrade package of respective numbers needs to request as epicycle.
Optionally, the TWS earphone upgrade method, further includes:
During every wheel obtains OTA upgrade package, if there is packet loss, corresponding packet loss information is recorded;
Correspondingly, the OTA upgrade package that the determination currently needs to request, further includes:
OTA upgrade package corresponding with the packet loss information is determined as the OTA upgrade package for currently needing to request.
Optionally, described according to the current OTA upgrade package for needing to request, it is preset by the communication link to described Terminal sends corresponding OTA upgrade request, comprising:
By Bitmap record for characterizing the information of the current OTA upgrade package for needing to request;
Generate the OTA upgrade request including the Bitmap;
The OTA upgrade request is sent to the default terminal by the communication link.
Second aspect, this application discloses a kind of TWS earphone upgrade methods, are applied to terminal device, wherein the terminal Equipment has been internally integrated the first bluetooth communication agreement for sending audio data, and is also integrated with the second bluetooth communication association View;The described method includes:
The communication link between the TWS earphone is established by the second bluetooth communication agreement;
The OTA upgrade request that the TWS earphone is sent is obtained by the communication link;
Obtain OTA upgrade package corresponding with the OTA upgrade request;
The OTA upgrade package is sent to the TWS earphone by the communication link, so that the TWS earphone is obtaining All OTA upgrade package got in OTA firmware updating complete updating operation using the OTA firmware updating later.
The third aspect, this application discloses a kind of TWS earphone update devices, are applied to TWS earphone, wherein the TWS ear Machine has been internally integrated the first bluetooth communication agreement for receiving audio data, and is also integrated with the second bluetooth communication agreement; Described device includes:
Link establishment module, for establishing the communication link between default terminal by the second bluetooth communication agreement Road;
Request sending module, for sending OTA upgrade request to the default terminal by the communication link;
Upgrade package obtains module, being transmitted by the communication link with the OTA liter for obtaining the default terminal Grade requests corresponding OTA upgrade package;
Upgraded module then utilizes the OTA liter for finishing when all OTA upgrade package in OTA firmware updating obtain Grade firmware completes updating operation.
Fourth aspect, this application discloses a kind of TWS earphone update devices, are applied to terminal device, wherein the terminal Equipment has been internally integrated the first bluetooth communication agreement for sending audio data, and is also integrated with the second bluetooth communication association View;Described device includes:
Link establishment module, for establishing the communication between the TWS earphone by the second bluetooth communication agreement Link;
Request module, for obtaining the OTA upgrade request that the TWS earphone is sent by the communication link;
Upgrade package obtains module, for obtaining OTA upgrade package corresponding with the OTA upgrade request;
Upgrade package sending module, for the OTA upgrade package to be sent to the TWS earphone by the communication link, So that the TWS earphone is complete using the OTA firmware updating after getting all OTA upgrade package in OTA firmware updating At updating operation.
5th aspect, this application discloses a kind of TWS earphones, comprising:
Memory, for saving computer program;
Processor, for executing the computer program, to realize aforementioned disclosed TWS earphone upgrade method.
6th aspect, this application discloses a kind of computer readable storage mediums, for saving computer program, wherein The computer program realizes aforementioned disclosed TWS earphone upgrade method when being executed by processor.
As it can be seen that be integrated with two kinds of bluetooth communication agreements in the TWS earphone of the application, i.e. the first bluetooth communication agreement and second Bluetooth communication agreement, for receiving audio data, the second bluetooth communication agreement is then used to assist to complete the first bluetooth communication agreement Earphone upgrading, can make in this way in TWS earphone escalation process, when two headphone units carry out master-slave swap, TWS earphone Still the bluetooth communication between default terminal can be kept to connect by the first bluetooth communication agreement, to avoid cutting in principal and subordinate There is a situation where bluetooth communication disconnectings during changing, and improve the stability of earphone bluetooth connection, ensure that audio data The continuity of transmission process.In addition, the application is actively to send OTA upgrade request to default terminal from TWS earphone, compared to Actively issue the situation of firmware to TWS earphone from mobile phone in the prior art, the application can neatly be controlled default by TWS earphone Terminal issues the opportunity of OTA upgrade package, that is, the initiative for issuing the time for controlling OTA upgrade package in the application is by TWS ear Machine control, it is more advantageous to promotion breakpoint transmission function in this way.To sum up, the application can be cut in two headphone units progress principals and subordinates During changing, the bluetooth communication between avoidance breakout TWS earphone and default terminal is connected, and improves the steady of earphone bluetooth connection It is qualitative, and be conducive to promote breakpoint transmission function.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, 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 application 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 TWS earphone upgrade method flow chart disclosed in the present application;
Fig. 2 is a kind of specific TWS earphone upgrade method flow chart disclosed in the present application;
Fig. 3 is a kind of specific TWS earphone upgrade method flow chart disclosed in the present application;
Fig. 4 is that OTA disclosed in the present application upgrades data form schematic diagram;
Fig. 5 is the corresponding data format schematic diagram of Bitmap mechanism disclosed in the present application;
Fig. 6 is a kind of specific TWS earphone upgrade method flow chart disclosed in the present application;
Fig. 7 is a kind of specific TWS earphone upgrade method sub-process figure disclosed in the present application;
Fig. 8 is a kind of TWS earphone upgrade method flow chart of terminal equipment side disclosed in the present application;
Fig. 9 is a kind of TWS earphone upgrade method flow chart of specific terminal equipment side disclosed in the present application;
Figure 10 is a kind of TWS earphone update device structural schematic diagram disclosed in the present application;
Figure 11 is another kind TWS earphone update device structural schematic diagram disclosed in the present application;
Figure 12 is a kind of TWS Headphone structure figure.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
In the prior art, in TWS earphone firmware upgrade, two headphone units will do it master-slave swap, at this time will be short The bluetooth communication for temporarily interrupting the terminals such as TWS earphone and mobile phone is connect, to affect the stability of earphone bluetooth connection;In addition, After mobile phones enquiring to new firmware version, firmware actively can be handed down to earphone, at this time controlling the initiative that firmware issues is By mobile phone control, during mobile phone issues firmware updating to some headphone unit, if the state of this headphone unit It switches, it will easily lead to upgrading failure, affect breakpoint transmission function.For this purpose, the application accordingly provides one Kind of TWS earphone upgrading scheme, can be during two headphone units carry out master-slave swap, avoidance breakout TWS earphone and pre- If the bluetooth communication between terminal connects, the stability of earphone bluetooth connection is improved, and is conducive to promote breakpoint transmission function.
Shown in Figure 1, the embodiment of the present application discloses a kind of TWS earphone upgrade method, is applied to TWS earphone, wherein The TWS earphone has been internally integrated the first bluetooth communication agreement for receiving audio data, and is also integrated with the second bluetooth Communications protocol;The described method includes:
Step S11: the communication link between default terminal is established by the second bluetooth communication agreement.
In the present embodiment, TWS earphone is specifically to obtain what default terminal was sent based on the first bluetooth communication agreement Audio data, and the OTA firmware updating packet that default terminal is sent is obtained based on the second bluetooth communication agreement.In order to reduce Power consumption in earphone escalation process, the second bluetooth communication agreement can use BLE GATT (BLE, i.e. Bluetooth Low Energy;GATT, i.e. Generic Attribute Profile) agreement.In addition, the first bluetooth communication agreement include but It is not limited to spp Bluetooth protocol and rfcom Bluetooth protocol.
In addition, can be specifically based in the present embodiment, between the first headphone unit and the second headphone unit of TWS earphone upper The first bluetooth communication agreement is stated to carry out wireless blue tooth communication.It is understood that when the first headphone unit and the second earphone list After member establishes bluetooth connection by above-mentioned first bluetooth communication agreement, synchronizing information operation between the two can be carried out, such as Carry out electricity, firmware version, in charging box the information such as state in which synchronization.
In the present embodiment, the default terminal includes but is not limited to mobile phone, tablet computer, wearable device, desk-top calculating Machine etc..
Step S12: OTA upgrade request is sent to the default terminal by the communication link.
In the present embodiment, from TWS earphone actively by the communication link built based on the second bluetooth communication agreement to Default terminal sends OTA upgrade request, issues OTA upgrade package to be conducive to TWS earphone and can neatly control default terminal Opportunity, it is seen then that in the application control OTA upgrade package the initiative for issuing the time be more to be had in this way by TWS earphone control Conducive to promotion breakpoint transmission function.
Step S13: the acquisition default terminal is transmitted corresponding with the OTA upgrade request by the communication link OTA upgrade package.
It should be pointed out that being in an OTA firmware updating in the present embodiment includes more parts of OTA upgrade package.As it can be seen that When carrying out data transmission, the present embodiment is not to carry out data transmission for a complete OTA firmware updating, but be directed to OTA upgrade package carries out data transmission, and in this way when accidental interruption or packet loss event occurs, can not receive also for those OTA upgrade package initiate request, without for entire OTA firmware updating initiate request, improve efficiency of transmission.
In a specific embodiment, default terminal can receive TWS earphone transmission OTA upgrade request it Afterwards, it just obtains corresponding OTA upgrade package in real time from server, and is transmitted to TWS earphone.
In another embodiment specific implementation mode, default terminal can download entire OTA firmware updating from server in advance, Then it after the OTA upgrade request for getting the transmission of TWS earphone, is just extracted from the above-mentioned OTA firmware updating downloaded in advance Corresponding OTA upgrade package out, and it is sent to TWS earphone.
Step S14: finishing when all OTA upgrade package in OTA firmware updating obtain, then is upgraded using the OTA solid Part completes updating operation.
In the present embodiment, it specifically can be and first passed through by the first headphone unit in TWS earphone based on second bluetooth The communication link that communications protocol is built obtains all OTA upgrade package in corresponding OTA firmware updating, is then carrying out master-slave swap And then corresponding OTA is obtained by the communication link based on the second bluetooth communication agreement by the second headphone unit and is upgraded admittedly All OTA upgrade package in part are finished when all OTA upgrade package of the first headphone unit and the second headphone unit obtain, the One headphone unit and the second headphone unit enter synchronous regime, and carry out reboot and restart upgrading.
As it can be seen that two kinds of bluetooth communication agreements are integrated in the TWS earphone of the embodiment of the present application, i.e. the first bluetooth communication agreement With the second bluetooth communication agreement, for receiving audio data, the second bluetooth communication agreement is then used to assist the first bluetooth communication agreement It helps and completes earphone upgrading, can make in TWS earphone escalation process in this way, when two headphone units carry out master-slave swap, TWS earphone still can keep the bluetooth communication between default terminal to connect by the first bluetooth communication agreement, to avoid There is a situation where bluetooth communication disconnectings during master-slave swap, improve the stability of earphone bluetooth connection, ensure that The continuity of audio data transmission process.In addition, the embodiment of the present application is actively to send OTA liter to default terminal from TWS earphone Grade request, compared with the prior art in the situation of firmware is actively issued to TWS earphone from mobile phone, the application can be by TWS ear Machine neatly controls the opportunity that default terminal issues OTA upgrade package, that is, control OTA upgrade package in the application issues the time Initiative be that promotion breakpoint transmission function is more advantageous to by TWS earphone control in this way.To sum up, the embodiment of the present application can During two headphone units carry out master-slave swap, the bluetooth communication between avoidance breakout TWS earphone and default terminal connects It connects, improves the stability of earphone bluetooth connection, and be conducive to promote breakpoint transmission function.
Shown in Figure 2, the embodiment of the present application discloses a kind of specific TWS earphone upgrade method, is applied to TWS ear Machine, comprising:
Step S21: the communication link between default terminal is established by the second bluetooth communication agreement.
Step S22: the OTA upgrade package for currently needing to request is determined.
In the present embodiment, the OTA upgrade package that the determination currently needs to request be can specifically include:
According to default upgrade package number parameter, from the also not requested OTA upgrade package of the OTA firmware updating, really Make the OTA upgrade package that the OTA upgrade package of respective numbers needs to request as epicycle.
That is, any headphone unit of TWS earphone is into default terminal request OTA firmware updating in the present embodiment When OTA upgrade package, take turns can be initiated more and requested, and the quantity of every OTA upgrade package for taking turns request and the default bag data that upgrades are joined Number is consistent.For example, it is assumed that default upgrade package number parameter is 16, then every wheel by in OTA firmware updating also not 16 OTA upgrade package being requested initiate request.
Further, in order to avoid occurring leading to not the case where being upgraded due to packet loss, the TWS ear in the present embodiment Machine upgrade method can also include:, if there is packet loss, to record corresponding packet loss during every wheel obtains OTA upgrade package Information.Correspondingly, the OTA upgrade package that the determination currently needs to request, can also include: will be corresponding with the packet loss information OTA upgrade package is determined as the OTA upgrade package for currently needing to request.
It in a specific embodiment, can be before carrying out the OTA upgrade package request of next round, to judging that epicycle asks Seeking Truth is no to there is packet loss, if it is, corresponding packet loss information is recorded, it then will OTA upgrade package corresponding with the packet loss information It is determined as the OTA upgrade package for currently needing to request, then initiates corresponding OTA upgrade request, until the institute that epicycle needs to request After thering is OTA upgrade package to get, just requested into the OTA upgrade package of next round.It follows that above-mentioned specific embodiment In, if there is packet loss event, then may include repeatedly request in every wheel upgrade request, wherein in every wheel upgrade request For the first time request be for epicycle need whole OTA upgrade package initiate request, and it is every wheel upgrade request in asking for the second time It asks or request more backward, is then the request initiated for OTA upgrade package corresponding with packet loss event.
In another embodiment specific implementation mode, it in order to reduce the number of the request initiated due to packet loss, can carry out Whole packet loss information of packet loss occur in the above-mentioned more wheel request process of request and then statistics more than two-wheeled or two-wheeled, then According to above-mentioned whole packet loss information, corresponding OTA upgrade package is determined as to the OTA upgrade package for currently needing to request, is then initiated Corresponding OTA upgrade request.
Step S23: according to it is described it is current need the OTA upgrade package requested, by the communication link to the default end End sends corresponding OTA upgrade request.
Step S24: the acquisition default terminal is transmitted corresponding with the OTA upgrade request by the communication link OTA upgrade package.
Step S25: finishing when all OTA upgrade package in OTA firmware updating obtain, then is upgraded using the OTA solid Part completes updating operation.
Shown in Figure 3, the embodiment of the present application discloses a kind of specific TWS earphone upgrade method, is applied to TWS ear Machine, comprising:
Step S31: the communication link between default terminal is established by the second bluetooth communication agreement.
Step S32: the OTA upgrade package for currently needing to request is determined.
Step S33: by Bitmap record for characterizing the information of the current OTA upgrade package for needing to request.
That is, it is the liter for currently needing to request which OTA upgrade package the present embodiment can specifically record by Bitmap Grade packet.In the present embodiment, can specifically be characterized by " 0 " in Bitmap and need the OTA upgrade package that obtains, by " 1 " come Characterize the OTA upgrade package got.For example, it is assumed that some upgrade request in certain wheel upgrade request is the wheel upgrade request In the request initiated for the first time for 16 OTA upgrade package in OTA firmware updating, then corresponding Bitmap can be denoted as 0000000000000000, it is subsequently generated the OTA upgrade request including the Bitmap, can be asked to default terminal by the request Seek corresponding 16 OTA upgrade package;For another example, it is assumed that occur packet loss event in above-mentioned request process, such as above-mentioned 16 OTA upgrade The the 5th, 10 and 12 OTA upgrade package in packet is not received by, then according to above-mentioned packet loss information, can create corresponding Bitmap It is 1111010111101111, is subsequently generated the OTA upgrade request including the Bitmap, it is to be understood that OTA upgrading is asked Second of request in Seeking Truth epicycle upgrade request can be upgraded by the request to corresponding 3 OTA of default terminal request Packet.
Step S34: the OTA upgrade request including the Bitmap is generated.
Step S35: the OTA upgrade request is sent to the default terminal by the communication link.
Step S36: the acquisition default terminal is transmitted corresponding with the OTA upgrade request by the communication link OTA upgrade package.
It should be pointed out that the TWS earphone in the present embodiment after receiving OTA upgrade package, needs to carry out corresponding CRC Verification, in addition, after TWS earphone often receives the OTA upgrade package of preset data amount size, it can be big by the preset data amount Small OTA upgrade package is written in Flash, wherein above-mentioned preset data amount size can specifically be set according to the actual situation It is fixed, such as can be set to 4KB.In addition, in any headphone unit in the process end for receiving OTA upgrade package, if encountering residue The OTA upgrade package also having not been obtained total amount of data inadequate 4KB when, these residues OTA that can directly will acquire at this time Upgrade package writes direct Flash.
In addition, corresponding OTA upgrading data format may refer to shown in Fig. 4 in the OTA escalation process of the present embodiment, wrap Include Service ID, Command ID and multiple variable format unit TLV (i.e. Type-length-value);In addition, this reality The corresponding data format of Bitmap mechanism for applying example specifically may refer to shown in Fig. 5, including Service ID, Command ID, File_offset (TLV), file_length (TLV) and file_bitmap (TLV).Wherein, the Oct in Fig. 4 and Fig. 5 is indicated Octal system.
Step S37: finishing when all OTA upgrade package in OTA firmware updating obtain, then is upgraded using the OTA solid Part completes updating operation.
Shown in Figure 6, the embodiment of the present application discloses a kind of specific TWS earphone upgrade method, is applied to TWS ear Machine, comprising:
The S401: the first headphone unit of step detects whether to meet preset trigger condition, if it is, BLE broadcast is carried out, with Mobile phone is waited to establish connection.
It is understood that above-mentioned preset trigger condition can specifically be set according to the actual situation.
In a specific embodiment, whether in the open state the first headphone unit can detecte earphone charging box, If it is, determining to meet preset trigger condition, if it is not, then determining to be unsatisfactory for preset trigger condition.
In another embodiment specific implementation mode, whether the first headphone unit can detecte gets by TWS earphone The instruction of first default trigger button triggering, if it is, determining to meet preset trigger condition, if it is not, then determining to be unsatisfactory for Preset trigger condition.Wherein, the above-mentioned first default trigger button can be the button being set in advance on any headphone unit, It can be the button being set in advance on charging box.
Step S402: after the first headphone unit and mobile phone establish the first BLE communication link, whether judgement currently meets Default promotion condition if it is, notice mobile phone allows to upgrade, and passes through first if it is not, then notice mobile phone does not allow to upgrade Corresponding upgrading relevant parameter is sent to mobile phone by BLE communication link.
Specifically, whether the judgement currently meets the process of default promotion condition, it may include judging two earphone lists Whether the firmware version of member is latest firmware version, and/or judges whether the electricity of two headphone units is all larger than default electricity Threshold value, and/or judge two headphone units whether be in charging box.Specifically, above-mentioned first judgement can be first carried out, If first judging result be it is yes, do not allow to upgrade, if it is otherwise enter above-mentioned second judgement, if second is sentenced Disconnected result be it is no, then do not allow to upgrade, then enter the judgement of above-mentioned third if YES, if above-mentioned third judging result is It is no, then do not allow to upgrade, then allows to upgrade if YES.Wherein, above-mentioned default power threshold can carry out according to the actual situation Specific setting, such as it is set as 30% electricity.
It is understood that when the first headphone unit notice mobile phone allows to upgrade, between mobile phone and the first headphone unit MTU negotiation (MTU, i.e. Maximum Transmission Unit) can be carried out for link communication parameter, and obtain TWS ear The BLE broadcast address of two headphone units in machine, to obtain upgrading phase accordingly comprising MTU parameter and BLE broadcast address Close parameter.
The S403: the first headphone unit of step detects whether to meet default request entry condition, if it is, entering step S404。
It is understood that above-mentioned default request entry condition can specifically be set according to actual needs.
In a specific embodiment, the first headphone unit can detecte whether earphone charging box is in close state, If it is, determining to meet default request entry condition, if it is not, then determining to be unsatisfactory for default request entry condition.
In another embodiment specific implementation mode, whether the first headphone unit can detecte gets by TWS earphone The instruction of second default trigger button triggering, if it is, determining to meet default request entry condition, if it is not, then determining not Meet default request entry condition.Wherein, the above-mentioned second default trigger button, which can be, is set in advance on any headphone unit Button, be also possible to be set in advance in the button on charging box.
The S404: the first headphone unit of step is based on Bitmap and initiates OTA upgrading to mobile phone by the first BLE communication link Request obtains the corresponding OTA upgrade package that mobile phone is sent by the first BLE communication link.
Whether the OTA upgrade package that step the S405: the first headphone unit real-time judge is currently received is institute in epicycle request The last one the OTA upgrade package needed, if it is, enter step S407, if it is not, then it is that judgement currently has received and Whether the upgrading data having not been written in Flash have reached 4kb.
Step S406: if it is, S407 is entered step, if it is not, then reentering step S404.
The S407: the first headphone unit of step by it is currently having received and have not been written to Flash upgrading data be written Flash, then judges whether corresponding OTA firmware updating has received, if it is not, then step S404 is reentered, if It is then corresponding notification information to be sent to mobile phone and the second headphone unit, to enable mobile phone and the second headphone unit learn the first ear Machine unit has received corresponding OTA firmware updating.
The S408: the second headphone unit of step carries out BLE broadcast, with the 2nd BLE communication link between foundation and mobile phone.
The S409: the second headphone unit of step is based on Bitmap and initiates OTA upgrading to mobile phone by the 2nd BLE communication link Request obtains the corresponding OTA upgrade package that mobile phone is sent by the 2nd BLE communication link.
Whether the OTA upgrade package that step the S410: the second headphone unit real-time judge is currently received is institute in epicycle request The last one the OTA upgrade package needed, if it is, enter step S412, if it is not, then it is that judgement currently has received and Whether the upgrading data having not been written in Flash have reached 4kb.
Step S411: if it is, S412 is entered step, if it is not, then reentering step S409.
The S412: the second headphone unit of step by it is currently having received and have not been written to Flash upgrading data be written Flash, then judges whether corresponding OTA firmware updating has received, if it is not, then step S409 is reentered, if It is then to send corresponding notification information to the first headphone unit, the second headphone unit has received to enable the first headphone unit learn Complete corresponding OTA firmware updating.
Step S413:TWS earphone carries out reboot using the OTA firmware updating received and restarts upgrading.
It is shown in Figure 7, any headphone unit is shown in Fig. 7 to be based on Bitmap and send out for corresponding OTA firmware updating The process of any wheel upgrade request risen, comprising:
Step S51: headphone unit starts epicycle upgrade request process.
Step S52: the corresponding Bitmap of request for the first time in current epicycle upgrade request is set as 0000000000000000。
Step S53: the OTA upgrade request including current Bitmap is generated.
Step S54: current OTA upgrade request is sent to mobile phone, and the timer that the opening timing time is 2 seconds.
Step S55: detecting whether to receive the OTA upgrade package of mobile phone transmission, if it is not, then continue waiting for, if it is, Corresponding bits position on current Bitmap is set as 1.
Step S56: whether the timing time of monitoring current timer reaches 2 seconds in real time, if it is not, then S57 is entered step, If it is, entering step S58.
Step S57: judge whether to have received the corresponding 16 OTA upgrade package of epicycle upgrade request, if it is not, then again S55 is entered step, if it is, closing current timer and entering step S59.
Step S58: current timer is closed, and judges whether to have received the corresponding 16 OTA liters of epicycle upgrade request Grade packet, if it is, step S59 is directly entered, if it is not, then the OTA upgrade request including current Bitmap is generated, to obtain Second of request in epicycle upgrade request, and request this second to be sent to mobile phone, it is remained with obtaining in epicycle upgrade request Remaining OTA upgrade package, subsequently into step S59.
Step S59: the 16 OTA upgrade package got in epicycle upgrade request are written in Flash, are then started next Take turns upgrade request.
From the foregoing, it will be observed that by being provided with timer in this present embodiment, and only in the requested for the first time of every wheel upgrade request Opening timing device in journey will then wrap altogether in the wheel upgrade request so there is packet loss event during every wheel upgrade request Include Twice requests.
Shown in Figure 8, the embodiment of the present application also discloses a kind of TWS earphone upgrade method applied to terminal device, Wherein, the terminal device has been internally integrated the first bluetooth communication agreement for sending audio data, and is also integrated with Two bluetooth communication agreements;The described method includes:
Step S61: the communication link between the TWS earphone is established by the second bluetooth communication agreement.
Step S62: the OTA upgrade request that the TWS earphone is sent is obtained by the communication link.
Step S63: OTA upgrade package corresponding with the OTA upgrade request is obtained.
Step S64: the OTA upgrade package is sent to by the TWS earphone by the communication link, so as to the TWS Earphone completes updating operation using the OTA firmware updating after getting all OTA upgrade package in OTA firmware updating.
As it can be seen that two kinds of bluetooth communication agreements are integrated in the terminal device of the embodiment of the present application, i.e. the first bluetooth communication association It negotiates peace the second bluetooth communication agreement, the first bluetooth communication agreement is used to send audio data, the second bluetooth communication association to TWS earphone View for assisting TWS earphone to complete earphone upgrading, can then make in TWS earphone escalation process, when two earphone lists in this way When member carries out master-slave swap, TWS earphone can still keep the bluetooth between default terminal by the first bluetooth communication agreement Communication connection, to avoid improving earphone bluetooth company there is a situation where bluetooth communication disconnecting during master-slave swap The stability connect ensure that the continuity of audio data transmission process.In addition, the embodiment of the present application be from TWS earphone actively to Default terminal sends OTA upgrade request, compared with the prior art in the situation of firmware is actively issued to TWS earphone from mobile phone, The application can neatly be controlled default terminal by TWS earphone and issue the opportunity of OTA upgrade package, that is, controlling OTA in the application The initiative for issuing the time of upgrade package is to be more advantageous to promotion breakpoint transmission function in this way by TWS earphone control.To sum up, The embodiment of the present application can be during two headphone units carry out master-slave swap, avoidance breakout TWS earphone and default terminal Between bluetooth communication connection, improve the stability of earphone bluetooth connection, and be conducive to promoted breakpoint transmission function.
Shown in Figure 9, the embodiment of the present application also discloses a kind of specifically applied to the TWS earphone upgrading of terminal device Method, comprising:
Step S71: the first headphone unit of BLE broadcast is initiated in search, then establishes the first BLE with the first headphone unit Communication link.
Step S72: firmware version number newest in server is sent to by the first earphone list by the first BLE communication link Member, and ask whether to allow to upgrade to the first headphone unit, if it is not, then obtaining the first headphone unit returns to corresponding notice letter Breath if it is, carrying out MTU negotiation for link communication parameter between the first headphone unit, and obtains the first headphone unit The BLE broadcast address of two headphone units in the TWS earphone of transmission.
It is understood that can specifically include in the above-mentioned notification information returned by the first headphone unit but be not limited to electricity Low, firmware is measured without updating, not being put into the information such as charging box.
Step S73: the OTA upgrade request that the first headphone unit is sent is obtained by the first BLE communication link, according to this Corresponding OTA upgrade package is sent to the first headphone unit by the Bitmap in OTA upgrade request.
Step S74: it after the first headphone unit has received corresponding OTA firmware updating, disconnects and the first headphone unit Between BLE connection, then establish and the 2nd BLE communication link of the second headphone unit.
Step S75: the OTA upgrade request that the first headphone unit is sent is obtained by the 2nd BLE communication link, according to this Corresponding OTA upgrade package is sent to the second headphone unit by the Bitmap in OTA upgrade request.
Shown in Figure 10, the embodiment of the present application also discloses a kind of TWS earphone update device applied to TWS earphone, Wherein, the TWS earphone has been internally integrated the first bluetooth communication agreement for receiving audio data, and is also integrated with second Bluetooth communication agreement;Described device includes:
Link establishment module 11, for establishing the communication link between default terminal by the second bluetooth communication agreement Road;
Request sending module 12, for sending OTA upgrade request to the default terminal by the communication link;
Upgrade package obtains module 13, being transmitted by the communication link with the OTA for obtaining the default terminal The corresponding OTA upgrade package of upgrade request;
Upgraded module 14 then utilizes the OTA for finishing when all OTA upgrade package in OTA firmware updating obtain Firmware updating completes updating operation.
It wherein, can be with reference to disclosed in previous embodiment accordingly about the more specifical course of work of above-mentioned modules Content is no longer repeated herein.
As it can be seen that two kinds of bluetooth communication agreements are integrated in the TWS earphone of the embodiment of the present application, i.e. the first bluetooth communication agreement With the second bluetooth communication agreement, for receiving audio data, the second bluetooth communication agreement is then used to assist the first bluetooth communication agreement It helps and completes earphone upgrading, can make in TWS earphone escalation process in this way, when two headphone units carry out master-slave swap, TWS earphone still can keep the bluetooth communication between default terminal to connect by the first bluetooth communication agreement, to avoid There is a situation where bluetooth communication disconnectings during master-slave swap, improve the stability of earphone bluetooth connection, ensure that The continuity of audio data transmission process.In addition, the embodiment of the present application is actively to send OTA liter to default terminal from TWS earphone Grade request, compared with the prior art in the situation of firmware is actively issued to TWS earphone from mobile phone, the application can be by TWS ear Machine neatly controls the opportunity that default terminal issues OTA upgrade package, that is, control OTA upgrade package in the application issues the time Initiative be that promotion breakpoint transmission function is more advantageous to by TWS earphone control in this way.To sum up, the embodiment of the present application can During two headphone units carry out master-slave swap, the bluetooth communication between avoidance breakout TWS earphone and default terminal connects It connects, improves the stability of earphone bluetooth connection, and be conducive to promote breakpoint transmission function.
Shown in Figure 11, the embodiment of the present application also discloses a kind of TWS earphone update device applied to terminal device, Wherein, the terminal device has been internally integrated the first bluetooth communication agreement for sending audio data, and is also integrated with Two bluetooth communication agreements;Described device includes:
Link establishment module 21, it is logical between the TWS earphone for being established by the second bluetooth communication agreement Interrogate link;
Request module 22, for obtaining the OTA upgrade request that the TWS earphone is sent by the communication link;
Upgrade package obtains module 23, for obtaining OTA upgrade package corresponding with the OTA upgrade request;
Upgrade package sending module 24, for the OTA upgrade package to be sent to the TWS ear by the communication link Machine, so that the TWS earphone utilizes the OTA firmware updating after getting all OTA upgrade package in OTA firmware updating Complete updating operation.
It wherein, can be with reference to disclosed in previous embodiment accordingly about the more specifical course of work of above-mentioned modules Content is no longer repeated herein.
As it can be seen that two kinds of bluetooth communication agreements are integrated in the terminal device of the embodiment of the present application, i.e. the first bluetooth communication association It negotiates peace the second bluetooth communication agreement, the first bluetooth communication agreement is used to send audio data, the second bluetooth communication association to TWS earphone View for assisting TWS earphone to complete earphone upgrading, can then make in TWS earphone escalation process, when two earphone lists in this way When member carries out master-slave swap, TWS earphone can still keep the bluetooth between default terminal by the first bluetooth communication agreement Communication connection, to avoid improving earphone bluetooth company there is a situation where bluetooth communication disconnecting during master-slave swap The stability connect ensure that the continuity of audio data transmission process.In addition, the embodiment of the present application be from TWS earphone actively to Default terminal sends OTA upgrade request, compared with the prior art in the situation of firmware is actively issued to TWS earphone from mobile phone, The application can neatly be controlled default terminal by TWS earphone and issue the opportunity of OTA upgrade package, that is, controlling OTA in the application The initiative for issuing the time of upgrade package is to be more advantageous to promotion breakpoint transmission function in this way by TWS earphone control.To sum up, The embodiment of the present application can be during two headphone units carry out master-slave swap, avoidance breakout TWS earphone and default terminal Between bluetooth communication connection, improve the stability of earphone bluetooth connection, and be conducive to promoted breakpoint transmission function.
Further, shown in Figure 12, the embodiment of the present application also discloses a kind of TWS earphone 20, the TWS earphone 20 It has been internally integrated the first bluetooth communication agreement for receiving audio data, and has also been integrated with the second bluetooth communication agreement;Institute Stating TWS earphone 20 includes processor 21 and memory 22;Wherein, memory 22 is for saving computer program;Processor 21 is used In executing the computer program, to perform the steps of
The communication link between default terminal is established by the second bluetooth communication agreement;Pass through the communication link OTA upgrade request is sent to the default terminal;It is transmitting by the communication link with the OTA to obtain the default terminal The corresponding OTA upgrade package of upgrade request;It is finished when all OTA upgrade package in OTA firmware updating obtain, then using described OTA firmware updating completes updating operation.
As it can be seen that two kinds of bluetooth communication agreements are integrated in the TWS earphone of the embodiment of the present application, i.e. the first bluetooth communication agreement With the second bluetooth communication agreement, for receiving audio data, the second bluetooth communication agreement is then used to assist the first bluetooth communication agreement It helps and completes earphone upgrading, can make in TWS earphone escalation process in this way, when two headphone units carry out master-slave swap, TWS earphone still can keep the bluetooth communication between default terminal to connect by the first bluetooth communication agreement, to avoid There is a situation where bluetooth communication disconnectings during master-slave swap, improve the stability of earphone bluetooth connection, ensure that The continuity of audio data transmission process.In addition, the embodiment of the present application is actively to send OTA liter to default terminal from TWS earphone Grade request, compared with the prior art in the situation of firmware is actively issued to TWS earphone from mobile phone, the application can be by TWS ear Machine neatly controls the opportunity that default terminal issues OTA upgrade package, that is, control OTA upgrade package in the application issues the time Initiative be that promotion breakpoint transmission function is more advantageous to by TWS earphone control in this way.To sum up, the embodiment of the present application can During two headphone units carry out master-slave swap, the bluetooth communication between avoidance breakout TWS earphone and default terminal connects It connects, improves the stability of earphone bluetooth connection, and be conducive to promote breakpoint transmission function.
In the present embodiment, when the processor 21 executes the computer subprogram saved in the memory 22, can have Body performs the steps of the OTA upgrade package for determining and currently needing to request;According to the current OTA upgrade package for needing to request, lead to It crosses the communication link and sends corresponding OTA upgrade request to the default terminal.
In the present embodiment, when the processor 21 executes the computer subprogram saved in the memory 22, can have Body is performed the steps of according to upgrade package number parameter is preset, from the also not requested OTA upgrading of the OTA firmware updating Bao Zhong determines the OTA upgrade package that the OTA upgrade package of respective numbers needs to request as epicycle.
In the present embodiment, when the processor 21 executes the computer subprogram saved in the memory 22, can have Body performs the steps of during every wheel obtains OTA upgrade package, if there is packet loss, records corresponding packet loss information, will OTA upgrade package corresponding with the packet loss information is determined as the OTA upgrade package for currently needing to request.
In the present embodiment, when the processor 21 executes the computer subprogram saved in the memory 22, can have Body is performed the steps of through Bitmap record for characterizing the information of the current OTA upgrade package for needing to request;Generate packet Include the OTA upgrade request of the Bitmap;The OTA upgrade request is sent to the default terminal by the communication link.
Further, the TWS earphone 20 in the present embodiment can also include:
Wireless communication interface 23, for by wireless communication mode, obtain various data that default terminal is sent and to Default terminal sends various data parameters, can also be by wireless communication mode between the different hardware entity of TWS earphone 20 The transmission of data parameters is carried out, or can be used for obtaining the program code of external importing.Wherein, wireless communication interface 23 has Body may include the communication interface based on above-mentioned first bluetooth communication agreement and the communication based on above-mentioned second bluetooth communication agreement Interface can also include the communication interface based on WIFI agreement.
Wire communication interface 24, for by wire communication mode, obtain various data that default terminal is sent and to Default terminal sends various data parameters, can also be by wire communication mode between the different hardware entity of TWS earphone 20 The transmission of data parameters is carried out, or can be used for obtaining the program code of external importing.Wherein, wire communication interface 24 has Body can be USB interface, can be located in the headphone unit of TWS earphone, can also be located in charging box.
Audio playing unit 25 is used for playing audio signal, is particularly located on each headphone unit of TWS earphone 20.
Sensor 26, for the box cover open and-shut mode etc. for detecting charging box.
Energy storage device 27, is particularly located in charging box, for being that headphone unit charges, and is located at each headphone unit On, for providing electric energy for each electronic component in headphone unit.
Further, the embodiment of the present application also discloses a kind of terminal device, wherein the terminal device is internally integrated For sending the first bluetooth communication agreement of audio data, and also it is integrated with the second bluetooth communication agreement;The terminal device In include:
Memory, for saving computer program;
Processor, for executing the computer program, to realize the aforementioned disclosed TWS ear applied on terminal device Machine upgrade method.
Wherein, it can be referred to about the above-mentioned specific steps applied to the TWS earphone upgrade method on terminal device aforementioned Corresponding contents disclosed in embodiment, are no longer repeated herein.
Further, disclosed herein as well is a kind of computer readable storage mediums, for saving computer program, In, the computer program realizes the aforementioned disclosed TWS earphone upgrading side applied on TWS earphone when being executed by processor Method.Wherein, it can no longer be carried out herein with reference to corresponding contents disclosed in previous embodiment about the specific steps of this method It repeats.
Further, disclosed herein as well is another computer readable storage mediums, for saving computer program, In, the computer program realizes the aforementioned disclosed TWS earphone upgrading side applied on terminal device when being executed by processor Method.Wherein, it can no longer be carried out herein with reference to corresponding contents disclosed in previous embodiment about the specific steps of this method It repeats.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other The difference of embodiment, same or similar part may refer to each other between each embodiment.For being filled disclosed in embodiment For setting, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part Explanation.
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.
A kind of TWS earphone provided herein and its upgrade method, device, medium are described in detail above, Specific examples are used herein to illustrate the principle and implementation manner of the present application, and the explanation of above embodiments is only used The present processes and its core concept are understood in help;At the same time, for those skilled in the art, according to the application's Thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as Limitation to the application.

Claims (11)

1. a kind of TWS earphone upgrade method, which is characterized in that be applied to TWS earphone, wherein the TWS earphone is internally integrated For receiving the first bluetooth communication agreement of audio data, and also it is integrated with the second bluetooth communication agreement;The described method includes:
The communication link between default terminal is established by the second bluetooth communication agreement;
OTA upgrade request is sent to the default terminal by the communication link;
Obtain the OTA upgrade package corresponding with the OTA upgrade request that the default terminal is transmitted by the communication link;
It is finished when all OTA upgrade package in OTA firmware updating obtain, then completes upgrading behaviour using the OTA firmware updating Make.
2. TWS earphone upgrade method according to claim 1, which is characterized in that the second bluetooth communication agreement is BLE GATT agreement.
3. TWS earphone upgrade method according to claim 1, which is characterized in that it is described by the communication link to institute It states default terminal and sends OTA upgrade request, comprising:
Determine the OTA upgrade package for currently needing to request;
According to the current OTA upgrade package for needing to request, sent accordingly by the communication link to the default terminal OTA upgrade request.
4. TWS earphone upgrade method according to claim 3, which is characterized in that the OTA that the determination currently needs to request Upgrade package, comprising:
It is determined from the also not requested OTA upgrade package of the OTA firmware updating according to default upgrade package number parameter The OTA upgrade package of respective numbers needs the OTA upgrade package requested as epicycle.
5. TWS earphone upgrade method according to claim 4, which is characterized in that further include:
During every wheel obtains OTA upgrade package, if there is packet loss, corresponding packet loss information is recorded;
Correspondingly, the OTA upgrade package that the determination currently needs to request, further includes:
OTA upgrade package corresponding with the packet loss information is determined as the OTA upgrade package for currently needing to request.
6. according to the described in any item TWS earphone upgrade methods of claim 3 to 5, which is characterized in that described according to described current The OTA upgrade package for needing to request sends corresponding OTA upgrade request to the default terminal by the communication link, comprising:
By Bitmap record for characterizing the information of the current OTA upgrade package for needing to request;
Generate the OTA upgrade request including the Bitmap;
The OTA upgrade request is sent to the default terminal by the communication link.
7. a kind of TWS earphone upgrade method, which is characterized in that be applied to terminal device, wherein the terminal device is internally integrated For sending the first bluetooth communication agreement of audio data, and also it is integrated with the second bluetooth communication agreement;The method packet It includes:
The communication link between the TWS earphone is established by the second bluetooth communication agreement;
The OTA upgrade request that the TWS earphone is sent is obtained by the communication link;
Obtain OTA upgrade package corresponding with the OTA upgrade request;
The OTA upgrade package is sent to the TWS earphone by the communication link, so that the TWS earphone is being got Updating operation is completed using the OTA firmware updating after all OTA upgrade package in OTA firmware updating.
8. a kind of TWS earphone update device, which is characterized in that be applied to TWS earphone, wherein the TWS earphone is internally integrated For receiving the first bluetooth communication agreement of audio data, and also it is integrated with the second bluetooth communication agreement;Described device includes:
Link establishment module, for establishing the communication link between default terminal by the second bluetooth communication agreement;
Request sending module, for sending OTA upgrade request to the default terminal by the communication link;
Upgrade package obtains module, asks for upgrading with the OTA of obtaining that the default terminal transmits by the communication link Seek corresponding OTA upgrade package;
Upgraded module is then upgraded using the OTA solid for finishing when all OTA upgrade package in OTA firmware updating obtain Part completes updating operation.
9. a kind of TWS earphone update device, which is characterized in that be applied to terminal device, wherein the terminal device is internally integrated For sending the first bluetooth communication agreement of audio data, and also it is integrated with the second bluetooth communication agreement;Described device packet It includes:
Link establishment module, for establishing the communication link between the TWS earphone by the second bluetooth communication agreement;
Request module, for obtaining the OTA upgrade request that the TWS earphone is sent by the communication link;
Upgrade package obtains module, for obtaining OTA upgrade package corresponding with the OTA upgrade request;
Upgrade package sending module, for the OTA upgrade package to be sent to the TWS earphone by the communication link, so as to The TWS earphone is completed to rise after getting all OTA upgrade package in OTA firmware updating using the OTA firmware updating Grade operation.
10. a kind of TWS earphone characterized by comprising
Memory, for saving computer program;
Processor, for executing the computer program, to realize that TWS earphone as claimed in any one of claims 1 to 6 such as upgrades Method.
11. a kind of computer readable storage medium, which is characterized in that for saving computer program, wherein the computer journey Such as TWS earphone upgrade method as claimed in any one of claims 1 to 6 is realized when sequence is executed by processor.
CN201811457766.7A 2018-11-30 2018-11-30 A kind of TWS earphone and its upgrade method, device, medium Pending CN109491691A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811457766.7A CN109491691A (en) 2018-11-30 2018-11-30 A kind of TWS earphone and its upgrade method, device, medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811457766.7A CN109491691A (en) 2018-11-30 2018-11-30 A kind of TWS earphone and its upgrade method, device, medium

Publications (1)

Publication Number Publication Date
CN109491691A true CN109491691A (en) 2019-03-19

Family

ID=65698932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811457766.7A Pending CN109491691A (en) 2018-11-30 2018-11-30 A kind of TWS earphone and its upgrade method, device, medium

Country Status (1)

Country Link
CN (1) CN109491691A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110659046A (en) * 2019-09-12 2020-01-07 湖南国声智能科技有限公司 Firmware upgrading method, terminal, charging box, earphone and storage medium
CN110764806A (en) * 2019-10-29 2020-02-07 歌尔科技有限公司 TWS earphone and upgrading method and device thereof
CN111158738A (en) * 2019-12-30 2020-05-15 青岛歌尔智能传感器有限公司 Earphone firmware upgrading method and device and readable storage medium
CN111399874A (en) * 2020-03-05 2020-07-10 Tcl移动通信科技(宁波)有限公司 System upgrading method and device, storage medium and intelligent wearable device
CN111431975A (en) * 2019-03-26 2020-07-17 惠州迪芬尼声学科技股份有限公司 Firmware upgrade for wireless stereo headphones
CN111475189A (en) * 2020-03-27 2020-07-31 深圳光启超材料技术有限公司 Upgrading method, head-mounted equipment, storage medium and electronic device
CN111800767A (en) * 2020-06-15 2020-10-20 易兆微电子(杭州)股份有限公司 System and method for realizing OTA (over the air) upgrade of terminal product based on BNEP (Bluetooth technology attachment)
CN112181460A (en) * 2020-09-27 2021-01-05 深圳市豪恩声学股份有限公司 Program firmware upgrading method and device, electronic equipment and storage medium
CN112230951A (en) * 2020-09-24 2021-01-15 易兆微电子(杭州)股份有限公司 System and method for realizing OTA (over the air) upgrade of mouse based on BNEP (Bluetooth technology attachment) Bluetooth
CN112261630A (en) * 2020-09-24 2021-01-22 易兆微电子(杭州)股份有限公司 System and method for realizing OTA (over the air) upgrading of keyboard based on BNEP (Bluetooth technology attachment)
CN112328293A (en) * 2020-11-05 2021-02-05 歌尔科技有限公司 Differential upgrading method of embedded equipment and related components
WO2021098015A1 (en) * 2019-11-22 2021-05-27 歌尔股份有限公司 Earphone upgrade method, earphone assembly, upgrade device and readable storage medium
CN115834382A (en) * 2022-12-02 2023-03-21 安徽送变电工程有限公司 Firmware upgrading method and system for relay base station of unmanned aerial vehicle

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104553379A (en) * 2014-12-15 2015-04-29 北京三快在线科技有限公司 Bluetooth printing terminal with double Bluetooth communication modules
CN106843942A (en) * 2016-12-31 2017-06-13 歌尔科技有限公司 The firmware upgrade method and Wearable of Wearable
CN107277668A (en) * 2017-07-28 2017-10-20 广州黑格智能科技有限公司 A kind of pair of bluetooth earphone
CN107579863A (en) * 2017-10-17 2018-01-12 锐捷网络股份有限公司 Terminal OTA upgrade methods, apparatus and system
CN108804123A (en) * 2018-06-15 2018-11-13 歌尔科技有限公司 A kind of TWS earphones and its upgrade method, device, storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104553379A (en) * 2014-12-15 2015-04-29 北京三快在线科技有限公司 Bluetooth printing terminal with double Bluetooth communication modules
CN106843942A (en) * 2016-12-31 2017-06-13 歌尔科技有限公司 The firmware upgrade method and Wearable of Wearable
CN107277668A (en) * 2017-07-28 2017-10-20 广州黑格智能科技有限公司 A kind of pair of bluetooth earphone
CN107579863A (en) * 2017-10-17 2018-01-12 锐捷网络股份有限公司 Terminal OTA upgrade methods, apparatus and system
CN108804123A (en) * 2018-06-15 2018-11-13 歌尔科技有限公司 A kind of TWS earphones and its upgrade method, device, storage medium

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111431975A (en) * 2019-03-26 2020-07-17 惠州迪芬尼声学科技股份有限公司 Firmware upgrade for wireless stereo headphones
CN110659046A (en) * 2019-09-12 2020-01-07 湖南国声智能科技有限公司 Firmware upgrading method, terminal, charging box, earphone and storage medium
CN110659046B (en) * 2019-09-12 2023-09-01 深圳市沃奈斯实业发展有限公司 Firmware upgrading method, terminal, charging box, earphone and storage medium
CN110764806A (en) * 2019-10-29 2020-02-07 歌尔科技有限公司 TWS earphone and upgrading method and device thereof
CN110764806B (en) * 2019-10-29 2023-12-26 歌尔科技有限公司 TWS earphone and upgrading method and device thereof
WO2021098015A1 (en) * 2019-11-22 2021-05-27 歌尔股份有限公司 Earphone upgrade method, earphone assembly, upgrade device and readable storage medium
CN111158738A (en) * 2019-12-30 2020-05-15 青岛歌尔智能传感器有限公司 Earphone firmware upgrading method and device and readable storage medium
CN111158738B (en) * 2019-12-30 2023-10-24 青岛歌尔智能传感器有限公司 Headset firmware upgrading method and device and readable storage medium
CN111399874A (en) * 2020-03-05 2020-07-10 Tcl移动通信科技(宁波)有限公司 System upgrading method and device, storage medium and intelligent wearable device
CN111475189A (en) * 2020-03-27 2020-07-31 深圳光启超材料技术有限公司 Upgrading method, head-mounted equipment, storage medium and electronic device
WO2021189656A1 (en) * 2020-03-27 2021-09-30 深圳光启超材料技术有限公司 Upgrading method, head-mounted device, storage medium, and electronic apparatus
CN111800767A (en) * 2020-06-15 2020-10-20 易兆微电子(杭州)股份有限公司 System and method for realizing OTA (over the air) upgrade of terminal product based on BNEP (Bluetooth technology attachment)
CN111800767B (en) * 2020-06-15 2024-04-05 易兆微电子(杭州)股份有限公司 System and method for realizing OTA upgrading of terminal product based on BNEP Bluetooth
CN112261630A (en) * 2020-09-24 2021-01-22 易兆微电子(杭州)股份有限公司 System and method for realizing OTA (over the air) upgrading of keyboard based on BNEP (Bluetooth technology attachment)
CN112261630B (en) * 2020-09-24 2023-03-28 易兆微电子(杭州)股份有限公司 System and method for realizing OTA (over the air) upgrading of keyboard based on BNEP (Bluetooth technology attachment)
CN112230951A (en) * 2020-09-24 2021-01-15 易兆微电子(杭州)股份有限公司 System and method for realizing OTA (over the air) upgrade of mouse based on BNEP (Bluetooth technology attachment) Bluetooth
CN112230951B (en) * 2020-09-24 2024-05-10 易兆微电子(杭州)股份有限公司 System and method for realizing mouse OTA upgrading based on BNEP Bluetooth
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
CN112328293A (en) * 2020-11-05 2021-02-05 歌尔科技有限公司 Differential upgrading method of embedded equipment and related components
CN115834382A (en) * 2022-12-02 2023-03-21 安徽送变电工程有限公司 Firmware upgrading method and system for relay base station of unmanned aerial vehicle

Similar Documents

Publication Publication Date Title
CN109491691A (en) A kind of TWS earphone and its upgrade method, device, medium
KR101905019B1 (en) Method for upgrading terminal system, terminal, and system
CN105739460B (en) A kind of method and apparatus for the control interface automatically generating Internet of Things household electrical appliances
EP3367582A1 (en) Data processing method, charging device and mobile terminal
CN102577236B (en) Method and apparatus for remote management of device
CN108769856A (en) A kind of method, apparatus, wireless headset and charging box for establishing single line connection
WO2019237460A1 (en) Tws earphone, charging case, upgrading method thereof and storage medium
CN110366063A (en) A kind of upgrade method of wireless headset, device and charging box
WO2019237459A1 (en) Tws earphone, charging case, upgrading method thereof, and storage medium
WO2017049553A1 (en) Mobile terminal, power supply adapter, and upgrading method thereof
CN101588326B (en) Method, devcie and system for associating gateway controlled conversation with Gx conversation
WO2022161004A1 (en) Baud rate switching method and apparatus for uart communication, and initiator terminal
CN104221449A (en) Method and device to synchronize bluetooth and LTE/WIMAX transmissions for achieving coexistence
CN104578291A (en) Charging method and device for electric vehicle
CN108804123A (en) A kind of TWS earphones and its upgrade method, device, storage medium
CN108810741A (en) A kind of method, apparatus and wireless headset of double wireless headset connections
CN109547897A (en) A kind of method, apparatus, system and the wireless headset box of wireless headset connection
CN104077163B (en) A kind of installation method of installation kit, device and terminal
CN111158738A (en) Earphone firmware upgrading method and device and readable storage medium
CN107025120A (en) Software upgrading processing method, device and terminal
CN106470227B (en) A kind of configuration method and device of OTA upgrade package
CN104333611B (en) The method of adjustment and device of a kind of ageing time
WO2015117522A1 (en) Parameter configuration data processing method and device, and parameter configuration method and device
CN111934904A (en) Capacity expansion method, controller and system
CN110764806B (en) TWS earphone and upgrading method and device thereof

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

Application publication date: 20190319

RJ01 Rejection of invention patent application after publication