[go: up one dir, main page]

WO2019237458A1 - 一种tws耳机程序升级的方法、系统及tws耳机 - Google Patents

一种tws耳机程序升级的方法、系统及tws耳机 Download PDF

Info

Publication number
WO2019237458A1
WO2019237458A1 PCT/CN2018/097206 CN2018097206W WO2019237458A1 WO 2019237458 A1 WO2019237458 A1 WO 2019237458A1 CN 2018097206 W CN2018097206 W CN 2018097206W WO 2019237458 A1 WO2019237458 A1 WO 2019237458A1
Authority
WO
WIPO (PCT)
Prior art keywords
headset
upgrade
wireless
terminal
wireless headset
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.)
Ceased
Application number
PCT/CN2018/097206
Other languages
English (en)
French (fr)
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 US17/055,013 priority Critical patent/US11368777B2/en
Publication of WO2019237458A1 publication Critical patent/WO2019237458A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/033Headphones for stereophonic communication
    • 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • 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/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/04Circuit arrangements, e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/50Service provisioning or reconfiguring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/07Applications of wireless loudspeakers or wireless microphones

Definitions

  • the present invention relates to the technical field of portable listening devices, and in particular, to a method and system for upgrading a TWS headset program, and a TWS headset.
  • Headphones are a pair of conversion units that receive electrical signals from a media player or receiver and use speakers close to the ears to convert them into audible sound waves.
  • wired earphones can be divided into wired earphones and wireless earphones.
  • wired earphones require left and right earphones to form left and right channels through a wired connection to produce a stereo effect, but wireless earphones are relatively inconvenient to wear.
  • the wireless headset communicates with the terminal through a wireless communication protocol (such as Bluetooth). Compared with the wired headset, it has the characteristics of no need to clean up the data cable and convenient use.
  • a wireless communication protocol such as Bluetooth
  • TWS headsets are composed of a master headset and a slave headset.
  • Existing TWS headsets usually use OTA (Over-the-Air Technology) to upgrade programs. The process is: first upgrade the master headset, and then upgrade the slave headset through the master headset.
  • OTA Over-the-Air Technology
  • This upgrade method is very easy to fail due to the instability of the connection between the master headset and the slave headset, and because the master headset is required as a relay, not only the time required for the upgrade is extended, but also the hardware resources of the master headset are occupied.
  • the purpose of the present invention is to provide a reasonably feasible method and system for upgrading TWS headset programs and TWS headsets, so as to solve the problems of instability, long upgrade time, and occupation of hardware resources during the upgrade of existing programs.
  • the present invention provides a method for program upgrade, which is applied to a TWS headset, where the TWS headset includes a first wireless headset and a second wireless headset arranged in pairs; including:
  • the second wireless headset receives a second upgrade file sent by the terminal to perform the upgrade.
  • the establishing a wireless communication connection between the first wireless headset and a terminal includes:
  • the first wireless headset establishes a BLE wireless communication connection.
  • the receiving, by the first wireless headset, an instruction for upgrading and generating the upgrade response information for entering the OTA mode includes:
  • the headset charging box When the headset charging box detects a preset event, the headset charging box performs BLE broadcast, and the broadcast field includes a field notifying the headset that it is ready to enter the OTA mode;
  • the headset charging box detects that the first wireless headset is placed in a first preset position, the first wireless headset enters an OTA code segment and performs wireless communication scanning; when the first wireless headset is at a preset time When the OTA signal is scanned internally, the upgrade response information for entering the OTA mode is generated.
  • it further includes:
  • the first wireless headset disconnects the BLE wireless communication connection with the terminal,
  • the present invention also provides a TWS headset, which includes: audio output, communication interface, memory, and a processor, and the processor upgrades the TWS headset by using any one of the program upgrade methods described above.
  • the present invention also provides a method for upgrading a TWS earphone program.
  • the TWS earphone includes a first wireless earphone and a second wireless earphone arranged in pairs, including:
  • a wireless communication connection between the terminal and the second wireless headset is established, and after the first wireless headset is upgraded, the terminal sends a second upgrade file to the second wireless headset for upgrading.
  • the method before the establishing a wireless communication connection between the terminal and the first wireless headset, before the terminal sends a first upgrade file to the first wireless headset for upgrading, the method further includes:
  • the present invention also provides a system for upgrading a TWS headset program, including: a terminal and a TWS headset;
  • the terminal is configured to establish a wireless communication connection with the first wireless headset, and send a first upgrade file to the first wireless headset for upgrading; and establish a wireless communication connection with the second wireless headset. After the upgrade of the first wireless headset is completed, a second upgrade file is sent to the second wireless headset for upgrade.
  • the first wireless headset is specifically configured to receive an instruction to perform an upgrade, generate upgrade response information for entering an OTA mode, and send the upgrade response information to the terminal;
  • the terminal is specifically configured to receive the upgrade response information and establish a BLE wireless communication connection with the first wireless headset.
  • a headset charging box configured to perform BLE broadcast when a preset event is detected, and the broadcast field includes a field notifying the headset that it is ready to enter the OTA mode;
  • the first wireless headset When it is detected that the first wireless headset is placed in a first preset position of the headset charging box, the first wireless headset is specifically configured to enter an OTA code segment and perform wireless communication scanning; when scanning within a preset time When the OTA signal is reached, the upgrade response information for entering the OTA mode is generated.
  • the present invention also provides a computer-readable storage medium for storing a computer program; wherein the computer program is implemented by a processor to implement the method for upgrading the foregoing program; or the computer program is implemented by the processor to implement the foregoing method TWS headset program upgrade method.
  • the TWS headset includes a first wireless headset and a second wireless headset that are set in pairs; during the upgrade, a wireless communication connection is established between the first wireless headset and the terminal, and the first wireless headset receives The terminal sends a first upgrade file for upgrading; establishes a wireless communication connection between the second wireless headset and the terminal. After the first wireless headset is upgraded, the second wireless headset receives the second upgrade file sent by the terminal for upgrading.
  • This application uses the terminal to upgrade two headsets separately, and does not need to transmit upgrade data through the communication connection between the master headset and the slave headset, thereby avoiding upgrade failure due to unstable connection between the two, and improving the upgrade operation. reliability.
  • the master headset in this application, it is not necessary for the master headset to store the upgrade data, and then read and forward it to the slave headset. That is, the master headset is not required to transfer data. On the one hand, the upgrade time is saved, and on the other hand, the main headset is not required to perform the storage and read operation first, thereby avoiding the consumption of the main headset resources by the transfer data.
  • the present application also provides a method for upgrading a TWS headset program, a TWS headset, and a system for upgrading a TWS headset program with the above technical advantages.
  • FIG. 1 is a flowchart of a specific implementation manner of a program upgrade method provided by this application;
  • FIG. 3 is a flowchart of a process of sending an OTA instruction through a headset charging box according to an embodiment of the present application
  • FIG. 4 is a working flowchart of putting a headset into a charging case according to an embodiment of the present application
  • FIG. 5 is a flowchart of another specific implementation manner of a method for upgrading a TWS headset program provided by the present invention.
  • FIG. 6 is a flowchart of another specific implementation manner of a method for upgrading a TWS headset program provided by this application;
  • FIG. 7 is a structural block diagram of a TWS headset provided by this application.
  • FIG. 8 is a structural block diagram of a system for upgrading a TWS headset program provided in this application.
  • This application provides a method for program upgrade, which is applied to a TWS headset.
  • the TWS headset is paired with a terminal device (for example, a computer, a smart phone, a tablet computer, a smart watch, etc.) through a wireless communication protocol (for example, Bluetooth) to perform data transmission.
  • a terminal device for example, a computer, a smart phone, a tablet computer, a smart watch, etc.
  • a wireless communication protocol for example, Bluetooth
  • the TWS headset in this application further includes: a headset charging box used with the headset.
  • the earphone charging box is provided with a cavity accommodating the earphone for charging the wireless earphone when the earphone is placed in the corresponding cavity.
  • the TWS earphone includes a first wireless earphone and a second wireless earphone that are arranged in pairs.
  • the first wireless earphone and the second wireless earphone can form a pair of TWS earphones, which are used as audio output of the left and right ears, respectively.
  • the “first” in the first wireless earphone and the “second” in the second wireless earphone are not specifically limited, and are only used to distinguish.
  • FIG. 1 a flowchart of a method for upgrading a TWS headset program provided in the present application is shown.
  • the method specifically includes:
  • Step S101 Establish a wireless communication connection between the first wireless headset and a terminal, and the first wireless headset receives a first upgrade file sent by the terminal for upgrading;
  • Step S102 Establish a wireless communication connection between the second wireless headset and the terminal. After the upgrade of the first wireless headset is completed, the second wireless headset receives a second upgrade file sent by the terminal for upgrade. .
  • the process of establishing a wireless communication connection between the second wireless headset and the terminal may be before, at the same time, or after the terminal sends the first upgrade file to the first wireless headset.
  • the execution order is not limited here, and this does not affect Implementation of this application.
  • the wireless communication connection between the first wireless headset and the terminal is disconnected, and then the wireless communication connection between the second wireless headset and the terminal is established, To upgrade the second wireless headset.
  • first upgrade file received by the first wireless headset and the second upgrade file received by the second wireless headset may be the same upgrade file, or of course, different upgrade files, which are not limited herein. .
  • the TWS headset includes a first wireless headset and a second wireless headset that are set in pairs; during the upgrade, a wireless communication connection is established between the first wireless headset and the terminal, and the first wireless headset receives The terminal sends a first upgrade file for upgrading; establishes a wireless communication connection between the second wireless headset and the terminal. After the first wireless headset is upgraded, the second wireless headset receives the second upgrade file sent by the terminal for upgrading.
  • This application uses the terminal to upgrade two headsets separately, and does not need to transmit upgrade data through the communication connection between the master headset and the slave headset, thereby avoiding upgrade failure due to unstable connection between the two, and improving the upgrade operation. reliability.
  • the master headset in this application, it is not necessary for the master headset to store the upgrade data, and then read and forward it to the slave headset. That is, the master headset is not required to transfer data.
  • the upgrade time is saved, and on the other hand, the main headset is not required to perform the storage and read operation first, thereby avoiding the consumption of the main headset resources by the transfer data.
  • a Bluetooth method may be specifically adopted, and of course, other methods may also be adopted wirelessly.
  • a specific implementation manner of establishing a wireless communication connection in the present application is described in further detail below. Referring to FIG. 2, a flowchart of a specific implementation manner of establishing a wireless communication connection in the present application, the process includes:
  • Step S201 The first wireless headset receives an instruction to perform an upgrade, generates upgrade response information for entering an OTA mode, and sends the upgrade response information to the terminal;
  • the upgrade instruction received by the first wireless headset in this application may be directly sent by the terminal, or may be sent by the headset charging box of the TWS headset.
  • the specific process may be:
  • Step S2011 When the headset charging box detects a preset event, the headset charging box performs BLE broadcast, and the broadcast field includes a field notifying the headset that it is ready to enter the OTA mode;
  • the preset event can be a long-press operation of a preset button on the headset charging box.
  • the wireless communication method in this embodiment may specifically adopt a BLE broadcast (Bluetooth Low Energy Technology) method, and other methods such as traditional Bluetooth are all acceptable, which is not limited herein.
  • BLE broadcast Bluetooth Low Energy Technology
  • Step S2012 when the earphone charging box detects that the first wireless earphone is placed in a first preset position, the first wireless earphone enters an OTA code segment and performs wireless communication scanning; when the first wireless earphone is within a preset time When the OTA signal is scanned, the upgrade response information for entering the OTA mode is generated.
  • the working flow chart of putting the earphones into the charging case the process may be specifically as follows:
  • Step S1 When the headset is put into the charging case, enter the OTA code segment and perform BLE scanning;
  • Step S2 Determine whether the OTA preparation timed out; if it is, then enter the normal working mode; if not, then proceed to step S3;
  • Step S3 determine whether an OTA instruction is scanned; if not, return to step S2; if yes, proceed to step S4;
  • Step S4 Enter the OTA mode and prepare to upgrade.
  • the headset charging box is used to notify whether the headset enters the OTA mode, which can be implemented by expanding the existing headset charging box OTA scanning, without the need for additional development settings on the mobile phone side, which is convenient for development.
  • the headset is placed in the charging box during the entire upgrade process, which prevents the failure of the upgrade due to insufficient power and ensures the stability of charging.
  • Step S202 The terminal receives the upgrade response information, and establishes a BLE wireless communication connection with the first wireless headset.
  • the embodiment of the present application may further include: after the upgrade of the first wireless headset is completed, the first wireless headset disconnects the BLE wireless communication connection with the terminal. Similarly, after the upgrade of the second wireless headset is completed, the BLE wireless communication connection between the second wireless headset and the terminal is also disconnected.
  • the method further includes: sending an upgrade completion instruction to the terminal, so that the terminal prompts the information display item for the completion of the upgrade operation and the operation display information prompting to disconnect the BLE broadcast of the headset charging box to avoid the headset
  • the charging box is in a state of continuous power consumption, which saves energy.
  • the TWS headset includes a first wireless headset and a second wireless headset that are arranged in pairs.
  • the method is implemented by combining hardware.
  • the method specifically includes:
  • Step S301 establishing a wireless communication connection between the terminal and the first wireless headset, and sending a first upgrade file to the first wireless headset through the terminal for upgrading;
  • Step S302 Establish a wireless communication connection between the terminal and the second wireless headset. After the upgrade of the first wireless headset is completed, send a second upgrade file to the second wireless headset through the terminal for upgrade. .
  • the method for upgrading the TWS headset program corresponds to the above-mentioned method for upgrading the TWS headset program.
  • the method for upgrading the TWS headset program corresponds to the above-mentioned method for upgrading the TWS headset program.
  • the foregoing process and details are not described herein again.
  • the terminal before the application establishes a wireless communication connection between the terminal and the first wireless headset, the terminal sends a first upgrade file to the first wireless headset through the terminal before upgrading.
  • the method further includes: when the terminal detects that the program version in the cloud is updated, outputting a selection item prompting whether to perform an upgrade; receiving a selection instruction for performing a program upgrade, and prompting operation instruction information for starting a program upgrade.
  • the terminal when the terminal detects that the program version in the cloud is updated, the user may be prompted on the human-computer interaction interface to choose whether to upgrade. After the user confirms that the upgrade is to be performed, a selection instruction for program upgrade is input from the man-machine interaction interface.
  • the human-computer interaction interface After the human-computer interaction interface receives the selection instruction, it displays operation instruction information that needs to be performed during the program upgrade process, for example, it displays information such as "please place the left earphone in the corresponding position" to indicate how to perform the operation.
  • the process of human-computer interaction in this embodiment makes the upgrade process more humane and improves the user experience.
  • Step S401 When the mobile phone detects that a program version in the cloud is updated, a selection item prompting whether to upgrade is output;
  • the mobile phone When the mobile phone detects that there is a new program version update in the cloud, it prompts the user whether to upgrade, and the user chooses whether to upgrade. If the user confirms the upgrade, perform the subsequent upgrade operations.
  • Step S402 The mobile terminal receives a selection instruction for program upgrade, and prompts operation instruction information for starting the program upgrade;
  • the prompt information of what operations the user needs to perform can be displayed on the mobile phone. For example, triggering a preset event on the headset charging box, placing the headset to be upgraded in a preset position, and other operation prompts.
  • Step S403 When the headset charging box detects a preset event, the headset charging box performs BLE broadcast, and the broadcast field includes a field notifying the headset that it is ready to enter the OTA mode;
  • the preset event may specifically be detected that the earphone is removed from the earphone charging box, and the time when the preset button on the charging box is triggered exceeds a preset threshold (for example, 10s).
  • a preset threshold for example, 10s.
  • BLE broadcast is performed.
  • the broadcast information includes a field to notify the headset to perform OTA.
  • the mobile phone prompts the user to put the first wireless headset into the charging box, and the user follows the prompt to put the first wireless headset into the charging box.
  • Step S404 When it is detected that the first wireless earphone is placed in the first preset position of the earphone charging box, the first wireless earphone enters the OTA code segment and performs wireless communication scanning; when an OTA signal is scanned within a preset time, a generation is generated Update response information for entering OTA mode; send the update response information to the mobile phone;
  • the first wireless headset After the first wireless headset is placed in the charging box, it executes the OTA code segment. If it times out, it exits the OTA preparation mode and enters the normal working mode. The BLE scan will be performed at regular intervals during the timeout period. If an OTA instruction is scanned, the first wireless headset upgrade process is performed, that is, after receiving the OTA instruction, the message that the upgrade is ready is broadcast via BLE.
  • Step S405 The mobile phone receives the upgrade response message, establishes a BLE wireless communication connection with the first wireless headset, and sends the first upgrade file to the first wireless headset through the mobile phone to perform the upgrade; after the upgrade is completed, the mobile phone is notified and the BLE connection is disconnected from the mobile phone to enter Normal working mode
  • the mobile phone After receiving the upgrade response message, the mobile phone establishes a BLE connection with the headset, and issues the upgrade file to the headset.
  • the headset receives the upgrade file and upgrades.
  • the mobile phone After the upgrade is completed, the mobile phone is notified and the BLE connection is disconnected from the mobile phone.
  • Step S406 Similarly, a wireless communication connection is established between the mobile phone and the second wireless headset, and a second upgrade file is sent to the second wireless headset through the mobile phone for upgrade. After the upgrade is completed, notify the phone and disconnect the BLE connection with the phone to enter the normal working mode;
  • the second wireless headset upgrade process is the same as the first wireless headset upgrade process.
  • Step S407 After both headsets are upgraded, the mobile phone prompts the user to perform the operation of exiting the BLE broadcast mode on the headset charging box to complete the upgrade process.
  • the above process of upgrading the TWS headset program can be divided into three stages: a preparation stage, a first headset upgrade stage, and a second headset upgrade stage.
  • the mobile phone detects that there is a new software version in the cloud and prompts the user if an upgrade is needed.
  • the user selects the selection instruction for "upgrade”, and removes all the earphones from the earphone charging box according to the prompt of the mobile phone, and presses and holds the charging box button for 10s to enable the charging box to perform BLE broadcast.
  • the broadcast information includes a field notifying the headset to perform OTA .
  • the mobile phone prompts the user to put the first wireless headset into the charging box, and the user follows the prompt to put the first wireless headset into the charging box.
  • the first wireless headset After the first wireless headset is placed in the charging box, it executes the OTA code segment. If it times out, it exits the OTA preparation mode and enters the normal working mode. The BLE scan will be performed at regular intervals within the timeout period. If the OTA instruction is scanned, the first wireless headset upgrade process is performed, that is, after receiving the OTA instruction, the message that the upgrade is ready is broadcast via BLE, and the mobile phone receives the message After that, establish a BLE connection with the headset, and issue the upgrade file to the headset. The headset receives the upgrade file and upgrades. After the upgrade is completed, the mobile phone is notified and disconnected from the mobile phone.
  • the second wireless headset upgrade process is the same as the first wireless headset upgrade process.
  • the mobile phone After the binaural upgrade is completed, the mobile phone prompts the user to "upgrade completed” and prompts the user to press and hold the charging box button for 10s to exit the BLE broadcast. At this point, the OTA is complete.
  • the headset is sequentially notified to enter the OTA mode through the headset charging box, and the headset is sequentially upgraded through the mobile phone.
  • the first wireless earphone may be a left earphone
  • the second wireless earphone may be a right earphone.
  • the upgrade order of the two can be interchanged, which does not affect the implementation of this application.
  • This application uses the mobile phone to upgrade the two headsets separately, which saves the time required for the upgrade and improves the reliability of the upgrade operation.
  • the present application further provides a TWS earphone 1 including: an audio output 11, a communication interface 12, a processor 13, and a memory 14.
  • the processor 13 uses any of the methods for upgrading a TWS headset program described above for program upgrade.
  • the wireless headset provided by the present application upgrades two headsets respectively through a terminal, and does not need to transmit upgrade data through a communication connection between the master headset and the slave headset, thereby avoiding upgrade failure due to unstable connection between the two. Improved upgrade reliability.
  • the master headset in this application it is not necessary for it to store the upgrade data first, then read and forward it to the slave headset in a series of processes, that is, the master headset is not required to transfer data. On the one hand, it saves the upgrade time, and on the other hand, because the main headset is not required to perform the first save and fetch operation, the consumption of the main headset resources by the transfer data is avoided.
  • the present application also provides a system for upgrading a TWS headset program, which specifically includes: a terminal 2 and a TWS headset 1.
  • a system for upgrading a TWS headset program which specifically includes: a terminal 2 and a TWS headset 1.
  • FIG. 8 a structural block diagram of a system for upgrading a TWS headset provided by the present application, wherein the terminal 2 is configured to establish a wireless communication connection with a first wireless headset, and sends a first upgrade to the first wireless headset. Upgrade the file; establish a wireless communication connection with the second wireless headset, and after the first wireless headset is upgraded, send a second upgrade file to the second wireless headset for upgrade.
  • the first wireless headset is specifically configured to receive an upgrade instruction, generate upgrade response information for entering an OTA mode, and send the upgrade response information to the terminal;
  • the terminal is specifically configured to receive the upgrade response information and establish a BLE wireless communication connection with the first wireless headset.
  • system for upgrading the TWS headset may further include: a headset charging box 3 configured to perform BLE broadcast when a preset event is detected, and the broadcast field includes a field notifying the headset to prepare to enter the OTA mode;
  • the first wireless headset When it is detected that the first wireless headset is placed in a first preset position of the headset charging box, the first wireless headset is specifically configured to enter an OTA code segment and perform wireless communication scanning; when scanning within a preset time When the OTA signal is reached, the upgrade response information for entering the OTA mode is generated.
  • This application uses the terminal to upgrade two headsets separately, and does not need to transmit upgrade data through the communication connection between the master headset and the slave headset, thereby avoiding upgrade failure due to unstable connection between the two and improving the reliability of the upgrade. Sex.
  • the master headset in this application it is not necessary for it to store the upgrade data first, then read and forward it to the slave headset in a series of processes, that is, the master headset is not required to transfer data. On the one hand, it saves the upgrade time, and on the other hand, because the main headset is not required to perform the first save and fetch operation, the consumption of the main headset resources by the transfer data is avoided.
  • RAM random access memory
  • ROM read-only memory
  • electrically programmable ROM electrically erasable programmable ROM
  • registers hard disks, removable disks, CD-ROMs, or in technical fields Any other form of storage medium is known.

Landscapes

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

Abstract

本发明公开了一种程序升级的方法,涉及便携式收听设备技术领域,以解决现有程序升级过程中不稳定、升级时间较长以及占用硬件资源的问题。该方法包括:升级时,建立第一无线耳机与终端之间的无线通信连接,第一无线耳机接收终端发送的第一升级文件进行升级;建立第二无线耳机与终端之间的无线通信连接,当第一无线耳机升级完成之后,第二无线耳机接收终端发送的第二升级文件进行升级。本申请通过终端分别对两个耳机进行升级,不需要通过主耳机对升级数据进行中转,提高了升级操作的可靠性,节省了升级的时间,避免了对主耳机硬件资源的消耗。此外,本申请还提供了具有上述技术优点的TWS耳机程序升级方法、TWS耳机及TWS耳机程序升级的系统。

Description

一种TWS耳机程序升级的方法、系统及TWS耳机
本申请要求于2018年06月15日提交中国专利局、申请号为201810622513.4、发明名称为“一种TWS耳机程序升级的方法、系统及TWS耳机”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及便携式收听设备技术领域,特别是涉及一种TWS耳机程序升级的方法、系统以及TWS耳机。
背景技术
耳机是一对转换单元,用于接收媒体播放器或接收器所发出的电信号,利用贴近耳朵的喇叭将其转化成可以听到的音波。
目前的耳机可以分为有线耳机和无线耳机,其中有线耳机需要左右两个耳机通过有线的连接方式组成左右声道,产生立体声效果,但无线耳机佩戴相对不方便。而无线耳机则是通过无线通信协议(例如蓝牙)与终端进行通信,其相对于有线耳机而言具有无需收拾数据线、使用便捷的特点。其中目前最新出现的真正无线互连立体声蓝牙耳机(TWS,True Wireless Stereo)就是无线耳机中较为典型的一种。
就目前而言,TWS耳机均由主耳机和从耳机构成。现有TWS耳机对程序进行升级通常采用OTA(Over-the-Air Technology,空中下载技术)的方式进行升级。其过程为:先对主耳机进行升级,再通过主耳机对从耳机进行升级。然而,这种升级方式非常容易由于主耳机与从耳机连接的不稳定性而失败,而且由于需要主耳机作为中转,不仅延长了升级所需的时间,还占用了主耳机的硬件资源。
发明内容
本发明的目的是提供一种合理可行的TWS耳机程序升级的方法、系统以及TWS耳机,以解决现有程序升级过程中不稳定、升级时间较长以及占用硬件资源的问题。
为解决上述技术问题,本发明提供一种程序升级的方法,应用于TWS耳机,所述TWS耳机包括成对设置的第一无线耳机以及第二无线耳机;包括:
建立所述第一无线耳机与终端之间的无线通信连接,所述第一无线耳机接收所述终端发送的第一升级文件进行升级;
建立所述第二无线耳机与所述终端之间的无线通信连接,当所述第一无线耳机升级完成之后,所述第二无线耳机接收所述终端发送的第二升级文件进行升级。
可选地,所述建立所述第一无线耳机与终端之间的无线通信连接包括:
所述第一无线耳机接收进行升级的指令,生成进入OTA模式的升级响应信息,并将所述升级响应信息发送至所述终端,以使所述终端接收到所述升级响应信息,与所述第一无线耳机建立BLE无线通信连接。
可选地,所述第一无线耳机接收进行升级的指令,生成进入OTA模式的升级响应信息包括:
当耳机充电盒检测到预设事件时,所述耳机充电盒进行BLE广播,广播字段中包含通知耳机准备进入OTA模式的字段;
当所述耳机充电盒检测到所述第一无线耳机置于第一预设位置时,所述第一无线耳机进入OTA代码段并进行无线通信扫描;当所述第一无线耳机在预设时间内扫描到OTA信号时,生成进入OTA模式的升级响应信息。
可选地,还包括:
在所述第一无线耳机升级完成之后,所述第一无线耳机断开与所述终端的BLE无线通信连接,
在所述第二无线耳机升级完成之后,
向所述终端发送升级完成的指令,以使所述终端提示升级操作完成的信息显示项以及提示断开所述耳机充电盒BLE广播的操作显示信息。
本发明还提供了一种TWS耳机,包括:音频输出、通信接口、存储器以及处理器,所述处理器采用上述任一种所述的程序升级的方法对TWS耳机进行程序升级。
本发明还提供了一种TWS耳机程序升级的方法,所述TWS耳机包括成对设置的第一无线耳机以及第二无线耳机;包括:
建立终端与所述第一无线耳机之间的无线通信连接,通过所述终端向所述第一无线耳机发送第一升级文件进行升级;
建立所述终端与所述第二无线耳机之间的无线通信连接,当所述第一无线耳机升级完成之后,通过所述终端向所述第二无线耳机发送第二升级文件进行升级。
可选地,在所述建立终端与所述第一无线耳机之间的无线通信连接,通过所述终端向所述第一无线耳机发送第一升级文件进行升级之前还包括:
当所述终端检测到云端的程序版本发生更新时,输出提示是否进行升级的选择项;
接收进行程序升级的选择指令,提示启动程序升级的操作指示信息。
本发明还提供了一种TWS耳机程序升级的系统,包括:终端以及TWS耳机;
其中,所述终端用于建立与第一无线耳机之间的无线通信连接,向所述第一无线耳机发送第一升级文件进行升级;建立与第二无线耳机之间的无线通信连接,当所述第一无线耳机升级完成之后,向所述第二无线耳机发送第二升级文件进行升级。
可选地,所述第一无线耳机具体用于接收进行升级的指令,生成进入OTA模式的升级响应信息,并将所述升级响应信息发送至所述终端;
所述终端具体用于接收到所述升级响应信息,与所述第一无线耳机建立BLE无线通信连接。
可选地,还包括:耳机充电盒,用于在检测到预设事件时进行BLE广播,广播字段中包含通知耳机准备进入OTA模式的字段;
当检测到所述第一无线耳机置于所述耳机充电盒的第一预设位置时,所述第一无线耳机具体用于进入OTA代码段并进行无线通信扫描;当在预设时间内扫描到OTA信号时,生成进入OTA模式的升级响应信息。
本发明还提供了一种计算机可读存储介质,用于存储计算机程序;其中,所述计算机程序被处理器执行时实现前述程序升级的方法;或者,所述计算机程序被处理器执行时实现前述TWS耳机程序升级的方法。
本发明所提供的程序升级的方法,该TWS耳机包括成对设置的第一无线耳机以及第二无线耳机;升级时,建立第一无线耳机与终端之间的无线通信连接,第一无线耳机接收终端发送的发送第一升级文件进行升级;建立第二无线耳机与终端之间的无线通信连接,当第一无线耳机升级完成之后,第二无线耳机接收终端发送的第二升级文件进行升级。本申请通过终端分别对两个耳机进行升级,不需要通过主耳机与从耳机之间的通信连接进行升级数据的传输,从而避免了由于二者连接不稳定导致的升级失败,提高了升级操作的可靠性。此外,本申请中对于主耳机而言,不需要其先对升级数据进行存储,再进行读取并转发至从耳机这一系列过程,即不需要主耳机进行数据的中转。一方面节省了升级的时间,另一方面由于不需要主耳机进行先存储后读取的操作,避免了中转数据对主耳机资源的消耗。此外,本申请还提供了具有上述技术优点的TWS耳机程序升级的方法、TWS耳机以及TWS耳机程序升级的系统。
附图说明
为了更清楚的说明本发明实施例或现有技术的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请所提供的程序升级的方法的一种具体实施方式流程图;
图2为本申请中建立无线通信连接的一种具体实施方式流程图;
图3为本申请实施例中通过耳机充电盒发送OTA指令的过程流程图;
图4为本申请实施例中耳机放入充电盒的工作流程图;
图5为本发明所提供的TWS耳机程序升级的方法的另一种具体实施方式流程图;
图6为本申请所提供的TWS耳机程序升级的方法的又一种具体实施方式流程图;
图7为本申请所提供的TWS耳机的结构框图;
图8为本申请所提供的TWS耳机程序升级的系统的结构框图。
具体实施方式
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本申请提供了一种程序升级的方法,应用于TWS耳机。本申请中TWS耳机通过无线通信协议(例如蓝牙)与终端设备(例如,计算机、智能电话、平板电脑、智能手表等等)进行配对,从而进行数据的传输。进一步地,本申请中TWS耳机还包括:与耳机配套使用的耳机充电盒。该耳机充电盒内部设置有容纳耳机的腔体,用于在耳机放置在对应腔体内时对无线耳机进行充电。
其中,TWS耳机包括成对设置的第一无线耳机以及第二无线耳机,第一无线耳机和第二无线耳机可以组成一对TWS耳机,分别作为左右耳的音频输出。这里的,第一无线耳机中的“第一”与第二无线耳机中的“第二”并没有特定限制,仅用于区分。
参照图1本申请所提供的TWS耳机程序升级的方法的流程图所示,该方法具体包括:
步骤S101:建立所述第一无线耳机与终端之间的无线通信连接,所述第一无线耳机接收所述终端发送的第一升级文件进行升级;
步骤S102:建立所述第二无线耳机与所述终端之间的无线通信连接,当所述第一无线耳机升级完成之后,所述第二无线耳机接收所述终端发送的第二升级文件进行升级。
其中,建立第二无线耳机与终端之间的无线通信连接这一过程可以在终端向第一无线耳机发送第一升级文件之前、同时或之后,在此不限定其执行的顺序,这均不影响本申请的实现。作为一种具体实施方式,本实施例可以在第一无线耳机升级完成之后,断开第一无线耳机与终端之间的无线通信连接,然后建立第二无线耳机与终端之间的无线通信连接,以对第二无线耳机进行升级。
需要指出的是,本申请中第一无线耳机接收的第一升级文件与第二无 线耳机接收的第二升级文件可以为相同的升级文件,当然也可以为不同的升级文件,在此不做限定。
本发明所提供的程序升级的方法,该TWS耳机包括成对设置的第一无线耳机以及第二无线耳机;升级时,建立第一无线耳机与终端之间的无线通信连接,第一无线耳机接收终端发送的发送第一升级文件进行升级;建立第二无线耳机与终端之间的无线通信连接,当第一无线耳机升级完成之后,第二无线耳机接收终端发送的第二升级文件进行升级。本申请通过终端分别对两个耳机进行升级,不需要通过主耳机与从耳机之间的通信连接进行升级数据的传输,从而避免了由于二者连接不稳定导致的升级失败,提高了升级操作的可靠性。此外,本申请中对于主耳机而言,不需要其先对升级数据进行存储,再进行读取并转发至从耳机这一系列过程,即不需要主耳机进行数据的中转。一方面节省了升级的时间,另一方面由于不需要主耳机进行先存储后读取的操作,避免了中转数据对主耳机资源的消耗。
建立终端与无线耳机之间的无线通信连接可以具体采用蓝牙的方式,当然还可以采用其他方式无线方式。以第一无线耳机为例,下面对本申请中建立无线通信连接的一种具体实施方式进行进一步详细阐述,参照图2本申请中建立无线通信连接的一种具体实施方式流程图,该过程包括:
步骤S201:第一无线耳机接收进行升级的指令,生成进入OTA模式的升级响应信息,并将所述升级响应信息发送至所述终端;
具体地,本申请中第一无线耳机接收到的进行升级的指令,可以由终端直接发送的,还可以由TWS耳机的耳机充电盒发送的。参照图3,在进行升级的指令由TWS耳机充电盒发送时,具体过程可以为:
步骤S2011:当耳机充电盒检测到预设事件时,所述耳机充电盒进行BLE广播,广播字段中包含通知耳机准备进入OTA模式的字段;
预设事件可以为对耳机充电盒上预设按钮进行长按的操作。本实施例中无线通信的方式具体可以采用BLE广播(蓝牙低能耗技术)的方式,其他例如传统蓝牙的方式均可,在此并不做限定。
步骤S2012:当耳机充电盒检测到所述第一无线耳机置于第一预设位 置时,所述第一无线耳机进入OTA代码段并进行无线通信扫描;当第一无线耳机在预设时间内扫描到OTA信号时,生成进入OTA模式的升级响应信息。
参照图4耳机放入充电盒的工作流程图,该过程可以具体为:
步骤S1:当耳机放入到充电盒时,进入OTA代码段并进行BLE扫描;
步骤S2:判断OTA准备是否超时;如果是,则进入正常工作模式;如果否,则进入步骤S3;
步骤S3:判断是否扫描到OTA指令;如果否,则返回步骤S2;如果是,则进入步骤S4;
步骤S4:进入OTA模式,准备进行升级。
通过耳机充电盒通知耳机是否进入OTA模式,可以通过对现有的耳机充电盒OTA扫描进行扩展实现,不需要额外在手机端进行开发设置,便于进行开发。并且整个升级过程中将耳机放置在充电盒中,避免了电量不足导致升级的失败,保证了充电的稳定性。
步骤S202:所述终端接收到所述升级响应信息,与所述第一无线耳机建立BLE无线通信连接。
进一步地,本申请实施例还可以包括:在所述第一无线耳机升级完成之后,所述第一无线耳机断开与所述终端的BLE无线通信连接。同理,在第二无线耳机升级完成之后,同样断开第二无线耳机与终端的BLE无线通信连接。通过这样的设置,一方面能够避免持续通信对两者电量的消耗,另一方面也避免了其他设置通过该连接窃取重要信息,保证了通信的安全。在所述第二无线耳机升级完成之后还包括:向终端发送升级完成的指令,以使终端提示升级操作完成的信息显示项以及提示断开所述耳机充电盒BLE广播的操作显示信息,避免耳机充电盒处于持续用电状态,节约了能源。
此外,本申请还提供了一种TWS耳机程序升级的方法,参照图5,所述TWS耳机包括成对设置的第一无线耳机以及第二无线耳机;本方法应用于终端,可以通过终端的软硬件结合的方式实现,该方法具体包括:
步骤S301:建立终端与所述第一无线耳机之间的无线通信连接,通过所述终端向所述第一无线耳机发送第一升级文件进行升级;
步骤S302:建立所述终端与所述第二无线耳机之间的无线通信连接,当所述第一无线耳机升级完成之后,通过所述终端向所述第二无线耳机发送第二升级文件进行升级。
需要指出的是,本申请所提供的TWS耳机程序升级的方法,与上述应用于TWS耳机的程序升级方法相互对应,具体实施方式可参照上述过程,在此不再赘述。
在上述任一实施例的基础上,本申请在所述建立终端与所述第一无线耳机之间的无线通信连接,通过所述终端向所述第一无线耳机发送第一升级文件进行升级之前还包括:当所述终端检测到云端的程序版本发生更新时,输出提示是否进行升级的选择项;接收进行程序升级的选择指令,提示启动程序升级的操作指示信息。该实施例中,当终端检测到云端的程序版本发生更新时,可以在人机交互界面向用户提示是否升级的选择项。当用户确认要进行升级之后,由该人机交互界面输入进行程序升级的选择指令。人机交互界面接收到该选择指令之后,显示出进行程序升级过程中需要执行的操作指示信息,例如显示出“请将左耳机放置在对应位置”等指示用户如何进行操作的信息。通过本实施例中人机交互的过程,使得升级的过程更加人性化,提升了用户的使用体验。
参照图6,以终端具体为手机为例,下面对本申请所提供的TWS耳机程序升级的方法进行进一步详细阐述。该过程具体包括:
步骤S401:当手机检测到云端的程序版本发生更新时,输出提示是否进行升级的选择项;
手机检测到云端有新的程序版本更新时,提示用户是否进行升级,由用户选择是否要进行升级。如果用户确认进行升级,则执行后续升级的操作。
步骤S402:手机端接收进行程序升级的选择指令,提示启动程序升级的操作指示信息;
在用户选择“进行升级”的选择指令,即在用户确认执行升级操作的情况下,可以在手机端显示用户需要执行哪些操作的提示信息。例如,对耳机充电盒触发预设事件,将待升级耳机放置在预设位置等进行操作提示。
步骤S403:当耳机充电盒检测到预设事件时,该耳机充电盒进行BLE广播,广播字段中包含通知耳机准备进入OTA模式的字段;
预设事件可以具体为检测到耳机从耳机充电盒中取出,并且充电盒上预设按钮被触发的时间超过预设阈值(例如10s)。检测到预设事件,则进行BLE广播。广播信息中包含通知耳机进行OTA的字段。此时,手机提示用户将第一无线耳机放入充电盒,用户按照提示将第一无线耳机放入充电盒。
步骤S404:当检测到第一无线耳机置于耳机充电盒的第一预设位置时,第一无线耳机进入OTA代码段并进行无线通信扫描;当在预设时间内扫描到OTA信号时,生成进入OTA模式的升级响应信息;并将升级响应信息发送至手机;
第一无线耳机放入充电盒中后,会执行OTA代码段,如果超时则退出OTA准备模式,并进入正常工作模式。在超时时间内每隔一段时间就会进行BLE扫描,如果扫描到了OTA指令,则执行第一无线耳机升级过程,即收到OTA指令后,通过BLE广播升级准备就绪的消息。
步骤S405:手机接收到升级响应信息,与第一无线耳机建立BLE无线通信连接,通过手机向第一无线耳机发送第一升级文件进行升级;升级完成后通知手机并与手机断开BLE连接,进入正常工作模式;
手机收到升级响应消息后,与耳机建立BLE连接,并对耳机进行升级文件的下发,耳机接收该升级文件并升级,升级完成后通知手机并与手机断开BLE连接。
步骤S406:同理,建立手机与第二无线耳机之间的无线通信连接,通过手机向第二无线耳机发送第二升级文件进行升级。升级完成后通知手机并与手机断开BLE连接,进入正常工作模式;
第二无线耳机升级过程与第一无线耳机升级过程相同。
步骤S407:两个耳机均升级完成后,手机提示用户对耳机充电盒执行 退出BLE广播模式的操作,完成升级过程。
上述对TWS耳机程序升级的过程可以分为三个阶段:准备阶段、第一耳机升级阶段、第二耳机升级阶段。
在准备阶段,手机检测到云端有新的软件版本,提示用户是否需要升级。用户选择“进行升级”的选择指令,并根据手机的提示从耳机充电盒中取出所有耳机,并长按充电盒按键10s,使充电盒进行BLE广播,该广播信息中包含通知耳机进行OTA的字段。此时,手机提示用户将第一无线耳机放入充电盒,用户按照提示将第一无线耳机放入充电盒。
第一无线耳机升级
第一无线耳机放入充电盒中后,会执行OTA代码段,如果超时则退出OTA准备模式,并进入正常工作模式。在超时时间内每隔一段时间就会进行BLE扫描,如果扫描到了OTA指令,则执行第一无线耳机升级过程,即收到OTA指令后,通过BLE广播升级准备就绪的消息,手机收到该消息后,与耳机建立BLE连接,并对耳机进行升级文件的下发,耳机接收升级文件并升级,升级完成后通知手机并与手机断开BLE连接。
第二无线耳机升级
第二无线耳机升级过程与第一无线耳机升级过程相同。
双耳升级完成后,手机端提示用户“升级完成”,并提示用户长按充电盒按键10s使其退出BLE广播。至此,OTA完成。
可见,本申请所提供的TWS耳机升级的实现方案,通过耳机充电盒依次通知耳机进入OTA模式,并依次通过手机对耳机进行升级。其中,第一无线耳机可以为左耳机,第二无线耳机可以为右耳机。当然,二者的升级顺序可以互换,这均不影响本申请的实现。本申请通过手机分别对两个耳机进行升级,节省了升级所需的时间,提高了升级操作的可靠性。
如图7本申请所提供的TWS耳机的结构框图所示,本申请还提供了一种TWS耳机1,包括:音频输出11、通信接口12、处理器13以及存储器14。其中,所述处理器13采用上述任一种所述的TWS耳机程序升级的方法进行程序升级。本申请所提供的无线耳机通过终端分别对两个耳机进行 升级,不需要通过主耳机与从耳机之间的通信连接进行升级数据的传输,从而避免了由于二者连接不稳定导致的升级失败,提高了升级的可靠性。此外,本申请中对于主耳机而言,不需要其先对升级数据进行存储,再进行读取并转发至从耳机一系列过程,即不需要主耳机进行数据的中转。一方面节省了升级的时间,另一方面,由于不需要主耳机进行先存后取的操作,避免了中转数据对主耳机资源的消耗。
此外,本申请还提供了一种TWS耳机程序升级的系统,其具体包括:终端2以及TWS耳机1。参照图8本申请所提供的TWS耳机程序升级的系统的结构框图,其中,所述终端2用于建立与第一无线耳机之间的无线通信连接,向所述第一无线耳机发送第一升级文件进行升级;建立与第二无线耳机之间的无线通信连接,当所述第一无线耳机升级完成之后,向所述第二无线耳机发送第二升级文件进行升级。
具体地,所述第一无线耳机具体用于接收进行升级的指令,生成进入OTA模式的升级响应信息,并将所述升级响应信息发送至所述终端;
所述终端具体用于接收到所述升级响应信息,与所述第一无线耳机建立BLE无线通信连接。
进一步地,本申请所提供的TWS耳机升级的系统还可以包括:耳机充电盒3,用于在检测到预设事件时进行BLE广播,广播字段中包含通知耳机准备进入OTA模式的字段;
当检测到所述第一无线耳机置于所述耳机充电盒的第一预设位置时,所述第一无线耳机具体用于进入OTA代码段并进行无线通信扫描;当在预设时间内扫描到OTA信号时,生成进入OTA模式的升级响应信息。
本申请通过终端分别对两个耳机进行升级,不需要通过主耳机与从耳机之间的通信连接进行升级数据的传输,从而避免了由于二者连接不稳定导致的升级失败,提高了升级的可靠性。此外,本申请中对于主耳机而言,不需要其先对升级数据进行存储,再进行读取并转发至从耳机一系列过程,即不需要主耳机进行数据的中转。一方面节省了升级的时间,另一方面,由于不需要主耳机进行先存后取的操作,避免了中转数据对主耳机资源的消耗。
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。
以上对本发明所提供的TWS耳机程序升级的方法、系统以及TWS耳机进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。

Claims (11)

  1. 一种程序升级的方法,应用于TWS耳机,所述TWS耳机包括成对设置的第一无线耳机以及第二无线耳机;其特征在于,包括:
    建立所述第一无线耳机与终端之间的无线通信连接,所述第一无线耳机接收所述终端发送的第一升级文件进行升级;
    建立所述第二无线耳机与所述终端之间的无线通信连接,当所述第一无线耳机升级完成之后,所述第二无线耳机接收所述终端发送的第二升级文件进行升级。
  2. 如权利要求1所述的程序升级的方法,其特征在于,所述建立所述第一无线耳机与终端之间的无线通信连接包括:
    所述第一无线耳机接收进行升级的指令,生成进入OTA模式的升级响应信息,并将所述升级响应信息发送至所述终端,以使所述终端接收到所述升级响应信息,与所述第一无线耳机建立BLE无线通信连接。
  3. 如权利要求2所述的程序升级的方法,其特征在于,所述第一无线耳机接收进行升级的指令,生成进入OTA模式的升级响应信息包括:
    当耳机充电盒检测到预设事件时,所述耳机充电盒进行BLE广播,广播字段中包含通知耳机准备进入OTA模式的字段;
    当所述耳机充电盒检测到所述第一无线耳机置于第一预设位置时,所述第一无线耳机进入OTA代码段并进行无线通信扫描;当所述第一无线耳机在预设时间内扫描到OTA信号时,生成进入OTA模式的升级响应信息。
  4. 如权利要求3所述的程序升级的方法,其特征在于,还包括:
    在所述第一无线耳机升级完成之后,所述第一无线耳机断开与所述终端的BLE无线通信连接,
    在所述第二无线耳机升级完成之后,
    向所述终端发送升级完成的指令,以使所述终端提示升级操作完成的信息显示项以及提示断开所述耳机充电盒BLE广播的操作显示信息。
  5. 一种TWS耳机,包括:音频输出、通信接口、存储器以及处理器,其 特征在于,所述处理器采用如权利要求1至4任一项所述的程序升级的方法对TWS耳机进行程序升级。
  6. 一种TWS耳机程序升级的方法,所述TWS耳机包括成对设置的第一无线耳机以及第二无线耳机;其特征在于,包括:
    建立终端与所述第一无线耳机之间的无线通信连接,通过所述终端向所述第一无线耳机发送第一升级文件进行升级;
    建立所述终端与所述第二无线耳机之间的无线通信连接,当所述第一无线耳机升级完成之后,通过所述终端向所述第二无线耳机发送第二升级文件进行升级。
  7. 如权利要求6所述的TWS耳机程序升级的方法,其特征在于,在所述建立终端与所述第一无线耳机之间的无线通信连接,通过所述终端向所述第一无线耳机发送第一升级文件进行升级之前还包括:
    当所述终端检测到云端的程序版本发生更新时,输出提示是否进行升级的选择项;
    接收进行程序升级的选择指令,提示启动程序升级的操作指示信息。
  8. 一种TWS耳机程序升级的系统,其特征在于,包括:终端以及TWS耳机;
    其中,所述终端用于建立与第一无线耳机之间的无线通信连接,向所述第一无线耳机发送第一升级文件进行升级;建立与第二无线耳机之间的无线通信连接,当所述第一无线耳机升级完成之后,向所述第二无线耳机发送第二升级文件进行升级。
  9. 如权利要求8所述的TWS耳机程序升级的系统,其特征在于,所述第一无线耳机具体用于接收进行升级的指令,生成进入OTA模式的升级响应信息,并将所述升级响应信息发送至所述终端;
    所述终端具体用于接收到所述升级响应信息,与所述第一无线耳机建立BLE无线通信连接。
  10. 如权利要求9所述的TWS耳机程序升级的系统,其特征在于,还包括:耳机充电盒,用于在检测到预设事件时进行BLE广播,广播字段中包含 通知耳机准备进入OTA模式的字段;
    当检测到所述第一无线耳机置于所述耳机充电盒的第一预设位置时,所述第一无线耳机具体用于进入OTA代码段并进行无线通信扫描;当在预设时间内扫描到OTA信号时,生成进入OTA模式的升级响应信息。
  11. 一种计算机可读存储介质,其特征在于,用于存储计算机程序;其中,所述计算机程序被处理器执行时实现如权利要求1至4任一项所述的程序升级的方法;或者,
    所述计算机程序被处理器执行时实现如权利要求6或7所述的TWS耳机程序升级的方法。
PCT/CN2018/097206 2018-06-15 2018-07-26 一种tws耳机程序升级的方法、系统及tws耳机 Ceased WO2019237458A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/055,013 US11368777B2 (en) 2018-06-15 2018-07-26 Method and system for upgrading program of TWS headset, and TWS headset

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810622513.4 2018-06-15
CN201810622513.4A CN108882211B (zh) 2018-06-15 2018-06-15 一种tws耳机程序升级的方法、系统及tws耳机

Publications (1)

Publication Number Publication Date
WO2019237458A1 true WO2019237458A1 (zh) 2019-12-19

Family

ID=64339275

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/097206 Ceased WO2019237458A1 (zh) 2018-06-15 2018-07-26 一种tws耳机程序升级的方法、系统及tws耳机

Country Status (3)

Country Link
US (1) US11368777B2 (zh)
CN (1) CN108882211B (zh)
WO (1) WO2019237458A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111200811A (zh) * 2019-12-29 2020-05-26 歌尔科技有限公司 一种tws耳机及其升级方法、装置及可读存储介质
CN112073875A (zh) * 2020-08-31 2020-12-11 深圳市豪恩声学股份有限公司 耳机软件升级电路、装置及方法
TWI816592B (zh) * 2022-01-04 2023-09-21 大陸商深圳市中科藍訊科技股份有限公司 一種tws耳機配對方法和晶片

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11026083B2 (en) * 2018-09-27 2021-06-01 Apple Inc. Identification and user notification of mismatched devices
US11726761B2 (en) * 2019-03-26 2023-08-15 Tymphany Acoustic Technology (Huizhou) Co., Ltd. Firmware upgrade for wireless stereo earbuds
CN110737456B (zh) * 2019-09-10 2023-08-15 中山市格美通用电子有限公司 一种无线耳机的在线升级方法及耳机设备
CN110795127B (zh) * 2019-10-29 2023-09-22 歌尔科技有限公司 一种无线耳机及其升级方法及装置
CN110908687B (zh) 2019-11-22 2021-12-07 歌尔股份有限公司 耳机升级方法、耳机组件、升级装置和可读存储介质
CN112667258B (zh) * 2020-12-23 2023-10-31 艾体威尔电子技术(北京)有限公司 一种安卓pos机外接设备程序的远程升级方法
CN113010202B (zh) * 2021-04-27 2024-07-02 歌尔股份有限公司 数据升级方法、数据升级装置和可读存储介质
CN116208882B (zh) * 2022-07-08 2023-12-19 荣耀终端有限公司 耳机升级方法及无线耳机
CN116233116A (zh) * 2023-02-24 2023-06-06 北京雷石天地电子技术有限公司 无线话筒固件升级方法、装置及设备
CN118524381B (zh) * 2024-04-25 2025-03-14 深圳市华戴科技有限公司 一种基于物联网的智能手表

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040261072A1 (en) * 2003-06-20 2004-12-23 Samsung Electronics Co., Ltd. Apparatus and method for performing an over-the-air software update in a dual processor mobile station
US20140068592A1 (en) * 2012-08-31 2014-03-06 Cellco Partnership D/B/A Verizon Wireless Enabling a wireless device to act as a relay for upgrading an accessory coupled to the wireless device
CN106685688A (zh) * 2016-09-26 2017-05-17 深圳市潮流网络技术有限公司 一种集群计算机设备同步升级方法
CN107844307A (zh) * 2017-10-16 2018-03-27 歌尔科技有限公司 电子设备的系统更新方法及电子设备
CN107894881A (zh) * 2017-10-18 2018-04-10 恒玄科技(上海)有限公司 蓝牙耳机的主从连接切换、通话监听和麦克切换的方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040261072A1 (en) * 2003-06-20 2004-12-23 Samsung Electronics Co., Ltd. Apparatus and method for performing an over-the-air software update in a dual processor mobile station
US20140068592A1 (en) * 2012-08-31 2014-03-06 Cellco Partnership D/B/A Verizon Wireless Enabling a wireless device to act as a relay for upgrading an accessory coupled to the wireless device
CN106685688A (zh) * 2016-09-26 2017-05-17 深圳市潮流网络技术有限公司 一种集群计算机设备同步升级方法
CN107844307A (zh) * 2017-10-16 2018-03-27 歌尔科技有限公司 电子设备的系统更新方法及电子设备
CN107894881A (zh) * 2017-10-18 2018-04-10 恒玄科技(上海)有限公司 蓝牙耳机的主从连接切换、通话监听和麦克切换的方法

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111200811A (zh) * 2019-12-29 2020-05-26 歌尔科技有限公司 一种tws耳机及其升级方法、装置及可读存储介质
CN112073875A (zh) * 2020-08-31 2020-12-11 深圳市豪恩声学股份有限公司 耳机软件升级电路、装置及方法
TWI816592B (zh) * 2022-01-04 2023-09-21 大陸商深圳市中科藍訊科技股份有限公司 一種tws耳機配對方法和晶片

Also Published As

Publication number Publication date
CN108882211B (zh) 2020-09-11
CN108882211A (zh) 2018-11-23
US11368777B2 (en) 2022-06-21
US20210235183A1 (en) 2021-07-29

Similar Documents

Publication Publication Date Title
WO2019237458A1 (zh) 一种tws耳机程序升级的方法、系统及tws耳机
US10939490B2 (en) Method for establishing classic Bluetooth connection between dual-mode Bluetooth devices, and dual-mode Bluetooth device
CN111225346B (zh) 无线耳机的连接切换方法、无线耳机及存储介质
CN110650408B (zh) 一种耳机及防丢方法、系统、计算机可读存储介质
US11381948B2 (en) Connection switching for Bluetooth headsets
WO2019237491A1 (zh) 一种无线耳机配对的方法、装置及无线耳机
CN112055349B (zh) 一种无线通信方法及蓝牙设备
WO2019090726A1 (zh) 选择蓝牙设备的方法、终端和系统
CN109547897B (zh) 一种无线耳机连接的方法、装置、系统及无线耳机盒子
CN108810697B (zh) 一种无线耳机配对的方法、装置及无线耳机
CN109040446A (zh) 通话处理方法及相关产品
WO2020019843A1 (zh) 麦克风堵孔检测方法及相关产品
CN112272342B (zh) 音量自动调节方法、装置、蓝牙耳机及存储介质
WO2019237463A1 (zh) 一种建立bt连接的方法、无线耳机及tws耳机
CN111596881B (zh) 音频播放设备、系统、切换方法及蓝牙音箱、蓝牙耳机
WO2020007172A1 (zh) 通信连接建立方法及相关设备
WO2020007174A1 (zh) 通信连接建立方法及相关设备
CN106488039B (zh) 音量调节方法及系统、移动终端及播放设备
WO2023036178A1 (zh) 蓝牙连接方法、装置、耳机设备及计算机可读存储介质
US10531205B1 (en) System and method for optimizing battery usage for a binaural hearing system
CN111262297A (zh) 充电设备及控制方法
CN115665671A (zh) 音频数据的共享方法、装置、电子设备以及存储介质
CN113692043A (zh) 提示信息的同步方法及设备
CN111182518A (zh) 一种处理方法及装置
CN115967926A (zh) 蓝牙连接方法、装置、电子设备及计算机可读存储介质

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: 18922522

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: 18922522

Country of ref document: EP

Kind code of ref document: A1