CN111200811B - TWS earphone, upgrading method and device thereof and readable storage medium - Google Patents

TWS earphone, upgrading method and device thereof and readable storage medium Download PDF

Info

Publication number
CN111200811B
CN111200811B CN201911386527.1A CN201911386527A CN111200811B CN 111200811 B CN111200811 B CN 111200811B CN 201911386527 A CN201911386527 A CN 201911386527A CN 111200811 B CN111200811 B CN 111200811B
Authority
CN
China
Prior art keywords
data packet
upgrading
sequence number
field
earphone
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
CN201911386527.1A
Other languages
Chinese (zh)
Other versions
CN111200811A (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 CN201911386527.1A priority Critical patent/CN111200811B/en
Publication of CN111200811A publication Critical patent/CN111200811A/en
Application granted granted Critical
Publication of CN111200811B publication Critical patent/CN111200811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Abstract

The invention discloses a TWS earphone upgrading method, which is applied to a slave earphone and comprises the following steps: monitoring the empty data packet while the terminal equipment sends each upgrading data packet to the main earphone; the upgrading data packet comprises an identification field and a check field; judging whether the monitored air data packet has an identification field, if so, receiving the air data packet; checking the air data packet according to the corresponding checking field, and storing the air data packet as a target data packet after the checking is successful; according to the invention, each upgrading data packet does not need to be sent to the slave earphone after the master earphone receives each upgrading data packet, so that the overall transmission time of the upgrading data packet can be greatly saved, the transmission efficiency of the upgrading data packet is improved, and the user experience is favorably improved. In addition, the invention also provides a TWS earphone, an upgrading device thereof and a computer readable storage medium, which have the same beneficial effects as the TWS earphone upgrading method.

Description

TWS earphone, upgrading method and device thereof and readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of wireless earphones, in particular to a TWS earphone, an upgrading method and device thereof and a computer readable storage medium.
Background
With the outbreak of wearing products, TWS (True Wireless Stereo) earphones have already entered people's lives and are favored by consumers, equipment manufacturers generally come into the market when the products meet certain maturity in order to seize business opportunities, and the functions can be gradually improved by OTA (Over-the-Air Technology, space download Technology) upgrading at the later stage, so consumer electronic product users need to obtain better services by continuous OTA upgrading, and the upgrading speed directly affects user experience.
At present, the TWS headset upgrading method is to connect a main headset (generally, the left ear is the main ear, and the right ear is the slave ear) through a mobile phone, transmit an upgrade file to the main headset and verify the upgrade file, then the main headset transmits the upgrade file to the slave headset and verifies the upgrade file through wireless, after confirming that there is no problem, the headset is restarted and starts upgrading, the upgrading is mainly consumed in the upgrade file transmission process, specifically, refer to fig. 1, where the time consumption in the upgrading process is as shown in fig. 2. Taking the 1.8MB firmware upgrade file package a.bin as an example, the transmission speed of the bluetooth link is about 40KB/s, and the whole upgrade process needs about 116 s. Because the whole upgrading process in the prior art is serial operation, the time consumption of the upgrading process is long, and the user experience is influenced.
In view of the above, how to provide a TWS headset capable of reducing time consumption and improving user experience, and an upgrading method, an upgrading apparatus, and a computer-readable storage medium thereof become problems to be solved by those skilled in the art.
Disclosure of Invention
Embodiments of the present invention provide a TWS headset, an upgrading method and apparatus thereof, and a computer-readable storage medium, which can greatly save the overall transmission time of an upgrade data packet and improve the transmission efficiency of the upgrade data packet during use, thereby facilitating improvement of user experience.
In order to solve the above technical problem, an embodiment of the present invention provides a TWS headset upgrading method, which is applied to a slave headset, and includes:
monitoring the empty data packet while the terminal equipment sends each upgrading data packet to the main earphone; the upgrading data packet comprises an identification field and a check field;
judging whether the identification field exists in the monitored air data packet, if so, receiving the air data packet;
and checking the air data packet according to the corresponding check field, and storing the air data packet as a target data packet after the air data packet is successfully checked.
Optionally, the upgrade data packet further includes a sequence number field;
the process of storing the air data packet as a target data packet after the verification is successful is as follows:
and after the verification is successful, the air data packet is used as a target data packet, and the target data packet is sorted and stored according to the sequence number in the corresponding sequence number field.
Optionally, after the checking the over-the-air data packet according to the corresponding check field, the method further includes:
after the verification fails, sending a first retransmission request message to the main earphone, wherein the first retransmission request message comprises a sequence number field corresponding to the data packet in the air, so that the main earphone sends out the received upgrade data packet corresponding to the sequence number field according to the retransmission request message;
and receiving an upgrading data packet which is sent by the main earphone and corresponds to the sequence number field, and sequencing and storing the upgrading data packet as a corresponding target data packet according to the sequence number in the corresponding sequence number field.
Optionally, the process of sorting and storing the target data packet according to the sequence number in the corresponding sequence number field is as follows:
and sequencing and storing the target data packets and the stored target data packets from small to large according to the sequence of the respective sequence numbers.
Optionally, the method further includes:
judging whether the sequence number of the target data packet is continuous with the sequence number of the last stored target data packet or not according to the sequence number field of the target data packet, and if not, determining the sequence number field of the lost data packet;
sending the sequence number field of the lost data packet to the main earphone as a second request retransmission message so that the main earphone sends out the received upgrade data packet corresponding to the sequence number field according to the second request retransmission message;
and receiving an upgrading data packet which is sent by the main earphone and corresponds to the lost data packet, and sequencing and storing the upgrading data packet as a corresponding target data packet according to the sequence number in the corresponding sequence number field.
The embodiment of the invention also correspondingly provides a TWS earphone upgrading device, which is applied to a slave earphone and comprises the following components:
the monitoring module is used for monitoring the empty data packets while the terminal equipment sends each upgrading data packet to the main earphone; the upgrading data packet comprises an identification field and a check field;
the judging module is used for judging whether the identification field exists in the monitored air data packet or not, and if so, the receiving module is triggered;
the receiving module is used for receiving the over-the-air data packet;
and the checking module is used for checking the air data packet according to the corresponding checking field and storing the air data packet as a target data packet after the checking is successful.
Optionally, the upgrade data packet further includes a sequence number field;
the verification module comprises:
the checking unit is used for checking the air data packet according to the corresponding checking field;
and the storage unit is used for taking the aerial data packet as a target data packet after the verification is successful, and sequencing and storing the target data packet according to the sequence number in the corresponding sequence number field.
Optionally, the method further includes:
the request module is used for sending a first retransmission request message to the main earphone after the verification fails, wherein the first retransmission request message comprises a sequence number field corresponding to the aerial data packet, so that the main earphone can send out the received upgrade data packet corresponding to the sequence number field according to the retransmission request message;
and the receiving module is also used for receiving the upgrading data packet which is sent by the main earphone and corresponds to the sequence number field, and sequencing and storing the upgrading data packet as a corresponding target data packet according to the sequence number in the corresponding sequence number field.
An embodiment of the present invention further provides a TWS headset, including:
the main earphone is used for receiving each upgrading data packet sent by the terminal equipment, and the upgrading data packet comprises an identification field and a check field;
the slave earphone is used for monitoring an air data packet and receiving the air data packet when the identification field exists in the monitored air data packet; and checking the air data packet according to the corresponding check field, and storing the air data packet as a target data packet after the air data packet is successfully checked.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the TWS headset upgrading method are implemented as described above.
The embodiment of the invention provides a TWS earphone upgrading method, which is applied to a slave earphone and comprises the following steps: monitoring the empty data packet while the terminal equipment sends each upgrading data packet to the main earphone; the upgrading data packet comprises an identification field and a check field; judging whether the monitored air data packet has an identification field, if so, receiving the air data packet; and checking the air data packet according to the corresponding check field, and storing the air data packet as a target data packet after the air data packet is successfully checked.
It can be seen that, in the present application, each upgrade data packet including an identification field and a check field may be sent to the master earphone through the terminal device, and meanwhile, the slave earphone may monitor the aerial data packet, and when the aerial data packet including the corresponding identification field is monitored, it is indicated that the aerial data packet is the corresponding upgrade data packet, at this time, the aerial data packet is received, and the aerial data packet is checked according to the corresponding check field, and after the check is successful, the aerial data packet is stored as the target data packet. According to the method and the device, each upgrading data packet does not need to be sent to the slave earphone after the master earphone receives each upgrading data packet, so that the whole transmission time of the upgrading data packet can be greatly saved, the transmission efficiency of the upgrading data packet is improved, and the user experience is favorably improved. In addition, the embodiment of the invention also provides the TWS earphone, the upgrading device thereof and the computer readable storage medium, which have the same beneficial effects as the TWS earphone upgrading method.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a diagram illustrating a conventional file transmission method in a TWS headset upgrade of the prior art;
FIG. 2 is a diagram illustrating the time consumption of file transmission in a TWS headset upgrading process in the prior art;
fig. 3 is a schematic flowchart of a TWS headset upgrading method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a file transmission manner in an upgrading process of a TWS headset according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating the time consumption of file transmission during the upgrading process of a TWS headset according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a TWS headset upgrading device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention provide a TWS headset, an upgrading method and apparatus thereof, and a computer-readable storage medium, which can greatly save the overall transmission time of an upgrade data packet and improve the transmission efficiency of the upgrade data packet during use, thereby facilitating improvement of user experience.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 3, fig. 3 is a flowchart illustrating a TWS headset upgrading method according to an embodiment of the present invention. The TWS earphone upgrading method is applied to a slave earphone and comprises the following steps:
s110: monitoring the empty data packet while the terminal equipment sends each upgrading data packet to the main earphone; the upgrading data packet comprises an identification field and a check field;
specifically, when the TWS headset is upgraded, both the master headset and the slave headset may be placed in the charging box, and the master headset and the slave headset may implement mutual communication through a UART (Universal Asynchronous Receiver/Transmitter) of the charging box, specifically referring to fig. 4, where the terminal device may transmit an upgrade file package (e.g., 1.8MB firmware upgrade file package a.bin) for the TWS headset upgrade to the master headset, specifically may transmit the upgrade file package to the master headset after the terminal device is connected to the master headset (e.g., connected by BT (Bluetooth)), and when the upgrade condition is checked to be satisfied (e.g., the remaining power of the master headset and the remaining power of the slave headset satisfy the condition), transmit the upgrade file package to the master headset. The upgrade file package comprises a plurality of upgrade data packages, and each upgrade data package comprises a corresponding identification field and a corresponding check field. And the slave earphone is set to a monitoring state (particularly monitoring can be carried out through the BT channel) while the terminal equipment transmits each upgrading data packet to the master earphone, and monitors the data packets in the air transmitted in the air in real time.
It should be noted that, when the terminal device sends each upgrade data packet to the main headset, the terminal device processes the upgrade file packet in advance according to the format of the BT data packet, and then obtains each upgrade data packet including the identification field and the check field, where each upgrade data packet conforms to the standard data packet length of the bluetooth specification.
S120: judging whether the monitored air data packet has an identification field, if so, entering S130;
s130: receiving an over-the-air data packet;
specifically, after the earphone monitors an air data packet, the information of the air data packet is read, whether the air data packet has a corresponding identification field is determined, if yes, the air data packet is an upgrade data packet which is sent by the terminal device to the main earphone and used for upgrading the TWS earphone, and the air data packet is received at the moment.
S140: and checking the air data packet according to the corresponding check field, and storing the air data packet as a target data packet after the air data packet is successfully checked.
Specifically, after the receiving is completed, the air data packet is further checked according to the check field in the received air data packet, and if the check is successful, it indicates that the received air data packet is complete and error-free, so that the air data packet can be stored as a target data packet, that is, stored in the slave headset. That is, the slave earphone in this embodiment does not need to wait for the completion of the reception of the master earphone, and then receives each upgrade data packet sent by the master earphone, and only needs to monitor the in-air data packet in the monitoring mode in the process that the terminal device sends each upgrade data packet to the master earphone, and when the in-air data packet meets the condition, receive and store the in-air data packet. Therefore, the embodiment can greatly save the whole transmission time of each upgrading data packet in application, and improve the upgrading efficiency.
Further, the upgrade data packet in this embodiment further includes a sequence number field;
it should be noted that, in order to store the upgrade data packets in sequence when the upgrade data packets are stored, the terminal device may process the upgrade data packets according to the BT data packet format when sending the upgrade data packets, so that each obtained upgrade data packet includes an identification field (MAGIC _ CODE), a sequence number field (PKT _ ID), and a check field (CRC).
For example, the standard data packets of the bluetooth specification are:
ACCESS CODE[72]|HEADER[54]|PAYLOAO[0-2745]
the BT data packet after processing in this embodiment is:
ACCESS CODE[72]|HEADER[54]|MAGIC_CODE[16]|PKT_ID[16]|PAYLOAO[0-2745]|CRC16[16]
then, the process of storing the air data packet as the target data packet after the verification is successful may specifically be:
and after the verification is successful, the air data packet is used as a target data packet, and the target data packet is sorted and stored according to the sequence number in the corresponding sequence number field.
That is, after the slave earphone successfully verifies the received air data packet, the air data packet is sorted and stored into the slave earphone as a target data packet according to the sequence number in the sequence number field included in the air data packet, specifically, the air data packet is sorted and stored with the sequence numbers of other stored target data packets, for example, the air data packet may be sorted and stored from small to large according to the sequence order of the sequence numbers.
Furthermore, after the above-mentioned checking the over-the-air data packet according to the corresponding check field, the method may further include:
after the verification fails, sending a first retransmission request message to the main earphone, wherein the first retransmission request message comprises a sequence number field corresponding to the data packet in the air, so that the main earphone sends out the received upgrade data packet corresponding to the sequence number field according to the retransmission request message;
and receiving an upgrading data packet which is sent by the main earphone and corresponds to the sequence number field, and sequencing and storing the upgrading data packet as a corresponding target data packet according to the sequence number in the corresponding sequence number field.
It should be noted that, in this embodiment, after the slave earphone fails to verify the received air data packet, it is described that the air data packet is in error, and therefore, the air data packet is not stored, at this time, the sequence number field of the air data packet may be obtained, and a first request retransmission message including the sequence number field is sent to the master earphone, so that the master earphone can match an upgrade data packet corresponding to the sequence number field from each received upgrade data packet according to the sequence number field in the first request message, and send the upgrade data packet to the slave earphone, and after receiving the upgrade data packet sent by the master earphone, the slave earphone stores the upgrade data packet as a corresponding target data packet, specifically, the upgrade data packet is stored according to the sequence number in the corresponding sequence number field.
Further, the method may further include:
judging whether the sequence number of the target data packet is continuous with the sequence number of the last stored target data packet or not according to the sequence number field of the target data packet, and if not, determining the sequence number field of the lost data packet;
sending the sequence number field of the lost data packet to the main earphone as a second request retransmission message so that the main earphone sends out the received upgrade data packet corresponding to the sequence number field according to the second request retransmission message;
and receiving an upgrading data packet which is sent by the main earphone and corresponds to the lost data packet, and sequencing and storing the upgrading data packet as a corresponding target data packet according to the sequence number in the corresponding sequence number field.
It can be understood that whether two serial numbers are continuous or not can be determined by comparing the serial number of the currently stored target data packet with the serial number of the last stored target data packet, for example, if the serial number corresponding to the currently stored target data packet is 5, and the serial number corresponding to the last stored target data packet is 3, it indicates that the two serial numbers are discontinuous, and there is a case that the data packet is lost, at this time, the serial number field of the lost data packet can be determined according to the lost serial number, and a second retransmission request message including the serial number field of the lost data packet is sent to the master earphone, so that after the master earphone receives the second retransmission request message, the corresponding upgrade data packet is matched from each received upgrade data packet according to the serial number field in the second retransmission request message, and the upgrade data packet is sent to the slave earphone, and after the slave earphone receives the upgrade data packet sent by the master earphone, and sequencing and storing the upgrading data packet to a corresponding position according to the sequence number in the sequence number field.
Specifically, in this embodiment, the 1.8NB upgrade file package is taken as an example, the 1.8NB upgrade file package needs about 1.8 × 1024/(2745/8) ═ 5500 packets using the standard data package, and the BT data package provided in this embodiment needs about 1.8 × 1024/(2697/8) × 5599, so 99 × (72+54+2745)/8/1024/1024 ═ 0.03388MB is increased, and the transmission time is increased by about 0.85s at a transmission speed of 40KB/s, and in addition, the transmission and verification time of a single packet is increased by about 15% × 45 ═ 6.75s, so the transmission time of a single packet is increased by about 45+0.85+6.75 ═ 52.6 s. Referring to fig. 5, the terminal device may specifically be a mobile phone, the upgrade file package is the upgrade package in fig. 5, the master earphone may specifically be a left earphone, and the slave earphone is a right earphone. Specifically, the baud rate is 921600, the data Bit is 8Bit, the start Bit is 1Bit, the end Bit is 1Bit, and the check Bit is 1 Bit; then the rate is 921600/11-83781, i.e. the rate is about 83KB/s, so the uart transmission is higher than the BT transmission. In addition, the error/packet loss range is [0,1.8MB ], so the retransmission time is in the range of t1 (1.8 × 1024/83) and 22.2s, the total upgrade time is in the range of t1 (66.6) and 88.8s, and compared with the original 116s, the probability is greatly improved. That is, compared with the upgrading method in the prior art, the upgrading speed can be increased by 42.5% at the highest (116-66.6)/116, and the upgrading speed can be increased by 23.4% at the lowest (116-88.8)/116.
It can be seen that, in the present application, each upgrade data packet including an identification field and a check field may be sent to the master earphone through the terminal device, and meanwhile, the slave earphone may monitor the aerial data packet, and when the aerial data packet including the corresponding identification field is monitored, it is indicated that the aerial data packet is the corresponding upgrade data packet, at this time, the aerial data packet is received, and the aerial data packet is checked according to the corresponding check field, and after the check is successful, the aerial data packet is stored as the target data packet. According to the method and the device, each upgrading data packet does not need to be sent to the slave earphone after the master earphone receives each upgrading data packet, so that the whole transmission time of the upgrading data packet can be greatly saved, the transmission efficiency of the upgrading data packet is improved, and the user experience is favorably improved. In addition, the embodiment of the invention also provides the TWS earphone, the upgrading device thereof and the computer readable storage medium, which have the same beneficial effects as the TWS earphone upgrading method.
On the basis of the above embodiments, the embodiment of the present invention further provides a TWS headset upgrading apparatus correspondingly, which is applied to a slave headset, specifically referring to fig. 6. The device includes:
a monitoring module 21, configured to monitor an empty data packet while the terminal device sends each upgrade data packet to the main earphone; the upgrading data packet comprises an identification field and a check field;
the judging module 22 is configured to judge whether an identification field exists in the monitored air data packet, and if yes, trigger the receiving module 23;
a receiving module 23, configured to receive an over-the-air data packet;
and the checking module 24 is configured to check the air data packet according to the corresponding checking field, and store the air data packet as a target data packet after the checking is successful.
Furthermore, the upgrading data packet also comprises a sequence number field;
the verification module 24 includes:
the checking unit is used for checking the air data packet according to the corresponding checking field;
and the storage unit is used for taking the air data packet as a target data packet after the verification is successful, and sequencing and storing the target data packet according to the sequence number in the corresponding sequence number field.
Further, the apparatus further comprises:
the request module is used for sending a first retransmission request message to the main earphone after the verification fails, wherein the first retransmission request message comprises a sequence number field corresponding to the data packet in the air, so that the main earphone can send out the received upgrade data packet corresponding to the sequence number field according to the retransmission request message;
the receiving module 23 is further configured to receive an upgrade data packet sent by the main earphone and corresponding to the sequence number field, and sequence and store the upgrade data packet as a corresponding target data packet according to the sequence number in the corresponding sequence number field.
It should be noted that the TWS headset upgrading device provided in this embodiment has the same beneficial effects as the TWS headset upgrading method provided in the foregoing embodiment, and for the specific description of the TWS headset upgrading method related in this embodiment, please refer to the foregoing embodiment, which is not described herein again.
On the basis of the above embodiments, an embodiment of the present invention further provides a TWS headset, including:
the main earphone is used for receiving each upgrading data packet sent by the terminal equipment, and the upgrading data packet comprises an identification field and a check field;
the slave earphone is used for monitoring the air data packet and receiving the air data packet when the identification field exists in the monitored air data packet; and checking the air data packet according to the corresponding check field, and storing the air data packet as a target data packet after the air data packet is successfully checked.
It should be noted that the TWS headset provided in the present embodiment has the same advantageous effects as those of the above-described embodiments.
On the basis of the above embodiments, the embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the TWS headset upgrading method as described above.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A TWS earphone upgrading method is applied to a slave earphone and is characterized by comprising the following steps:
monitoring the empty data packet while the terminal equipment sends each upgrading data packet to the main earphone; the upgrading data packet comprises an identification field and a check field, and the identification field is used for identifying the upgrading data packet;
judging whether the identification field exists in the monitored air data packet, if so, receiving the air data packet;
and checking the air data packet according to the corresponding check field, and storing the air data packet as a target data packet after the air data packet is successfully checked.
2. The TWS headset upgrading method of claim 1, wherein the upgrade data packet further comprises a sequence number field;
the process of storing the air data packet as a target data packet after the verification is successful is as follows:
and after the verification is successful, the air data packet is used as a target data packet, and the target data packet is sorted and stored according to the sequence number in the corresponding sequence number field.
3. The TWS headset upgrade method of claim 2, wherein after said checking the over-the-air data packet according to the corresponding check field, further comprising:
after the verification fails, sending a first retransmission request message to the main earphone, wherein the first retransmission request message comprises a sequence number field corresponding to the data packet in the air, so that the main earphone sends out the received upgrade data packet corresponding to the sequence number field according to the retransmission request message;
and receiving an upgrading data packet which is sent by the main earphone and corresponds to the sequence number field, and sequencing and storing the upgrading data packet as a corresponding target data packet according to the sequence number in the corresponding sequence number field.
4. The TWS headset upgrading method of claim 2, wherein the process of storing the target data packets in order according to the sequence numbers in the corresponding sequence number fields is:
and sequencing and storing the target data packets and the stored target data packets from small to large according to the sequence of the respective sequence numbers.
5. The TWS headset upgrading method of claim 4, further comprising:
judging whether the sequence number of the target data packet is continuous with the sequence number of the last stored target data packet or not according to the sequence number field of the target data packet, and if not, determining the sequence number field of the lost data packet;
sending the sequence number field of the lost data packet to the main earphone as a second request retransmission message so that the main earphone sends out the received upgrade data packet corresponding to the sequence number field according to the second request retransmission message;
and receiving an upgrading data packet which is sent by the main earphone and corresponds to the lost data packet, and sequencing and storing the upgrading data packet as a corresponding target data packet according to the sequence number in the corresponding sequence number field.
6. A TWS earphone upgrading device is applied to a slave earphone and is characterized by comprising:
the monitoring module is used for monitoring the empty data packets while the terminal equipment sends each upgrading data packet to the main earphone; the upgrading data packet comprises an identification field and a check field, and the identification field is used for identifying the upgrading data packet;
the judging module is used for judging whether the identification field exists in the monitored air data packet or not, and if so, the receiving module is triggered;
the receiving module is used for receiving the over-the-air data packet;
and the checking module is used for checking the air data packet according to the corresponding checking field and storing the air data packet as a target data packet after the checking is successful.
7. The TWS headset upgrading device of claim 6, further comprising a sequence number field in the upgrade data packet;
the verification module comprises:
the checking unit is used for checking the air data packet according to the corresponding checking field;
and the storage unit is used for taking the aerial data packet as a target data packet after the verification is successful, and sequencing and storing the target data packet according to the sequence number in the corresponding sequence number field.
8. The TWS headset upgrading device of claim 7, further comprising:
the request module is used for sending a first retransmission request message to the main earphone after the verification fails, wherein the first retransmission request message comprises a sequence number field corresponding to the aerial data packet, so that the main earphone can send out the received upgrade data packet corresponding to the sequence number field according to the retransmission request message;
and the receiving module is also used for receiving the upgrading data packet which is sent by the main earphone and corresponds to the sequence number field, and sequencing and storing the upgrading data packet as a corresponding target data packet according to the sequence number in the corresponding sequence number field.
9. A TWS headset, comprising:
the main earphone is used for receiving each upgrading data packet sent by the terminal equipment, the upgrading data packet comprises an identification field and a check field, and the identification field is used for identifying the upgrading data packet;
the slave earphone is used for monitoring an air data packet and receiving the air data packet when the identification field exists in the monitored air data packet; and checking the air data packet according to the corresponding check field, and storing the air data packet as a target data packet after the air data packet is successfully checked.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the TWS headset upgrading method according to any of the claims 1 to 5.
CN201911386527.1A 2019-12-29 2019-12-29 TWS earphone, upgrading method and device thereof and readable storage medium Active CN111200811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911386527.1A CN111200811B (en) 2019-12-29 2019-12-29 TWS earphone, upgrading method and device thereof and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911386527.1A CN111200811B (en) 2019-12-29 2019-12-29 TWS earphone, upgrading method and device thereof and readable storage medium

Publications (2)

Publication Number Publication Date
CN111200811A CN111200811A (en) 2020-05-26
CN111200811B true CN111200811B (en) 2022-03-18

Family

ID=70746292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911386527.1A Active CN111200811B (en) 2019-12-29 2019-12-29 TWS earphone, upgrading method and device thereof and readable storage medium

Country Status (1)

Country Link
CN (1) CN111200811B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111615030A (en) * 2020-05-27 2020-09-01 歌尔科技有限公司 Upgrading method, device and medium for novel TWS earphone
CN111787098B (en) * 2020-06-30 2022-10-04 歌尔科技有限公司 Earphone upgrading method and device, earphone and storage medium
CN112702143B (en) * 2020-12-16 2023-01-24 歌尔科技有限公司 Dial data management method and device, wearable device and storage medium
CN112954523B (en) * 2021-01-29 2023-06-02 佳禾智能科技股份有限公司 TWS earphone checking method
CN113038326B (en) * 2021-03-12 2022-08-19 歌尔科技有限公司 Data interaction method, device and equipment based on TWS earphone and readable storage medium
CN116319312A (en) * 2022-09-07 2023-06-23 海南乾唐视联信息技术有限公司 Terminal upgrading method and device, communication device and storage medium

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
UA99649C2 (en) * 2008-04-07 2012-09-10 Косс Корпорейшн Normal;heading 1;WIRELESS EARPHONE THAT TRANSITIONS BETWEEN WIRELESS NETWORKS
EP2784668B1 (en) * 2013-03-26 2020-02-19 GN Audio A/S Headset firmware update from headset base unit
US20160029125A1 (en) * 2013-10-24 2016-01-28 JayBird LLC System and method for anticipating activity using earphones with biometric sensors
CN105356989A (en) * 2014-08-18 2016-02-24 北京壹人壹本信息科技有限公司 MTP mode-based data synchronization method, system and device
CN105188022B (en) * 2015-09-29 2019-01-08 爱国者电子科技有限公司 Wireless routing device and communication means
KR102362156B1 (en) * 2018-04-28 2022-02-14 1모어 주식회사 Earphone wireless communication method, master earphone, slave earphone and earphone system
CN108429979B (en) * 2018-06-15 2020-05-08 歌尔科技有限公司 Charging box upgrading method, charging box, wireless headset and TWS headset
CN108882211B (en) * 2018-06-15 2020-09-11 歌尔科技有限公司 Method and system for upgrading TWS earphone program and TWS earphone
CN109460245B (en) * 2018-10-31 2020-02-07 北京众谊越泰科技有限公司 Remote upgrading method for embedded system
CN109542477B (en) * 2018-11-08 2022-03-04 Oppo广东移动通信有限公司 Upgrading method and device applied to earphone, electronic equipment and storage medium
CN110321140A (en) * 2019-05-23 2019-10-11 天津五八到家科技有限公司 Data-updating method, device and mobile terminal
CN110096298B (en) * 2019-05-31 2022-04-19 厦门亿联网络技术股份有限公司 Device collaborative upgrading method and device for video conference system

Also Published As

Publication number Publication date
CN111200811A (en) 2020-05-26

Similar Documents

Publication Publication Date Title
CN111200811B (en) TWS earphone, upgrading method and device thereof and readable storage medium
CN111163387B (en) TWS earphone upgrading method and device, charging box and storage medium
CN101690125B (en) Communication of information between a host device and an accessory via an intermediate device
CN111225414B (en) Multimode communication device, communication method thereof and multimode communication system
EP3490304B1 (en) Method for identifying access point and hotspot, and related products
CN108429979B (en) Charging box upgrading method, charging box, wireless headset and TWS headset
JP6092425B2 (en) Near field communication method and device
CN106681774B (en) Software upgrading method of Bluetooth loudspeaker and intelligent terminal
US10609633B2 (en) Method for triggering registrar protocol interaction, access point, and station
CN113721966B (en) Node upgrading method and device, storage medium and electronic device
CN103259876A (en) Method and device for address conflict processing
CN103533545B (en) A kind of obtain the method for effective communication account number, device and equipment
CN113328505B (en) Charging demand adaptation method, electronic equipment and related product
KR20210080897A (en) Electronic device for transmitting data in bluetooth network environment and method thereof
CN107743313B (en) Method, base station and system for realizing time division duplex configuration of auxiliary cell
US10484293B2 (en) Communication device, communication method, and storage medium
CN110719651B (en) Data transmission method and device
CN113259169A (en) Data processing method and device, electronic equipment and storage medium
WO2022227615A1 (en) Data upgrade method, data upgrade device, and readable storage medium
CN110087225B (en) Message processing method and related device
EP4055891B1 (en) Wireless network access point and method for operation thereof
US20230170745A1 (en) Control method, electronic device, and writing interaction device
CN109506337B (en) Communication method, communication device, storage medium and air conditioner
CN113568636A (en) Intelligent watch OTA upgrading system and method
CN115001541A (en) Data transmission method, device, electronic equipment, storage medium and product

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