CN116208882B - Earphone upgrading method and wireless earphone - Google Patents
Earphone upgrading method and wireless earphone Download PDFInfo
- Publication number
- CN116208882B CN116208882B CN202211592083.9A CN202211592083A CN116208882B CN 116208882 B CN116208882 B CN 116208882B CN 202211592083 A CN202211592083 A CN 202211592083A CN 116208882 B CN116208882 B CN 116208882B
- Authority
- CN
- China
- Prior art keywords
- wireless
- earphone
- wireless earphone
- upgrade
- packet
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 88
- 230000008569 process Effects 0.000 claims description 25
- 230000002159 abnormal effect Effects 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 4
- 230000009286 beneficial effect Effects 0.000 abstract description 5
- 230000005540 biological transmission Effects 0.000 description 33
- 238000004891 communication Methods 0.000 description 18
- 230000006870 function Effects 0.000 description 12
- 230000004044 response Effects 0.000 description 11
- 238000012545 processing Methods 0.000 description 8
- 210000005069 ears Anatomy 0.000 description 7
- 230000001976 improved effect Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000003993 interaction Effects 0.000 description 6
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000000903 blocking effect Effects 0.000 description 2
- 125000004122 cyclic group Chemical group 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000002349 favourable effect Effects 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
- 230000008093 supporting effect Effects 0.000 description 1
- 238000001356 surgical procedure Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2201/00—Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
- H04R2201/10—Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The earphone upgrading method and the wireless earphone are beneficial to improving the efficiency of firmware upgrading of the wireless earphone. The method is applied to a wireless headset comprising a first wireless headset and a second wireless headset arranged in pairs, the method comprising: the first wireless earphone determines that the wireless earphone needs firmware upgrade; the first wireless earphone adjusts the packet sending interval period from a first time length to a second time length, wherein the packet sending interval period represents the time interval of sending the upgrade packet between the first wireless earphone and the second wireless earphone for two adjacent times, the first time length is a default value of the packet sending interval period, the first time length is longer than the second time length, and the upgrade packet is a data packet for firmware upgrade, which is received from a terminal device connected with the first wireless earphone; the first wireless earphone and the second wireless earphone perform firmware upgrade based on the second time duration.
Description
The application is a divisional application of China patent application filed by China patent office, application number 202210796831.9 and application name of 'earphone upgrading method and wireless earphone' on the day 07 and 08 of 2022.
Technical Field
The present application relates to the field of bluetooth communications, and in particular, to an earphone upgrading method and a wireless earphone.
Background
Bluetooth true wireless stereo (true wireless stereo, TWS) headphones are a typical wireless headphones with broad market prospects. One of the two ears of the TWS headset is a master headset and the other is a slave headset, and the bluetooth link established between the master headset and the terminal device (e.g., a mobile phone) may be referred to as a mobile link (mobile link), and the slave headset listens to data communicated by the master headset and the terminal device. The bluetooth link established between the master and slave headsets may be referred to as a TWS link over which the master and slave headsets may communicate based on TWS slots, where a TWS slot represents a period of a packet interval between the master and slave headsets over the TWS link.
In the TWS earphone, in addition to integrating necessary physical devices, it is necessary to install a firmware program for driving the physical devices. The TWS earphone can provide normal use functions for consumers through cooperation between the physical device and the firmware program. However, due to limited development time or insufficient knowledge of the physical devices, it is difficult for developers to develop one perfect firmware for the TWS headset at a time that is most suitable for the TWS headset. In many cases, after the TWS earphone is installed with a firmware of a certain version, a developer further develops a firmware of a new version according to the actual use situation of the subsequent TWS earphone, so that the firmware of the old version in the TWS earphone is upgraded by using the firmware of the new version. Existing TWS headset upgrades typically employ over-the-air (OTA) technology for firmware upgrades. The process mainly comprises the following steps: the master earphone is upgraded firstly, and then the upgrade packet is forwarded to the slave earphone through the master earphone, so that the slave earphone is upgraded.
In the existing firmware upgrading process, the data transmission rate may be slow due to the TWS time slot setting, so that the firmware upgrading efficiency is low.
Disclosure of Invention
The earphone upgrading method and the wireless earphone are beneficial to improving firmware upgrading efficiency of the wireless earphone.
In a first aspect, there is provided a headset upgrading method applied to a wireless headset, the wireless headset including a first wireless headset and a second wireless headset arranged in pairs, the method comprising: the first wireless earphone determines that the wireless earphone needs firmware upgrade; the first wireless earphone adjusts the packet sending interval period from a first time length to a second time length, wherein the packet sending interval period represents the time interval of sending the upgrade packet between the first wireless earphone and the second wireless earphone for two adjacent times, the first time length is a default value of the packet sending interval period, the first time length is longer than the second time length, and the upgrade packet is a data packet for firmware upgrade, which is received from a terminal device connected with the first wireless earphone; the first wireless earphone and the second wireless earphone perform firmware upgrade based on the second time duration.
In the application, a first wireless earphone is used as a master earphone, a second wireless earphone is used as a slave earphone, a mobile link (mobile link) is established between the first wireless earphone and a terminal device, a TWS link (TWS link) is established between the first wireless earphone and the second wireless earphone, and the second wireless earphone monitors data communicated between the first wireless earphone and the terminal device.
In the process of firmware upgrading, the first wireless earphone receives an upgrade packet from the terminal equipment, and then the first wireless earphone sends the upgrade packet to the second wireless earphone through the TWS link. In order to normally transmit and receive data packets, the first wireless earphone and the second wireless earphone may set a packet transmission interval period, and transmit and receive data packets based on the packet transmission interval period. If the packet interval period is the default first duration, the first wireless earphone transmits less data to the second wireless earphone through the TWS link in unit time, so that the firmware upgrading efficiency of the wireless earphone is reduced.
Therefore, in the technical scheme, when the first wireless earphone recognizes that the wireless earphone needs to be subjected to firmware upgrading, the packet interval period between the first wireless earphone and the second wireless earphone can be adjusted from a default first time length to a second time length, and the second time length is shorter than the first time length. Therefore, the packet interval period is shortened, the data transmitted to the second wireless earphone by the TWS link in unit time by the first wireless earphone is increased, the data transmission rate is improved, and the firmware upgrading efficiency of the wireless earphone is improved.
With reference to the first aspect, in certain implementation manners of the first aspect, the determining, by the first wireless headset, that the wireless headset needs to be firmware upgraded includes: the first wireless earphone receives a request message from the terminal equipment, wherein the request message is used for requesting firmware upgrade; the first wireless headset determines that the wireless headset needs to be firmware upgraded based on the request message.
With reference to the first aspect, in certain implementation manners of the first aspect, the determining, by the first wireless headset, that the wireless headset needs to be firmware upgraded includes: the first wireless earphone receives a data packet from the terminal equipment; and under the condition that the first wireless earphone determines that the data packet is an upgrade packet, determining that the wireless earphone needs to carry out firmware upgrade.
With reference to the first aspect, in certain implementation manners of the first aspect, the firmware upgrading of the first wireless headset and the second wireless headset based on the second duration includes: the first wireless earphone performs firmware upgrade based on the received upgrade package; the first wireless earphone and the second wireless earphone transmit an upgrade package based on the second time length; the second wireless earphone performs firmware upgrade based on the received upgrade package.
In the present application, after receiving the upgrade packet, the first wireless headset may write the data of the upgrade packet into a flash (flash) backup area, and check the integrity and the time sequence of the upgrade packet. The first wireless earphone transmits the upgrade package based on the second duration and the second wireless earphone, and the second wireless earphone can write the data of the upgrade package into the flash backup area after receiving the upgrade package and check the integrity and the time sequence of the upgrade package. After checking the normal, the upgrade package sent by the first wireless earphone can be received continuously.
With reference to the first aspect, in certain implementations of the first aspect, before the first wireless headset adjusts the packet interval period from the first time period to the second time period, the method further includes: the first wireless earphone determines whether the wireless earphone is performing audio service or not; and when the wireless earphone performs audio service, the first wireless earphone determines the packet interval period as a first duration. The first wireless earphone adjusts the packet interval period from a first time length to a second time length, comprising: and the first wireless earphone adjusts the packet interval period from the first time length to the second time length under the condition that the audio service of the wireless earphone is determined to be ended.
In the application, the first wireless earphone can identify a current task scene, and if the current wireless earphone is identified as a multi-task scene for simultaneously carrying out audio service and firmware upgrading, the first wireless earphone can determine that the packet interval period is a first duration suitable for the audio service. The normal operation of the audio service is guaranteed preferentially, and the call quality is improved.
With reference to the first aspect, in certain implementation manners of the first aspect, when the first wireless headset performs the audio service, determining the packet interval period as the first duration includes: judging the priority of the audio service and firmware upgrading; and under the condition that the priority of the audio service is higher than that of the firmware upgrade, determining the packet interval period as a first duration.
In this application, audio services include services such as talking, listening to music, and the like. The first wireless headset preferably provides an applicable packet interval period for the service with the higher priority. The first wireless earphone determines that the priority of the audio service is higher than that of the firmware upgrading in the multitasking scene of the audio service and the firmware upgrading, so that the packet sending interval period is determined to be a first duration suitable for the audio service, and the first wireless earphone and the second wireless earphone can allocate more time to receive call data from the terminal equipment, thereby being beneficial to reducing the problems of call blocking, noise and the like caused by shorter packet sending interval period.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes: detecting an abnormal event in the process of firmware upgrading of the first wireless earphone and the second wireless earphone; the first wireless headset continues to receive the upgrade package from the terminal device. The abnormal event includes: the first wireless earphone is taken off, or the electric quantity of the first wireless earphone is lower than a preset threshold.
In the present application, the abnormal event may trigger the first wireless earphone and the second wireless earphone to perform the master-slave switching, and the master-slave switching performed by 5 may cause the ears of the wireless earphone to readjust the packet sending interval period. If the hair pack is readjusted to double ears
The interval period is inconsistent, and under the scene of only firmware upgrading, the data transmission rate is low due to the inconsistent interval period of the double ears of the package sending, so that the efficiency of firmware upgrading is reduced. In a multitasking concurrency scenario of firmware upgrades and conversations, the inconsistent packet interval periods across both ears may lead to problems with conversation stuck and may result in slower rates of firmware upgrades. Thus, the first and second substrates are bonded together,
under the condition that the first wireless earphone detects an abnormal event, master-slave switching can be forbidden, the first wireless earphone keeps being connected with the 0 terminal equipment, and data from the terminal equipment are received. This is advantageous in avoiding the period of the hair pack interval due to ears
And the call is blocked and the firmware upgrading speed is slower due to inconsistency.
In a second aspect, a wireless headset is provided that includes a first wireless headset and a second wireless headset disposed in pairs. The first wireless headset is for: determining that the wireless earphone needs firmware upgrade; adjusting the packet interval period from a first time length to a second time length
The time length, the time interval period of the sending packet indicates the time interval 5 between the first wireless earphone and the second wireless earphone for sending the upgrade packet twice, the first time length is a default value of the time interval period of the sending packet, the first time length is longer than the second time length, and the upgrade packet is sent from the first wireless earphone
The terminal equipment connected with the machine receives a data packet for firmware upgrade; and upgrading the firmware of the second wireless earphone based on the second time length. The second wireless earphone is used for: and carrying out firmware upgrade with the first wireless earphone based on the second time length.
In a third aspect, there is provided a processor comprising: input circuit, output circuit and processing circuit. For processing circuits
The signal is received through the input circuit and transmitted through the output circuit, causing the processor to perform the method of any one of the 0 possible implementations of the first aspect.
In a specific implementation process, the processor may be a chip, the input circuit may be an input pin, the output circuit may be an output pin, and the processing circuit may be a transistor, a gate circuit, a trigger, various logic circuits, and the like. The input signal received by the input circuit may be received and input by, for example and without limitation, a receiver, and the output signal may be output by the output circuit
For example, but not limited to, being output to and emitted by a transmitter, and the input circuit and the output circuit may be the same circuit 5, which functions as an input circuit and an output circuit, respectively, at different times. The application relates to a processor and various circuits
The bulk implementation is not limited.
In a fourth aspect, a processing apparatus is provided that includes a processor and a memory. The processor is configured to read instructions stored in the memory and to receive signals via the receiver and to transmit signals via the transmitter to perform the method of any one of the possible implementations of the first aspect.
0 optionally, the processor is one or more, and the memory is one or more.
Alternatively, the memory may be integrated with the processor or the memory may be separate from the processor.
In a specific implementation process, the memory may be a non-transitory (non-transitory) memory, for example, a Read Only Memory (ROM), which may be integrated on the same chip as the processor, or may be separately disposed on different chips, where the type of the memory and the manner of disposing the memory and the processor are not limited in this application.
It will be appreciated that the relevant data interaction procedure, for example, sending the indication information may be a procedure in which the indication information is output from the processor,
receiving the capability information may be the process of the processor receiving the input capability information. Specifically, the data output by the processing may be output to the transmitter, and the input data received by the processor may be from the receiver. Wherein the transmitter and receiver may be collectively referred to as a transceiver.
The processing means in the fourth aspect may be a chip, the processor may be implemented by hardware or may be implemented by software, and when implemented by hardware, the processor may be a logic circuit, an integrated circuit, or the like; when implemented in software, the processor may be a general-purpose processor, implemented by reading software code stored in a memory, which may be integrated in the processor, or may reside outside the processor, and exist separately.
In a fifth aspect, there is provided a computer program product comprising: computer program code which, when run, causes a computer to perform the method of any one of the possible implementations of the first aspect described above.
In a sixth aspect, a computer readable storage medium is provided, the computer readable storage medium storing a computer program which, when executed, causes a computer to perform the method of any one of the possible implementations of the first aspect.
Drawings
FIG. 1 is a schematic illustration of TWS headset communications;
FIG. 2 is a schematic flow chart of a TWS headset upgrade method in a single task scenario;
FIG. 3 is a schematic diagram of a communication scenario provided by an embodiment of the present application;
FIG. 4 is a schematic flow chart of a method for upgrading headphones provided in an embodiment of the present application;
FIG. 5 is a schematic flow chart of a TWS earphone upgrade method under a single task scenario provided by embodiments of the present application;
FIG. 6 is a schematic flow chart of a TWS headset upgrade method under another single task scenario provided by embodiments of the present application;
FIG. 7 is a schematic flow chart diagram of a TWS headset upgrade method in a multitasking concurrent scenario;
FIG. 8 is a schematic flow chart of a TWS earphone upgrade method under a multi-task concurrency scenario provided by embodiments of the present application;
fig. 9 is a schematic block diagram of a wireless headset provided in an embodiment of the present application.
Detailed Description
The technical solutions in the present application will be described below with reference to the accompanying drawings.
In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and effect. For example, the first duration and the second duration are for distinguishing between different durations, and are not limited in order. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
In this application, the terms "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
Furthermore, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, and c may represent: a, b, or c, or a and b, or a and c, or b and c, or a, b and c, wherein a, b and c can be single or multiple.
The terminal device in the embodiment of the present application may be a handheld device, an in-vehicle device, or the like with a wireless connection function, and the terminal device may also be referred to as a terminal (terminal), a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), or the like. Currently, examples of some terminal devices are: a mobile phone, a tablet, a smart television, a notebook, a tablet (Pad), a palm, a mobile internet device (mobile internet device, MID), a Virtual Reality (VR) device, an augmented reality (augmented reality, AR) device, a wireless terminal in an industrial control (industrial control), a wireless terminal in an unmanned (self driving), a wireless terminal in a teleoperation (remote medical surgery), a wireless terminal in a smart grid (smart grid), a wireless terminal in a transportation security (transportation safety), a wireless terminal in a smart city (smart home), a wireless terminal in a smart home (smart home), a cellular phone, a cordless phone, a session initiation protocol (session initiation protocol, SIP) phone, a wireless local loop (wireless local loop, WLL) station, a personal digital assistant (personal digital assistant, PDA), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a 5G network, or a terminal in an evolving network, a public communication system, a specific embodiment of the present application is not implemented in the future network (public land mobile network).
By way of example, and not limitation, in embodiments of the present application, the terminal device may also be a wearable device. The wearable device can also be called as a wearable intelligent device, and is a generic name for intelligently designing daily wear by applying wearable technology and developing wearable devices, such as glasses, gloves, watches, clothes, shoes and the like. The wearable device is a portable device that is worn directly on the body or integrated into the clothing or accessories of the user. The wearable device is not only a hardware device, but also can realize a powerful function through software support, data interaction and cloud interaction. The generalized wearable intelligent device includes full functionality, large size, and may not rely on the smart phone to implement complete or partial functionality, such as: smart watches or smart glasses, etc., and focus on only certain types of application functions, and need to be used in combination with other devices, such as smart phones, for example, various smart bracelets, smart jewelry, etc. for physical sign monitoring.
It should be understood that in the embodiment of the present application, the terminal device may be a device for implementing a function of the terminal device, or may be a device capable of supporting the terminal device to implement the function, for example, a chip system, and the device may be installed in the terminal. In the embodiment of the application, the chip system may be formed by a chip, and may also include a chip and other discrete devices.
The terminal device in the embodiment of the present application may also be referred to as: a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote terminal, a mobile device, a user terminal, a wireless communication device, a user agent, or a user equipment, etc.
Fig. 1 is a schematic diagram of a TWS headset communication. As shown in fig. 1, the left earphone is used as a master earphone, the right earphone is used as a slave earphone, the left earphone and the terminal equipment establish a bluetooth link (called a mobile link) through a bluetooth communication protocol, the left earphone and the right earphone establish a bluetooth link (called a TWS link) through the bluetooth communication protocol, meanwhile, the right earphone listens to a signal sent by the terminal equipment by copying the mobile link between the left earphone and the terminal equipment, the copied link is called a listening link, the listening link is not received and transmitted, and a confirmation mechanism is not arranged between the listening link and the terminal equipment. The left and right headphones may switch roles as master and slave headphones.
The master earphone and the slave earphone can perform information synchronization operation on the TWS link through TWS time slots, such as synchronization of information of electric quantity, firmware upgrade, state in the earphone charging box and the like. The TWS time slot represents a period of a packet transmission interval between the master earphone and the slave earphone on the TWS link, and the longer the period is, the longer the TWS earphone can be allocated to receive data sent by the mobile phone. Conversely, the shorter the period, the shorter the time that can be allocated to receiving data sent by the handset. In general, the master earphone and the slave earphone need to maintain the same TWS time slot to synchronize the time stamps of the transmitted and received data packets, so as to avoid the problem of slow data transmission rate caused by asynchronous transceiving.
In general, in order to compensate for some loopholes, errors, or incompatibilities between the current version of firmware of the TWS headset and the physical device, developers develop new versions of firmware to upgrade the old version of firmware in the TWS headset with the new versions of firmware.
In the embodiment of the present application, firmware upgrade by using an OTA technology may be abbreviated as firmware upgrade, and in the process of firmware upgrade, the TWS earphone may receive at least one upgrade packet from the terminal device. The upgrade package is a data package for firmware upgrade received from the slave terminal equipment of the master earphone, and the master earphone sends the upgrade package to the slave earphone through the TWS link.
Fig. 2 is a schematic flow chart of a TWS headset upgrade method in a single task scenario. Taking a terminal device as a mobile phone as an example, in the process of upgrading firmware, the mobile phone and a main earphone establish a Bluetooth link (such as a mobile link in fig. 1), and when the mobile phone inquires that the new version of firmware exists, the mobile phone can prompt a user to download the new version of firmware in a man-machine interaction interface. And responding to the operation of clicking to start firmware upgrading by the user, and sending an upgrading packet to the main earphone through the mobile link by the mobile phone. After receiving the upgrade package, the master earphone sends the upgrade package to the slave earphone through the TWS link by using the default time slot 104, and the right earphone continues to receive the upgrade package sent by the master earphone after checking that the integrity and the time sequence of the received upgrade package are normal.
In the case of transmitting the upgrade packet, the baseband symbol rate of bluetooth is 1Mb/s, and the upgrade packet is transmitted in the form of a data packet in time slots, with 0.625ms per time slot. 104 in the slots 104 represents the number of slots, and when the slots 104 are used to transmit the upgrade packet, the period of the packet transmission interval corresponding to the slots 104 is 0.625×104=65 ms.
Illustratively, the transmission of the upgrade package between the handset and the TWS headset is implemented based on the serial port protocol (serial port profile, SPP) Bluetooth protocol.
In the process of transmitting the upgrade package between the master earphone and the slave earphone, the default time slot 104 is used for data transmission by communication between the master earphone and the slave earphone, and the time slot 104 is a longer TWS time slot, so that after the master earphone receives the upgrade package sent by the mobile phone from the mobile link, the number of the upgrade packages sent to the slave earphone by the master earphone through the TWS link in unit time is small. If the period of the packet sending interval is longer, although the main earphone has received the upgrade packet of the mobile phone and performs firmware upgrade based on the upgrade packet, it is possible that the upgrade progress of the first wireless earphone is 50%, but the upgrade packet is not received from the earphone for a long time, the upgrade progress may be only 30%, so that the upgrade progress of the entire TWS earphone is only 30%, thus reducing the firmware upgrade rate, and further resulting in low upgrade efficiency of the TWS earphone.
In view of this, the embodiments of the present application provide a headset upgrading method and a wireless headset, where the headset upgrading method can be applied to a wireless headset, such as a TWS headset. Based on the technical scheme of the embodiment of the application, the wireless earphone can dynamically adjust TWS time slots according to scenes, and the data transmission rate between the terminal equipment and the wireless earphone is improved.
Fig. 3 is a schematic diagram of a communication scenario provided in an embodiment of the present application. As shown in fig. 3, the scenario includes a terminal device 301 and a wireless headset 302. The wireless headset 302 is paired with a terminal device via a wireless communication protocol (e.g., bluetooth communication protocol) for data transmission.
The wireless headphones 302 include a first wireless headphone 01 and a second wireless headphone 02 arranged in pairs as audio outputs of left and right headphones, respectively.
Further, the wireless headset 302 also includes a headset charging cartridge that is used with the headset. The earphone charging box is internally provided with a cavity for accommodating the earphone, and is used for charging the wireless earphone when the earphone is placed in the corresponding cavity.
Fig. 4 is a schematic flowchart of a method 400 for upgrading a headset according to an embodiment of the present application.
The method 400 may be applied to a communication scenario as shown in fig. 3. In method 400, the wireless headset may include a first wireless headset and a second wireless headset disposed in pairs, as shown by wireless headset 302 in fig. 3. A bluetooth link (e.g., a mobile link in fig. 1) is established between the first wireless headset and the terminal device, and a bluetooth link (e.g., a TWS link in fig. 1) is established between the first wireless headset and the second wireless headset. The method 400 includes S401 to S403, and the specific steps are as follows:
S401, the first wireless earphone determines that the wireless earphone needs firmware upgrade.
In this step, the role of the first wireless headset as the master headset determines that the wireless headset needs to be firmware upgraded.
In one possible implementation, the first wireless headset determines that the wireless headset needs a firmware upgrade, including: the first wireless earphone receives a request message from the terminal equipment, wherein the request message is used for requesting firmware upgrade; the first wireless headset determines that the wireless headset needs to be firmware upgraded based on the request message.
In this implementation, when the terminal device queries that the new version firmware exists, the terminal device may prompt the user to download the new version firmware in the man-machine interaction interface. In response to a user clicking on an operation to start a firmware upgrade, the terminal device may send a request message to the first wireless headset, the request message requesting a firmware upgrade. After the first wireless earphone receives the request message, the TWS earphone is determined to need firmware upgrade, and a response message is sent to the terminal equipment and used for determining to upgrade the firmware.
After receiving the operation of starting firmware upgrading by clicking by the user, the terminal device can acquire the new version of firmware from the server in real time and then send the new version of firmware to the first wireless earphone. Or the terminal device downloads the new version firmware from the server in advance, and after receiving the operation of starting firmware upgrade by clicking by the user, the terminal device can acquire the new version firmware from the storage space and transmit the new version firmware to the first wireless earphone.
In another possible implementation, the first wireless headset determines that the wireless headset needs a firmware upgrade, including: the first wireless earphone receives a data packet from the terminal equipment; and under the condition that the first wireless earphone determines that the data packet is an upgrade packet, determining that the wireless earphone needs to carry out firmware upgrade.
In this implementation manner, after downloading the new version of firmware from the server, the terminal device may actively transmit an upgrade packet for firmware upgrade to the first wireless headset according to the firmware upgrade protocol, where the upgrade packet carries identification information, and identifies the upgrade packet as a data packet for firmware upgrade. After the first wireless earphone receives the upgrade package, the first wireless earphone determines that the upgrade package is used for firmware upgrade, and then the wireless earphone can be determined that the firmware upgrade is required.
And the terminal equipment confirms the update when detecting that the server updates the firmware of the wireless earphone and requests to update the firmware of the wireless earphone, and then can download the new version of firmware from the server. After the downloading is completed, the terminal equipment can transmit the new version of firmware to the wireless earphone according to the firmware upgrading protocol, so that the firmware upgrading of the wireless earphone is realized.
S402, the first wireless earphone adjusts a packet sending interval period from a first time length to a second time length, wherein the packet sending interval period represents a time interval between two adjacent times of sending upgrade packets between the first wireless earphone and the second wireless earphone, the first time length is a default value of the packet sending interval period, the first time length is longer than the second time length, and the upgrade packets are data packets for firmware upgrade, which are received by the first wireless earphone from the terminal equipment.
In this step, taking the wireless earphone as a TWS earphone as an example, the packet interval period is the packet interval period of two adjacent times of sending the upgrade packet on the TWS link by the first wireless earphone and the second wireless earphone represented by the TWS time slot described above.
Illustratively, the first duration may be a duration corresponding to the time slot 104, and the second duration may be a duration corresponding to the time slot 52.
In the case of transmitting the upgrade packet, the baseband symbol rate of bluetooth is illustratively 1Mb/s, and the upgrade packet is transmitted in the form of a data packet in time slots of 0.625ms per time slot. 104 in the time slots 104 and 52 in the time slots 52 represent the number of time slots, and when the time slots 104 are used to transmit the upgrade packet, the period of the packet transmission interval corresponding to the time slots 104 is 0.625×104=65 ms, that is, the first duration is 65ms; when the upgrade packet is transmitted using the slot 52, the slot 52 corresponds to a packet interval period of 0.625×52=32.5 ms, i.e., the second duration is 32.5ms.
In this step, the first wireless earphone may identify a scenario in which the wireless earphone needs to perform firmware upgrade, and in the scenario in which the firmware upgrade is performed, the first wireless earphone may adjust a packet interval period from a default first time period to a second time period, where the second time period is shorter than the first time period, so that it is beneficial to increasing the number of data packets transmitted to the second wireless earphone by the first wireless earphone in a unit time, improving a data transmission rate, and further improving firmware upgrade efficiency of the wireless earphone.
S403, the first wireless earphone and the second wireless earphone conduct firmware upgrade based on the second duration.
In this step, the first wireless headset receives an upgrade packet from the terminal device, and performs firmware upgrade based on the upgrade packet. The first wireless earphone and the second wireless earphone transmit an upgrade package based on the second time length; the second wireless earphone performs firmware upgrade based on the received upgrade package.
Optionally, a firmware version number and a cyclic redundancy check (cyclic redundancy check, CRC) 32 check value may be included in the upgrade package. After receiving the upgrade package, the first wireless earphone writes data in the upgrade package into the flash backup area, checks the received upgrade package based on the firmware version number and the file CRC 32 check value, and continues to receive the upgrade package from the terminal equipment after the check is passed. The first wireless earphone and the second wireless earphone transmit the upgrade package based on the second time length, the second wireless earphone writes data in the upgrade package into the flash backup area after receiving the upgrade package, checks the received upgrade package according to the firmware version number and the CRC 32 check value, and continues to receive the upgrade package from the first wireless earphone after the verification is passed.
The following description will take a wireless earphone as a TWS earphone, where a first time length is a time length corresponding to the time slot 104, and a second time length is a time length corresponding to the time slot 52 as an example. The first wireless headset and the second wireless headset communicate over a TWS link.
Fig. 5 is a schematic flowchart of a TWS headset upgrading method in a single task scenario provided in an embodiment of the present application, where the TWS headset upgrading method shown in fig. 5 may be applied to a communication scenario shown in fig. 3. In the embodiment of the application, the first wireless earphone is used as a master earphone, and the second wireless earphone is used as a slave earphone.
In the process of firmware upgrade shown in fig. 5, the mobile phone establishes a bluetooth link with the first wireless headset (such as the mobile link in fig. 1), and when the terminal device queries that the new version of firmware exists, the terminal device can prompt the user to download the new version of firmware in the man-machine interaction interface. In response to a user clicking on an operation to start a firmware upgrade, the terminal device may send a request message to the first wireless headset, the request message requesting a firmware upgrade. After the first wireless earphone receives the request message, it is determined that the TWS earphone needs to be subjected to firmware upgrading, and the first wireless earphone can send a response message to the terminal device for determining to be subjected to firmware upgrading. After receiving the response message, the terminal device sends an upgrade package to the first wireless earphone through the mobile link. After receiving the upgrade packet, the first wireless headset adjusts the TWS slot from the default slot 104 to the slot 52, and starts to execute the firmware upgrade procedure. After the upgrade is completed, the first wireless headset adjusts the TWS slot from slot 52 to slot 104.
In the embodiment of the present application, the first wireless headset changes the TWS time slot from time slot 104 to time slot 52, that is, adjusts the period of the packet interval between the first wireless headset and the second wireless headset. After the first wireless headset receives the upgrade package from the terminal device, the upgrade package is sent to the second wireless headset using the time slot 52. Wherein the packet interval period of time slot 52 is less than the packet interval period of time slot 104. In this way, compared with the manner of using the default time slot 104 as shown in fig. 2, after the first wireless earphone receives the upgrade packet sent by the terminal device from the mobile link, the upgrade packet sent by the first wireless earphone to the second wireless earphone through the TWS link in unit time is increased, which is favorable for improving the data transmission rate, and further improving the upgrade efficiency of the TWS earphone.
Fig. 6 is a schematic flowchart of another TWS headset upgrade method 600 in a single task scenario provided in an embodiment of the present application, where the method 600 may be applied to the communication scenario shown in fig. 3, but the embodiment of the present application is not limited thereto. In an embodiment of the present application, the TWS headset includes a first wireless headset and a second wireless headset, the first wireless headset acting as a master headset and the second wireless headset acting as a slave headset. The method 600 includes steps S601 to S610, which are as follows:
S601, the terminal equipment and the TWS earphone establish Bluetooth connection.
In this step, the bluetooth connection comprises a mobile link between the terminal device and the first wireless headset, a TWS link between the first wireless headset and the second wireless headset, the second wireless headset listening to the data communicated between the first wireless headset and the terminal device by copying the mobile link.
In one possible implementation, an icon of bluetooth is displayed in the notification bar of the terminal device, and the user may turn on bluetooth in the notification bar of the terminal device. If the terminal equipment detects that the user clicks the Bluetooth icon in the notification bar, the terminal equipment responds to clicking operation of the user to open the Bluetooth.
In another possible implementation manner, a bluetooth on switch is set in the setting interface of the terminal device, and the user may also turn on bluetooth in the setting interface of the terminal device. And if the terminal equipment detects the operation of clicking the Bluetooth in the setting interface by the user, the Bluetooth is opened in response to the clicking operation of the user.
After the terminal device turns on bluetooth, the terminal device may receive a paging message from the TWS headset requesting that a bluetooth connection be established with the terminal device. The terminal device may scan for external pages at regular intervals and may respond to the external page message when it is scanned by the terminal device, so that a bluetooth connection may be established between the terminal device and the TWS headset.
The above method for the terminal device to open bluetooth and for the terminal device to establish bluetooth connection with the TWS headset is only described as an example, and any possible implementation manner is applicable to the present application, which is not limited herein.
S602, the terminal equipment sends an upgrade request message to the first wireless earphone, wherein the upgrade request message is used for requesting firmware upgrade. Accordingly, the first wireless headset receives the upgrade request message.
In this step, if the terminal device detects that the server updates the firmware of the TWS headset, the terminal device requests to update the firmware of the TWS headset, and after confirming the update, the terminal device may download a new version of firmware from the server. After the downloading is completed, the terminal device can transmit the new version of firmware to the TWS earphone according to the firmware upgrading protocol, so that the firmware upgrading of the TWS earphone is realized.
In one possible implementation, the terminal device may transmit a new version of firmware to the TWS headset in response to a user clicking on the firmware upgrade.
In another possible implementation, the terminal device may actively transmit the new version of firmware to the TWS headset after downloading the new version of firmware.
In yet another possible implementation, the TWS headset may actively send an upgrade request to the terminal device. In this way, the terminal device may obtain, in real time, a new version of firmware from the server after receiving the upgrade request, and then send the new version of firmware to the TWS headset. Or the terminal equipment downloads the firmware of the new version from the server in advance, and after receiving the upgrade request sent by the TWS earphone, the terminal equipment transmits the firmware of the new version to the TWS earphone.
S603, the first wireless earphone sends an upgrade response message to the terminal equipment, wherein the upgrade response message is used for confirming firmware upgrade. Accordingly, the terminal device receives the upgrade response message.
S604, the first wireless headset adjusts the TWS slot from slot 104 to slot 52.
In this step, the first wireless headset adjusts the TWS slot from the slot 104 to the slot 52 in the case that it is determined to perform the firmware upgrade, wherein the packet interval period of the slot 52 is smaller than the packet interval period of the slot 104, so as to increase the data transmission rate of the firmware upgrade process.
After determining to use the time slot 52, the first wireless headset transmits synchronization information over the TWS link to the second wireless headset instructing the second wireless headset to adjust the TWS time slot to the time slot 52. After the second wireless headset receives the synchronization information, the TWS slot is adjusted from slot 104 to slot 52.
S605, the terminal equipment sends an upgrade package to the first wireless earphone. Accordingly, the first wireless headset receives the upgrade package.
It should be understood that since the amount of data transmitted at one time by bluetooth is limited, the terminal device may divide one upgrade firmware into a plurality of upgrade packages, and after the master earphone and the slave earphone acquire all of the upgrade packages, the master earphone and the slave earphone may complete an upgrade operation using the upgrade firmware.
For example, the size of a data block of one upgrade firmware is 2048 bytes, and the terminal device may block the data block of the upgrade firmware when sending to the main earphone, to obtain a plurality of upgrade packages, for example, each upgrade package has a size of 20 bytes.
For example, the terminal device may transmit the upgrade package to the first wireless headset at a fixed package interval.
S606, the first wireless headset sends an upgrade package to the second wireless headset. Accordingly, the second wireless headset receives the upgrade package.
In this step, the first wireless headset transmits an upgrade packet to the second wireless headset using the time slot 52.
S607, the second wireless earphone verifies that the integrity and the time sequence of the upgrade package are normal.
And S608, the terminal equipment sends an upgrade completion message to the first wireless earphone under the condition that all upgrade packages are sent. Accordingly, the first wireless headset receives the upgrade complete message.
S609, the first wireless headset adjusts the TWS slot from slot 52 to slot 104.
In this embodiment of the present application, when the first wireless earphone determines that firmware upgrade is to be performed, the TWS timeslot is adjusted from the default timeslot 104 to the timeslot 52, where the packet interval period of the timeslot 52 is smaller than the packet interval period of the timeslot 104, so that the upgrade packet sent by the first wireless earphone to the second wireless earphone through the TWS link in a unit time is increased, which is favorable for improving the data transmission rate, and further improving the upgrade efficiency of the TWS earphone.
Optionally, before S605, the method 600 further includes S610: the first wireless headset prohibits master-slave switching.
In the process that the first wireless earphone and the second wireless earphone transmit the upgrade packet through the TWS link, there may be a case that the master earphone and the slave earphone are triggered to perform master-slave switching, for example, the user takes off the first wireless earphone, or the electric quantity of the first wireless earphone is lower than a preset threshold. After triggering the switching, the first wireless earphone sends a request of master-slave switching to the second wireless earphone, and the second wireless earphone sends a response to the request to the first wireless earphone based on the request, so that the master-slave switching can be determined. After the switching, the connection between the first wireless earphone and the terminal equipment is disconnected, the terminal equipment and the second wireless earphone establish a mobile link as shown in fig. 1, the second wireless earphone is used as a main earphone to perform data transmission with the terminal equipment, the first wireless earphone is used as a slave earphone to monitor signals sent by the terminal equipment, and the data forwarded by the second wireless earphone is received.
Triggering the master-slave switch causes the first wireless headset and the second wireless headset to reset the packet interval period. Illustratively, the TWS time slots used by the first wireless headset and the second wireless headset during the transmission of the upgrade packet are time slots 52, and after the handoff, the second wireless headset uses the original time slots 52 of the first wireless headset, and when resetting the TWS time slots of the second wireless headset, the second wireless headset may send synchronization information to the first wireless headset on the TWS link, indicating that the TWS time slots of the first wireless headset are set to be time slots 52. However, if not successfully set to slot 52, the first wireless headset will use the default slot 104, which may cause the TWS slots of the first wireless headset and the second wireless headset to be inconsistent, reducing the data transmission rate. The reason for the failure may include abnormal TWS link, the first wireless earphone not receiving the synchronization information, or the first wireless earphone chip generating an abnormality, and failure in the configuration.
Therefore, in the embodiment of the application, the first wireless earphone can prohibit master-slave switching in the firmware upgrading process and continue to receive the upgrade packet from the terminal device, so that the problem of inconsistent TWS time slots of two ears is avoided, and the data transmission rate is improved. In addition, the terminal equipment does not need to disconnect the connection with the first wireless earphone and establish connection with the second wireless earphone, so that the stability of the Bluetooth connection of the TWS earphone is improved, and firmware upgrading failure caused by interruption of data transmission is avoided. After the firmware upgrade is completed, the terminal device adjusts the TWS slot from slot 52 to slot 104, and the first wireless headset may switch master-slave with the second wireless headset.
In the actual use process of the TWS earphone by the user, a multi-task concurrent scene may exist, for example, a multi-task concurrent scene such as SPP data transmission service and music, or a multi-task concurrent scene such as SPP data transmission service and conversation. Wherein music and conversation belong to audio services, the terminal device and the TWS earphone can transmit conversation data based on a Hand Free Profile (HFP) protocol and transmit music data based on a Bluetooth audio transmission protocol (advanced audio distribution profile, A2 DP). The SPP data transfer traffic may include at least one of firmware upgrades, log (log) transfers, or big data uploads, and the SPP data transfer traffic may be based on SPP protocols.
Fig. 7 is a schematic flow chart of a TWS headset upgrade method in a multi-tasking concurrency scenario. Taking a firmware upgrade and a multitasking scenario of a call as an example, a user wears a TWS headset to start the call, and in a normal case, when the TWS headset performs a call service, a master headset and a slave headset in the TWS headset use a default time slot 104 to transmit call data. If the terminal equipment initiates firmware upgrade in the call process, the master earphone adjusts the TWS time slot between the master earphone and the slave earphone, and the time slot 104 is adjusted to be the time slot 52 of the SPP data transmission scene. After the call is ended, if the firmware upgrade is still continuing, the TWS headset continues to use the time slot 52 for data transmission until the firmware upgrade is ended, and the TWS headset adjusts the TWS time slot from the time slot 52 to the time slot 104.
In the description of fig. 7, in the scenario of firmware upgrade and multi-tasking of a call, since the main earpiece in the TWS earpiece adjusts the TWS timeslot from the default timeslot 104 to the timeslot 52 during the call, and the timeslot 52 has a shorter packet interval period than the timeslot 104, the shorter the time allocated by the TWS earpiece to receive the call data sent by the terminal device, which may cause negative effects such as audio jamming and noise during the call.
Based on this, fig. 8 is a schematic flowchart of a TWS headset upgrading method in a multi-task concurrency scenario provided in an embodiment of the present application. Taking a firmware upgrading and talking multitasking scenario as an example, a user wears a TWS earphone to start talking, and if the TWS earphone determines that there is no SPP data transmission service, the default time slot 104 is used to perform talking service. If the terminal equipment initiates the firmware upgrade in the call process, the TWS earphone judges that the priority of the call service is higher than that of the firmware upgrade, so that the time slot 104 is continuously used for the call service. After the call is ended, if the firmware upgrade is still in progress, the TWS headset may adjust the TWS slot from slot 104 to slot 52 of the SPP data transmission scenario. After the firmware upgrade is completed, the TWS headset adjusts the TWS slots from slot 52 to slot 104.
In the embodiment of the application, the TWS earphone can dynamically adjust TWS time slots according to different scenes. Under the condition that the multiplexing concurrency scene of the firmware upgrading and the call service is detected, the priority of the call service is higher than that of the firmware upgrading, so that the TWS earphone can keep the TWS time slot as the default time slot 104 unchanged, the problem that the time for receiving call data sent by the terminal equipment is shortened due to the shortened time slot is avoided, and the problems of call blocking, noise and the like are reduced. When the call is ended, the TWS earphone can adjust the TWS time slot from the time slot 104 to the time slot 52 of the data transmission scene when only the single task scene of firmware upgrading exists, the time slot 52 is used for firmware upgrading, and compared with the time slot 104, the time slot 52 has a shorter packet interval period, so that data sent to the slave earphone by the main earphone in the TWS earphone through the TWS link in unit time is increased, and the firmware upgrading speed can be improved.
Under the above-mentioned multi-task concurrency scenario, the case of triggering the master-slave switching of the TWS earphone described with respect to fig. 6 may also occur, and in the case of master-slave switching, the problem of inconsistent TWS binaural time slots may occur, where the inconsistent TWS binaural time slots may cause the noise of the call to be aggravated, and the transmission rate of the upgrade package to be slower.
For example, if the TWS time slot of the master earphone is time slot 104 after the master-slave switch, the TWS time slot of the slave earphone is time slot 52, and the TWS binaural time slots are inconsistent, so that the master earphone has more time to receive the call data from the terminal device, and the slave earphone has less time to be allocated to receive the call data from the terminal device due to the shorter time slot 52, which may cause problems such as jamming, noise and the like in the data transmission process.
Therefore, the master earphone can prohibit master-slave switching in a multi-task concurrency scene of conversation and firmware upgrading, and keep the two-ear time slots of TWS consistent, thereby being beneficial to improving conversation quality and improving the transmission rate of an upgrading packet.
It should be understood that the sequence numbers of the above processes do not mean the order of execution, and the execution order of the processes should be determined by the functions and internal logic of the processes, and should not constitute any limitation on the implementation process of the embodiments of the present application.
The earphone upgrading method according to the embodiment of the present application is described in detail above with reference to fig. 1 to 8, and the wireless earphone according to the embodiment of the present application will be described in detail below with reference to fig. 9.
Fig. 9 is a schematic block diagram of a wireless headset 900 provided in an embodiment of the present application, the wireless headset 900 including a first wireless headset 01 and a second wireless headset 02.
Wherein, first wireless headset 01 is used for: determining that the wireless earphone needs firmware upgrade; the packet sending interval period is adjusted from a first time length to a second time length, the packet sending interval period represents the time interval of sending the upgrade packet between the first wireless earphone 01 and the second wireless earphone 02, the first time length is a default value of the packet sending interval period, the first time length is longer than the second time length, and the upgrade packet is a data packet for firmware upgrade, which is received from a terminal device connected with the first wireless earphone 01; and, firmware upgrade is performed with the second wireless headset 02 based on the second time period. The second wireless earphone 02 is for: firmware upgrade is performed with the first wireless headset 01 based on the second time period.
Optionally, the first wireless earphone 01 is configured to: receiving a request message from a terminal device, wherein the request message is used for requesting firmware upgrade; and determining that the wireless headset needs firmware upgrade based on the request message.
Optionally, the first wireless earphone 01 is configured to: receiving a data packet from a terminal device; and determining that the wireless earphone needs to be subjected to firmware upgrading under the condition that the data packet is determined to be an upgrade packet.
Optionally, the first wireless earphone 01 is configured to: firmware upgrading is carried out based on the received upgrading packet; and transmitting the upgrade package to the second wireless headset based on the second time period. The second wireless earphone 02 is for: receiving an upgrade package from the first wireless headset 01 based on the second time period; and performing firmware upgrade based on the received upgrade package.
Optionally, the first wireless earphone 01 is configured to: determining whether the wireless earphone is performing audio service; when the wireless earphone performs audio service, determining a packet interval period as a first duration; and adjusting the packet interval period from the first time length to the second time length under the condition that the audio service of the wireless earphone is determined to be ended.
Optionally, the first wireless earphone 01 is configured to: judging the priority of the audio service and firmware upgrading; and determining the packet interval period as a first duration under the condition that the priority of the audio service is higher than that of the firmware upgrade.
Optionally, the first wireless earphone 01 is configured to: during a firmware upgrade with the second wireless headset 02, an abnormal event is detected; and continuing to receive the upgrade package from the terminal equipment; the exception event includes: the first wireless earphone 01 is removed, or the power of the first wireless earphone 01 is lower than a preset threshold.
The embodiment of the application provides an earphone upgrading system, which comprises: the wireless earphone comprises a first wireless earphone and a second wireless earphone which are arranged in pairs, the terminal equipment is connected with the first wireless earphone, and the first wireless earphone is connected with the second wireless earphone.
Wherein, terminal equipment is used for: and sending an upgrade package to the first wireless earphone, wherein the upgrade package is used for firmware upgrade.
The first wireless headset is for: determining that the wireless earphone needs firmware upgrade; the method comprises the steps that a packet sending interval period is adjusted to a second time length from a first time length, wherein the packet sending interval period represents a time interval for sending an upgrade packet between a first wireless earphone and a second wireless earphone, the first time length is a default value of the packet sending interval period, the first time length is longer than the second time length, and the upgrade packet is a data packet received from terminal equipment and used for firmware upgrade; and upgrading the firmware of the second wireless earphone based on the second time length.
The second wireless earphone is used for: and carrying out firmware upgrade with the first wireless earphone based on the second time length.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system, apparatus and module may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely specific embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any person skilled in the art may easily think about changes or substitutions within the technical scope of the embodiments of the present application, and the changes or substitutions are intended to be covered by the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.
Claims (13)
1. A headset upgrade method, applied to a wireless headset, the wireless headset including a first wireless headset and a second wireless headset arranged in pairs, the method comprising:
the first wireless earphone determines that the wireless earphone needs firmware upgrade;
the first wireless earphone adjusts a packet sending interval period from a first time length to a second time length, wherein the packet sending interval period represents a time interval between the first wireless earphone and the second wireless earphone for sending an upgrade packet twice, the first time length is a default value of the packet sending interval period, the first time length is longer than the second time length, and the upgrade packet is a data packet for firmware upgrade, which is received from a terminal device connected with the first wireless earphone;
the first wireless earphone and the second wireless earphone are in a master-slave earphone relationship, and the master earphone is set to be not switched to the slave earphone in the firmware upgrading process.
2. The method of claim 1, wherein prior to the first wireless headset adjusting the packet interval period from the first time period to the second time period, the method further comprises:
the first wireless earphone determines that the packet interval period is the first duration when determining that the wireless earphone is performing audio service and the priority of the audio service is higher than that of the firmware upgrade;
The first wireless earphone adjusts a packet interval period from a first time length to a second time length, including:
the first wireless earphone adjusts the packet interval period from the first time length to the second time length under the condition that the audio service of the wireless earphone is determined to be ended.
3. The method of claim 1, wherein the first wireless headset determining that the wireless headset requires a firmware upgrade comprises:
the first wireless earphone receives a request message from the terminal equipment, wherein the request message is used for requesting firmware upgrade;
the first wireless earphone determines that the wireless earphone needs firmware upgrade based on the request message.
4. The method of claim 1, wherein the first wireless headset determining that the wireless headset requires a firmware upgrade comprises:
the first wireless earphone receives a data packet from the terminal equipment;
and under the condition that the first wireless earphone determines that the data packet is an upgrade packet, determining that the wireless earphone needs to be subjected to firmware upgrade.
5. The method of claim 1, wherein the first wireless headset and the second wireless headset are firmware upgraded based on the second time period, comprising:
The first wireless earphone performs firmware upgrade based on the received upgrade package;
the first wireless earphone and the second wireless earphone transmit the upgrade package based on the second duration;
and the second wireless earphone performs firmware upgrade based on the received upgrade package.
6. The method of claim 1, wherein prior to the first wireless headset adjusting the packet interval period from the first time period to the second time period, the method further comprises:
the first wireless headset determines whether the wireless headset is engaged in audio services.
7. The method of claim 6, wherein before the first wireless headset adjusts the packet interval period from the first time period to the second time period, the method further comprises:
and judging the priority of the audio service and the firmware upgrade.
8. The method according to any one of claims 1 to 7, further comprising:
detecting an abnormal event in the process of firmware upgrading of the first wireless earphone and the second wireless earphone;
the first wireless earphone continues to receive the upgrade package from the terminal equipment;
The exception event includes: and the first wireless earphone is taken off, or the electric quantity of the first wireless earphone is lower than a preset threshold.
9. A wireless headset comprising a first wireless headset and a second wireless headset arranged in pairs;
the first wireless earphone is used for:
determining that the wireless earphone needs firmware upgrade;
the method comprises the steps of adjusting a packet sending interval period from a first time length to a second time length, wherein the packet sending interval period represents a time interval between two adjacent times of sending upgrade packets between the first wireless earphone and the second wireless earphone, the first time length is a default value of the packet sending interval period, the first time length is longer than the second time length, and the upgrade packets are data packets for firmware upgrade, which are received from terminal equipment connected with the first wireless earphone;
the first wireless earphone and the second wireless earphone are in a master-slave earphone relationship, and the master earphone is set to be not switched to the slave earphone in the firmware upgrading process.
10. The wireless headset of claim 9, wherein the first wireless headset is configured to:
under the condition that the wireless earphone is determined to be carrying out audio service and the priority of the audio service is higher than that of the firmware upgrade, determining the packet interval period as the first duration;
And adjusting the packet interval period from the first time length to the second time length under the condition that the audio service of the wireless earphone is determined to be ended.
11. A headset upgrade system, comprising: the wireless earphone comprises a first wireless earphone and a second wireless earphone which are arranged in pairs, the terminal equipment is connected with the first wireless earphone, and the first wireless earphone is connected with the second wireless earphone; wherein,
the terminal device is used for: sending an upgrade package to the first wireless earphone, wherein the upgrade package is used for firmware upgrade;
the first wireless earphone is used for:
determining that the wireless earphone needs firmware upgrade;
the method comprises the steps of adjusting a packet sending interval period from a first time length to a second time length, wherein the packet sending interval period represents a time interval between two adjacent times of sending upgrade packets between the first wireless earphone and the second wireless earphone, the first time length is a default value of the packet sending interval period, the first time length is longer than the second time length, and the upgrade packets are data packets for firmware upgrade, which are received from the terminal equipment; the first wireless earphone and the second wireless earphone are in a master-slave earphone relationship, and the master earphone is set to be not switched to be a slave earphone in the firmware upgrading process;
Firmware upgrade is carried out with the second wireless earphone based on the second duration;
the second wireless earphone is used for:
and carrying out firmware upgrade with the first wireless earphone based on the second time length.
12. The system of claim 11, wherein the first wireless headset is configured to:
under the condition that the wireless earphone is determined to be carrying out audio service and the priority of the audio service is higher than that of the firmware upgrade, determining the packet interval period as the first duration;
and adjusting the packet interval period from the first time length to the second time length under the condition that the audio service of the wireless earphone is determined to be ended.
13. A computer readable storage medium for storing a computer program which, when run on a computer, causes the computer to perform the method of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211592083.9A CN116208882B (en) | 2022-07-08 | 2022-07-08 | Earphone upgrading method and wireless earphone |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210796831.9A CN114866526B (en) | 2022-07-08 | 2022-07-08 | Earphone upgrading method and wireless earphone |
CN202211592083.9A CN116208882B (en) | 2022-07-08 | 2022-07-08 | Earphone upgrading method and wireless earphone |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210796831.9A Division CN114866526B (en) | 2022-07-08 | 2022-07-08 | Earphone upgrading method and wireless earphone |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116208882A CN116208882A (en) | 2023-06-02 |
CN116208882B true CN116208882B (en) | 2023-12-19 |
Family
ID=82626729
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211592083.9A Active CN116208882B (en) | 2022-07-08 | 2022-07-08 | Earphone upgrading method and wireless earphone |
CN202210796831.9A Active CN114866526B (en) | 2022-07-08 | 2022-07-08 | Earphone upgrading method and wireless earphone |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210796831.9A Active CN114866526B (en) | 2022-07-08 | 2022-07-08 | Earphone upgrading method and wireless earphone |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN116208882B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115988006A (en) * | 2022-12-07 | 2023-04-18 | Oppo广东移动通信有限公司 | Parameter configuration method and device and audio equipment group |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108429979A (en) * | 2018-06-15 | 2018-08-21 | 歌尔科技有限公司 | A kind of charging box upgrade method, charging box, wireless headset and TWS earphones |
CN108882211A (en) * | 2018-06-15 | 2018-11-23 | 歌尔科技有限公司 | A kind of method, system and the TWS earphone of the upgrading of TWS earphone program |
CN109068211A (en) * | 2018-08-01 | 2018-12-21 | 广东思派康电子科技有限公司 | A kind of TWS earphone and its computer readable storage medium |
WO2019237460A1 (en) * | 2018-06-15 | 2019-12-19 | 歌尔科技有限公司 | Tws earphone, charging case, upgrading method thereof and storage medium |
CN110795127A (en) * | 2019-10-29 | 2020-02-14 | 歌尔科技有限公司 | Wireless earphone and upgrading method and device thereof |
CN110825411A (en) * | 2019-10-31 | 2020-02-21 | 歌尔股份有限公司 | Upgrading method and device for TWS (two way satellite System) earphone system and computer-readable storage medium |
CN110995326A (en) * | 2019-12-23 | 2020-04-10 | 无锡中感微电子股份有限公司 | Communication method of wireless earphone, wireless earphone and wireless earplug |
CN111031576A (en) * | 2019-11-29 | 2020-04-17 | 歌尔科技有限公司 | Upgrading method of TWS wireless earphone and wireless audio equipment |
CN111163387A (en) * | 2019-12-29 | 2020-05-15 | 歌尔科技有限公司 | TWS earphone upgrading method and device, charging box and storage medium |
CN111158738A (en) * | 2019-12-30 | 2020-05-15 | 青岛歌尔智能传感器有限公司 | Earphone firmware upgrading method and device and readable storage medium |
CN111787098A (en) * | 2020-06-30 | 2020-10-16 | 歌尔科技有限公司 | Earphone upgrading method and device, earphone and storage medium |
CN112235404A (en) * | 2020-10-14 | 2021-01-15 | 歌尔科技有限公司 | Silent upgrade method and equipment for earphone and charging box |
CN113157300A (en) * | 2021-05-19 | 2021-07-23 | 深圳Tcl新技术有限公司 | Data processing method, device and storage medium |
CN113672266A (en) * | 2021-08-24 | 2021-11-19 | Oppo广东移动通信有限公司 | Firmware upgrading method and device, charging box and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108848163B (en) * | 2018-06-15 | 2022-04-05 | 歌尔科技有限公司 | Upgrading method of TWS earphone and TWS earphone |
US10630421B1 (en) * | 2018-09-25 | 2020-04-21 | Amazon Technologies, Inc. | Dynamic switching of data rates |
CN113225729B (en) * | 2020-01-21 | 2022-07-12 | 荣耀终端有限公司 | OTA (over the air) upgrading method and device and readable storage medium |
-
2022
- 2022-07-08 CN CN202211592083.9A patent/CN116208882B/en active Active
- 2022-07-08 CN CN202210796831.9A patent/CN114866526B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108882211A (en) * | 2018-06-15 | 2018-11-23 | 歌尔科技有限公司 | A kind of method, system and the TWS earphone of the upgrading of TWS earphone program |
WO2019237460A1 (en) * | 2018-06-15 | 2019-12-19 | 歌尔科技有限公司 | Tws earphone, charging case, upgrading method thereof and storage medium |
CN108429979A (en) * | 2018-06-15 | 2018-08-21 | 歌尔科技有限公司 | A kind of charging box upgrade method, charging box, wireless headset and TWS earphones |
CN109068211A (en) * | 2018-08-01 | 2018-12-21 | 广东思派康电子科技有限公司 | A kind of TWS earphone and its computer readable storage medium |
CN110795127A (en) * | 2019-10-29 | 2020-02-14 | 歌尔科技有限公司 | Wireless earphone and upgrading method and device thereof |
CN110825411A (en) * | 2019-10-31 | 2020-02-21 | 歌尔股份有限公司 | Upgrading method and device for TWS (two way satellite System) earphone system and computer-readable storage medium |
CN111031576A (en) * | 2019-11-29 | 2020-04-17 | 歌尔科技有限公司 | Upgrading method of TWS wireless earphone and wireless audio equipment |
CN110995326A (en) * | 2019-12-23 | 2020-04-10 | 无锡中感微电子股份有限公司 | Communication method of wireless earphone, wireless earphone and wireless earplug |
CN111163387A (en) * | 2019-12-29 | 2020-05-15 | 歌尔科技有限公司 | TWS earphone upgrading method and device, charging box and storage medium |
CN111158738A (en) * | 2019-12-30 | 2020-05-15 | 青岛歌尔智能传感器有限公司 | Earphone firmware upgrading method and device and readable storage medium |
CN111787098A (en) * | 2020-06-30 | 2020-10-16 | 歌尔科技有限公司 | Earphone upgrading method and device, earphone and storage medium |
CN112235404A (en) * | 2020-10-14 | 2021-01-15 | 歌尔科技有限公司 | Silent upgrade method and equipment for earphone and charging box |
CN113157300A (en) * | 2021-05-19 | 2021-07-23 | 深圳Tcl新技术有限公司 | Data processing method, device and storage medium |
CN113672266A (en) * | 2021-08-24 | 2021-11-19 | Oppo广东移动通信有限公司 | Firmware upgrading method and device, charging box and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114866526A (en) | 2022-08-05 |
CN114866526B (en) | 2022-12-27 |
CN116208882A (en) | 2023-06-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11659620B2 (en) | Data transmission method and device | |
EP3920507B1 (en) | Wireless audio output devices | |
US11212854B2 (en) | Method and device for indicating radio bearer | |
CN112235404B (en) | Method and equipment for silent upgrading of earphone and charging box | |
EP2294872A1 (en) | System and method for automatically switching connection of a wireless interface | |
CN113329381B (en) | Method for establishing Bluetooth connection and electronic equipment | |
US20230011624A1 (en) | Method, apparatus and storage medium for communication failure processing | |
US20200021530A1 (en) | Method, device and computer readable storage medium for transmitting information | |
CN114245362B (en) | Device reconnection method and Bluetooth peripheral | |
CN113039826A (en) | Communication device using two wireless protocols | |
CN116208882B (en) | Earphone upgrading method and wireless earphone | |
WO2024156219A1 (en) | Bluetooth connection method, device, and system | |
CN107690824A (en) | Protect method, apparatus, user equipment and the base station of user equipment | |
EP3716675A1 (en) | Method and device for indicating inter-modulation distortion, base station, and user equipment | |
CN117956546B (en) | Device reconnection method, electronic device, storage medium and chip | |
CN111954123B (en) | Method, system, medium, and wireless audio device for information synchronization of wireless audio devices | |
CN113709055B (en) | BLE-based communication method, BLE-based communication device, BLE-based communication equipment, BLE-based communication system and BLE-based storage medium | |
US20200313811A1 (en) | Hybrid automatic repeat request (harq) feedback method and device and data receiving apparatus | |
CN114866998B (en) | Bluetooth connection method and Bluetooth device | |
CN115426341A (en) | Wireless audio/video device and wireless communication method | |
CN115119098B (en) | Audio playing control method, TWS earphone and storage medium | |
CN109426575A (en) | Talk business processing method and processing device | |
CN115967927A (en) | Bluetooth connection method and device, earphone and storage medium | |
WO2024178733A1 (en) | Information determination method and apparatus, information receiving method and apparatus, and terminal, network device and storage medium | |
JPH06120881A (en) | Correction method for calendar of cordless telephone system |
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 |