[go: up one dir, main page]

CN110337095B - Parameter updating method and device for audio listening equipment and audio listening equipment - Google Patents

Parameter updating method and device for audio listening equipment and audio listening equipment Download PDF

Info

Publication number
CN110337095B
CN110337095B CN201910495904.9A CN201910495904A CN110337095B CN 110337095 B CN110337095 B CN 110337095B CN 201910495904 A CN201910495904 A CN 201910495904A CN 110337095 B CN110337095 B CN 110337095B
Authority
CN
China
Prior art keywords
voice data
data transmission
terminal
loss rate
packet loss
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910495904.9A
Other languages
Chinese (zh)
Other versions
CN110337095A (en
Inventor
刘涛
朱彪
王丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Horn Audio Co Ltd
Original Assignee
Shenzhen Horn Audio 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 Shenzhen Horn Audio Co Ltd filed Critical Shenzhen Horn Audio Co Ltd
Priority to CN201910495904.9A priority Critical patent/CN110337095B/en
Publication of CN110337095A publication Critical patent/CN110337095A/en
Application granted granted Critical
Publication of CN110337095B publication Critical patent/CN110337095B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The application relates to a parameter updating method and a device of audio listening equipment and the audio listening equipment, wherein the parameter updating method establishes a low-power Bluetooth communication connection between the audio listening equipment and a terminal; acquiring Bluetooth performance parameters of the terminal through low-power-consumption Bluetooth communication connection; searching a corresponding first voice data transmission parameter from a voice data transmission parameter list of the low-power-consumption Bluetooth according to the acquired Bluetooth performance parameter; the firmware of the audio listening device is updated according to the found first voice data transmission parameter, compatibility of the audio listening device and the terminal is improved, the technical problem that the real-time voice assistant earphone cannot be used normally due to the fact that the real-time voice assistant earphone and the terminal cannot be compatible with each other is solved, and data loss in the voice data transmission process is effectively prevented.

Description

Parameter updating method and device for audio listening equipment and audio listening equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for updating parameters of an audio listening device, and an audio listening device.
Background
With the popularity of intelligent sound boxes, a real-time voice assistant earphone which can be worn with the user appears on the market. The scheme adopted at present is as follows: classic Bluetooth communication connection is established between the real-time voice assistant earphone and the terminal, after the real-time voice assistant earphone is awakened by voice, the earphone sends voice data collected by the earphone to the terminal through a Hands-free specification protocol (Hands-free profile, HFP for short) or a custom serial linear simulation (RFCOMM) protocol, the terminal sends the voice data to the cloud server for voice recognition, and an answer corresponding to the voice data is returned to the terminal. And the terminal sends the answer corresponding to the voice data to the earphone for playing.
In conventional techniques, the power consumption of a real-time voice assistant headset is reduced by transmitting compressed voice data using bluetooth low energy technology. However, the real-time voice assistant earphone with the bluetooth low energy module is not compatible with the terminal, so that the real-time voice assistant earphone cannot be used normally.
Disclosure of Invention
Therefore, it is necessary to provide a parameter updating method and apparatus for an audio listening device, and an audio listening device, for the technical problem that the real-time voice assistant headset cannot be used normally due to the incompatibility between the real-time voice assistant headset and the terminal.
A method for updating parameters of an audio listening device, the method comprising:
establishing low-power Bluetooth communication connection between the audio listening equipment and a terminal;
acquiring Bluetooth performance parameters of the terminal through the low-power Bluetooth communication connection;
searching a corresponding first voice data transmission parameter from a voice data transmission parameter list of the low-power-consumption Bluetooth according to the acquired Bluetooth performance parameter;
and updating the parameters of the firmware of the audio listening equipment according to the searched first voice data transmission parameters.
In one embodiment, the method further comprises:
when the first voice data transmission parameter corresponding to the terminal cannot be found, sending a prompt whether to update the voice data transmission parameter to the terminal;
and if a reply of needing to update the voice data transmission parameters is received, sending an update request of the voice data transmission parameters to the terminal, wherein the update request is used for indicating that the packet loss rate of the low-power Bluetooth communication connection is tested through the terminal.
In one embodiment, the testing, by the terminal, a packet loss rate of the bluetooth low energy communication connection includes:
setting a second voice data transmission parameter;
and testing the packet loss rate of the low-power-consumption Bluetooth communication connection through the terminal under the second voice data transmission parameter.
In one embodiment, the method further comprises:
receiving the packet loss rate of the low-power-consumption Bluetooth communication connection returned by the terminal;
if the packet loss rate does not meet the preset condition, modifying the second voice data transmission parameter;
and re-testing the packet loss rate under the modified second voice data transmission parameter until the packet loss rate meets the preset condition.
In one embodiment, the second voice data transmission parameter comprises a voice compression ratio; the setting of the second voice data transmission parameter by the terminal includes:
setting the voice compression ratio through the terminal;
the second voice data transmission parameters also comprise the size of each voice data packet of the voice compression ratio and the voice packet sending interval time; the testing the packet loss rate of the bluetooth low energy communication connection through the terminal under the second voice data transmission parameter includes:
calculating the size of the compressed voice data stream according to the voice compression ratio;
calculating the size of each voice data packet and the voice packet sending interval time according to the size of the compressed voice data stream;
under the condition of the size of each voice data packet and the voice packet sending interval time, testing the packet loss rate of the low-power Bluetooth communication connection through the terminal;
if the packet loss rate does not meet the preset condition, modifying the second voice data transmission parameter, including:
and if the packet loss rate does not meet the preset condition, reducing the size of each packet of the voice data and the voice packet sending interval time.
In one embodiment, the method further comprises:
acquiring the modification times of the second voice data transmission parameters;
when the modification times of the second voice data transmission parameters are larger than a preset threshold value and the packet loss rate still does not meet a preset condition, sending a prompt whether the voice data transmission quality is reduced;
if receiving a prompt for reducing the transmission quality of the voice data, improving the voice compression ratio, setting a corresponding third voice data transmission parameter according to the improved voice compression ratio, and retesting the packet loss rate of the low-power-consumption Bluetooth communication connection through the terminal under the third voice data transmission parameter.
In one embodiment, the method further comprises:
if the packet loss rate cannot meet the preset condition, sending a prompt that the terminal cannot be compatible with the audio listening equipment through the terminal; or
And if the packet loss rate cannot meet the preset condition, receiving an update stopping request of the voice data transmission parameters sent by the terminal, wherein the update stopping request is used for indicating the audio listening equipment to send a prompt that the terminal cannot be compatible with the audio listening equipment.
In one embodiment, before the searching for the corresponding first voice data transmission parameter from the preset voice data transmission parameter list according to the obtained bluetooth performance parameter, the method further includes:
detecting the connection signal strength of the audio listening device;
the searching for the corresponding first voice data transmission parameter from a preset voice data transmission parameter list according to the acquired bluetooth performance parameter includes:
if the connection signal strength is not lower than a preset threshold value, searching a corresponding first voice data transmission parameter from a preset voice data transmission parameter list according to the acquired Bluetooth performance parameter, and not starting a secondary retransmission mechanism;
after the searching for the corresponding first voice data transmission parameter from the preset voice data transmission parameter list according to the acquired bluetooth performance parameter, the method further includes:
if the connection signal strength is lower than a preset threshold value, judging whether a secondary retransmission mechanism is started or not according to the Bluetooth performance parameters of the terminal and the size of the voice data stream of the audio listening equipment;
if the secondary retransmission mechanism is started, retesting the packet loss rate of the low-power-consumption Bluetooth communication connection, and judging whether the packet loss rate after the secondary retransmission mechanism is started meets a preset condition or not;
if the packet loss rate still does not meet the preset condition, the voice compression ratio is increased, and the packet loss rate is retested under the increased voice compression ratio until the packet loss rate meets the preset condition.
The parameter updating method of the audio listening device establishes the low-power Bluetooth communication connection between the audio listening device and the terminal; acquiring Bluetooth performance parameters of the terminal through low-power-consumption Bluetooth communication connection; searching a corresponding first voice data transmission parameter from a voice data transmission parameter list of the low-power-consumption Bluetooth according to the acquired Bluetooth performance parameter; the firmware of the audio listening device is updated according to the found first voice data transmission parameter, compatibility of the audio listening device and the terminal is improved, the technical problem that the real-time voice assistant earphone cannot be used normally due to the fact that the real-time voice assistant earphone and the terminal cannot be compatible with each other is solved, and data loss in the voice data transmission process is effectively prevented.
Drawings
Fig. 1 is a diagram illustrating an application environment of a parameter updating method of an audio listening device according to an embodiment;
fig. 2 is a schematic flowchart of a parameter updating method of an audio listening device according to an embodiment;
fig. 3a to fig. 3b are schematic flow charts illustrating a parameter updating method of an audio listening device according to an embodiment;
fig. 4 is a flowchart illustrating a parameter updating method of an audio listening device according to an embodiment;
fig. 5 is a flowchart illustrating a parameter updating method of an audio listening device according to an embodiment;
fig. 6 is a flowchart illustrating a parameter updating method of an audio listening device according to an embodiment;
fig. 7a to 7b are schematic flow charts illustrating a parameter updating method of an audio listening device according to an embodiment;
FIG. 8a is a schematic diagram of an audio listening device according to an embodiment;
fig. 8b is a flowchart illustrating a parameter updating method of an audio listening device according to an embodiment;
fig. 9 is a block diagram of a parameter updating apparatus of an audio listening device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The application provides a parameter updating method of an audio listening device, which can be applied to the application environment shown in fig. 1. The audio listening device 110 is provided with a bluetooth low energy communication module, and the terminal 120 is provided with a bluetooth low energy communication module. The bluetooth low energy communication connection between the terminal 120 and the audio listening device 110 is established through the bluetooth low energy communication module. The terminal 120 is installed with a voice assistant application, and the voice assistant application can obtain the bluetooth performance parameters of the terminal 120 and send the bluetooth performance parameters of the terminal 120 to the audio listening device 110 through the bluetooth low energy communication connection, and the audio listening device 110 receives the bluetooth performance parameters of the terminal 120. The audio listening device 110 pre-stores a voice data transmission parameter list, and the voice data transmission parameter list pre-stores a corresponding relationship between the terminal bluetooth performance parameter and the voice data transmission parameter of the audio listening device. Accordingly, according to the received bluetooth performance parameter, the audio listening device 110 searches the first voice data transmission parameter corresponding to the terminal bluetooth performance parameter from the voice data transmission parameter list. The audio listening device 110 is configured with voice data transmission parameters when leaving the factory, and the voice data transmission parameters configured when leaving the factory of the audio listening device 110 are updated according to the found first voice data transmission parameters, so that the audio listening device 110 and the terminal 120 can be compatible with each other, and the technical problem that the real-time voice assistant earphone cannot be normally used due to the fact that the real-time voice assistant earphone and the terminal cannot be compatible with each other is solved.
It will be appreciated that the audio listening device 110 is widely used in connection with the listening or playback features of many terminals, and may be, but is not limited to, a top-hat headset, a headset, an in-ear headset, and the like. The terminal 120 may be, but is not limited to, a portable audio device, a portable multimedia device, a personal computer, a notebook computer, a smart phone, a tablet computer, and a portable wearable device.
In an embodiment, the present application provides a parameter updating method for an audio listening device, which is described by taking the method as an example applied to the audio listening device in fig. 1, as shown in fig. 2, and the parameter updating method includes the following steps:
s210, establishing low-power Bluetooth communication connection between the audio listening device and the terminal.
The Bluetooth Low Energy (BLE) is a personal area network technology designed by the Bluetooth alliance. Bluetooth low energy is intended to significantly reduce power consumption and cost while maintaining equivalent communication range relative to classical bluetooth. Specifically, the audio listening device and the terminal are both provided with a low-power-consumption Bluetooth communication module, and when the audio listening device and the terminal are both Bluetooth-enabled, a low-power-consumption Bluetooth communication connection between the audio listening device and the terminal is established. It is understood that voice data such as voice commands, audio information, etc. can be transmitted through the bluetooth low energy communication connection between the audio listening device and the terminal.
S220, acquiring Bluetooth performance parameters of the terminal through the low-power Bluetooth communication connection.
The bluetooth performance parameter refers to a performance parameter of the low power consumption bluetooth module in the terminal, for example, the bluetooth performance parameter may be a bluetooth protocol version, a maximum allowed bluetooth low energy packet size, a minimum allowed bluetooth low energy transmission interval, and the like. Specifically, the terminal is installed with a voice assistant application, by which bluetooth performance parameters of the terminal can be acquired. And transmitting the Bluetooth performance parameters of the terminal to the audio listening equipment through the low-power-consumption Bluetooth communication connection, and acquiring the Bluetooth performance parameters of the terminal by the audio listening equipment.
S230, according to the acquired Bluetooth performance parameters of the terminal, searching corresponding first voice data transmission parameters from a voice data transmission parameter list of the low-power Bluetooth.
The voice data transmission parameter refers to a parameter for transmitting voice data between the audio listening device and the terminal through the bluetooth low energy communication connection, and the voice data transmission parameter may be the size of each packet of the voice data, the transmission interval time of the voice packet, the voice compression ratio, the secondary retransmission switch parameter, and the like. The voice compression ratio refers to a ratio parameter adopted for compressing voice data collected by the audio listening device in order to improve transmission efficiency. The retransmission-twice switching parameter refers to a parameter for changing the retransmission-twice switching state. The voice data transmission parameter list is pre-stored with the relation data between the terminal bluetooth performance parameter and the first voice data transmission parameter of the audio listening device, and the voice data transmission parameter list is stored in a storage area (such as rom) of the audio listening device. It should be noted that the voice data transmission parameter list may be updated according to a terminal connected to the audio listening device in bluetooth low energy communication, and the first voice data transmission parameter may include a voice data transmission parameter pre-stored in the audio listening device when the terminal is shipped from a factory, or a voice data transmission parameter set and stored after the terminal is shipped from a factory to ensure the link quality between the audio listening device and the terminal.
Specifically, through the bluetooth low energy communication connection, the audio listening device acquires the terminal bluetooth performance parameter, and a voice data transmission parameter list is pre-stored in the audio listening device, and then a first voice data transmission parameter corresponding to the terminal bluetooth performance parameter is searched from the voice data transmission parameter list according to the acquired terminal bluetooth performance parameter. It should be noted that the memory of the audio listening device may be divided into storage areas with fixed space, and the storage areas are used for storing the voice data transmission parameter list.
And S240, updating the parameters of the firmware of the audio listening equipment according to the searched first voice data transmission parameters.
The firmware refers to software which serves as the most basic and bottom layer of the audio listening device, a program of the firmware cannot be directly read or modified by a user, and updating parameters of the firmware refers to improving parameters in the program or source codes of the firmware. Specifically, a first voice data transmission parameter corresponding to the terminal bluetooth performance parameter is searched from the voice data transmission parameter list through the terminal bluetooth performance parameter, and the firmware of the audio listening device is updated according to the searched first voice data transmission parameter.
In the embodiment, the low-power-consumption Bluetooth communication connection between the audio listening equipment and the terminal is established; acquiring Bluetooth performance parameters of the terminal through low-power-consumption Bluetooth communication connection; searching a corresponding first voice data transmission parameter from a voice data transmission parameter list of the low-power-consumption Bluetooth according to the acquired Bluetooth performance parameter; and updating parameters of the firmware of the audio listening device according to the searched first voice data transmission parameters, improving the compatibility of the audio listening device and the terminal, solving the technical problem that the real-time voice assistant earphone cannot be normally used due to the incompatibility between the real-time voice assistant earphone and the terminal, and effectively preventing data loss in the voice data transmission process.
In one embodiment, as shown in fig. 3a, the parameter updating method further includes the following steps:
s310a, when the first voice data transmission parameter corresponding to the terminal cannot be found, sending a prompt whether to update the voice data transmission parameter to the terminal;
and S320a, if a reply of needing to update the voice data transmission parameters is received, sending an update request of the voice data transmission parameters to the terminal.
The updating request is used for indicating the packet loss rate of the low-power-consumption Bluetooth communication connection tested by the terminal. The Loss Rate (Loss Tolerance or Packet Loss Rate) is the ratio of the number of lost packets in the transmitted data group during the test. Specifically, the voice data transmission parameter list pre-stores therein relationship data between a terminal bluetooth performance parameter and a first voice data transmission parameter of the audio listening device. The first voice data transmission parameter is for most models of terminals, and the voice data transmission parameter list does not contain the first voice data transmission parameters corresponding to all terminals. When the first voice data transmission parameters corresponding to part of the terminals cannot be found, the audio listening equipment sends out a prompt for judging whether the voice data transmission parameters can be updated or not so as to inquire whether the terminals can update the voice data transmission parameters or not at present. If the current terminal state can execute the update of the voice data transmission parameters, the terminal sends a prompt for updating the voice data transmission parameters to the audio listening equipment, the audio listening equipment receives a reply of the voice data transmission parameters needing to be updated, and sends an update request of the voice data transmission parameters to the terminal, so that the compatibility between the terminal and the audio listening equipment can be improved by dynamically updating the voice data transmission parameters.
Further, as shown in fig. 3b, the parameter updating method further includes the following steps:
s310b, when the first voice data transmission parameter corresponding to the terminal cannot be found, detecting whether the terminal is in an idle state;
and S320b, if the terminal is in the idle state, sending an update request of the voice data transmission parameters to the terminal.
The idle state refers to a state that the terminal returns to the desktop to be in no operation. Specifically, when the first voice data transmission parameters corresponding to part of the terminals are not found, the voice data transmission parameters can be dynamically updated, so that the terminals and the audio listening equipment are compatible with each other. Therefore, whether the terminal is in the idle state or the standby state without operation is detected, and if the terminal is in the idle state or the standby state without operation, the audio listening device sends an update request of the voice data transmission parameters to the terminal. In this embodiment, when the first voice data transmission parameter corresponding to the terminal is not found, whether the terminal is in an idle state is detected, and if the terminal is in the idle state, an update request of the voice data transmission parameter is sent to the terminal, so as to update the voice data transmission parameter of the audio listening device, thereby improving compatibility between the audio listening device and the terminal.
In one embodiment, the testing, by the terminal, a packet loss rate of the bluetooth low energy communication connection includes: setting a second voice data transmission parameter; and testing the packet loss rate of the low-power-consumption Bluetooth communication connection through the terminal under the second voice data transmission parameter.
The second voice data transmission parameter refers to a voice data transmission parameter set by the audio listening device according to the bluetooth performance parameter of the terminal. Specifically, when the first voice data transmission parameter corresponding to part of the terminals is not found, the audio listening device inquires whether the voice data transmission parameter of the terminals is allowed to be changed, and if the voice data transmission parameter of the terminals is allowed to be changed, the audio listening device sets the second voice data transmission parameter. And under the second voice data transmission parameter, the audio listening device sends voice data to the terminal, and the packet loss rate of the low-power-consumption Bluetooth communication connection between the audio listening device and the terminal is tested through the terminal.
Illustratively, first, the audio listening device transmits a start flag signal to the terminal; secondly, a section of voice analog signal is prestored in the audio listening equipment, and the compressed voice analog signal is sent to the terminal after being compressed by a voice data compression algorithm; finally, the audio listening device sends an end flag signal to the terminal. The terminal is provided with a voice assistant application program, the packet loss rate of the low-power-consumption Bluetooth communication connection can be calculated through the voice assistant application program, the calculated packet loss rate is returned to the audio listening device, and the audio listening device judges whether the low-power-consumption Bluetooth communication connection between the terminal and the audio listening device meets the requirement of voice data transmission under the current voice data transmission parameters through the packet loss rate.
In this embodiment, when the bluetooth performance parameter of the terminal cannot be obtained, the second voice data transmission parameter of the audio listening device is updated by testing the packet loss rate, so as to solve the technical problem that the audio listening device cannot operate or the voice recognition rate is too low because the factory unified setting of the audio listening device is incompatible with the current terminal.
In one embodiment, as shown in fig. 4, the parameter updating method further includes the following steps:
s410, receiving the packet loss rate of the low-power-consumption Bluetooth communication connection returned by the terminal;
s420, if the packet loss rate does not meet the preset condition, modifying a second voice data transmission parameter;
and S430, retesting the packet loss rate under the modified second voice data transmission parameter until the packet loss rate meets the preset condition.
The setting of the preset condition relates to the quality of the voice data transmission, and the setting of the preset condition can be determined according to the actual situation, and the specific numerical value of the preset condition is not limited here. Specifically, the terminal is provided with a voice assistant application program, the voice assistant application program can calculate the packet loss rate of the bluetooth low energy communication connection and return the calculated packet loss rate to the audio listening device, and the audio listening device receives the packet loss rate of the bluetooth low energy communication connection returned by the terminal and judges whether the packet loss rate meets a preset condition. And if the packet loss rate does not meet the preset condition, modifying a second voice data transmission parameter of the audio listening device. And testing the packet loss rate of the low-power-consumption Bluetooth communication connection again by combining the modified second voice data transmission parameter until the packet loss rate meets the preset condition. This indicates that the audio listening device and the terminal are compatible with each other under the second voice data transmission parameter with the packet loss rate satisfying the preset condition, and the low power consumption bluetooth communication connection between the terminal and the audio listening device satisfies the requirement of voice data transmission. It should be noted that the second voice data transmission parameter corresponding to the packet loss ratio meeting the preset condition may be stored, the second voice data transmission parameter may be stored in a voice data transmission parameter list, or a storage area (e.g., rom) of the audio listening device may be divided, and a part of the storage area is used for storing the voice data transmission parameter list, and a part of the storage area is used for storing the second voice data transmission parameter. When the audio listening device is connected with the terminal again, the second voice data transmission parameter can be directly called to update the parameters of the firmware of the audio listening device without resetting.
In this embodiment, the second voice data transmission parameter of the audio listening device is dynamically updated by cyclically testing the packet loss rate, so that the low power consumption bluetooth connection between the audio listening device and the terminal can be normally used, and the technical problem that the audio listening device cannot operate or the voice recognition rate is too low due to the incompatibility of factory unified settings of the audio listening device and the current terminal is solved.
In one embodiment, the second voice data transmission parameter comprises a voice compression ratio. As shown in fig. 5, setting the second voice data transmission parameter includes:
and S510, setting a voice compression ratio.
The voice compression ratio is a ratio of voice data compression allowed by the terminal. Specifically, the audio listening device asks the terminal whether the voice compression ratio is allowed to be changed, and if the terminal allows the voice compression ratio to be changed and returns an indication of changing the voice compression ratio to the audio listening setting, the audio listening setting sets a new voice compression ratio.
Preferably, if the allowed voice compression ratio of the terminal is variable, in order to ensure the transmission quality of the voice data, the most fidelity voice compression ratio, i.e. the lowest voice compression ratio, of the audio listening device is preferentially set.
The second voice data transmission parameter comprises the size of each voice data packet and the voice packet sending interval time. Referring to fig. 5, the method for testing the packet loss rate of the bluetooth low energy communication connection through the terminal under the second voice data transmission parameter includes the following steps:
and S520, calculating the size of the compressed voice data stream according to the voice compression ratio.
Specifically, first, the audio listening device collects voice data to form a voice data stream in combination with an audio sampling rate, and then the audio listening device obtains a voice compression ratio of the terminal, compresses the collected voice data stream according to the voice compression ratio, and calculates a size of the compressed voice data stream. Preferably, if the lowest voice compression ratio of the audio listening device is adopted, the size of the compressed voice data stream is calculated according to the lowest voice compression ratio.
S530, calculating the size of each voice data packet and the voice packet sending interval time according to the size of the compressed voice data stream.
Wherein, the ratio of the size of each voice data packet to the voice packet transmission interval time is equal to the size of the voice data stream. Specifically, the audio listening device compresses the collected voice data stream according to the voice compression ratio allowed by the terminal, and calculates the size of the compressed voice data stream, so as to calculate the size of each packet of voice data and the voice packet transmission interval time according to the size of the compressed voice data stream.
And S540, testing the packet loss rate of the low-power-consumption Bluetooth communication connection through the terminal under the size of each voice data packet and the voice packet sending interval time.
Specifically, the size of each packet of voice data and the voice packet transmission interval time are determined according to the size of the compressed voice data stream, the audio listening device transmits the voice data to the terminal under the determined parameters of the size of each packet of voice data and the voice packet transmission interval time, and the ratio of the number of lost data packets to the transmitted data group, namely the packet loss rate of the low-power Bluetooth communication connection between the audio listening device and the terminal, is tested through a voice assistant program of the terminal.
If the packet loss rate does not meet the preset condition, modifying the second voice data transmission parameter, including:
and S550, if the packet loss rate does not meet the preset condition, reducing the size of each packet of the voice data and the transmission interval time of the voice packet.
Specifically, when the packet loss rate does not meet the preset condition, the voice compression ratio is selected to be kept unchanged, and since the size of the voice data stream is equal to the ratio of the size of each voice data packet to the transmission interval time of the voice packet, the size of the voice data stream is ensured to be unchanged by reducing the size of each voice data packet and the transmission interval time of the voice packet, so that the transmission quality of the voice data is ensured to be unchanged.
In this embodiment, if the packet loss rate does not satisfy the preset condition, the size of each packet of voice data and the transmission interval time of the voice packet are reduced by keeping the voice compression ratio unchanged, and the compatibility between the audio listening device and the terminal is improved.
In one embodiment, as shown in fig. 6, the parameter updating method further includes the following steps:
s610, acquiring the modification times of the second voice data transmission parameters;
s620, when the modification times of the second voice data transmission parameters are larger than a preset threshold value and the packet loss rate still does not meet a preset condition, sending a prompt whether the voice data transmission quality is reduced or not;
s630, if a reply that the transmission quality of the voice data needs to be reduced is received, improving the voice compression ratio;
s640, setting a corresponding third voice data transmission parameter according to the improved voice compression ratio;
and S650, retesting the packet loss rate of the low-power Bluetooth communication connection through the terminal under the third voice data transmission parameter.
Wherein the transmission quality of the voice data is determined by the voice compression ratio. Specifically, if the packet loss rate does not meet the preset condition, the size of each packet of the voice data and the voice packet transmission interval time are reduced, after the second voice data transmission parameter is modified each time, the packet loss rate is retested under the reduced size of each packet of the voice data and the voice packet transmission interval time parameter, and meanwhile, the modification times of the second voice data transmission parameter are recorded. And obtaining the modification times of the second voice data transmission parameter, when the modification times of the second voice data transmission parameter is greater than a preset threshold value and the packet loss rate still does not meet a preset condition, sending a prompt whether to reduce the voice data transmission quality to the terminal by the audio listening equipment, if the voice compression ratio of the terminal is allowed to be changed, returning a reply that the voice data transmission quality needs to be reduced to the audio listening equipment by the terminal, and receiving the reply that the voice data transmission quality needs to be reduced by the audio listening equipment and improving the voice compression ratio. Then, setting a corresponding third voice data transmission parameter according to the improved voice compression ratio; and testing the packet loss rate of the low-power-consumption Bluetooth communication connection again through the terminal under the third voice data transmission parameter.
And further, compressing the acquired voice data stream according to the improved voice compression ratio, and calculating the size of the compressed voice data stream. And calculating the size of each packet of the voice data and the sending interval time of the voice packet according to the size of the compressed voice data stream. And testing the packet loss rate of the low-power-consumption Bluetooth communication connection through the terminal under the parameters of the size of each voice data packet and the voice packet sending interval time. The terminal returns the packet loss rate tested after the voice compression ratio is improved to the audio listening equipment, and the audio listening equipment receives the packet loss rate of the low-power-consumption Bluetooth communication connection returned by the terminal; and if the packet loss rate does not meet the preset condition, modifying the third voice data transmission parameter, for example, reducing the size of each packet of the voice data and the sending interval time of the voice packet to ensure that the size of the voice data stream is unchanged. And testing the packet loss rate again under the modified third voice data transmission parameter until the packet loss rate meets the preset condition.
In this embodiment, by recording the number of times of modification of the second voice data transmission parameter, if the number of times of modification of the second voice data transmission parameter is greater than the preset threshold and the packet loss rate still does not satisfy the preset condition, the compatibility between the audio listening device and the terminal may be improved by reducing the voice data transmission quality, and the technical problem that the audio listening device cannot operate or the voice recognition rate is too low due to the incompatibility of the factory unified settings of the audio listening device and the current terminal is solved.
In one embodiment, the parameter updating method further comprises the following steps: if the packet loss rate cannot meet the preset condition, sending a prompt that the terminal cannot be compatible with the audio listening equipment through the terminal; or
And if the packet loss rate cannot meet the preset condition, receiving an update stopping request of the voice data transmission parameters sent by the terminal, wherein the update stopping request is used for indicating the audio listening equipment to send a prompt that the terminal cannot be compatible with the audio listening equipment.
Specifically, by increasing the voice compression ratio and changing the voice data transmission parameter under the increased voice compression ratio parameter, the packet loss rate of the low-power communication connection between the audio listening device and the terminal cannot meet the preset condition, which indicates that the audio listening device and the terminal cannot be compatible, and the terminal can directly send a prompt that the terminal cannot be compatible with the audio listening device.
Or, when the audio listening device is incompatible with the terminal, the terminal sends a stop update request of the voice data transmission parameters to the audio listening device. The audio listening device receives the update stopping request and sends out a prompt that the terminal is incompatible with the audio listening device to remind a user, so that the user can know that the audio listening device and the terminal are incompatible, and user experience is improved.
In one embodiment, as shown in fig. 7a, before searching the corresponding first voice data transmission parameter from the voice data transmission parameter list of bluetooth low energy according to the obtained bluetooth performance parameter, the method further includes:
s710, detecting the connection signal intensity of the audio listening equipment;
according to the acquired Bluetooth performance parameters, searching corresponding first voice data transmission parameters from a voice data transmission parameter list of the low-power Bluetooth, wherein the method comprises the following steps:
s720, if the connection signal strength is not lower than the preset threshold, according to the acquired Bluetooth performance parameters, searching corresponding first voice data transmission parameters from a voice data transmission parameter list of the low-power Bluetooth, and not starting a secondary retransmission mechanism.
The Received Signal Strength (RSSI) refers to the power of a bluetooth low energy Signal transmitted by a terminal and Received by an audio listening device, and the distance between the terminal and the audio listening device affects the Received Signal power. The secondary retransmission mechanism is to retransmit the voice data packet twice every time a voice data packet is transmitted and if the voice data packet is not acknowledged.
Specifically, the connection signal strength of the audio listening device is detected, the detected connection signal strength is compared with a preset threshold, and if the connection signal strength is not lower than the preset threshold, it indicates that the link quality of the current bluetooth low energy communication connection meets the requirement of voice data transmission. Then, the audio listening device searches the corresponding first voice data transmission parameter from the voice data transmission parameter list according to the acquired bluetooth performance parameter, and does not need to start a secondary retransmission mechanism.
As shown in fig. 7b, after searching the corresponding first voice data transmission parameter from the voice data transmission parameter list of bluetooth low energy according to the obtained bluetooth performance parameter, the method further includes:
s730, if the connection signal strength is lower than a preset threshold value, judging whether a secondary retransmission mechanism is started or not according to the Bluetooth performance parameters of the terminal and the size of the voice data stream of the audio listening equipment;
s740, if the secondary retransmission mechanism is started, retesting the packet loss rate of the low-power-consumption Bluetooth communication connection, and judging whether the packet loss rate after the secondary retransmission mechanism is started meets a preset condition;
and S750, if the packet loss rate still does not meet the preset condition, increasing the voice compression ratio, and re-testing the packet loss rate under the increased voice compression ratio until the packet loss rate meets the preset condition.
The bluetooth performance parameters of the terminal comprise the maximum allowed bluetooth low energy data packet size and the minimum allowed bluetooth low energy transmission interval, and the size of the voice data stream which can be accepted by the terminal can be calculated according to the maximum allowed bluetooth low energy data packet size and the minimum allowed bluetooth low energy transmission interval. Comparing the size of the voice data stream that can be received by the terminal with the size of the voice data stream under the current parameter of the audio listening device, if the size of the voice data stream that can be received by the terminal is larger than the size of the voice data stream under the current parameter of the audio listening device, it indicates that the terminal has rich performance, and a secondary retransmission mechanism may be started.
Specifically, the detected connection signal strength is compared with a preset threshold, and if the connection signal strength is lower than the preset threshold, it indicates that the link quality of the current bluetooth low energy communication connection does not meet the requirement of voice data transmission. Whether a secondary retransmission mechanism is started or not needs to be judged according to the Bluetooth performance parameters of the terminal and the size of the voice data stream of the audio listening device, if the Bluetooth performance parameters of the terminal are rich, the secondary retransmission mechanism is started, and the packet loss rate of the low-power-consumption Bluetooth communication connection is retested. And then, judging whether the packet loss rate after the secondary retransmission mechanism is started meets a preset condition or not. On one hand, if the packet loss rate after the secondary retransmission mechanism is started is improved and meets the preset condition, the starting parameter of the secondary retransmission mechanism is stored in the storage area (such as rom) of the audio listening device, and when the connection signal strength of the low power consumption bluetooth is in the condition again, the secondary retransmission mechanism can be automatically started. On the other hand, if the packet loss rate still does not meet the preset condition, the voice compression ratio is increased, and the packet loss rate is retested under the increased voice compression ratio until the packet loss rate meets the preset condition. It should be noted that, if the audio listening device is poor in use effect when the bluetooth signal is not changed by turning on the retransmission mechanism and increasing the voice compression ratio, a prompt that the audio listening device cannot be used is sent out through the terminal or the audio listening device.
In this embodiment, through opening the retransmission mechanism twice and improving the voice compression ratio, the problem that audio frequency listening equipment result of use becomes poor or can not be used when the bluetooth signal becomes poor is solved.
In one embodiment, as shown in fig. 8a, the audio listening device is provided with a bluetooth low energy communication module 810 and a classic bluetooth communication module 820. The audio listening device includes a piezo wake-up microphone 811, a first digital microphone 812, a second digital microphone 813, an optical proximity sensor 814, a hall sensor 815, and a voice wake-up button 816 connected to a bluetooth low energy communication module 810. The audio listening device further comprises an LED indicator 821 connected to the classic bluetooth communication module 820, an earpiece speaker 822, a multifunction key 823, a volume key 824. As shown in fig. 8b, there is provided a parameter updating method of an audio listening device, the method comprising the steps of:
s802, establishing a low-power Bluetooth communication connection between the audio listening device and the terminal;
s804, acquiring Bluetooth performance parameters of the terminal through low-power Bluetooth communication connection;
s806, searching a corresponding first voice data transmission parameter from a voice data transmission parameter list of the low-power-consumption Bluetooth according to the acquired Bluetooth performance parameter;
s808, updating the parameters of the firmware of the audio listening equipment according to the searched first voice data transmission parameters;
s810, when the first voice data transmission parameter corresponding to the terminal cannot be found, sending a prompt whether to update the voice data transmission parameter to the terminal;
s812, if a reply of needing to update the voice data transmission parameters is received, sending an update request of the voice data transmission parameters to the terminal;
the updating request is used for indicating the packet loss rate of the low-power-consumption Bluetooth communication connection tested by the terminal. The packet loss rate of the low-power-consumption Bluetooth communication connection is tested through the terminal, and the method comprises the following steps: setting a second voice data transmission parameter; and testing the packet loss rate of the low-power-consumption Bluetooth communication connection through the terminal under the second voice data transmission parameter.
S814, receiving the packet loss rate of the low-power-consumption Bluetooth communication connection returned by the terminal;
s816, if the packet loss rate does not meet the preset condition, reducing the size of each packet of the voice data and the voice packet sending interval time;
s818, retesting the packet loss rate under the modified second voice data transmission parameters until the packet loss rate meets the preset conditions;
s820, acquiring the modification times of the second voice data transmission parameters;
s822, when the modification times of the second voice data transmission parameter are larger than a preset threshold value and the packet loss rate still does not meet a preset condition, sending a prompt whether the voice data transmission quality is reduced or not;
s824, if a reply which needs to reduce the transmission quality of the voice data is received, the voice compression ratio is improved;
s826, setting a corresponding third voice data transmission parameter according to the improved voice compression ratio;
s828, retesting the packet loss rate of the low-power-consumption Bluetooth communication connection through the terminal under the third voice data transmission parameter;
and S830, if the packet loss rate cannot meet the preset condition, receiving a request for stopping updating of the voice data transmission parameters sent by the terminal.
Wherein the update stop request is used for instructing the terminal to send a prompt that the terminal is not compatible with the audio listening device.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the above-described flowcharts may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 9, a parameter updating apparatus 900 of an audio listening device is provided. The parameter updating apparatus includes:
the bluetooth communication connection module 910 is configured to establish a bluetooth low energy communication connection between the audio listening device and the terminal;
a performance parameter obtaining module 920, configured to obtain a bluetooth performance parameter of the terminal through a low power consumption bluetooth communication connection;
a transmission parameter searching module 930, configured to search, according to the obtained bluetooth performance parameter, a corresponding first voice data transmission parameter from a voice data transmission parameter list of the bluetooth low energy;
and a firmware parameter updating module 940, configured to perform parameter updating on the firmware of the audio listening device according to the found first voice data transmission parameter.
In one embodiment, the parameter updating device further comprises a parameter updating prompting module and an updating request sending module; wherein:
the parameter updating prompting module is used for sending a prompt whether to update the voice data transmission parameter to the terminal when the first voice data transmission parameter corresponding to the terminal cannot be found;
and the updating request sending module is used for sending an updating request of the voice data transmission parameters to the terminal if a reply of the voice data transmission parameters needing to be updated is received, and the updating request is used for indicating the packet loss rate of the low-power-consumption Bluetooth communication connection tested by the terminal.
In an embodiment, the parameter updating apparatus further includes a packet loss rate testing module, configured to test a packet loss rate of the bluetooth low energy communication connection through the terminal.
Further, the packet loss rate testing module further comprises a transmission parameter setting module; the transmission parameter setting module is used for setting a second voice data transmission parameter;
and the packet loss rate testing module is also used for testing the packet loss rate of the low-power-consumption Bluetooth communication connection through the terminal under the second voice data transmission parameter.
In one embodiment, the parameter updating apparatus further includes a packet loss rate receiving module, a transmission parameter modifying module, and a packet loss rate retesting module; wherein:
the packet loss rate receiving module is used for receiving the packet loss rate of the low-power-consumption Bluetooth communication connection returned by the terminal;
the transmission parameter modification module is used for modifying the second voice data transmission parameter if the packet loss rate does not meet the preset condition;
and the packet loss rate retesting module is used for retesting the packet loss rate under the modified second voice data transmission parameter until the packet loss rate meets the preset condition.
In one embodiment, the second voice data transmission parameter comprises a voice compression ratio; the transmission parameter setting module is also used for setting a voice compression ratio;
the second voice data transmission parameters also comprise the size of each voice data packet of the voice compression ratio and the voice packet sending interval time; the packet loss rate testing module is also used for calculating the size of the compressed voice data stream according to the voice compression ratio; calculating the size of each voice data packet and the voice packet sending interval time according to the size of the compressed voice data stream; under the size of each voice data packet and the voice packet sending interval time, testing the packet loss rate of the low-power-consumption Bluetooth communication connection through the terminal;
and the transmission parameter modification module is used for reducing the size of each voice data packet and the voice packet sending interval time if the packet loss rate does not meet the preset condition.
In one embodiment, the parameter updating device further comprises a modification time obtaining module, a transmission quality reduction prompting module and a voice compression ratio improving module; wherein:
the modification times acquisition module is used for acquiring the modification times of the second voice data transmission parameters;
the transmission quality reduction prompting module is used for sending a prompt of whether the transmission quality of the voice data is reduced or not when the modification times of the second voice data transmission parameter are larger than a preset threshold value and the packet loss rate still does not meet a preset condition;
the voice compression ratio improving module is used for improving the voice compression ratio if receiving a reply which needs to reduce the transmission quality of the voice data;
the transmission parameter setting module is also used for setting a corresponding third voice data transmission parameter according to the improved voice compression ratio;
and the packet loss rate testing module is also used for retesting the packet loss rate of the low-power Bluetooth communication connection through the terminal under the third voice data transmission parameter.
In an embodiment, the parameter updating apparatus further includes an update stop prompting module, configured to receive an update stop request of the voice data transmission parameter sent by the terminal if the packet loss rate fails to meet a preset condition, where the update stop request is used to instruct the audio listening device to send a prompt that the terminal is incompatible with the audio listening device.
In one embodiment, the parameter updating apparatus further includes a signal strength detecting module, configured to detect a connection signal strength of the audio listening device;
the transmission parameter searching module is also used for searching a corresponding first voice data transmission parameter from a voice data transmission parameter list of the low-power-consumption Bluetooth according to the acquired Bluetooth performance parameter if the connection signal strength is not lower than a preset threshold value, and a secondary retransmission mechanism is not started;
the parameter updating device also comprises a retransmission starting judgment module.
The retransmission starting judging module is used for judging whether a secondary retransmission mechanism is started or not according to the Bluetooth performance parameters of the terminal and the size of the voice data stream of the audio listening equipment if the connection signal strength is lower than a preset threshold value;
the packet loss rate retesting module is further used for retesting the packet loss rate of the low-power-consumption Bluetooth communication connection if a secondary retransmission mechanism is started, and judging whether the packet loss rate after the secondary retransmission mechanism is started meets a preset condition;
and the voice compression ratio improving module is used for improving the voice compression ratio if the packet loss rate still does not meet the preset condition so as to retest the packet loss rate under the improved voice compression ratio until the packet loss rate meets the preset condition.
For specific limitations of the parameter updating apparatus of the audio listening device, reference may be made to the above limitations of the parameter updating method of the audio listening device, and details are not repeated here. The modules in the parameter updating apparatus of the audio listening device may be implemented in whole or in part by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, an audio listening device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any of the above embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the method steps of the above-mentioned embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (7)

1. A method for updating parameters of an audio listening device, the method comprising:
establishing a low-power Bluetooth communication connection between the audio listening equipment and a terminal;
acquiring Bluetooth performance parameters of the terminal through the low-power Bluetooth communication connection; the Bluetooth performance parameters comprise a Bluetooth protocol version, the maximum allowable data packet size of the low-power Bluetooth and the minimum allowable transmission interval of the low-power Bluetooth;
searching a corresponding first voice data transmission parameter from a voice data transmission parameter list of the low-power Bluetooth according to the acquired Bluetooth performance parameter of the terminal;
updating the parameters of the firmware of the audio listening equipment according to the searched first voice data transmission parameters;
when the first voice data transmission parameter corresponding to the terminal cannot be found, sending a prompt whether to update the voice data transmission parameter to the terminal;
if a reply of needing to update the voice data transmission parameters is received, sending an update request of the voice data transmission parameters to the terminal, wherein the update request is used for indicating that the packet loss rate of the low-power-consumption Bluetooth communication connection is tested through the terminal; testing the packet loss rate of the low-power-consumption Bluetooth communication connection through the terminal, including:
setting a second voice data transmission parameter;
testing the packet loss rate of the low-power Bluetooth communication connection through the terminal under the second voice data transmission parameter;
the method further comprises the following steps:
receiving the packet loss rate of the low-power-consumption Bluetooth communication connection returned by the terminal;
if the packet loss rate does not meet the preset condition, modifying the second voice data transmission parameter;
and re-testing the packet loss rate under the modified second voice data transmission parameter until the packet loss rate meets the preset condition.
2. The method of claim 1, wherein the second voice data transmission parameter comprises a voice compression ratio; the setting of the second voice data transmission parameter includes:
setting the voice compression ratio;
the second voice data transmission parameters also comprise the size of each voice data packet of the voice compression ratio and the voice packet sending interval time; the testing the packet loss rate of the bluetooth low energy communication connection through the terminal under the second voice data transmission parameter includes:
calculating the size of the compressed voice data stream according to the voice compression ratio;
calculating the size of each voice data packet and the voice packet sending interval time according to the size of the compressed voice data stream;
under the condition of the size of each voice data packet and the voice packet sending interval time, testing the packet loss rate of the low-power Bluetooth communication connection through the terminal;
if the packet loss rate does not meet the preset condition, modifying the second voice data transmission parameter, including:
and if the packet loss rate does not meet the preset condition, reducing the size of each packet of the voice data and the voice packet sending interval time.
3. The method of claim 1, further comprising:
acquiring the modification times of the second voice data transmission parameters;
when the modification times of the second voice data transmission parameters are larger than a preset threshold value and the packet loss rate still does not meet a preset condition, sending a prompt whether the voice data transmission quality is reduced or not;
if a reply that the transmission quality of the voice data needs to be reduced is received, the voice compression ratio is increased, a corresponding third voice data transmission parameter is set according to the increased voice compression ratio, and the packet loss rate of the low-power-consumption Bluetooth communication connection is retested through the terminal under the third voice data transmission parameter.
4. The method of claim 1, further comprising:
if the packet loss rate cannot meet the preset condition, sending a prompt that the terminal cannot be compatible with the audio listening equipment through the terminal; or
And if the packet loss rate cannot meet the preset condition, receiving an update stopping request of the voice data transmission parameters sent by the terminal, wherein the update stopping request is used for indicating the audio listening equipment to send a prompt that the terminal cannot be compatible with the audio listening equipment.
5. The method according to any one of claims 1 to 4, wherein before the step of searching the voice data transmission parameter list of the Bluetooth Low energy according to the acquired Bluetooth performance parameter for the corresponding first voice data transmission parameter, the method further comprises:
detecting the connection signal strength of the audio listening device;
the searching for the corresponding first voice data transmission parameter from the voice data transmission parameter list of the bluetooth low energy according to the acquired bluetooth performance parameter includes:
if the connection signal strength is not lower than a preset threshold value, searching a corresponding first voice data transmission parameter from a voice data transmission parameter list of the low-power-consumption Bluetooth according to the acquired Bluetooth performance parameter, and not starting a secondary retransmission mechanism;
after the corresponding first voice data transmission parameter is searched from the voice data transmission parameter list of the bluetooth low energy according to the acquired bluetooth performance parameter, the method further includes:
if the connection signal strength is lower than a preset threshold value, judging whether a secondary retransmission mechanism is started or not according to the Bluetooth performance parameters of the terminal and the size of the voice data stream of the audio listening equipment;
if the secondary retransmission mechanism is started, retesting the packet loss rate of the low-power-consumption Bluetooth communication connection, and judging whether the packet loss rate after the secondary retransmission mechanism is started meets a preset condition or not;
if the packet loss rate still does not meet the preset condition, the voice compression ratio is increased, and the packet loss rate is retested under the increased voice compression ratio until the packet loss rate meets the preset condition.
6. An apparatus for updating parameters of an audio listening device, the apparatus comprising:
the Bluetooth communication connection module is used for establishing low-power Bluetooth communication connection between the audio listening equipment and the terminal;
the performance parameter acquisition module is used for acquiring the Bluetooth performance parameters of the terminal through the low-power Bluetooth communication connection; the Bluetooth performance parameters comprise a Bluetooth protocol version, the maximum allowable data packet size of the low-power Bluetooth and the minimum allowable transmission interval of the low-power Bluetooth;
the transmission parameter searching module is used for searching a corresponding first voice data transmission parameter from a voice data transmission parameter list of the low-power Bluetooth according to the acquired Bluetooth performance parameter;
the firmware parameter updating module is used for updating the parameters of the firmware of the audio listening equipment according to the searched first voice data transmission parameters;
the device also comprises a parameter updating prompt module and an updating request sending module; wherein:
the parameter updating prompting module is used for sending a prompt whether to update the voice data transmission parameter to the terminal when the first voice data transmission parameter corresponding to the terminal cannot be found;
the updating request sending module is used for sending an updating request of the voice data transmission parameters to the terminal if a reply of the voice data transmission parameters needing to be updated is received, and the updating request is used for indicating the packet loss rate of the low-power-consumption Bluetooth communication connection tested by the terminal;
the device also comprises a packet loss rate testing module used for testing the packet loss rate of the low-power Bluetooth communication connection through the terminal;
the packet loss rate testing module also comprises a transmission parameter setting module; the transmission parameter setting module is used for setting a second voice data transmission parameter;
the packet loss rate testing module is also used for testing the packet loss rate of the low-power-consumption Bluetooth communication connection through the terminal under the second voice data transmission parameter;
the device also comprises a packet loss rate receiving module, a transmission parameter modification module and a packet loss rate retesting module; wherein:
the packet loss rate receiving module is used for receiving the packet loss rate of the low-power-consumption Bluetooth communication connection returned by the terminal;
the transmission parameter modification module is used for modifying the second voice data transmission parameter if the packet loss rate does not meet the preset condition;
and the packet loss rate retesting module is used for retesting the packet loss rate under the modified second voice data transmission parameter until the packet loss rate meets the preset condition.
7. An audio listening device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
CN201910495904.9A 2019-06-10 2019-06-10 Parameter updating method and device for audio listening equipment and audio listening equipment Active CN110337095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910495904.9A CN110337095B (en) 2019-06-10 2019-06-10 Parameter updating method and device for audio listening equipment and audio listening equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910495904.9A CN110337095B (en) 2019-06-10 2019-06-10 Parameter updating method and device for audio listening equipment and audio listening equipment

Publications (2)

Publication Number Publication Date
CN110337095A CN110337095A (en) 2019-10-15
CN110337095B true CN110337095B (en) 2022-06-10

Family

ID=68140828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910495904.9A Active CN110337095B (en) 2019-06-10 2019-06-10 Parameter updating method and device for audio listening equipment and audio listening equipment

Country Status (1)

Country Link
CN (1) CN110337095B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111328059B (en) * 2020-02-25 2023-01-06 Oppo广东移动通信有限公司 Data transmission method, data transmission device and electronic equipment
CN111385621B (en) * 2020-03-18 2022-08-02 海信视像科技股份有限公司 Display device and Bluetooth audio transmission method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047845A (en) * 2006-03-29 2007-10-03 腾讯科技(深圳)有限公司 Device and method for regulating vedio communication data code ratio
CN101854308A (en) * 2010-06-09 2010-10-06 武汉必联网络技术有限公司 Self-adaptation realizing method of high-tone quality service network of VoIP system
CN106231353A (en) * 2016-07-22 2016-12-14 北京小米移动软件有限公司 VoIP communication means and device
CN106792462A (en) * 2016-12-22 2017-05-31 深圳Tcl数字技术有限公司 Bluetooth audio frequency transmits method of adjustment and device
CN108494788A (en) * 2018-03-29 2018-09-04 深圳市国富前海区块链技术股份有限公司 Transmission method, data transmission device and the computer readable storage medium of data

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100166056A1 (en) * 2002-12-10 2010-07-01 Steve Perlman System and method for encoding video using a selected tile and tile rotation pattern
US8711923B2 (en) * 2002-12-10 2014-04-29 Ol2, Inc. System and method for selecting a video encoding format based on feedback data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047845A (en) * 2006-03-29 2007-10-03 腾讯科技(深圳)有限公司 Device and method for regulating vedio communication data code ratio
CN101854308A (en) * 2010-06-09 2010-10-06 武汉必联网络技术有限公司 Self-adaptation realizing method of high-tone quality service network of VoIP system
CN106231353A (en) * 2016-07-22 2016-12-14 北京小米移动软件有限公司 VoIP communication means and device
CN106792462A (en) * 2016-12-22 2017-05-31 深圳Tcl数字技术有限公司 Bluetooth audio frequency transmits method of adjustment and device
CN108494788A (en) * 2018-03-29 2018-09-04 深圳市国富前海区块链技术股份有限公司 Transmission method, data transmission device and the computer readable storage medium of data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蓝牙视频传输系统关键技术研究;连达;《中国优秀硕士学位论文全文数据库(电子期刊)》;20111231;全文 *

Also Published As

Publication number Publication date
CN110337095A (en) 2019-10-15

Similar Documents

Publication Publication Date Title
CN108769856B (en) Method and device for establishing single-wire connection, wireless earphone and charging box
AU2014278653B2 (en) Multi-mode, wearable, wireless microphone
CN108922537B (en) Audio recognition method, device, terminal, earphone and readable storage medium
CN109547897B (en) Wireless earphone connection method, device and system and wireless earphone box
EP2856808A1 (en) Smart battery wear leveling for audio devices
CN111462746B (en) TWS earphone-based control method, system, device and equipment
US10827455B1 (en) Method and apparatus for sending a notification to a short-range wireless communication audio output device
CN110337095B (en) Parameter updating method and device for audio listening equipment and audio listening equipment
US10848868B2 (en) Audio signal routing to audio devices
CN110650408A (en) Earphone, anti-lost method, anti-lost system and computer readable storage medium
CN105682008A (en) Method and device for controlling terminal through earphone
CN117528333B (en) State detection method and device of ear-wearing type audio equipment, audio equipment and medium
JP5973289B2 (en) Portable terminal, voice control program, and voice control method
CN113242399B (en) Call switching method, device, terminal and computer readable storage medium
CN104702783A (en) Article seeking method based on voice signal and automatic answer system
CN113329465B (en) Network-resident control method, device, equipment and computer storage medium
US20170118586A1 (en) Voice data transmission processing method, terminal and computer storage medium
CN114222278A (en) Signal back-connection method, system, Bluetooth headset and storage medium
CN105704839B (en) A Bluetooth connection method and device
US20220295581A1 (en) Context-based wireless-protocol connections
CN113645573A (en) Earphone configuration data sharing method, earphone and storage medium
CN112399638B (en) Communication connection establishment method, storage medium and equipment
US20220295287A1 (en) Remote device pairing
US9504045B2 (en) Bluetooth service estimation apparatus and bluetooth service estimation method thereof
WO2023279928A1 (en) Signal transmission method and apparatus, information prompt method and apparatus, and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant