CN112118503B - Earphone upgrading method, earphone charging box, earphone and storage medium - Google Patents

Earphone upgrading method, earphone charging box, earphone and storage medium Download PDF

Info

Publication number
CN112118503B
CN112118503B CN202010964435.3A CN202010964435A CN112118503B CN 112118503 B CN112118503 B CN 112118503B CN 202010964435 A CN202010964435 A CN 202010964435A CN 112118503 B CN112118503 B CN 112118503B
Authority
CN
China
Prior art keywords
earphone
charging box
version information
upgrade
upgraded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010964435.3A
Other languages
Chinese (zh)
Other versions
CN112118503A (en
Inventor
李涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202010964435.3A priority Critical patent/CN112118503B/en
Publication of CN112118503A publication Critical patent/CN112118503A/en
Application granted granted Critical
Publication of CN112118503B publication Critical patent/CN112118503B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1025Accumulators or arrangements for charging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones

Landscapes

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

Abstract

The invention discloses an earphone upgrading method, an earphone charging box, an earphone and a storage medium, wherein the earphone upgrading method is applied to a first earphone charging box and comprises the following steps: acquiring upgrade data stored in a first earphone connected with the first earphone charging box; and sending the upgrade data to a second earphone charging box connected with the first earphone charging box so that the second earphone charging box forwards the upgrade data to an earphone to be upgraded, which is connected with the second earphone charging box, wherein the earphone to be upgraded is upgraded according to the upgrade data. The efficiency of earphone upgrading has been promoted.

Description

Earphone upgrading method, earphone charging box, earphone and storage medium
Technical Field
The invention relates to the field of hearing devices, in particular to an earphone upgrading method, an earphone charging box, an earphone and a storage medium.
Background
In the mill, when upgrading true wireless bluetooth stereo earphone, need to make serial ports and the serial port board on the box that charges that the earphone is located be connected to make serial port board and computer connection, thereby upgrade the earphone through the computer, the defect of earphone is advanced to this kind of mode lies in that the connected mode is complicated, and the equipment that needs to apply is complicated, and need manual operation in order to control the upgrading process on the computer, excessively rely on manual operation, thereby lead to upgrading the efficiency of earphone lower.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide an earphone upgrading method, an earphone charging box, an earphone and a storage medium, and aims to solve the problem of low efficiency of earphone upgrading.
In order to achieve the above object, the present invention provides an earphone upgrading method, which is applied to a first earphone charging box, and includes:
acquiring upgrade data stored in a first earphone connected with the first earphone charging box;
and sending the upgrade data to a second earphone charging box connected with the first earphone charging box so that the second earphone charging box forwards the upgrade data to an earphone to be upgraded, which is connected with the second earphone charging box, wherein the earphone to be upgraded is upgraded according to the upgrade data.
Optionally, the headset upgrading method further includes:
acquiring first version information of first firmware in the first earphone and second version information of second firmware in a second earphone connected with the second earphone charging box, wherein the first firmware is obtained after the first earphone is upgraded according to the upgrade data;
and when the first version information is higher than the second version information, taking the second earphone as the earphone to be upgraded, and executing the step of acquiring upgrade data stored in the first earphone connected with the first earphone charging box.
Optionally, after the step of obtaining the first version information of the first firmware in the first headset and the second version information of the second firmware in the second headset connected to the second headset charging box, the method further includes:
when the second version information fails to be acquired or the first version information is not higher than the second version information, acquiring third version information of third firmware in a third earphone connected with the second earphone charging box;
and when the first version information is higher than the third version information, determining the third earphone as the earphone to be upgraded, and executing the step of acquiring upgrade data stored in the first earphone connected with the first earphone charging box.
Optionally, the headset upgrading method further includes:
and when the second version information is failed to be acquired, or the first version information is not higher than the second version information, or the third version information is failed to be acquired, or the first version information is not higher than the third version information, outputting prompt information for terminating upgrading.
Optionally, after the step of sending the upgrade data to a second headphone charging box connected to the first headphone charging box, the method further includes:
continuously outputting the prompt information of upgrading;
and when the earphone to be upgraded is upgraded, stopping outputting the prompt message being upgraded and outputting the prompt message after the upgrade is finished.
Optionally, the headset upgrading method further includes:
acquiring fourth version information of the second earphone charging box at regular time;
when the fourth version information is successfully acquired, executing the step of acquiring upgrade data stored in a first earphone connected with the first earphone charging box;
and when the fourth version information is failed to be acquired, outputting prompt information of connection failure of the first earphone charging box and the second earphone charging box, and returning to the step of acquiring the fourth version information of the second earphone charging box at regular time.
In addition, to achieve the above object, the present invention also provides an earphone charging box, including: the earphone upgrading method comprises a memory, a processor and an earphone upgrading program which is stored on the memory and can run on the processor, wherein the earphone upgrading program realizes the steps of any one earphone upgrading method when being executed by the processor.
In addition, to achieve the above object, the present invention further provides an earphone upgrading method, where the earphone upgrading method is applied to an earphone to be upgraded, and the earphone upgrading method includes:
receiving upgrade data sent by a second earphone charging box connected with the earphone to be upgraded, wherein the upgrade data is the upgrade data received by the second earphone charging box from a first earphone charging box;
and upgrading according to the upgrading data.
In addition, to achieve the above object, the present invention also provides an earphone, including: the earphone upgrading program is stored on the memory and can be operated on the processor, and when being executed by the processor, the earphone upgrading program realizes the steps of the earphone upgrading method applied to the earphone to be upgraded.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, having a headset upgrading program stored thereon, where the headset upgrading program, when executed by a processor, implements the steps of the headset upgrading method according to any one of the above.
According to the earphone upgrading method, the earphone charging box, the earphone and the storage medium, the first earphone charging box is used for acquiring the upgrading data of the first earphone connected with the first earphone charging box, the upgrading data are sent to the second earphone charging box needing to be upgraded, so that the upgrading of the earphone to be upgraded is completed, the first earphone charging box and the second earphone charging box are connected through the serial port line before upgrading, the upgrading progress does not need to be manually controlled in the upgrading process, the earphone can be upgraded, the operation mode is simple, and the earphone upgrading efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of a hardware configuration involved in an embodiment of the present invention;
fig. 2 is a schematic flowchart of a first embodiment of the method for upgrading an earphone according to the present invention;
fig. 3 is a schematic flow chart of a second embodiment of the earphone upgrading method of the present invention;
fig. 4 is a schematic flow chart of a third embodiment of the headset upgrading method of the present invention;
fig. 5 is a schematic flow chart of a fourth embodiment of the earphone upgrading method according to the present invention;
fig. 6 is a schematic flow chart of a fifth embodiment of the upgrade method of an earphone according to the present invention;
fig. 7 is a schematic flowchart of a sixth embodiment of an earphone upgrading method according to the present invention;
fig. 8 is a flowchart illustrating a seventh embodiment of an earphone upgrading method according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic diagram of a hardware structure of an earphone or an earphone charging box according to an embodiment of the present invention.
As shown in fig. 1, the hardware may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. The communication bus 1002 is used to implement connection communication among these components. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the hardware configuration shown in fig. 1 does not constitute a limitation on the terminal, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a headset upgrade program.
In the earphone charging box shown in fig. 1, the network interface 1004 is mainly used for connecting with a background server and communicating data with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke the headset upgrade program stored in the memory 1005 and perform the following operations:
acquiring upgrade data stored in a first earphone connected with the first earphone charging box;
and sending the upgrade data to a second earphone charging box connected with the first earphone charging box so that the second earphone charging box forwards the upgrade data to an earphone to be upgraded, which is connected with the second earphone charging box, wherein the earphone to be upgraded is upgraded according to the upgrade data.
Further, the processor 1001 may call the headset upgrade program stored in the memory 1005, and also perform the following operations:
acquiring first version information of first firmware in the first earphone and second version information of second firmware in a second earphone connected with the second earphone charging box, wherein the first firmware is obtained after the first earphone is upgraded according to the upgrade data;
and when the first version information is higher than the second version information, taking the second earphone as the earphone to be upgraded, and executing the step of acquiring upgrade data stored in the first earphone connected with the first earphone charging box.
Further, the processor 1001 may call the headset upgrade program stored in the memory 1005, and also perform the following operations:
when the second version information fails to be acquired or the first version information is not higher than the second version information, acquiring third version information of third firmware in a third earphone connected with the second earphone charging box;
and when the first version information is higher than the third version information, determining the third earphone as the earphone to be upgraded, and executing the step of acquiring upgrade data stored in the first earphone connected with the first earphone charging box.
Further, the processor 1001 may call the headset upgrade program stored in the memory 1005, and also perform the following operations:
and when the second version information is failed to be acquired, or the first version information is not higher than the second version information, or the third version information is failed to be acquired, or the first version information is not higher than the third version information, outputting prompt information for terminating upgrading.
Further, the processor 1001 may call the headset upgrade program stored in the memory 1005, and further perform the following operations:
continuously outputting the prompt information of upgrading;
and when the earphone to be upgraded is upgraded, stopping outputting the prompt message being upgraded and outputting the prompt message after the upgrade is finished.
Further, the processor 1001 may call the headset upgrade program stored in the memory 1005, and also perform the following operations:
acquiring fourth version information of the second earphone charging box at regular time;
when the fourth version information is successfully acquired, executing a step of acquiring upgrade data stored in a first earphone connected with the first earphone charging box;
and when the fourth version information is failed to be acquired, outputting prompt information of connection failure of the first earphone charging box and the second earphone charging box, and returning to the step of acquiring the fourth version information of the second earphone charging box at regular time.
In addition, in the headset shown in fig. 1, the network interface 1004 is mainly used for connecting with a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke the headset upgrade program stored in the memory 1005 and perform the following operations:
receiving upgrade data sent by a second earphone charging box connected with the earphone to be upgraded, wherein the upgrade data is the upgrade data received by the second earphone charging box from a first earphone charging box;
and upgrading according to the upgrading data.
Referring to fig. 2, a first embodiment of the present invention provides an earphone upgrading method, where the earphone upgrading method is applied to a first earphone charging box, and the earphone upgrading method includes:
step S10, obtaining upgrade data saved in a first earphone connected with the first earphone charging box;
the earphone charging box is a component which can charge an earphone, can communicate with the earphone by the aid of the basic structure of a computer, and can control the earphone and the earphone which establishes communication. The first earphone charging box is used for upgrading other earphones, the earphone and the first earphone charging box are in communication connection, the specific mode for establishing the communication connection is not limited, generally, the earphone is placed in the first earphone charging box, and the earphone and a data contact of the earphone charging box are in communication connection, so that data exchange is achieved. The earphone charging box also comprises a charging contact, and the charging contact is electrically connected with the earphone so as to charge the earphone. The upgrade data is data stored in the earphone for upgrading, the upgrade data can be acquired from other equipment and stored in the memory, in addition, two storage areas can be arranged in the memory, one storage area is used for running firmware, and the other storage area is used for transmitting the firmware to the second area to form the upgrade data when the earphone charging box needs to acquire the upgrade data. It can be understood that, when the upgrade data sent by the earphone connected to the first earphone charging box is obtained, because the storage space occupied by the upgrade data may exceed the maximum storage capacity of the memory of the first earphone charging box, the upgrade data may be received in a segmented manner, that is, the upgrade data is divided into a plurality of data segments, each data segment is sent to the second earphone charging box in sequence, and the check code is sent while the data segments are sent, so as to check the integrity of the data.
In addition, the first earphone charging box and the first earphone can form an upgrading tool, the upgrading tool is used for sending upgrading data to a second earphone charging box connected with the upgrading tool, so that the connected earphone charging box forwards the upgrading data to the second earphone, the second earphone is upgraded according to the upgrading data, and it needs to be explained that the first earphone charging box and the first earphone which are used as components of the upgrading tool are both preset with a specific program in a tool mode, the specific program is used for upgrading other earphones, and further, for the first earphone and the first earphone charging box in the tool mode, the upgrading process cannot be executed through the upgrading programs of other earphones so as to maintain the specific program in the tool mode.
When upgrading, the first earphone charging box can be connected with the two earphones, in this case, when the first earphone charging box acquires an upgrading program of the first earphone, the first earphone refers to a master earphone, the master earphone is a preset earphone used for sending the upgrading program in the two earphones, the other earphone is a slave earphone, and the slave earphone can be switched to the master earphone and sends upgrading data. For example, when the first earphone charging box cannot acquire upgrade data of the master earphone within a certain period of time, a request for switching to the master earphone can be sent to the slave earphone, the slave earphone is triggered to switch to the master earphone according to the request for switching to the master earphone, and in addition, the request for switching to the master earphone can be sent to the slave earphone, meanwhile, a request for switching to the slave earphone is also sent to the master earphone, so that the master earphone is switched to the slave earphone, and therefore, only one master earphone is connected at the same time; the first earphone charging box can also send a request for switching to the master earphone to the slave earphone when detecting that the electric quantity of the master earphone is insufficient, and triggers the slave earphone to switch to a master-slave state. The skilled person in the art can understand that the mechanism for triggering the master-slave switching includes a plurality of mechanisms, which are not limited herein, and the master-slave states of the two earphones connected to the first earphone charging box can be switched according to actual needs, and the master earphone sends the upgrade data to execute the subsequent upgrade steps.
Step S20, sending the upgrade data to a second earphone charging box connected with the first earphone charging box, so that the second earphone charging box forwards the upgrade data to an earphone to be upgraded connected with the second earphone charging box, wherein the earphone to be upgraded is upgraded according to the upgrade data.
The second earphone charging box is the earphone charging box connected with the earphone to be upgraded, communication connection is established between the first earphone charging box and the second earphone charging box, for example, the first earphone charging box and the second earphone charging box can be connected through a serial port line, so that the first earphone charging box and the second earphone charging box exchange data and instructions. In order to enable the first earphone charging box to automatically send upgrade data to the second earphone charging box when the first earphone charging box detects that the second charging box is connected, the first earphone charging box can detect the connected earphone charging box in real time or at regular time. And the second earphone sends the upgrading data to the second earphone after receiving the upgrading data, and the second earphone finishes the upgrading process through the upgrading data. In addition, first earphone charge box can also real-time detection whether have with the earphone of self being connected, if not detect the earphone and connect, can temporarily stop to detect second earphone charge box, when detecting the earphone and connect, resume to detect second earphone charge box to reach the effect of saving the electric quantity. The earphone to be upgraded is the earphone to be upgraded, the earphone to be upgraded is in communication connection with the second earphone charging box, and after the upgrade data are received, the upgrade is performed according to the upgrade data.
The embodiment of this embodiment can be used in the mill, be used for promoting the efficiency of upgrading the earphone in batches in the mill, the traditional method of upgrading the earphone in the mill is generally through computer connection string mouth board, earphone charging box is connected to rethread string mouth board, upgrade the earphone through earphone charging box, when upgrading in batches, above-mentioned operation is very miscellaneous, and only need directly to connect between the earphone charging box to the scheme of this embodiment, alright automatic execution all upgrade the operation, the efficiency of upgrading in batches is higher.
In this embodiment, through the upgrade data that acquires with first earphone, and with the second earphone charging box that upgrade data send to be connected with first earphone box, thereby make second earphone charging box upgrade according to the upgrade data, this process only need establish the communication connection of first earphone charging box and second earphone charging box, alright charge the effect that the box realized upgrading to an earphone through first earphone, the problem of the complicated operation when having avoided upgrading the earphone through terminal equipment and serial ports board, the efficiency of earphone upgrading has been promoted.
Referring to fig. 3, a second embodiment is proposed based on the first embodiment, and the headset upgrading method further includes:
step S30, obtaining first version information of a first firmware in the first earphone and second version information of a second firmware in a second earphone connected to the second earphone charging box, where the first firmware is obtained after the first earphone is upgraded according to the upgrade data;
the first firmware is a firmware program obtained after the first earphone is upgraded, the first firmware is used for driving a physical device of the earphone to run, the first earphone executes an upgrading process after receiving upgrading data, so that the firmware program is obtained, the first version information is used for indicating the version of the first firmware and is identification information, the second firmware is a firmware program of the second earphone and is used for driving the second earphone to run, and the second version information is used for indicating the version of the second firmware.
And step S40, when the first version information is higher than the second version information, the second earphone is taken as the earphone to be upgraded, and step S10 is executed.
When the first version information is higher than the second version information, it indicates that the firmware of the second headset is newer than that of the first headset, where the firmware program of the headset needs to undergo multiple iterative configurations, and therefore different iterative versions exist, and the upgrading process is actually a process of replacing an older version with a newer version, so that the first version information higher than the second version information can be understood that the first firmware is newer than that of the second firmware, the version information is generally represented by a version number, the version number is generally composed of numbers, the version number with the larger number is generally higher than the version information, and of course, the version information may also be represented in other forms. Furthermore, it will be understood by those skilled in the art that the first version information being higher than the second version information does not constitute a numerical limitation, and that relatively higher iteration versions may be represented in other ways.
In this embodiment, through the first version information of the first firmware that acquires with first earphone and with the second version information of the second firmware of second earphone to when first version information is higher than second version information, acquire the upgrading data with first earphone, thereby accomplish to the upgrading process with the second earphone, thereby make the earphone can judge the version information automatically and accomplish the upgrading process, do not need artifical the participation, promoted the efficiency of upgrading the earphone.
Referring to fig. 4, a third embodiment is proposed based on the second embodiment, and after step S30, the method further includes:
step S50, when the second version information fails to be obtained, or when the first version information is not higher than the second version information, obtaining third version information of a third firmware in a third headset connected to the second headset charging box;
when the second version information is failed to be acquired, the second earphone cannot be further upgraded, and the reason for the failure of the acquisition may be that the second earphone does not exist or the second earphone and the second earphone charging box cannot successfully establish communication connection; under the condition that the communication connection is successfully established, the first version information is not higher than the second version information, which indicates that the firmware of the second earphone is the latest version relative to the first earphone, and the firmware does not need to be upgraded; therefore, in the case where the acquisition fails or the second headphone firmware is the latest version, in order to further upgrade the other headphones, it is necessary to acquire third version information that is version information of the firmware of the third headphone.
The second earphone may be a left earphone, and the corresponding third earphone may be a right earphone; or the second earpiece may be the right earpiece, in which case the corresponding third earpiece may be the left earpiece.
Step S60, when the first version information is higher than the third version information, determining the third headset as the headset to be upgraded, and executing step S10.
When the first version information is higher than the third version information, the version information of the third earphone is not up-to-date with respect to the first earphone, and in order to update it, the third earphone is determined as the earphone to be upgraded and further upgraded.
In this embodiment, other earphones can be upgraded under the condition that the second version information is failed to be acquired or the second version information is latest, so that the earphones connected with the second earphone charging box can be upgraded in sequence, and the mode of upgrading the two earphones is improved.
Referring to fig. 5, a fourth embodiment is proposed based on the third embodiment, and the headset upgrading method includes:
step S70, when the second version information fails to be acquired, or when the first version information is not higher than the second version information, step S90 is executed.
When the second version information is failed to be acquired, the second earphone is possibly absent or cannot be in communication connection with the second earphone charging box, and at the moment, the second earphone cannot be upgraded. When the first version information is not higher than the second version information, the second version information is indicated to be up-to-date relative to the first version information, and the second earphone does not need to be upgraded.
Step S80, when the third version information fails to be obtained, or when the first version information is not higher than the third version information, step S90 is executed.
When the third version information is failed to be acquired, the third earphone is possibly absent or cannot be in communication connection with the second earphone charging box, and at the moment, the third earphone cannot be upgraded. When the first version information is not higher than the third version information, the third version information is indicated to be up-to-date relative to the first version information, and the third earphone does not need to be upgraded.
And step S90, outputting prompt information for terminating the upgrade.
In order to facilitate a user to learn that the current upgrade progress is the upgrade termination condition, prompt information for terminating the upgrade is output, the prompt information may be the state of an indicator light on the earphone charging box, and the corresponding prompt information for terminating the upgrade is determined by presetting the relationship between the states of the indicator light, such as color, flicker, constant brightness and the like, and the corresponding progress of the upgrade, for example, the prompt information for terminating the upgrade may be set as that a green indicator light is constant brightness.
In this embodiment, when the second version information or the third version information fails to be acquired, or when the second version information or the third version information is not the latest version information, a prompt message for terminating the upgrade is output, so that a user can learn about the termination of the upgrade conveniently.
Referring to fig. 6, a fifth embodiment is provided based on any one of the first to fourth embodiments, and in the fifth embodiment, after step S20, the method further includes:
step S100, continuously outputting the prompt information of upgrading;
the prompt information is used for indicating the upgrading progress, the form of the prompt information comprises multiple forms, for example, the prompt information can be an indicator lamp on the earphone charging box, and the upgrading progress is indicated by controlling the information such as the flashing state or the color of the indicator lamp. When the upgrading process is started, the prompt message in upgrading is continuously output, the prompt message in upgrading can be in a state that the indicator lamp continuously flickers, and the color of the indicator lamp can also be set, for example, the prompt message in upgrading is set to be a blue lamp flickering state. In addition, the prompt message of upgrading can be set into other forms according to the needs.
Step S110, when the earphone to be upgraded is upgraded, stopping outputting the prompt message being upgraded and outputting the prompt message after upgrading.
The earphone to be upgraded is upgraded completely, namely the earphone to be upgraded has passed the upgrade data and completed the upgrade process of the earphone to be upgraded, the method for judging the upgrade of the earphone to be upgraded can be that the first earphone charging box sends the upgrade data to the second earphone charging box in real time, and simultaneously sends a check code, the integrity of the upgrade data received by the second earphone is confirmed through the check code, after the upgrade data is sent and completed by the first earphone charging box, when the second earphone is judged to have completely received the upgrade data through the check code, the upgrade can be considered to be completed, it can be understood that in order to confirm that the process of receiving the upgrade data and upgrading by the second earphone is correctly performed, the upgrade can be further judged to be completed by receiving the message sent after the upgrade of the second earphone is completed according to the upgrade data. After the upgrade is completed, the output of the prompt message of the upgrade is stopped, and the prompt message of the upgrade is output, wherein the prompt message of the upgrade is various, for example, the prompt message of the upgrade can be set corresponding to the prompt message of the upgrade, and the prompt message of the upgrade is blue light flashing, so that the prompt message of the upgrade can be set to be normally on by green light to form contrast, and the prompt message is convenient for technicians to observe. In addition, prompt information of upgrade failure can be output under the condition of upgrade failure, for example, under the condition of upgrade failure, an indicator light is set to be in a red light flashing state to prompt technicians of upgrade failure.
In this embodiment, through the prompt message that the output is upgrading and the prompt message that the upgrading was accomplished, can be convenient for technical staff to know the upgrading progress, especially under the condition of upgrading in batches, can make things convenient for technical staff to look over the upgrading progress, manage the upgrading process.
Referring to fig. 7, a sixth embodiment is provided based on any one of the first to fourth embodiments, and the headset upgrading method includes:
step S120, regularly acquiring fourth version information of the second earphone charging box;
the fourth version information is version information of a firmware program of the second earphone charging box, the fourth version information is acquired regularly, the communication connection state of the second earphone charging box can be detected, the communication connection state comprises connected state and unconnected state, the communication connection can be wireless connection or wired connection, and when upgrading operation is performed in a factory, wired connection can be adopted for more convenient management and control. The timing acquisition means acquires the fourth version information according to a preset time interval, and the time interval of the timing can be set according to actual needs, for example, the fourth version information is acquired every 500 ms.
Step S130, when the fourth version information is successfully acquired, executing step S10;
when obtaining that fourth version information is successful, show that can realize being connected of first earphone charging box and second earphone charging box, obtain the upgrading data and upgrade this moment for just carry out the step of upgrading after first earphone charging box is connected with second earphone charging box, when operating in the practical application scene, the technical staff only need with first earphone charging box with second earphone charging box be connected can, do not need further to operate and manage on terminal equipment, manpower resources have been saved, efficiency is higher.
Step S140, when the fourth version information fails to be obtained, outputting a prompt message indicating that the connection between the first earphone charging box and the second earphone charging box fails, and returning to perform the step of obtaining the fourth version information of the second earphone charging box at regular time.
And in the case of failure in acquiring the fourth version information, indicating that the second headphone charging box is not connected, where the case of no connection may be that connection establishment is attempted but connection fails, or connection of the second headphone charging box is not attempted, and a subsequent upgrade process cannot be performed at this time, outputting a prompt message of connection failure, where the prompt message may be a state of an indicator light, and may be that a red indicator light flashes, for example. And under the condition of connection failure, continuously and regularly acquiring the fourth version information so as to acquire the upgrading data for upgrading when the fourth version information is acquired.
In this embodiment, the fourth version information is acquired at regular time, and the upgrade data is acquired for upgrading under the condition that the fourth version information is acquired, so that the upgrade process can be started automatically, the operation is simple, the upgrade efficiency is improved, and the prompt information of connection failure is output under the condition that the fourth version information fails to be acquired, so that a user can conveniently learn the state of connection failure between the first earphone charging box and the second earphone charging box.
Referring to fig. 8, a seventh embodiment of the present invention provides an earphone upgrading method, where the earphone upgrading method is applied to an earphone to be upgraded, and the earphone upgrading method includes:
step S150, receiving upgrade data sent by a second earphone charging box connected with the earphone to be upgraded, wherein the upgrade data is the upgrade data received by the second earphone charging box from a first earphone charging box;
the earphone to be upgraded is a hearing device, the upgrade data refers to data used for upgrading or updating a firmware program of the earphone, and the earphone to be upgraded in this embodiment is particularly an earphone capable of establishing a communication connection with an earphone charging box, such as a True Wireless Stereo (TWS) earphone, where the second earphone charging box establishes a communication connection with the first earphone charging box, so that the second earphone charging box can receive the upgrade data from the first earphone charging box, the first earphone charging box establishes a communication connection with the earphone, the communication connections include a Wireless connection and a wired connection, and when the earphone to be upgraded is used in a factory, the second earphone charging box can establish a wired connection with the first earphone charging box for the purpose of convenient management.
And step S160, upgrading according to the upgrading data.
And after receiving the upgrading data, the second earphone is upgraded according to the upgrading data, and a new firmware program is obtained after the upgrading is finished.
In addition, as a complete upgrade process, first, the first earphone charging box may be connected to the first earphone charging box and the second earphone charging box may be connected to the earphone to be upgraded, and then, the first earphone charging box may be connected to the second earphone charging box, after the connection, the first earphone charging box may detect that the communication state is connected and the firmware program version information of the first earphone is higher than the firmware program version information of the earphone to be upgraded, obtain upgrade data of the first earphone, transmit the upgrade data to the second earphone charging box, the second earphone charging box may transmit the upgrade data to the earphone to be upgraded after receiving the upgrade data, the earphone to be upgraded may be upgraded through the upgrade data, the first earphone charging box may detect in real time a progress of the earphone to be upgraded receiving the upgrade data and a progress of the upgrade, and continuously output a prompt message of the upgrade, after detecting that the upgrade of the earphone to be upgraded is completed, and outputting prompt information of upgrading completion.
In this embodiment, upgrade data sent by the second earphone charging box connected with the earphone to be upgraded is received and upgraded according to the upgrade data, so that the upgrade process of the earphone to be upgraded is completed.
In addition, to achieve the above object, an embodiment of the present invention further provides a computer-readable storage medium, where a headset upgrading program is stored on the computer-readable storage medium, and when executed by a processor, the headset upgrading program implements the steps of the headset upgrading method according to any one of the above embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. With this understanding in mind, the technical solutions of the present invention may be embodied in the form of a software product stored in a storage medium (e.g., ROM/RAM) as described above and used for executing the methods according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. An earphone upgrading method is applied to a first earphone charging box and comprises the following steps:
acquiring fourth version information of a second earphone charging box connected with the first earphone charging box in a timing mode;
when the fourth version information is successfully acquired, acquiring upgrade data stored in a first earphone connected with the first earphone charging box;
sending the upgrade data to the second earphone charging box so that the second earphone charging box can forward the upgrade data to an earphone to be upgraded, wherein the earphone to be upgraded is upgraded according to the upgrade data;
and when the fourth version information is failed to be acquired, outputting prompt information of connection failure of the first earphone charging box and the second earphone charging box, and returning to execute the step of acquiring the fourth version information of the second earphone charging box connected with the first earphone charging box at regular time.
2. The headset upgrade method of claim 1, further comprising:
acquiring first version information of first firmware in the first earphone and second version information of second firmware in a second earphone connected with the second earphone charging box, wherein the first firmware is obtained after the first earphone is upgraded according to the upgrade data;
and when the first version information is higher than the second version information, taking the second earphone as the earphone to be upgraded, and executing the step of acquiring upgrade data stored in the first earphone connected with the first earphone charging box.
3. The headset upgrading method of claim 2, wherein the step of obtaining the first version information of the first firmware in the first headset and the second version information of the second firmware in the second headset connected to the second headset charging box is followed by further comprising:
when the second version information fails to be acquired or the first version information is not higher than the second version information, acquiring third version information of third firmware in a third earphone connected with the second earphone charging box;
and when the first version information is higher than the third version information, determining the third earphone as the earphone to be upgraded, and executing the step of acquiring upgrade data stored in the first earphone connected with the first earphone charging box.
4. The headset upgrade method of claim 3, further comprising:
and when the second version information is failed to be acquired, or the first version information is not higher than the second version information, or the third version information is failed to be acquired, or the first version information is not higher than the third version information, outputting prompt information for terminating upgrading.
5. The headset upgrade method according to any one of claims 1 to 4, wherein after the step of transmitting the upgrade data to a second headset charging box connected to the first headset charging box, further comprising:
continuously outputting the prompt information of upgrading;
and when the earphone to be upgraded is upgraded, stopping outputting the prompt message being upgraded and outputting the prompt message after the upgrade is finished.
6. An earphone upgrading method is applied to an earphone to be upgraded and comprises the following steps:
receiving upgrade data sent by a second earphone charging box connected with the earphone to be upgraded, wherein the upgrade data is the upgrade data received by the second earphone charging box from a first earphone charging box;
upgrade according to the upgrade data, wherein the first headphone box performs the method of any of claims 1-5.
7. An earphone charging box, comprising: a memory, a processor and a headset upgrade program stored on the memory and executable on the processor, the headset upgrade program when executed by the processor implementing the steps of the headset upgrade method according to any of claims 1 to 5.
8. An earphone, characterized in that the earphone comprises: memory, a processor and a headset upgrade program stored on the memory and executable on the processor, the headset upgrade program, when executed by the processor, implementing the steps of the headset upgrade method according to claim 6.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a headset upgrade program, which when executed by a processor implements the steps of the headset upgrade method according to any one of claims 1 to 6.
CN202010964435.3A 2020-09-14 2020-09-14 Earphone upgrading method, earphone charging box, earphone and storage medium Active CN112118503B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010964435.3A CN112118503B (en) 2020-09-14 2020-09-14 Earphone upgrading method, earphone charging box, earphone and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010964435.3A CN112118503B (en) 2020-09-14 2020-09-14 Earphone upgrading method, earphone charging box, earphone and storage medium

Publications (2)

Publication Number Publication Date
CN112118503A CN112118503A (en) 2020-12-22
CN112118503B true CN112118503B (en) 2022-06-21

Family

ID=73803306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010964435.3A Active CN112118503B (en) 2020-09-14 2020-09-14 Earphone upgrading method, earphone charging box, earphone and storage medium

Country Status (1)

Country Link
CN (1) CN112118503B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639647A (en) * 2015-02-12 2015-05-20 广东欧珀移动通信有限公司 Loudspeaker box upgrading method and loudspeaker box upgrading device
CN104980886A (en) * 2015-06-25 2015-10-14 上海卓易科技股份有限公司 Software upgrade method and device
CN108810698B (en) * 2018-06-15 2020-07-07 歌尔科技有限公司 TWS earphone, charging box, upgrading method of charging box and storage medium
CN110366063A (en) * 2019-07-26 2019-10-22 歌尔科技有限公司 A kind of upgrade method of wireless headset, device and charging box
CN110825411B (en) * 2019-10-31 2022-03-22 歌尔股份有限公司 Upgrading method and device for TWS (two way satellite System) earphone system and computer-readable storage medium
CN110972058B (en) * 2019-11-29 2022-01-07 歌尔科技有限公司 Method and device for determining position of wireless communication device
CN111314895A (en) * 2020-01-17 2020-06-19 杭州涂鸦信息技术有限公司 Bluetooth-based wireless upgrading method and device, server and electronic equipment

Also Published As

Publication number Publication date
CN112118503A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
CN109873728B (en) Terminal testing method and device and storage medium
CN105898490A (en) Upgrading method for remote controller, television and remote controller
CN110457055B (en) Firmware upgrading control method, system and control terminal for quick-charging protocol
CN111405059B (en) Cloud device data transmission method, electronic device and Internet of things system
CN112256579A (en) Automatic integrated test method, device, system, equipment and medium
US8903987B2 (en) Communication apparatus and method for controlling communication apparatus
CN112351471A (en) Method for accessing device to gateway, gateway device and computer readable storage medium
EP3163969A1 (en) Method for terminating call, application processor and modem
CN112118503B (en) Earphone upgrading method, earphone charging box, earphone and storage medium
CN109768850B (en) Vehicle-mounted communication method and system
CN107707405A (en) The method and its remote control that intelligent closestool firmware remotely updates are realized by remote control
CN110519736B (en) Bluetooth device switch connection method and device and computer readable storage medium
CN111294252B (en) Cluster test system
CN106535101B (en) Bluetooth communication method, system and wireless router
CN108462984A (en) A kind of method and terminal carrying out access network management
CN109068395B (en) Method and device for indicating state of bridging pairing, terminal equipment and medium
CN113676496B (en) Data transmission method, system, readable storage medium and computer equipment
CN105207811B (en) Method and device for replacing non-AllJoyn equipment
CN112767722B (en) Control method and device of traffic signal machine, computer equipment and storage medium
CN110913416B (en) Terminal, networking method thereof and computer-readable storage medium
CN107171915A (en) The variation and device of a kind of communication protocol
CN113535202A (en) Charging pile upgrading method and device and charging pile system
CN115134279A (en) Terminal testing method and device and computer readable storage device
CN107220149B (en) Method and system for capturing debugging data of wireless communication module in Linux system under Windows
CN107453903B (en) Method and system for identifying communication slave station and storage device

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