CN109542477A - Applied to the upgrade method of earphone, device, electronic equipment and storage medium - Google Patents

Applied to the upgrade method of earphone, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109542477A
CN109542477A CN201811324610.1A CN201811324610A CN109542477A CN 109542477 A CN109542477 A CN 109542477A CN 201811324610 A CN201811324610 A CN 201811324610A CN 109542477 A CN109542477 A CN 109542477A
Authority
CN
China
Prior art keywords
earphone
upgrading
timer
completed
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811324610.1A
Other languages
Chinese (zh)
Other versions
CN109542477B (en
Inventor
龚金华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811324610.1A priority Critical patent/CN109542477B/en
Publication of CN109542477A publication Critical patent/CN109542477A/en
Application granted granted Critical
Publication of CN109542477B publication Critical patent/CN109542477B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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 Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

This application involves listening equipment fields.This application provides a kind of applied to the upgrade method of earphone, device, electronic equipment and storage medium, wherein, when upgrade method applied to earphone includes: that upgrading starts, start preset first timer, time needed for the timing of the first timer is more than or equal to earphone upgrading;After the first timer time reaches, judge whether upgrading is completed;If upgrading is not completed, earphone is restarted;The earphone initiates the connection with terminal;Restart to upgrade, starts the first timer.The application avoids after bluetooth headset exception occurs in software upgrade process, and bluetooth headset cannot continue the case where upgrading and cannot restoring use.

Description

Applied to the upgrade method of earphone, device, electronic equipment and storage medium
Technical field
This application involves listening equipment fields, in particular to a kind of applied to the upgrade method of earphone, device, electricity Sub- equipment and storage medium.
Background technique
Bluetooth (Bluetooth) earphone is able to use the constraint that family gets rid of connecting line, easy to use, thus application is increasingly Generally.Bluetooth headset software, which is likely to require, to be upgraded, but in escalation process, it is possible that abnormal, earphone enters mistake Accidentally state causes upgrading that cannot continue and earphone cannot use.
Summary of the invention
This application provides a kind of applied to the upgrade method of earphone, device, electronic equipment and storage medium, avoids indigo plant After tooth earphone exception occurs in software upgrade process, bluetooth headset cannot continue the case where upgrading and cannot restoring use.
In a first aspect, this application provides a kind of upgrade methods applied to earphone, comprising:
When upgrading starts, start preset first timer, the timing of the first timer is more than or equal to described Time needed for earphone upgrading;
After the first timer time reaches, judge whether upgrading is completed;
If upgrading is not completed, earphone is restarted;
The earphone initiates the connection with terminal;
Restart to upgrade, starts the first timer.
Wherein, if the upgrading is not completed, restart earphone further include:
If upgrading is not completed, starts preset second timer and judge to rise after the second timer time reaches Whether grade is completed, if upgrading is not completed, restarts the earphone.
Wherein, the timing of the second timer is less than the timing of the first timer.
Wherein, after the first timer time reaches, judging whether upgrading is completed includes: by detecting the earphone Software version judges whether upgrading is completed.
Wherein, after the first timer time reaches, judging whether upgrading is completed includes: to be by detecting upgrade procedure No be finished judges whether upgrading is completed.
Wherein, the earphone is initiated and the connection of terminal includes:
The earphone and the terminal establish connection;
The earphone receives the upgrade request that the terminal is sent.
Wherein, include: after the earphone establishes connection with the terminal
The earphone sends the information of upgrading failure and/or the software version information of the earphone to the terminal.
Second aspect, this application provides a kind of update devices applied to earphone, comprising:
Start unit starts preset first timer, the timing of the first timer when starting for upgrading More than or equal to the time needed for earphone upgrading;
Judging unit after reaching for the first timer time, judges whether upgrading is completed;
Restart unit, if do not completed for upgrading, restarts earphone;
Unit is initiated, initiates the connection with terminal for the earphone;
Restart unit, upgrade for restarting, starts the first timer.
Wherein, described to restart unit and be also used to:
If upgrading is not completed, starts preset second timer and judge to rise after the second timer time reaches Whether grade is completed, if upgrading is not completed, restarts the earphone.
The third aspect, this application provides a kind of electronic equipment, including memory, processor and storage are on a memory simultaneously The computer program that can be run on a processor, the processor realize any of the above-described the method when executing described program Step.
Fourth aspect, this application provides a kind of computer readable storage mediums, are stored thereon with computer program, the journey The step of any of the above-described the method is realized when sequence is executed by processor.
The upgrade method that the application is applied to earphone has the following beneficial effects:
In the upgrade method of the application, when upgrading beginning, start preset first timer, wherein first timer Timing be more than or equal to earphone upgrading needed for time, after the first timer time reaches, detection upgrading whether complete.Such as Fruit upgrading has not been completed, and illustrates to be likely to occur exception in escalation process, earphone enters error condition, and earphone is caused to upgrade It blocks, and is unable to self-recovery, so in the application, after the first timer time reaches, if upgrading has not been completed, just Restart earphone.After the completion of earphone is restarted, the connection with terminal is initiated, after establishing connection with terminal, continues to upgrade.The application In, if occurring exception in earphone escalation process, earphone can be restarted after the first timer time reaches, so as to avoid bluetooth After earphone exception occurs in software upgrade process, bluetooth headset cannot continue the case where upgrading and cannot restoring use.
Detailed description of the invention
Fig. 1 is the exemplary application schematic diagram of a scenario of the application upgrade method;
Fig. 2 is the flow diagram one of the application upgrade method;
Fig. 3 is the flow diagram two of the application upgrade method;
Fig. 4 is the structural schematic diagram of the application update device.
Specific embodiment
The application is further introduced with reference to the accompanying drawings and examples.
In following introductions, term " first ", " second " only for descriptive purposes, and should not be understood as instruction or dark Show relative importance.Following introductions provide multiple embodiments of the application, can replace or merge between different embodiments Combination, therefore the application is it is also contemplated that all possible combinations comprising documented identical and/or different embodiments.Thus, such as Fruit one embodiment include feature A, B, C, another embodiment include feature B, D, then the application also should be regarded as include containing A, the every other possible combined embodiment of one or more of B, C, D, although the embodiment may be in the following contents In have specific literature record.
In following introductions, statement " having ", " can have ", "comprising" and " comprising " or " may include " and " can be with Including " indicate that there are corresponding feature (for example, elements of such as numerical value, function, operation or component etc), but be not excluded for depositing In additional feature.
In following introductions, when an element (for example, first element) is referred to as " (operation or communication) is couple to " or " connects Be connected to " another element (for example, second element) when, other elements can be directly coupled or connected, or may exist Intermediary element (for example, third element).On the other hand, when an element (for example, first element) referred to as " is directly coupled to " Or when " being directly connected to " another element (for example, second element), it should be appreciated that be not present intermediary element (for example, third element).
Following description provides example, and does not carry out to range, applicability described in claims or example Limitation.The function and arrangement of the element of description can be made a change in the case where not departing from the range of teachings herein.Respectively Various processes or component can suitably be omitted, substitute or be added to a example.Such as described method can be with described suitable Sequence different sequence executes, and can add, omits or combine various steps.Furthermore, it is possible to will be retouched about some examples The feature stated is combined in other examples.
Fig. 1 is the exemplary application schematic diagram of a scenario of the application upgrade method, as shown in Figure 1, bluetooth (Bluetooth) ear Machine 20 is one of the earphone products that we are commonly used, in use, bluetooth headset 20 is by its internal Bluetooth adapter and outside Portion's terminal 10 (such as mobile phone) carries out Bluetooth communication, the audio data in reading terminals 10, and is carried out by audio output module Audio output.Bluetooth headset 20 may be implemented to be wirelessly connected, easy to use.In the application, terminal 10 can be for example mobile phone, put down Plate computer, personal computer, notebook, desktop computer, server, personal digital assistant (Personal Digital Assistant, PDA), E-book reader, ambulatory medical device, camera, wearable device, multimedia player etc., but not It is limited to this.
Bluetooth headset software, which is likely to require, to be upgraded, since bluetooth headset does not flow out hardware interface, such as general string Row bus (Universal Serial Bus, USB) etc., so software upgrading can not be carried out by wired mode.Bluetooth headset Such as can be upgraded by bluetooth approach, i.e., first on upgrading software download to terminal, then terminal is led to software is upgraded The mode for crossing bluetooth is sent to earphone and is upgraded.But in escalation process, it is possible that it is abnormal, such as updating software release It is abnormal that mistake, Bluetooth communication exception or user's faulty operation etc. will lead to upgrading.When upgrading exception occurs, earphone can enter Error condition causes upgrading that cannot continue and earphone cannot use.
In view of problem above, this application provides a kind of upgrade methods applied to earphone, and when upgrading beginning, starting is pre- If first timer, wherein the timing of first timer be more than or equal to earphone upgrading needed for time, first timer After time reaches, whether detection upgrading is completed.If upgrading has not been completed, illustrate to be likely to occur in escalation process different Often, earphone enters error condition, causes earphone upgrading to be blocked, and be unable to self-recovery, so in the application, in first timer After time reaches, if upgrading has not been completed, earphone is just restarted.After the completion of earphone is restarted, the connection with terminal is initiated, with end After connection is established at end, continue to upgrade.It, can be in first timer if occurring exception in earphone escalation process in the application Time restarts earphone after reaching, and after there is exception in software upgrade process so as to avoid bluetooth headset, bluetooth headset cannot Continue the case where upgrading and use cannot be restored.
For the ease of the understanding of those skilled in the art, the application is by following embodiment to technical side provided by the present application The specific implementation process of case is illustrated.
Embodiment one
Fig. 2 is the flow diagram one for the upgrade method that the application is applied to earphone, as shown in Fig. 2, the present embodiment upgrades Method includes step 101, when upgrading starts, starts preset first timer, the timing of first timer is more than or equal to Time needed for earphone upgrading;Step 103, after the first timer time reaches, judge whether upgrading is completed, if upgraded At, 111 are thened follow the steps, process terminates, if upgrading is not completed, execution step 105;Step 105, restart earphone;Step 107, earphone initiates the connection with terminal;Step 109, restart to upgrade, start first timer.Step 101- is described below 109。
Step 101, when upgrading starts, start preset first timer, the timing of first timer is more than or equal to Time needed for earphone upgrading.
In some embodiments, the software upgrading of bluetooth headset can be for example aerial downloading (Over the Air, OTA) Upgrading.The process of upgrading for example may include that terminal passes through Wireless Fidelity (Wireless Fidelity, Wi-Fi) network, third Third-generation mobile communication technology (3rd-Generation, 3G) or fourth generation mobile communication technology (the 4th Generation, 4G) network will upgrade on software download to terminal, such as on the RAM card of terminal.After the completion of downloading, terminal is sent out to bluetooth headset Upgrade request is sent, bluetooth headset agrees to that upgrading software is sent to earphone, earphone by way of bluetooth by the upgrade request, terminal Upgraded after receiving upgrading software.
In some embodiments, when upgrading, bluetooth headset obtains the size of upgrading software from terminal, according to upgrading software Whether big minor inspection memory space is enough, if insufficient memory is used, the information of memory space inadequate is sent to terminal, eventually End shows the information of bluetooth headset memory space inadequate on its interface, for prompting user.Because under normal circumstances, upgrading soft The size of part is adapted to the memory space of bluetooth headset, if the storage that the size of upgrading software is greater than bluetooth headset is empty Between, it would be possible that being the updating software release mistake of user's downloading, by prompting user, checks user and download in terminal The version for upgrading software avoids upgrade using the software package of mistake that upgrading is caused to fail.
In some embodiments, in earphone escalation process further include: headset batteries electricity is obtained, when battery capacity is less than in advance If when threshold value, the information that the lower needs of battery capacity charge is sent to terminal, it is bluetooth that terminal prompts user on its interface Earphone charging.Because in escalation process, electric quantity consumption uses Shi Geng great than usual, so it is enough to guarantee that bluetooth headset has Electricity avoids upgrading failure because of not enough power supply in escalation process.
In some embodiments, when bluetooth headset upgrading starts, start preset first timer, such as can be bluetooth The upgrading of earphone and the starting of first timer start simultaneously at.First timer can be to be arranged before this step, can also be with It is to be arranged in this step.The timing of first timer may be greater than equal to the time needed for earphone upgrading.Wherein, ear Machine normally upgrades the required time can set according to actual measurement, such as the bluetooth headset of a certain model, can be right Its time normally upgraded takes multiple measurements, and earphone normally upgrades the required time and can be the average value repeatedly measured, It can be the maximum value repeatedly measured.The timing of first timer can be equal to earphone and normally upgrade the required time, It is big by 5%, 10%, 16% etc. that the time needed for earphone normally upgrades required time, such as upgrading more normal than earphone can be greater than. In further embodiments, the timing of first timer can also be empirical value or set according to actual needs when Between.
Step 103, after the first timer time reaches, judge whether upgrading is completed, if upgrading is completed, then follow the steps 111, process terminates, if upgrading is not completed, executes step 105.
In some embodiments, after the first timer time reaches, earphone judges whether upgrading is completed, such as can pass through The software version of test earphone judges whether upgrading is completed, because if upgrading is without the completion software version of earphone or original Version.Earphone can also judge whether upgrading is completed by detecting upgrade procedure and whether being finished, if upgrade procedure (or Person's process) also executing, illustrate that upgrading has not been completed.
After the first timer time reaches, if upgrading is completed, 111 are thened follow the steps, process terminates.If upgrading does not have It completes, it is likely to which exception occurs in the escalation process of earphone, into error condition, after reaching the first timer time, explanation For bluetooth headset without completing upgrading within the normal time, earphone is likely to exception occurred, into error condition, ear at this time Machine upgrading cannot continue, and earphone can not normal use execute subsequent step 105 in this case.
Step 105, restart earphone.
In some embodiments, after the first timer time reaches, if upgrading has not been completed, restart earphone.Pass through Restart earphone, the current error condition of earphone can be terminated, connect earphone with terminal again, restart to upgrade, avoid ear Machine, which is constantly in upgrading, cannot continue and non-serviceable state.
Step 107, earphone initiates the connection with terminal.
In some embodiments, this step includes that earphone and terminal establish connection;Earphone receives the upgrading that terminal is sent and asks It asks.
In some embodiments, after the completion of earphone is restarted, the connection with terminal is initiated.For example, what terminal acquisition was matched List of devices needs to re-search for if not having the bluetooth headset to be upgraded in the list of devices that terminal is shown.Terminal searching arrives After bluetooth headset, matches, connect with earphone.A process, the connection for monitoring headpone and terminal can be created in the terminal State prompts user when malunion is normal in time, convenient for the processing to failure of positioning and user of failure.
In some embodiments, after earphone and terminal establish connection, earphone to terminal send upgrading failure information and/or The software version information of earphone.After terminal receives the information of earphone upgrading failure, earphone upgrading failure is learnt;Terminal receives It after the software version information of earphone, is compared with the software version before earphone, terminal can find the present software version of earphone This is identical as version before, so that bluetooth headset upgrading failure can also be learnt.Terminal obtains the information of earphone upgrading failure Afterwards, the request of upgrading is sent to earphone, earphone receives the upgrade request, and after agreeing to the request, terminal passes through indigo plant for software is upgraded The mode of tooth is sent to earphone again, and earphone restarts to upgrade.Optionally, Bluetooth audio frequency can be used between earphone and terminal Mode agreement (Advanced Audio Distribution Profile, A2DP), hand-free function (Hand Free Profile, HFP), the communication protocols such as ear-phone function (HeadsetPro-file, HSP) communicated, earphone letter to be sent Breath is added in communication protocol.
Step 109, restart to upgrade, start first timer.
In some embodiments, after earphone and terminal establish connection, restart to upgrade, similarly, the first timing of starting Device, that is to say, that start to upgrade every time, first timer starts along with the beginning of upgrading.By first timer, rising During grade, when earphone occur it is abnormal enter error condition when, that is, after the first timer time reaches, restart earphone, ear After machine is restarted, restart software upgrading, avoiding earphone and being constantly in upgrade cannot continue and be unable to normal use State.
In some embodiments, after earphone restarts upgrading, upgrading software can be sent to again earphone by terminal, due to The a part for upgrading software is sent to earphone by terminal, therefore in order to reduce the time of upgrading, is improved efficiency, in the application, Received upgrading software data saves when earphone upgrades the last time, and when this time upgrading, earphone is obtained from terminal After upgrading the attributes such as title, size, the format of software, searched in the memory space of earphone either with or without the preservation upgrading software, If so, whether detect the upgrading software complete, if imperfect, for the part being saved in earphone, end is not needed End retransmits again, that is to say, that earphone can send which software upgrade data also needed to terminal.To the present embodiment In, when terminal sends upgrading software to earphone, it is only necessary to send the part that earphone saves not yet, not need to retransmit entire Upgrade software, reduces the time of upgrading in this way, improve work efficiency.
This application provides a kind of bluetooth headset software upgrading risk managements.The application is applied to the upgrade method of earphone In, when upgrading beginning, start preset first timer, wherein the timing of first timer is more than or equal to earphone liter Time needed for grade, after the first timer time reaches, whether detection upgrading is completed.If upgrading has not been completed, illustrate to rise It is likely to exception occurred during grade, earphone enters error condition, causes earphone upgrading to be blocked, and be unable to self-recovery, institute After the first timer time reaches, if upgrading has not been completed, just to restart earphone in the application.Earphone restarts completion Afterwards, the connection with terminal is initiated, after establishing connection with terminal, continues to upgrade.In the application, if in earphone escalation process There is exception, earphone can be restarted after the first timer time reaches, so as to avoid bluetooth headset in software upgrade process After there is exception, bluetooth headset cannot continue the case where upgrading and cannot restoring use.
Embodiment two
Fig. 3 is the flow diagram two of the application upgrade method, as shown in figure 3, the present embodiment upgrade method includes step 201, when upgrading starts, start preset first timer, the timing of first timer is more than or equal to needed for earphone upgrading Time;Step 203, after the first timer time reaches, judge whether upgrading is completed, if upgrading is completed, then follow the steps 211, process terminates, if upgrading is not completed, executes step 204A;Step 204A starts preset second timer;Step 204B after the second timer time reaches, judges whether upgrading is completed, if upgrading is completed, executes step 213, and process terminates, If upgrading is not completed, step 205 is executed;Step 205, restart earphone;Step 207, earphone initiates the connection with terminal;Step Rapid 209, restart to upgrade, starts first timer.Step 201-209 is described below.
Step 201, when upgrading starts, start preset first timer, the timing of first timer is more than or equal to Time needed for earphone upgrading.
This step is essentially identical with step 101, and related place refers to the introduction of step 101.
Step 203, after the first timer time reaches, judge whether upgrading is completed, if upgrading is completed, then follow the steps 211, process terminates, if upgrading is not completed, executes step 204A.
In some embodiments, after the first timer time reaches, earphone judges whether upgrading is completed, such as can pass through The software version of test earphone judges whether upgrading is completed, because if upgrading is without the completion software version of earphone or original Version.Earphone can also judge whether upgrading is completed by detecting upgrade procedure and whether being finished, if upgrade procedure (or Person's process) also executing, illustrate that upgrading has not been completed.If upgrading is completed, 111 are thened follow the steps, process terminates.This step Unlike step 103, if upgrading is not completed, step 204A is executed, preset second timer is started.
Step 204A starts preset second timer.
In some embodiments, it after the first timer time reaches, if bluetooth headset upgrades completion not yet, opens Dynamic second timer.Second timer can be to be arranged before this step, is also possible to be arranged in this step.Second timing The time that the timing of device can be empirical value or set according to actual needs, such as the bluetooth ear for a certain model Machine can take multiple measurements the time that it normally upgrades, acquire the average value repeatedly measured, can be by each measured value Timing with the difference of average value as second timer, can also be using the variance repeatedly measured as second timer Timing;The timing of second timer may be arranged as 2%, 6%, 11% of first timer timing etc..
Step 204B after the second timer time reaches, judges whether upgrading is completed, if upgrading is completed, executes step 213, process terminates, if upgrading is not completed, executes step 205.
In some embodiments, after the second timer time reaches, earphone judges whether upgrading is completed, if upgraded At execution step 213, upgrading process terminates, if upgrading is not completed, executes step 205, restarts earphone.In the present embodiment, After the first timer time reaches, earphone is not restarted immediately, but starts second timer, is reached in the second timer time After arriving, judge whether earphone upgrading is completed, if upgrading is completed not yet, restarts earphone.In the present embodiment, second timer Has the function of fine tuning on the basis of first timer, that is to say, that after the first timer time reaches, if upgraded At then process terminates, if upgrading is not completed, just slightly waits for me a little longer, the time of waiting is exactly the timing of second timer Time.The present embodiment is primarily directed to that upgrading is slightly slower than normal updating speed, and the time is slightly long, but does not occur in escalation process Abnormal situation, for this situation, after the first timer time reaches, upgrading is still being normally carried out, and only speed is slightly slow, If at this moment restarted earphone, the upgrading being normally carried out can be terminated, update time is caused to increase, efficiency reduces.In the present embodiment, By the way that second timer is arranged, after the first timer time reaches, then the timing of second timer is waited, if upgrading It has not been completed, then restarts earphone, this avoid the upgradings that termination is normally carried out, and improve the working efficiency of upgrading, save The power consumption of earphone, and it is to the control of escalation process more flexible.In some embodiments, the timing of second timer is small In the timing of first timer.
In some embodiments, whether headset detection upgrading is completed, if upgrading is completed, first timer or second Timer does not stop also, then stops first timer or second timer, is conducive to the power consumption for saving earphone in this way.
Step 205, restart earphone.
This step is essentially identical with step 105, and related place refers to the introduction of step 105.
Step 207, earphone initiates the connection with terminal.
This step is essentially identical with step 107, and related place refers to the introduction of step 107.
Step 209, restart to upgrade, start first timer.
This step is essentially identical with step 109, and related place refers to the introduction of step 109.
The present embodiment not only has the effect of embodiment one, but also by setting second timer, in first timer Between reach after, then wait the timing of second timer, if upgrading has not been completed, then restart earphone, this avoid The upgrading being normally carried out is terminated, the working efficiency of upgrading is improved, has saved the power consumption of earphone, and the control to escalation process It is more flexible.
Present invention also provides a kind of update device applied to earphone, Fig. 4 is the structural representation of the application update device Figure, as shown in figure 4, the present embodiment update device 30 includes: start unit 31, when starting for upgrading, starting preset first Timer, time needed for the timing of first timer is more than or equal to earphone upgrading;Judging unit 33, for the first timing After the device time reaches, judge whether upgrading is completed;Restart unit 35, if do not completed for upgrading, restarts earphone;It initiates single Member 37 initiates the connection with terminal for earphone;Restart unit 39, upgrade for restarting, starts first timer.
Optionally, restart unit 35 to be also used to:
If upgrading is not completed, start preset second timer, after the second timer time reaches, judges that upgrading is No completion restarts earphone if upgrading is not completed.
Optionally, the timing of second timer is less than the timing of first timer.
Optionally, judging unit 33 is used for:
Judge whether upgrading is completed by the software version of test earphone;Or by detecting whether upgrade procedure has executed Finish and judges whether upgrading is completed.
Optionally, unit 37 is initiated to be used for:
Earphone and terminal establish connection;
Earphone receives the upgrade request that terminal is sent.
Optionally, further include transmission unit, be used for:
Earphone sends the information of upgrading failure and/or the software version information of earphone to terminal.
In this specification, for being applied to the update device embodiment of earphone, content and the liter for being applied to earphone Grade embodiment of the method is essentially identical, and related place refers to the introduction of the upgrade method embodiment applied to earphone.
Those skilled in the art can be understood that the technical solution of the application can be come by software and/or hardware It realizes." unit " and " module " in this specification refers to complete independently or cooperates with other component complete specific function Software and/or hardware, wherein hardware for example can be FPGA (Field-ProgrammaBLE Gate Array, scene can compile Journey gate array), IC (Integrated Circuit, integrated circuit) etc..
Unit and/or module are managed everywhere in the application, can pass through the analog circuit reality of realization function described herein It is existing, it can also be realized by executing the software of function described herein.
Present invention also provides a kind of electronic equipment, including memory, processor and storage on a memory and can located The step of computer program run on reason device, processor realizes the above method when executing program.The electronic equipment of the application can To be bluetooth headset, it is also possible to other electronic equipments.
Present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, which is located Manage the step of realizing the above method when device executes.Wherein, computer readable storage medium can include but is not limited to any type Disk, including floppy disk, CD, DVD, CD-ROM, mini drive and magneto-optic disk, ROM, RAM, EPROM, EEPROM, DRAM, VRAM, flash memory device, magnetic or optical card, nanosystems (including molecular memory IC), or be suitable for store instruction and/ Or any kind of medium or equipment of data.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, such as: multiple units or components can combine, or It is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each composition portion Mutual coupling or direct-coupling or communication connection is divided to can be through some interfaces, the INDIRECT COUPLING of equipment or unit Or communication connection, it can be electrical, mechanical or other forms.
Each functional unit in each embodiment of the application can be fully integrated in one processing unit, be also possible to each Unit can also be integrated in one unit individually as a unit with two or more units;It is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
Described above is only preferred embodiment of the present application, is not intended to limit this application, for the skill of this field For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.

Claims (10)

1. a kind of upgrade method applied to earphone characterized by comprising
When upgrading starts, start preset first timer, the timing of the first timer is more than or equal to the earphone Time needed for upgrading;
After the first timer time reaches, judge whether upgrading is completed;
If upgrading is not completed, earphone is restarted;
The earphone initiates the connection with terminal;
Restart to upgrade, starts the first timer.
If 2. the method according to claim 1, wherein it is described upgrading do not complete, restart earphone further include:
If upgrading is not completed, start preset second timer, after the second timer time reaches, judges that upgrading is No completion restarts the earphone if upgrading is not completed.
3. according to the method described in claim 2, it is characterized in that, the timing of the second timer is less than described first The timing of timer.
4. method according to any one of claim 1-3, which is characterized in that after the first timer time reaches, Judge whether upgrading is completed to include:
Software version by detecting the earphone judges whether upgrading is completed.
5. method according to any one of claim 1-3, which is characterized in that after the first timer time reaches, Judge whether upgrading is completed to include:
Judge whether upgrading is completed by detecting upgrade procedure and whether being finished.
6. method according to any one of claim 1-3, which is characterized in that the earphone initiates the connection packet with terminal It includes:
The earphone and the terminal establish connection;
The earphone receives the upgrade request that the terminal is sent.
7. according to the method described in claim 6, it is characterized in that, the earphone establish connection with the terminal after include:
The earphone sends the information of upgrading failure and/or the software version information of the earphone to the terminal.
8. a kind of update device applied to earphone characterized by comprising
Start unit starts preset first timer, the timing of the first timer is greater than when starting for upgrading Equal to the time needed for earphone upgrading;
Judging unit after reaching for the first timer time, judges whether upgrading is completed;
Restart unit, if do not completed for upgrading, restarts earphone;
Unit is initiated, initiates the connection with terminal for the earphone;
Restart unit, upgrade for restarting, starts the first timer.
9. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, which is characterized in that the processor realizes any one of the claim 1-7 the method when executing described program The step of.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is processed The step of device realizes any one of the claim 1-7 the method when executing.
CN201811324610.1A 2018-11-08 2018-11-08 Upgrading method and device applied to earphone, electronic equipment and storage medium Active CN109542477B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811324610.1A CN109542477B (en) 2018-11-08 2018-11-08 Upgrading method and device applied to earphone, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811324610.1A CN109542477B (en) 2018-11-08 2018-11-08 Upgrading method and device applied to earphone, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109542477A true CN109542477A (en) 2019-03-29
CN109542477B CN109542477B (en) 2022-03-04

Family

ID=65844793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811324610.1A Active CN109542477B (en) 2018-11-08 2018-11-08 Upgrading method and device applied to earphone, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109542477B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158738A (en) * 2019-12-30 2020-05-15 青岛歌尔智能传感器有限公司 Earphone firmware upgrading method and device and readable storage medium
CN111200811A (en) * 2019-12-29 2020-05-26 歌尔科技有限公司 TWS earphone, upgrading method and device thereof and readable storage medium
WO2022052245A1 (en) * 2020-09-10 2022-03-17 歌尔股份有限公司 Charging device, electric quantity correction method of wireless earphones, and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1441608A (en) * 2002-02-28 2003-09-10 明基电通股份有限公司 Mobile communication capable of detecting and transceiving voice and digital data
US20060234632A1 (en) * 2005-04-18 2006-10-19 Zheng-Liang Lin Method of updating firmware using object push profile in the bluetooth object exchange protocol
CN101610501A (en) * 2009-07-16 2009-12-23 中兴通讯股份有限公司 Device firmware upgrade system and method, device management server and portable terminal
CN102065139A (en) * 2010-11-25 2011-05-18 青岛海信信芯科技有限公司 Software upgrading method and device and multimedia terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1441608A (en) * 2002-02-28 2003-09-10 明基电通股份有限公司 Mobile communication capable of detecting and transceiving voice and digital data
US20060234632A1 (en) * 2005-04-18 2006-10-19 Zheng-Liang Lin Method of updating firmware using object push profile in the bluetooth object exchange protocol
CN101610501A (en) * 2009-07-16 2009-12-23 中兴通讯股份有限公司 Device firmware upgrade system and method, device management server and portable terminal
CN102065139A (en) * 2010-11-25 2011-05-18 青岛海信信芯科技有限公司 Software upgrading method and device and multimedia terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111200811A (en) * 2019-12-29 2020-05-26 歌尔科技有限公司 TWS earphone, upgrading method and device thereof 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
WO2022052245A1 (en) * 2020-09-10 2022-03-17 歌尔股份有限公司 Charging device, electric quantity correction method of wireless earphones, and readable storage medium

Also Published As

Publication number Publication date
CN109542477B (en) 2022-03-04

Similar Documents

Publication Publication Date Title
US9743226B2 (en) Method for short-range wireless communication and electronic device using the same
US10361580B2 (en) Apparatus and method for charging electronic device having battery
TWI733752B (en) System and method for side band communication, and tangible, non-transitory, computer-readable medium
EP3547727A1 (en) Bluetooth connection method, device and smart terminal
JP6571341B2 (en) Power supply method, device and program for audio use
US10546587B2 (en) Electronic device and method for spoken interaction thereof
KR101729106B1 (en) Mobile device
US10044215B2 (en) Method, apparatus, and server for updating software
CN109542477A (en) Applied to the upgrade method of earphone, device, electronic equipment and storage medium
CN105653486A (en) Mobile terminal and method for reusing USB ports of processors thereof
CN114243404A (en) Method and apparatus for providing an interface
JP2015165764A5 (en)
WO2017049548A1 (en) Mobile terminal, power supply adapter, and upgrading method thereof
WO2017063192A1 (en) Charging method, mobile terminal, and charging device
US20160157033A1 (en) Method and apparatus for identifying foreign substances in connectors
US9606957B2 (en) Electronic device and method of linking a task thereof
US10224575B2 (en) Method of controlling different kinds of battery cells and electronic device for same
WO2017049553A1 (en) Mobile terminal, power supply adapter, and upgrading method thereof
WO2016076567A1 (en) Electronic device including antenna
CN115622177B (en) Charging method, mobile terminal and storage medium
KR20160010958A (en) Electronic device and method for processing packet in internet protocol based network
US10237087B2 (en) Method for controlling transmission speed and electronic device thereof
WO2017049549A1 (en) Mobile terminal, power supply adapter, and upgrading method thereof
US10491015B2 (en) Apparatus and method for managing power supplied to an electronic device
CN105830421A (en) Electronic device and operating method 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
GR01 Patent grant
GR01 Patent grant