WO2021212798A1 - Procédé de mise à niveau d'écouteur, dispositif, procédé de commande d'écouteur, ensemble d'écouteurs, et support de stockage - Google Patents

Procédé de mise à niveau d'écouteur, dispositif, procédé de commande d'écouteur, ensemble d'écouteurs, et support de stockage Download PDF

Info

Publication number
WO2021212798A1
WO2021212798A1 PCT/CN2020/124853 CN2020124853W WO2021212798A1 WO 2021212798 A1 WO2021212798 A1 WO 2021212798A1 CN 2020124853 W CN2020124853 W CN 2020124853W WO 2021212798 A1 WO2021212798 A1 WO 2021212798A1
Authority
WO
WIPO (PCT)
Prior art keywords
headset
upgrade
data packet
earphone
request information
Prior art date
Application number
PCT/CN2020/124853
Other languages
English (en)
Chinese (zh)
Inventor
李涛
Original Assignee
歌尔股份有限公司
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 歌尔股份有限公司 filed Critical 歌尔股份有限公司
Publication of WO2021212798A1 publication Critical patent/WO2021212798A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1025Accumulators or arrangements for charging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083

Definitions

  • the present invention relates to the field of headset technology, and in particular to a headset upgrade method, a headset upgrade device, a headset control method, a headset set and a readable storage medium.
  • TWS Truste Wireless Stereo
  • TWS headset products include headset sets and devices (such as charging boxes, etc.) that match the headset sets.
  • the headset needs to be upgraded at the factory.
  • the generally adopted upgrade method is that the computer sends the upgrade file to the headset through the charging box.
  • the charging box is connected to the headset, and when the upgrade data sent by the computer is received, it is immediately forwarded to the headset connected to it.
  • This data transmission method causes the charging box to upgrade only one headset at a time. Different headsets can only perform upgrade operations in sequence, resulting in low upgrade efficiency of TWS headsets.
  • the main purpose of the present invention is to provide a headset upgrade method, which aims to enable an upgrade device such as a charging box to synchronously send data required for upgrade to two headsets, realize the synchronous upgrade of the headset group, and improve the upgrade efficiency of the headset group.
  • the headset upgrade method includes the following steps:
  • the cached data packets are synchronously sent to each earphone in the earphone group, until all the data packets corresponding to the upgrade file are cached and sent to each earphone. Earphones, so that each earphone performs an upgrade operation based on all data packets corresponding to the received upgrade file.
  • the step of synchronously sending the buffered data packet to each earphone in the earphone group includes:
  • the first request information When the first request information is received, among the buffered data packets, it is determined that the target data packet that needs to be sent to the headset corresponding to the first request information; the first request information is not received by each headset Sent when all data packets corresponding to the upgrade file are reached;
  • the step of determining a target data packet that needs to be sent to the headset corresponding to the first request information includes:
  • the first data packet index in the first request information is extracted; the first data packet index is the index of the headset corresponding to the first request information according to the received data packet Quantity generated information;
  • the data packet corresponding to the first data packet index is used as the target data packet.
  • the method further includes:
  • the first message is sent to the headset corresponding to the first request information, so that the headset corresponding to the first request information is in the first Resend the first request information after a period of time;
  • the method further includes:
  • the headset upgrade method further includes the following steps:
  • the method further includes:
  • the buffer size is 0 to enter a first state, where the first state is a state of real-time data interaction between the terminal providing the upgrade file and the headset;
  • a third message is generated according to each of the verification results and sent to the terminal, so that the terminal determines the receiving status of each earphone with respect to the upgrade file according to the third message.
  • the step of receiving and caching multiple data packets corresponding to the upgrade file one by one includes:
  • the step of sending the target data packet to the headset corresponding to the first request information further include:
  • the step of judging whether there is a buffer area in an idle state includes:
  • the step of acquiring the second number of data packets that have been sent to each of the earphones includes:
  • the third quantity with the smallest numerical value is taken as the second quantity.
  • the method further includes:
  • the method further includes:
  • the present invention also provides a headset control method, based on the headset upgrade device applying the headset upgrade method described in any one of the above, and the headset control method includes:
  • the upgrade operation is executed based on all the data packets corresponding to the received upgrade file.
  • the method further includes:
  • the step of controlling the headset to send the first request information to the headset upgrading apparatus includes:
  • the first data packet index is information generated according to the number of data packets of the upgrade file currently received by the headset;
  • the method further includes:
  • the headset upgrade device Generate a verification result according to the judgment result and feed it back to the headset upgrade device, so that the headset upgrade device generates a third message according to the verification result and sends it to the terminal that provides the upgrade file, so that the terminal is based on the The third message determines the receiving state of the headset regarding the upgrade file.
  • this application also proposes a headset upgrade device, the headset upgrade device comprising: a memory, a processor, and a headset upgrade program stored on the memory and running on the processor, so When the earphone upgrade program is executed by the processor, the steps of the earphone upgrade method described in any one of the above are implemented.
  • this application also proposes a headset group, the headset group includes more than one headset, each headset includes: a memory, a processor, and stored in the memory and can be processed in the A headphone control program running on the device, and when the headphone control program is executed by the processor, the steps of the headphone upgrade method described in any one of the above are implemented.
  • the present application also proposes a readable storage medium having a computer program stored on the readable storage medium, and when the computer program is executed by a processor, the headset upgrade method as described in any of the above is implemented And/or the steps of the headset control method as described in any one of the above.
  • the present invention proposes a headset upgrade method.
  • the method receives and caches multiple data packets corresponding to the upgrade file one by one, and synchronously sends the cached data packets to the headset during the process of caching the multiple data packets corresponding to the upgrade file.
  • all data packets corresponding to the upgrade file are cached and sent to each earphone, so that each earphone performs an upgrade operation based on all the data packets corresponding to the received upgrade file.
  • the upgrade file is no longer forwarded to the headset in real time, but multiple data packets corresponding to the upgrade file are received and cached step by step.
  • the cached data packet Send to each earphone in the earphone group separately, so that each earphone in the earphone group can receive the upgrade file synchronously.
  • Each earphone can receive the upgrade data without waiting for other earphones to receive the entire upgrade file, and each earphone receives the entire upgrade file.
  • the upgrade operation can then be performed, effectively reducing the time it takes to upgrade the entire headset set.
  • an upgrade device such as a charging box is used to perform an upgrade operation for the earphone group
  • the data required for the upgrade can be sent to the two earphones simultaneously to realize the synchronous upgrade of the earphone group, thereby effectively improving the upgrade efficiency of the earphone group.
  • FIG. 1 is a schematic diagram of the hardware structure involved in the operation of the upgrade process of the headset group according to the embodiment of the present invention
  • FIG. 2 is a schematic flowchart of an embodiment of a method for upgrading a headset according to the present invention
  • FIG. 3 is a schematic flowchart of another embodiment of a method for upgrading a headset according to the present invention.
  • FIG. 4 is a schematic flowchart of another embodiment of a method for upgrading a headset according to the present invention.
  • FIG. 5 is a schematic flowchart of still another embodiment of the headset upgrade method of the present invention.
  • FIG. 6 is a schematic flowchart of an embodiment of a method for controlling a headset of the present invention.
  • the main solution of the embodiment of the present invention is to receive and cache multiple data packets corresponding to the upgrade file one by one; in the process of caching multiple data packets corresponding to the upgrade file, the cached data packets are synchronously sent to the headset group For each earphone, all data packets corresponding to the upgrade file are cached and sent to each earphone, so that each earphone performs an upgrade operation based on all the data packets corresponding to the received upgrade file.
  • a generally adopted upgrade method is that the computer sends the upgrade file to the headset through the charging box. During this process, the charging box is connected to the headset, and when the upgrade data sent by the computer is received, it is immediately forwarded to the headset connected to it.
  • This data transmission method causes the charging box to upgrade only one headset at a time. Different headsets can only perform upgrade operations in sequence, resulting in low upgrade efficiency of TWS headsets.
  • the present invention provides the above-mentioned solution, which aims to enable an upgrade device such as a charging box to synchronously send data required for upgrade to two earphones, realize the synchronous upgrade of the earphone group, and improve the upgrade efficiency of the earphone group.
  • the present invention provides a headset upgrade device 1000, which is used to upgrade headsets, especially to upgrade a headset group that includes more than one headset.
  • the headset upgrade device 1000 may be any device, as long as the headset can be upgraded.
  • the earphone upgrading device 1000 may be specifically a charging box for earphones, so as to achieve both the upgrade function and the charging function required by the earphone.
  • the headset upgrade apparatus 1000 includes a processor 1001 (for example, a CPU), a memory 1002 connected to the processor 1001, and the like.
  • the memory 1002 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a magnetic disk memory.
  • the memory 1002 may also be a storage device independent of the aforementioned processor 1001. Among them, the memory 1002 may be provided with several buffer areas for data buffering.
  • the processor 1001 is connected to the terminal 01 that provides the upgrade file.
  • the processor 1001 is also connected to each earphone 21 in the earphone group 2.
  • FIG. 1 does not constitute a limitation on the device, and may include more or fewer components than shown in the figure, or a combination of certain components, or different component arrangements.
  • the memory 1002 which is a readable storage medium, may include a headset upgrade program.
  • the processor 1001 may be used to call the earphone upgrade program stored in the memory 1002, and execute the relevant steps of the earphone upgrade method in the following embodiments.
  • the present invention also provides a headset upgrade method for upgrading headsets, especially for upgrading headset groups that include more than one headset.
  • the earphone upgrade method is applied to the earphone upgrade device, and each earphone in the earphone group that the earphone upgrade device is communicatively connected to can be upgraded.
  • the headset upgrade method includes:
  • Step S10 receiving and buffering multiple data packets corresponding to the upgrade file one by one;
  • the headset upgrade device such as the charging box receives the setting instruction, it can enter the upgrade mode to upgrade the connected headset group.
  • the headset upgrade device such as the charging box receives the data packet of the upgrade file step by step from the terminal that provides the upgrade file.
  • the terminal can divide the upgrade file into multiple data packages (for example, it can be divided into 1000 data packages), and send the data packages one by one to a headset upgrade device such as a charging box.
  • the charging box sequentially receives the data packets of the upgrade file sent from the terminal that provides the upgrade file. When any data packet is received, the data packet is not immediately forwarded to the headset, but will be received. Cache the data packets in the memory, and cache the data packets in the buffer area of the memory.
  • the terminal can actively send data packets to the headset upgrade device such as the charging box, or it can return the data packet after receiving the request from the headset upgrade device such as the charging box, so that the headset upgrade device such as the charging box is based on the received data packet pair
  • the earphones in the earphone group are upgraded.
  • Step S20 in the process of caching multiple data packets corresponding to the upgrade file, the cached data packets are synchronously sent to each earphone in the headset group, until all the data packets corresponding to the upgrade file are cached and sent to For each earphone, the upgrade operation is performed on each earphone based on all data packets corresponding to the received upgrade file.
  • the buffered data packets are synchronously sent to each earphone of the earphone group.
  • the headset group is The headset has not received a data packet, and sends the data packet to each headset in the headset group.
  • the earphone upgrade device such as the charging box can actively send the buffered data packet to each earphone in the earphone group, and can also return the corresponding data packet to the corresponding earphone after receiving the request from each earphone in the earphone group.
  • the process of receiving and sending data packages if all the data packages corresponding to the upgrade file have not been cached, the process of receiving and caching the data packages corresponding to the upgrade file one by one is maintained. If all the data packages corresponding to the upgrade file have been received and Cache, it is judged whether the cached data packets have been sent to each earphone in the earphone group. If they have been sent to each earphone, it can be considered that each earphone in the earphone group has received the complete upgrade file; If there are data packets in the buffered data packets that have not been sent to the earphones in the headset group, you can continue to send the unsent data packets to the corresponding earphones. After the data packets are sent, you can return to judge whether the buffered data packets have been sent to the earphones Each headset in the group.
  • all the data packages corresponding to the upgrade file are cached. This means that when the upgrade file is divided into N data packages, if the number of data packages received and cached is N, then all the data packages corresponding to the upgrade file are cached. If the number of data packets received and buffered is less than N, the data packets corresponding to the upgrade file have not been buffered. The buffered data packets have been sent to each earphone in the earphone group. When there are N data packets that have been buffered, the number of buffered data packets sent to each earphone in the earphone group is N.
  • the buffered data packets have been sent to each earphone in the earphone group; if the number of buffered data packets sent to any earphone in the earphone group is less than N, it is considered that there is a buffered data packet that has not been sent to the earphone group In the headphones.
  • the headset upgrade device such as the charging box receives and caches the data packet from the terminal that provides the upgrade file, and the data packet can be synchronized. Sent.
  • An embodiment of the present invention proposes a headset upgrade method.
  • the method receives and caches multiple data packets corresponding to the upgrade file one by one, and sends the cached data packets synchronously during the process of caching the multiple data packets corresponding to the upgrade file.
  • To each headset in the headset group until all data packets corresponding to the upgrade file are cached and sent to each headset, so that each headset performs the upgrade operation based on all the data packets corresponding to the received upgrade file .
  • the upgrade file is no longer forwarded to the headset in real time, but multiple data packets corresponding to the upgrade file are received and cached step by step.
  • the cached data packet Send to each earphone in the earphone group separately, so that each earphone in the earphone group can receive the upgrade file synchronously.
  • Each earphone can receive the upgrade data without waiting for other earphones to receive the entire upgrade file, and each earphone receives the entire upgrade file.
  • the upgrade operation can then be performed, effectively reducing the time it takes to upgrade the entire headset set.
  • an upgrade device such as a charging box is used to perform an upgrade operation for the earphone group
  • the data required for the upgrade can be sent to the two earphones simultaneously to realize the synchronous upgrade of the earphone group, thereby effectively improving the upgrade efficiency of the earphone group.
  • the step of synchronously sending the buffered data packet to each earphone in the earphone group includes:
  • Step S21 When the first request information is received, in the buffered data packets, determine the target data packet that needs to be sent to the headset corresponding to the first request information; the first request information is determined by each headset Sent when all data packets corresponding to the upgrade file have not been received;
  • the first request information may be sent to the earphone upgrade apparatus.
  • each earphone can send corresponding first request information according to its actual receiving situation.
  • the headset corresponding to the first request information needs to obtain the data packet of the upgrade file, and then it can be determined whether there is data that is not received by the headset corresponding to the first request information in the currently cached data packet If a packet exists, the corresponding data packet can be used as a target data packet to be sent to the headset corresponding to the first request information. If it does not exist, a corresponding message can be sent to notify the headset so that the headset can make a further response.
  • the determined target data packet may have one or more than one according to actual conditions.
  • Each earphone of the earphone group may continuously send first request information before receiving all the data packets corresponding to the upgrade file, and each first request information corresponds to a data packet requesting an upgrade file.
  • each headset in the headset group sends the first request information and receives a data packet returned based on the first request information, it can continue to send the first request information to receive the next data packet until the headset receives Up to all the data packages corresponding to the upgrade file.
  • the cached data includes a data packet correspondingly determined that has not been sent to the headset corresponding to the first request message as a target data packet.
  • Step S22 Send the target data packet to the headset corresponding to the first request information.
  • the target data packet can be directly sent to the earphone corresponding to the first request information; when there is more than one target data packet, the target data packet can be sent to the earphone corresponding to the first request information in sequence.
  • the data packet of the upgrade file is sent to the corresponding headset only after the first request information is received, so that the headset upgrade device can accurately know the upgrade requirements of the headset and send the corresponding upgrade data to the corresponding headset. It is realized that more than one earphones that send the first request information perform a synchronous upgrade while ensuring the accuracy of sending the upgrade file.
  • step S21 specifically includes:
  • Step S211 When the first request information is received, extract the first data packet index in the first request information; the first data packet index is the headset corresponding to the first request information according to the received Information generated by the number of packets.
  • an index can be established for the data packet.
  • Different data packets have different indexes. Among them, it can be defined that the index of the first data packet to be buffered is 0, and the indexes of subsequent received data packets are sequentially increased by 1. That is, the index of the first cached data packet is 0, the index of the second cached data packet is 1, the index of the third cached data packet is 2, and so on.
  • each time a data packet sent by the earphone upgrading device is received an index can be established for the data packet. Different data packets have different indexes. That is, the index of the first data packet received is 0, the index of the second data packet received is 1, the index of the third data packet received is 2, and so on, and so on.
  • the headset can determine its next data packet index to be received as the first data packet index here based on its current data packet reception status (for example, the number of data packets of the received upgrade file). For example, the total number of data packets of the upgrade file that the headset has received can be obtained by obtaining the maximum value of the data packet index currently established by the headset, and the maximum value of the obtained index can be increased by 1 as the next value.
  • the index of the data packet to be received is required to obtain the index of the first data packet.
  • the headset upgrading apparatus can clarify which is the next data packet required by the headset.
  • the first request information when the first request information is received, before the data packet index in the request information is extracted, the first request information may be subjected to a cyclic redundancy check (CRC check), and the extraction is performed only after the check is passed.
  • CRC check cyclic redundancy check
  • the cyclic redundancy check can ensure the accuracy of the first request information, improve the accuracy of the headset upgrade device in sending data packets to the corresponding headset based on the first request information, and ensure that the headset that needs to be upgraded can accurately and effectively receive all the data packets.
  • Required upgrade files can ensure the accuracy of the first request information, improve the accuracy of the headset upgrade device in sending data packets to the corresponding headset based on the first request information, and ensure that the headset that needs to be upgraded can accurately and effectively receive all the data packets.
  • Required upgrade files can ensure the accuracy of the first request information, improve the accuracy of the headset upgrade device in sending data packets to the corresponding headset based on the first request information, and ensure that the headset that needs to be upgraded can accurately and effectively receive all the data packets.
  • Required upgrade files can ensure the accuracy of the first request information, improve the accuracy of the headset upgrade device in sending data packets to the corresponding headset based on the first request information, and ensure that the headset that needs to be upgraded can accurately and effectively receive all the data packets.
  • Step S212 among the buffered data packets, use the data packet corresponding to the first data packet index as the target data packet.
  • the headset upgrade apparatus may extract the first data packet index therein, and match the obtained first data packet index with the index corresponding to the buffered data packet.
  • the first data packet index in the current first request information exists in the index corresponding to the cached data packet, it can be considered that there is a data packet corresponding to the first data packet index in the cached data packet, and the first data packet The cached data packet corresponding to the index is used as the target data packet.
  • the data packet corresponding to the first data packet index does not exist in the cached data packet, and it can be considered that the headset needs
  • the first message can be sent to the headset corresponding to the first request information, so that the headset corresponding to the first request information will resend after the first period of time containing the first data
  • the first request information with the same index of the packet index, that is, the current first request information contains the index M the headset will immediately send the first request information containing the index M after receiving the second message, so as to ensure that the headset can receive every other request.
  • the required data package ensures the integrity of the data package received by the headset and the effectiveness of the upgrade.
  • the earphone group includes the first earphone and the second earphone
  • the number of data packets received by the first earphone is A
  • the index of the first data packet is A+1
  • the first earphone can send A+ to the earphone upgrade device.
  • the first request information of 1 after receiving the first request information, the headset upgrade device can send a data packet with index A+1 for the first headset; if the data packet that the second headset has received is B, then the first data packet The index is B+1
  • the first earphone can send the first request information of B+1 to the earphone upgrading apparatus, and the earphone upgrading apparatus can send the data packet with the index B+1 for the first earphone after receiving the first request information.
  • a and B can be the same or different according to the data transmission conditions of different earphones.
  • the communication speed between the A earphone and the earphone upgrade device is higher than the communication speed between the B earphone and the earphone upgrade device, then A may be greater than B.
  • the headset upgrade method further includes the following steps:
  • step S30 in the process of caching multiple data packets corresponding to the upgrade file, when the received data includes a set flag bit, it is determined that all data packets corresponding to the upgrade file have been cached.
  • the received data sent by the terminal that provides the upgrade file includes the setting flag, indicating that the terminal has sent all the data packets corresponding to the upgrade file, that is, all the data packets corresponding to the upgrade file are in the setting flag. All have been cached before they appear.
  • the execution of step S10 can be maintained.
  • the first byte in the received data can be 1, which is defined as the set flag bit.
  • the first byte of the data packet in the received upgrade file can be 0 or the first byte of the upgrade file is 0 except for the first byte of the last data packet of the upgrade file. If the first byte in the received data is 1, it can be considered that all data packets in the upgrade file have been sent.
  • Step S40 judging whether there is a data packet that has not been sent to the headset in the buffered data packet
  • Step S50 is executed.
  • Step S50 Set the buffer size to 0 to enter a first state, where the first state is a state of real-time data interaction between the terminal providing the upgrade file and the headset;
  • the headset upgrade device receives the data sent by the terminal that provides the upgrade file, does not cache it, but directly forwards it to the headset.
  • step S50 may be performed without performing step S40 after step S30. For example, after step S30, after a certain period of time is ensured to provide enough time for the buffered data packet to be sent to the earphone, step S50 is executed.
  • Step S60 receiving verification information corresponding to the upgrade file sent by the terminal and sending it to each earphone;
  • the verification information is specifically based on the generation of the upgrade file. Different upgrade files have different verification information.
  • the verification information can be set according to the actual situation. For example, the entire data length of the upgrade file can be used as the verification information.
  • the verification information can be directly sent to two earphones respectively, or after the verification information is first sent to one earphone, the earphone that receives the verification information is forwarded to the earphone that has not received the verification information.
  • Step S70 obtaining the verification result returned by each earphone based on the verification information
  • each earphone After each earphone receives the verification information, it can generate corresponding characteristic information based on the upgrade file formed by the data packets of all the upgrade files it receives. It is judged whether the characteristic information matches the verification information, and the judgment result is fed back to the headset upgrading device as the verification result.
  • the feature information matches the verification information, which indicates that the headset has successfully received the same upgrade data as the upgrade file provided by the terminal; the feature information does not match the verification information, which indicates that the headset has not successfully received the upgrade provided by the terminal Upgrade data with the same file.
  • the headset can perform the upgrade operation based on the upgrade file formed by the data packets of all the received upgrade files; if it does not match, the upgrade operation may not be performed based on the received upgrade data, thereby ensuring The accuracy of the headset can be upgraded.
  • step S80 a third message is generated according to each of the verification results and sent to the terminal, so that the terminal determines the receiving status of each earphone with respect to the upgrade file according to the third message.
  • the verification results returned by all the earphones in the earphone group can be combined to generate a corresponding message and send it to the terminal that provides the upgrade file.
  • the terminal analyzes the third message to know whether each earphone in the earphone group has successfully received the upgrade data, and whether the received upgrade data is accurate, and can further output corresponding prompt information to realize the pairing of the earphones.
  • a monitoring of the upgrade situation of the group, so that the terminal or the user of the terminal can further carry out timely disposal, and ensure that each earphone of the earphone group can be upgraded successfully.
  • the process of sending the data packets to the headset is further controlled, thereby Ensure the accuracy of the entire upgrade file transmission, and realize the accuracy of the upgrade operation performed on the earphones in the earphone group through the earphone upgrade device.
  • a corresponding message (for example, the maximum value of the current index of the buffered data packet) can be sent to each earphone in the earphone group, so that the earphone knows its You need to receive the total number of data packets in the upgrade file, etc.
  • the step S10 includes:
  • Step S11 judging whether there is a buffer area in an idle state
  • step S12 If it exists, go to step S12; if it does not exist, go back to step S11.
  • Step S12 sending second request information to the terminal that provides the upgrade file
  • the second request information may request one or more data packages of the upgrade file according to actual conditions.
  • a second request message requests a data package of an upgrade file in the terminal.
  • the second request information may be generated based on the index of the cached data packet (that is, the number of cached data packets). Specifically, the index of the next data packet that needs to be received can be obtained according to the maximum value of the currently generated buffered data packet as the second data packet index.
  • the second request information including the index of the second data packet is sent to the terminal, so that the terminal can know which data packet needs to be sent to the earphone upgrade device next, so as to realize the accurate transmission of the data packet of the upgrade file.
  • Step S13 receiving a data packet returned by the terminal based on the second request information
  • the terminal may return one or more data packets of the upgrade file from the headset upgrade device that sent the second request information. Specifically, in order to ensure the accuracy and completeness of the entire upgrade file transmission, the terminal returns a data packet of the upgrade file every time it receives a second request message. Specifically, the terminal may extract the second data packet index in the second request information, query the corresponding data packet based on the second data packet index, and return.
  • the terminal may correspond to the establishment rule of the data packet index in the headset upgrade device, and establish an index for each data packet in the upgrade file. The index of the same data packet in the terminal is the same as the index in the headset upgrade device.
  • the step of judging whether there is an idle buffer area is returned until the number of returns reaches the set value To exit the upgrade process of the headset group.
  • the upgrade of the headset group can be stopped.
  • Step S14 buffer the received data packet in a buffer area in an idle state; after that, return to step S11.
  • a cache area in an idle state means that there is space for caching in the cache area to effectively cache data.
  • a buffer area corresponds to buffering a data packet.
  • step S14 perform a cyclic redundancy check on the received data packet; The step of buffering the received data packet in an idle buffer area; if the check fails, return to the step of executing the step of sending the second request information to the terminal providing the upgrade file to request the same data again Bag.
  • the data package of the upgrade file is requested to the terminal only when it is ensured that the headset upgrade device has an idle buffer area, so as to ensure the effectiveness of the headset upgrade device for receiving and buffering the data package of the upgrade file, thereby improving the headset Reliability of the group upgrade process.
  • the headset upgrade device may not necessarily match the number of data packets, and the number of buffer areas is large enough, it will not affect the reception of data packets. If the number is less than the weight of the data package in the upgrade file, the headset upgrade device cannot continue to receive and cache the data package of the upgrade file.
  • the method further includes : Determine whether the target data packet has been sent to each earphone in the earphone group; if so, delete the target data packet so that the buffer area where the target data packet is located enters an idle state; if not , The target data packet is retained.
  • the headset upgrade device sends the data packet to the corresponding headset, the index of the data packet can be recorded. Different earphones in the earphone group can have different sent records.
  • the index corresponding to the target data packet is recorded in the sent record of each headset, it can be considered that the target data packet has been sent to each headset in the headset group, and the data packet can be deleted; if the target data packet corresponds to If the index is not recorded in the sent record of any headset, the data packet can be retained. Among them, after the data packet is reserved and the time period is set, the first request message containing the index of the data packet has not been received by the corresponding headset. It can be considered that the headset has an abnormal upgrade condition, and the data package can be deleted to ensure other undesired information. The abnormal headset can be upgraded normally.
  • step S11 specifically includes:
  • Step S111 acquiring a first number of data packets that have been buffered, and acquiring a second number of data packets that have been sent to each of the earphones;
  • the first number of cached data packets may be obtained based on an index established by the headset upgrade apparatus based on the cached data packets, and the maximum value of the index may be used as the first number here.
  • the number of data packets that have been sent to each earphone can be obtained through the feedback information of the earphones, and can also be obtained by the earphone upgrade device's sending records of the data packets of each earphone.
  • Step S112 Determine the difference between the first quantity and the second quantity
  • Step S113 judging whether the difference is less than the number of the buffer area
  • step S114 When the difference is less than the number of buffer areas, step S114 is executed; when the difference is greater than or equal to the number of buffer areas, step S115 is executed.
  • Step S114 it is determined that there is a buffer area in an idle state
  • step S115 it is determined that there is no buffer area in an idle state.
  • the difference between the first quantity and the second quantity can reflect the amount of buffer area occupied by the data packets that are not currently sent to the headset, and the difference between the first quantity and the second quantity
  • the comparison between the value and the number of buffer areas can accurately reflect whether there is a free buffer area, thereby ensuring the effectiveness of the data packet reception and buffering of the upgrade file, so as to improve the reliability of the headset group upgrade process.
  • each earphone in the earphone group can adapt to the reception of its data packet and send corresponding first request information to independently request the sending of the data packet
  • the communication speed of each earphone and the earphone upgrade device, the data processing speed of each earphone, etc. are different
  • the progress of data packets requested by different earphones may be different (for example, when the first earphone requests the xth data packet, the second earphone may request x+3 data packets).
  • the step of obtaining the second number of data packets sent to each of the earphones may include: obtaining the third number of sent data packets corresponding to each earphone in the earphone group; Among the numbers, the third number with the smallest value is used as the second number. Based on this, it is guaranteed that the second number obtained can accurately represent the number of data packets that have been sent to each earphone, and the combination has been sent to each earphone. The data packets will be deleted.
  • the difference between the first quantity and the second quantity can accurately reflect the amount of buffer area occupied by the data packets that are not currently sent to the headset. Therefore, the difference between the first quantity and the second quantity is the same as that of the buffer area.
  • the comparison of the numbers can accurately reflect the idle state of the buffer area, thereby further improving the effectiveness of the data packet receiving and buffering of the upgrade file, and improving the reliability of the upgrade process of the headset group.
  • the present invention also provides a headset control device (not shown). Specifically, it can be connected with earphones, especially connected with each earphone in a earphone group including more than one earphone, so as to perform an upgrade operation on the earphones in combination with the earphone upgrading apparatus described above. Specifically, the earphone control device (not shown) can be built in each earphone of the earphone group.
  • the headset control device includes a processor (for example, a CPU), a memory connected to the processor, and the like.
  • the memory may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory.
  • the memory may also be a storage device independent of the foregoing processor.
  • a headphone control program may be included in the memory as a readable storage medium.
  • the processor can be used to call the earphone control program stored in the memory and execute the relevant steps of the earphone control method in the following embodiments.
  • the headset upgrade method includes the headset upgrade process of step S21 and step S22, and the present invention also provides a headset control method.
  • the earphone control method includes the following steps:
  • Step S100 Control the headset to send the first request information to the headset upgrade apparatus, so that when the headset upgrade apparatus receives and caches the multiple data packets corresponding to the upgrade file one by one, when the first request information is received in the cached In the data packet, determining a target data packet that needs to be sent to the headset corresponding to the first request information, and sending the target data packet to the headset;
  • the headset upgrade device After the headset upgrade device enters the upgrade mode, it can send enable information to the headset. After receiving the enable information, the headset can send the first request information to the headset upgrade device to request the data packet buffered in the headset upgrade device. Each first request information can request one or more data packets cached in the headset upgrade device according to actual needs.
  • step S200 is executed.
  • Step S200 Perform an upgrade operation based on all data packages corresponding to the received upgrade file.
  • the upgrade operation can be performed directly, or the received upgrade file can also be verified, and the upgrade operation can be performed after the verification is passed.
  • step S200 the verification information sent by the headset upgrade device is received;
  • the device Determine whether the feature information of all the data packets corresponding to the received upgrade file matches the verification information, and obtain the judgment result; generate the verification result according to the judgment result and feed it back to the headset upgrade device, so that the headset is upgraded
  • the device generates a third message according to the verification result and sends it to the terminal that provides the upgrade file, so that the terminal determines the receiving state of the headset with respect to the upgrade file according to the third message.
  • step S100 in order to ensure the integrity of the data package received for the upgrade file, especially when a first request message requests a data package, after step S100, it can be determined whether the headset has received all the data corresponding to the upgrade file. Package; if not, go back to step S100; if yes, go to step S200.
  • the step of controlling the headset to send the first request information to the headset upgrading apparatus includes: acquiring a first data packet index; the first data packet index is based on the The headset currently receives information generated by the number of data packets of the upgrade file; controlling the headset to send the first request information including the index of the first data packet to the headset upgrading apparatus.
  • the embodiment of the present invention also proposes a readable storage medium having a computer program stored on the readable storage medium, and when the computer program is executed by a processor, it implements any embodiment of the above earphone upgrade method and/or earphone control Relevant steps of any embodiment of the method.
  • the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM) as described above. , Magnetic disks, optical disks), including several instructions to make a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.
  • a terminal device which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

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

Abstract

Est divulgué dans certains modes de réalisation de la présente demande un procédé de mise à niveau d'écouteur, le procédé faisant appel aux étapes suivantes : la réception un par un et la mise en mémoire cache d'une pluralité de paquets de données correspondant à un fichier de mise à niveau ; et pendant le processus de mise en mémoire cache de la pluralité de paquets de données correspondant au fichier de mise à niveau, l'envoi de manière synchrone de paquets de données mis en mémoire cache à chaque écouteur dans un ensemble d'écouteurs jusqu'à ce que tous les paquets de données correspondant au fichier de mise à niveau soient mis en mémoire cache et envoyés à chaque écouteur, de sorte que chaque écouteur effectue une opération de mise à niveau sur la base de tous les paquets de données correspondant au fichier de mise à niveau reçu. Sont également divulgués un procédé de commande d'écouteur, un dispositif de mise à niveau d'écouteur, un ensemble d'écouteurs, et un support de stockage lisible. La présente invention vise à permettre à un dispositif de mise à niveau tel qu'une boîte de charge d'envoyer de manière synchrone des données qui sont requises pour une mise à niveau à deux écouteurs, ce qui permet d'obtenir la mise à niveau synchrone d'un ensemble d'écouteurs, et d'améliorer l'efficacité de mise à niveau d'un ensemble d'écouteurs.
PCT/CN2020/124853 2020-04-22 2020-10-29 Procédé de mise à niveau d'écouteur, dispositif, procédé de commande d'écouteur, ensemble d'écouteurs, et support de stockage WO2021212798A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010322552.XA CN111556117A (zh) 2020-04-22 2020-04-22 耳机升级方法、装置、耳机控制方法、耳机组和存储介质
CN202010322552.X 2020-04-22

Publications (1)

Publication Number Publication Date
WO2021212798A1 true WO2021212798A1 (fr) 2021-10-28

Family

ID=72003887

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/124853 WO2021212798A1 (fr) 2020-04-22 2020-10-29 Procédé de mise à niveau d'écouteur, dispositif, procédé de commande d'écouteur, ensemble d'écouteurs, et support de stockage

Country Status (2)

Country Link
CN (1) CN111556117A (fr)
WO (1) WO2021212798A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115083136A (zh) * 2022-06-22 2022-09-20 珠海格力电器股份有限公司 一种遥控信号的处理方法、装置、存储介质及控制器

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111556117A (zh) * 2020-04-22 2020-08-18 歌尔科技有限公司 耳机升级方法、装置、耳机控制方法、耳机组和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009007468A2 (fr) * 2008-09-26 2009-01-15 Phonak Ag Mise à jour sans fil de dispositifs auditifs
CN108874421A (zh) * 2018-06-15 2018-11-23 歌尔科技有限公司 一种tws耳机及其升级方法、装置、存储介质
CN110366063A (zh) * 2019-07-26 2019-10-22 歌尔科技有限公司 一种无线耳机的升级方法、装置及充电盒
CN110659046A (zh) * 2019-09-12 2020-01-07 湖南国声智能科技有限公司 固件升级方法、终端、充电盒、耳机及存储介质
CN111556117A (zh) * 2020-04-22 2020-08-18 歌尔科技有限公司 耳机升级方法、装置、耳机控制方法、耳机组和存储介质

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051689B (zh) * 2012-12-11 2016-06-22 北京奇虎科技有限公司 一种程序升级下载方法和装置
US20150172832A1 (en) * 2013-12-17 2015-06-18 United Sciences, Llc Iidentity confirmation using wearable computerized earpieces and related methods
GB201421291D0 (en) * 2014-12-01 2015-01-14 Soundchip Sa Earphone system
CN105511903A (zh) * 2015-11-23 2016-04-20 广东欧珀移动通信有限公司 一种音频设备的升级方法和装置
CN107608711A (zh) * 2017-10-19 2018-01-19 歌尔科技有限公司 升级方法、装置、***和电子设备
CN108600892B (zh) * 2018-06-15 2020-05-22 歌尔科技有限公司 一种升级方法、装置、无线耳机、tws耳机及充电盒
CN109068211B (zh) * 2018-08-01 2020-06-05 广东思派康电子科技有限公司 一种tws耳机及其计算机可读存储介质
CN109842523A (zh) * 2019-02-14 2019-06-04 上海华测导航技术股份有限公司 一种固件升级方法、装置、设备及存储介质
CN110764806B (zh) * 2019-10-29 2023-12-26 歌尔科技有限公司 一种tws耳机及其升级方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009007468A2 (fr) * 2008-09-26 2009-01-15 Phonak Ag Mise à jour sans fil de dispositifs auditifs
CN108874421A (zh) * 2018-06-15 2018-11-23 歌尔科技有限公司 一种tws耳机及其升级方法、装置、存储介质
CN110366063A (zh) * 2019-07-26 2019-10-22 歌尔科技有限公司 一种无线耳机的升级方法、装置及充电盒
CN110659046A (zh) * 2019-09-12 2020-01-07 湖南国声智能科技有限公司 固件升级方法、终端、充电盒、耳机及存储介质
CN111556117A (zh) * 2020-04-22 2020-08-18 歌尔科技有限公司 耳机升级方法、装置、耳机控制方法、耳机组和存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115083136A (zh) * 2022-06-22 2022-09-20 珠海格力电器股份有限公司 一种遥控信号的处理方法、装置、存储介质及控制器

Also Published As

Publication number Publication date
CN111556117A (zh) 2020-08-18

Similar Documents

Publication Publication Date Title
WO2021212798A1 (fr) Procédé de mise à niveau d'écouteur, dispositif, procédé de commande d'écouteur, ensemble d'écouteurs, et support de stockage
US10587544B2 (en) Message processing method, processing server, terminal, and storage medium
CN111666514A (zh) 网页端实现跨域请求的数据处理方法、装置及相关设备
US10341469B2 (en) Data transmission method and apparatus and data receiving method and apparatus
US9537755B2 (en) Access relay method and access gateway device
CN108718347B (zh) 一种域名解析方法、***、装置及存储介质
WO2019237594A1 (fr) Procédé et appareil de persistance de session, dispositif informatique et support de données
EP3273664B1 (fr) Procédé et dispositif de traitement de données, serveur et contrôleur
CN111787098B (zh) 一种耳机升级方法、装置及一种耳机和存储介质
JP4786354B2 (ja) iSCSI通信制御方法とそれを用いた記憶システム
WO2020233081A1 (fr) Procédé de mise en œuvre de module d'extension de client, appareil, dispositif informatique, et support de stockage
US20230224654A1 (en) Earphone debugging method and device, and storage medium
CN111026324B (zh) 转发表项的更新方法及装置
CN112199175B (zh) 一种任务队列生成方法、装置及设备
CN106648832A (zh) 提高虚拟机资源利用率的装置及方法
WO2017063400A1 (fr) Procédé et dispositif de routage de paquets basés sur des informations de chaîne de service
CN108600378B (zh) 一种文件下载方法、装置、终端和存储介质
JP2016208503A (ja) Plcシステムのプロトコル自動設定方法
CN105939293A (zh) 一种skb回收方法及装置
EP3826244B1 (fr) Procédé de contrôle de congestion et dispositif associé
US20220052902A1 (en) Method for managing remote device through management device
CN109688204B (zh) 基于ndn网络的文件下载方法、节点、终端
KR102425919B1 (ko) 서비스 기능의 지연 시간 측정 시스템, 장치 및 방법
CN111240867B (zh) 一种信息通讯***及方法
JP4918324B2 (ja) データ転送システム、及びネットワーク装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20932153

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20932153

Country of ref document: EP

Kind code of ref document: A1