Bluetooth audio repair method, device, equipment and medium

By obtaining and adjusting the transmission parameters and device function parameters of Bluetooth audio data packets, the problem of low accuracy caused by co-channel interference and codec limitations in Bluetooth audio transmission is solved, improving transmission accuracy and user experience, and through cloud control System optimization parameters improve efficiency and cost-effectiveness.

CN112382304BActive Publication Date: 2024-09-03BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011217228.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-04
Publication Date
2024-09-03
Estimated Expiration
2040-11-04

AI Technical Summary

Technical Problem

During the transmission process, Bluetooth audio information is susceptible to co-channel signal interference and device codec format limitations, resulting in low transmission accuracy and audio stuttering, which affects the user experience.

Method used

By obtaining the connection parameter information during Bluetooth audio data packet transmission, determine whether it is abnormal. If abnormal, detect the operation instructions, adjust the transmission parameters and device function parameters to repair the audio data packet, including reducing the code rate and adjusting the transmission power to ensure that the connection parameters meet Default standards.

Benefits of technology

It improves the accuracy of Bluetooth audio information transmission, reduces audio lagging, improves user experience, and automatically adjusts parameters through the cloud control system, improving transmission efficiency and system cost-effectiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112382304B
    Figure CN112382304B
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and medium for repairing Bluetooth audio, which includes: obtaining connection parameter information when a Bluetooth audio data packet is transmitted to a Bluetooth device; when the Bluetooth audio is judged to be abnormal based on the connection parameter information, detecting an input operation instruction, the operation instruction is used to indicate that the Bluetooth audio is in a stuck state; and in response to the operation instruction, repairing the Bluetooth audio. This solution can automatically repair the Bluetooth audio when the Bluetooth audio is in a stuck state, thereby increasing the transmission accuracy of the audio information and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention generally relates to the field of audio repair technology, and specifically relates to a Bluetooth audio repair method, device, equipment and medium. Background Art

[0002] With the rapid development of wireless communication technology, Bluetooth technology has been widely used in more and more fields, such as automobile, industrial production and medicine. Bluetooth can exchange wireless information between many devices such as mobile phones, wireless headphones, laptops, and related peripherals, making data transmission faster and more efficient.

[0003] At present, an important application of Bluetooth is the transmission of audio information, which is transmitted in the form of data packets in the Bluetooth system. However, due to interference from co-frequency signals or the use of non-standard protocols by the Bluetooth device itself to encode and decode the audio, the original information from the sender cannot be accurately received, resulting in low transmission accuracy of the audio information. Summary of the invention

[0004] In view of the above-mentioned defects or deficiencies in the prior art, it is desired to provide a Bluetooth audio repair method, device, equipment and medium, which can repair the Bluetooth audio when the Bluetooth audio is in a stuck state, thereby increasing the transmission accuracy of the audio information and improving the user experience.

[0005] In a first aspect, the present application provides a Bluetooth audio repair method, comprising:

[0006] Get the connection parameter information when the Bluetooth audio data packet is transmitted to the Bluetooth device;

[0007] When it is determined based on the connection parameter information that the Bluetooth audio is abnormal, detecting an input operation instruction, the operation instruction is used to indicate that the Bluetooth audio is in a stuck state;

[0008] In response to the operation instruction, the Bluetooth audio is repaired.

[0009] In one embodiment, after obtaining the connection parameter information when the Bluetooth audio datagram is transmitted to the Bluetooth device, the method further includes:

[0010] Comparing the connection parameter information with a preset parameter determination standard within a preset time period;

[0011] When the connection parameter information does not meet the preset parameter determination standard, it is determined that the Bluetooth audio is abnormal.

[0012] In one embodiment, the Bluetooth audio is repaired, including:

[0013] Obtain the transmission parameter information of the Bluetooth audio data packet and the functional parameter information of the terminal device;

[0014] Determine whether the transmission parameter information and the function parameter information meet the preset transmission standard;

[0015] When the transmission parameter information and the function parameter information do not meet the preset transmission standard, the transmission parameter information of the Bluetooth audio data packet and the function parameter information of the terminal device are adjusted.

[0016] In one embodiment, adjusting the transmission parameter information of the Bluetooth audio data packet includes:

[0017] Determine the bit rate of the Bluetooth audio data packet from the transmission parameter information;

[0018] Reduce the bit rate of Bluetooth audio packets.

[0019] In one embodiment, adjusting the functional parameter information of the terminal device includes:

[0020] Check whether the terminal device is the main device;

[0021] When the terminal device is a master device, the transmission power of the Bluetooth audio and the number of codecs supported by the terminal device are determined from the function parameter information of the terminal device;

[0022] Increase the transmission power of Bluetooth audio;

[0023] Reduce the number of codecs supported by the terminal device.

[0024] In one embodiment, after the Bluetooth audio is repaired, the method further includes:

[0025] Continue to monitor the connection parameter information of the Bluetooth audio data packet during the transmission process;

[0026] Determine whether the connection parameter information meets the preset parameter determination criteria;

[0027] When the connection parameter information meets the preset parameter determination criteria, the adjusted transmission parameter information, the adjusted function parameter information and the corresponding connected Bluetooth device information are sent to other devices;

[0028] When the connection parameter information does not meet the preset parameter judgment standard, a prompt message is generated and displayed.

[0029] In one embodiment, sending the adjusted transmission parameter information, the adjusted function parameter information and the corresponding connected Bluetooth device information to other devices includes:

[0030] Binding and saving the adjusted transmission parameter information, the adjusted function parameter information and the corresponding connected Bluetooth device information identifier as a configuration file;

[0031] Send the configuration file to the cloud control system so that the cloud control system can send the configuration file to other devices.

[0032] In a second aspect, the present application provides a Bluetooth audio repair device, comprising:

[0033] An acquisition module is used to obtain connection parameter information when a Bluetooth audio data packet is transmitted to a Bluetooth device;

[0034] A detection module, configured to detect an input operation instruction when the Bluetooth audio is determined to be abnormal based on the connection parameter information, the operation instruction being used to indicate that the Bluetooth audio is in a stuck state;

[0035] The repair module is used to perform repair processing on the Bluetooth audio in response to the operation instruction.

[0036] In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned Bluetooth audio repair method when executing the computer program.

[0037] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned Bluetooth audio repair method is implemented.

[0038] The Bluetooth audio repair method, device, equipment and medium provided in the embodiments of the present application obtain the connection parameter information of the Bluetooth audio data packet when it is transmitted to the Bluetooth device. When the Bluetooth audio is judged to be abnormal based on the connection parameter information, the input operation instruction is detected, and the operation instruction is used to indicate that the Bluetooth audio is in a stuck state, and the Bluetooth audio is repaired in response to the operation instruction. This technical solution can monitor the connection parameter information of the Bluetooth audio data packet, and when it indicates that the Bluetooth audio is in a stuck state, the Bluetooth audio is automatically repaired, so that the Bluetooth device accurately receives the Bluetooth audio data packet, increases the transmission accuracy of the audio information, and greatly improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0040] Figure 1 A schematic diagram of the structure of a Bluetooth audio repair system provided in an embodiment of the present application;

[0041] Figure 2A schematic diagram of a flow chart of a Bluetooth audio repair method provided in an embodiment of the present application;

[0042] Figure 3 A schematic diagram of a flow chart of a Bluetooth audio repair method provided by another embodiment of the present application;

[0043] Figure 4 A schematic diagram of the interactive method flow of the Bluetooth audio repair method provided in an embodiment of the present application;

[0044] Figure 5 A schematic diagram of the structure of a Bluetooth audio repair device provided in an embodiment of the present application;

[0045] Figure 6 A schematic diagram of the structure of a Bluetooth audio repair device provided in an embodiment of the present application;

[0046] Figure 7 A schematic diagram of the structure of a computer system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.

[0048] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0049] It is understandable that Bluetooth, as a globally used short-range wireless connection technology, can realize convenient, fast, flexible, secure, low-cost, and low-power data and voice communications between devices. With the increasing popularity of Bluetooth technology, more and more people are beginning to use Bluetooth devices to listen to music, voice, etc. The Bluetooth devices can be, for example, Bluetooth headsets, Bluetooth speakers, etc.

[0050] One of the applications of Bluetooth is to transmit audio information. However, due to the interference of the same frequency signal, the data packet is lost to a certain extent during the transmission process, so that the receiving end cannot accurately receive the original information of the sending end. That is, when the user uses the Bluetooth device, there will be audio freezes, such as intermittent sound, or the picture and voice are not synchronized when watching movies or videos. Or due to the limitation of the audio transmission coding format supported by the Bluetooth chip used by the Bluetooth device itself, the original information of the sending end cannot be accurately received, resulting in low transmission accuracy of the audio information.

[0051] Based on the above defects, the present application provides a method for repairing Bluetooth audio, which can monitor the connection parameter information of Bluetooth audio data packets, and automatically repair the Bluetooth audio when it indicates that the Bluetooth audio is in a stuck state, so that the Bluetooth device can accurately receive the Bluetooth audio data packet, increase the transmission accuracy of the audio information, and greatly improve the user experience.

[0052] The Bluetooth audio repair method provided in the embodiment of the present application can be applied to Figure 1 Bluetooth audio repair system shown.

[0053] like Figure 1 As shown, the system includes a terminal device 10, a Bluetooth device 20 and a cloud control system 30, and the terminal device 10 establishes communication connections with the Bluetooth device 20 and the cloud control system 30 respectively.

[0054] Optionally, the terminal device 10 may be a mobile phone, tablet computer, PDA, desktop computer, digital TV, portable media player (PMP), wearable device, smart bracelet, pedometer, or other device that supports Bluetooth communication function, and this application does not specifically limit this. The terminal device 10 is used to monitor the connection parameter information of the Bluetooth audio data packet, and when an operation instruction indicating that the Bluetooth audio is in a stuck state is detected, the Bluetooth audio is repaired.

[0055] The Bluetooth device 20 may be an electronic device capable of Bluetooth communication, such as a Bluetooth headset, a Bluetooth speaker, a Bluetooth car device, a Bluetooth MP3 player, etc.

[0056] The cloud control system 30 may be a hardware device such as a server, or may include software installed on the hardware device, or may include one or more virtualization platforms, or may be a cloud computing service center. The cloud control system may store a configuration file, which may include information such as a black and white box list, a data packet transmission bit rate, a master node identifier, and a device identifier of a Bluetooth device.

[0057] The terminal device 10 and the Bluetooth device 20 can establish a communication connection via Bluetooth, and the terminal device 10 and the cloud control system 30 can establish a communication connection via a wireless network. Optionally, the above-mentioned wireless network uses standard communication technology and / or protocols. The network is usually the Internet, but it can also be any network, including but not limited to a local area network (WAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a private network or any combination of a virtual private network.

[0058] For ease of understanding and explanation, the following Figures 2 to 7 The Bluetooth audio repair method, device, equipment and medium provided in the embodiments of the present application are described in detail.

[0059] Figure 2 A flowchart of a Bluetooth audio repair method provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the method can be executed by a terminal device, including:

[0060] S101, obtaining connection parameter information when a Bluetooth audio data packet is transmitted to a Bluetooth device.

[0061] Specifically, before the terminal device sends a Bluetooth audio data packet to the Bluetooth device, it needs to establish a communication connection with the Bluetooth device. It can first turn on the Bluetooth device to put it into a pairing state, and then search for connectable Bluetooth devices through the terminal device, obtain the device information of the Bluetooth device, and authorize the Bluetooth device based on the device information, thereby establishing a communication connection between the terminal device and the Bluetooth device.

[0062] For example, when the Bluetooth device is a Bluetooth headset and the terminal device is a mobile phone, it is necessary to establish a communication connection between the mobile phone and the Bluetooth headset. You can long press the power button within the preset time. At this time, the Bluetooth headset will switch from off to on and then to pairing state, which is manifested by the indicator light being on. At this time, you can search for connectable Bluetooth devices on the mobile phone, find the Bluetooth headset logo, and set the Bluetooth headset as an authorized device, thereby establishing a communication connection between the mobile phone and the Bluetooth headset.

[0063] After establishing a communication connection between the terminal device and the Bluetooth device, the terminal device can send a Bluetooth audio data packet to the Bluetooth device through the Bluetooth chip. After sending the Bluetooth audio data packet, the terminal device obtains connection parameter information corresponding to the Bluetooth audio data packet. The connection parameter information may be, for example, a retransmission rate and an acknowledgment character (ACK) response time.

[0064] The retransmission rate refers to the ratio of retransmitted information to all called information.

[0065] ACK, which stands for confirmation character, is a transmission control character sent by the receiver to the sender in data communication. It indicates that the data sent has been confirmed to be received correctly. In the TCP / IP protocol, if the receiver successfully receives the data, it will restore an ACK data. Usually, the ACK signal has its own fixed format and length, and is replied by the receiver to the sender.

[0066] In this embodiment, after receiving the Bluetooth audio data packet, the Bluetooth device can send an ACK to the terminal device to indicate that the Bluetooth audio data packet has been received. At this time, the Bluetooth chip in the terminal device can determine the ACK reply time based on the time difference between the time of sending the Bluetooth audio data packet and the time of receiving the ACK sent by the Bluetooth device.

[0067] In this step, the terminal device can compare the connection parameter information with the preset parameter judgment standard within a preset time period, and when the connection parameter information does not meet the preset parameter judgment standard, determine that the Bluetooth audio is abnormal. The preset parameter judgment standard can be the connection parameter information corresponding to the Bluetooth audio achieving the expected sound quality effect.

[0068] When the connection parameter information meets the preset parameter judgment standard, it is determined that the Bluetooth audio is normal, and the terminal device does not need to monitor the connection parameter information.

[0069] Exemplarily, when a terminal device sends a Bluetooth audio data packet to a Bluetooth device, the retransmission rate and ACK response time of the Bluetooth audio data packet can be obtained within 2 minutes. When the retransmission rate exceeds 80 and the ACK response time exceeds 150ms, the Bluetooth audio is determined to be abnormal.

[0070] S102: When it is determined based on the connection parameter information that the Bluetooth audio is abnormal, detecting an input operation instruction, where the operation instruction is used to indicate that the Bluetooth audio is in a stuck state.

[0071] S103: In response to the operation instruction, repair the Bluetooth audio.

[0072] When the above connection parameter information does not meet the preset parameter judgment criteria, the Bluetooth audio is determined to be abnormal, and the terminal device can pop up a window on the interface, which can display "Is the current audio stuck?" and "Yes" and "No" selection windows. When the user clicks "Yes", the terminal device detects the user's operation instruction for indicating that the Bluetooth audio is in a stuck state, and the terminal device responds to the operation instruction to repair the Bluetooth audio.

[0073] When the user clicks "No", the terminal device detects the user's operation instruction for indicating that the Bluetooth audio is not in a stuck state. In response to the operation instruction, the terminal device does not need to monitor the connection parameter information during the Bluetooth audio playback process.

[0074] The Bluetooth audio repair method provided in the embodiment of the present application obtains the connection parameter information of the Bluetooth audio data packet when it is transmitted to the Bluetooth device, and when the Bluetooth audio is judged to be abnormal based on the connection parameter information, detects the input operation instruction, which is used to indicate that the Bluetooth audio is in a stuck state, and repairs the Bluetooth audio in response to the operation instruction. This technical solution can monitor the connection parameter information of the Bluetooth audio data packet, and when it indicates that the Bluetooth audio is in a stuck state, automatically repairs the Bluetooth audio, so that the Bluetooth device accurately receives the Bluetooth audio data packet, increases the transmission accuracy of the audio information, and greatly improves the user experience.

[0075] Based on the above embodiments, Figure 3 A flowchart of a Bluetooth audio repair method provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the method includes:

[0076] S201: Acquire transmission parameter information of a Bluetooth audio data packet and functional parameter information of a terminal device.

[0077] S202: Determine whether the transmission parameter information and the function parameter information meet the preset transmission standard.

[0078] S203: When the transmission parameter information and the function parameter information do not meet the preset transmission standard, adjust the transmission parameter information of the Bluetooth audio data packet and the function parameter information of the device.

[0079] Specifically, when the user's operation instruction indicating that the current Bluetooth audio is in a stuck state is detected, the terminal device obtains the transmission parameter information of the Bluetooth audio data packet and the functional parameter information of the device. The above transmission parameter information may include the bit rate of the Bluetooth audio data packet, and the functional parameter information of the device may include the transmission power of the Bluetooth audio, the number of supported codecs, etc.

[0080] It should be noted that the bit rate is also called the bit rate, which is the number of data bits transmitted per unit time during data transmission. The unit generally used is kbps, that is, kilobits per second. The bit rate directly affects the sound quality of the audio. Generally speaking, the higher the bit rate, the better the sound quality. For example, the bit rate of an mp3 audio file will not be higher than 192kbps.

[0081] After obtaining the transmission parameter information and the functional parameter information of the device, it can be determined whether the transmission parameter information and the functional parameter information meet the preset transmission standard. When the transmission parameter information and the functional parameter information do not meet the preset transmission standard, the transmission parameter information of the Bluetooth audio data packet and the functional information of the device are adjusted.

[0082] In this step, when adjusting the transmission parameter information of the Bluetooth audio data packet, the bit rate of the Bluetooth audio data packet can be determined from the transmission parameter information, and the bit rate of the Bluetooth audio data packet can be reduced. For example, it can be determined whether the codec supported by the terminal device supports dynamic bit rate adjustment, wherein the number of supported codecs may be large, and the bit rate corresponding to each codec is different. When dynamic bit rate adjustment is supported, the bit rate of the Bluetooth audio data packet is directly reduced; when dynamic bit rate adjustment is not supported, a request can be sent to the Bluetooth device, requesting to reduce the bit rate of the Bluetooth audio data packet.

[0083] When adjusting the function parameter information of the device, you can check whether the terminal device is the main device. When the terminal device is not the main device, force the terminal device to be the main device and notify the corresponding Bluetooth device; when the terminal device is the main device, determine the Bluetooth audio transmission function and the number of codecs supported by the terminal device from the function parameter information of the device, increase the Bluetooth audio transmission power, and reduce the number of codecs supported by the terminal device. For example, when the number of codecs supported by the terminal device is 7, the number of supported codecs can be reduced to 5.

[0084] After the Bluetooth audio repair is completed, the terminal device can re-establish a connection with the Bluetooth device and send the adjusted transmission parameter information and the adjusted functional parameter information to the Bluetooth device, and then continue to monitor the connection parameter information of the Bluetooth audio data packet during the transmission process, which includes the retransmission rate and the ACK response time, and judge whether the parameter information meets the preset parameter judgment standard. When the connection parameter information meets the preset parameter judgment standard, it indicates that the Bluetooth audio repair measures are effective, and the adjusted transmission parameters, adjusted functional parameter information and the corresponding connected Bluetooth device information are sent to other devices.

[0085] When the connection parameter information does not meet the preset parameter judgment criteria, a prompt message is generated and displayed. The prompt message is used to remind the user that the Bluetooth audio repair measures are invalid. It is necessary to find the cause of the Bluetooth audio abnormality again based on the user's feedback results and continue to adjust the relevant parameters until the connection parameter information of the monitored Bluetooth audio data packet meets the preset parameter judgment criteria.

[0086] Optionally, when the connection parameter information of the monitored Bluetooth audio data packet meets the preset parameter judgment criteria, the adjusted transmission parameter information, the adjusted function parameter information and the corresponding connected Bluetooth device identifier can be bound and saved as a configuration file, and then the configuration file is sent to the cloud control system, so that the cloud control system sends the configuration file to other devices. Among them, the Bluetooth device identifier can be, for example, the MAC address of the Bluetooth device. The above-mentioned other devices can be multiple.

[0087] In this embodiment, there is no need for the user to discover the problem of each device, modify the corresponding configuration file according to the problem, repackage it and send it to the corresponding device. The configuration file can be sent to other devices through the cloud control system, so that when other devices are connected to the corresponding Bluetooth device, the relevant parameter information can be automatically adjusted to the adjusted transmission parameter information and the adjusted functional parameter information, so as to directly transmit the Bluetooth audio data packet according to the adjusted transmission parameter information and the adjusted functional parameter information, thereby not only reducing the system packaging cost, but also improving the efficiency of Bluetooth audio transmission.

[0088] Optionally, the detailed process of this method can be found in Figure 4 As shown:

[0089] S301, obtaining connection parameter information when a Bluetooth audio data packet is transmitted to a Bluetooth device.

[0090] S302: Determine whether the Bluetooth audio is abnormal based on the connection parameter information.

[0091] S303: When the Bluetooth audio is abnormal, detect the input operation instruction.

[0092] S304: In response to the operation instruction, obtain transmission parameter information of the Bluetooth audio data packet and function parameter information of the device.

[0093] S305: Determine whether the transmission parameter information and the function parameter information meet the preset transmission standard.

[0094] S306: When the transmission parameter information and the function parameter information do not meet the preset transmission standard, adjust the transmission parameter information of the Bluetooth audio data packet and the function parameter information of the device.

[0095] S307: Continue to monitor the connection parameter information of the Bluetooth audio data packet during the transmission process.

[0096] S308: Determine whether the connection parameter information meets a preset parameter determination standard.

[0097] S309: When the connection parameter information meets the preset parameter determination standard, the adjusted transmission parameter information, the adjusted function parameter information and the corresponding connected Bluetooth device information identifier are bound and saved as a configuration file.

[0098] S310: Send the configuration file to the cloud control system.

[0099] Specifically, taking the terminal device as a mobile phone and the Bluetooth device as a Bluetooth headset as an example, the mobile phone establishes a communication connection with the Bluetooth headset in advance, and then sends a Bluetooth audio data packet to the Bluetooth headset. The mobile phone can first compress and encode the audio data to obtain a Bluetooth audio data packet. For example, a sub-band coding (SBC) encoding algorithm or an advanced audio coding (ACC) encoding algorithm can be used, and then the connection parameter information of the Bluetooth audio data packet when it is transmitted to the Bluetooth headset is obtained. The connection parameter information includes a retransmission rate and an ACK response time.

[0100] When the retransmission rate exceeds the preset threshold of 80 and the ACK response time exceeds the preset duration of 150ms, the Bluetooth audio is determined to be abnormal. In order to avoid misjudgment, the user needs to further determine whether the Bluetooth audio is stuck. A window can pop up on the mobile phone interface to allow the user to determine whether the Bluetooth audio is stuck. When it is detected that the user selects a stuck operation instruction, the transmission parameter information of the Bluetooth audio data packet and the functional parameter information of the mobile phone are automatically obtained, and it is determined whether they meet the preset transmission standards. The transmission parameter information may include the bit rate of the Bluetooth audio data packet, and the functional parameter information of the mobile phone may be the transmission power of the Bluetooth audio and the number of codecs supported by the mobile phone.

[0101] When it is determined that the transmission parameter information and the function parameter information do not meet the preset transmission standard, the bit rate of the Bluetooth audio data packet is reduced, and the mobile phone is forced to become the master device, the number of codecs supported by the mobile phone is reduced, and the Bluetooth transmission power of the mobile phone is increased to repair the Bluetooth audio. After the repair process is completed, the mobile phone can reconnect with the Bluetooth headset, and then send the adjusted transmission parameter information and the adjusted function parameter information to the Bluetooth headset, so that it performs Bluetooth audio processing according to the adjusted parameter information, and continue to monitor the connection parameter information of the Bluetooth audio data packet during the transmission process, and then determine whether the connection parameter information meets the preset parameter judgment standard. When the connection parameter information meets the preset parameter judgment standard, the adjusted transmission parameter information, the adjusted function parameter information and the corresponding connected Bluetooth headset information identifier are bound and saved as a configuration file, and the configuration file is sent to the cloud control system, so that the cloud control system sends the configuration file to other devices. If the connection parameter information is still abnormal within a certain period of time, a prompt message will be displayed on the interface to prompt the user that the adjustment measure is invalid and the relevant parameters need to be adjusted to complete the repair process of the Bluetooth audio.

[0102] It should be noted that SBC audio coding is a mandatory Bluetooth audio coding specified in the Bluetooth audio transmission protocol (Advanced Audio Distribution Profile, A2DP). SBC compresses the audio and transmits it through the Bluetooth wireless connection, and then plays it after decompression at the receiving end. ACC is a high compression ratio encoding algorithm.

[0103] In this embodiment, the connection parameter information of the Bluetooth audio data packet can be monitored in real time, so that when a freeze is detected, the Bluetooth audio is automatically repaired, thereby improving the accuracy of data transmission, and sending the configuration file to other devices through cloud control, which can reduce the system packaging cost, improve the efficiency of Bluetooth audio transmission, and further enhance the user experience.

[0104] It should be noted that although the operations of the method of the present invention are described in a particular order in the accompanying drawings, this does not require or imply that the operations must be performed in this particular order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted in the flow chart can be performed in a different order. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.

[0105] Figure 5 This is a schematic diagram of the structure of a Bluetooth audio repair device provided in an embodiment of the present application. Figure 5 As shown, the device may include:

[0106] An acquisition module 510 is used to acquire parameter information when a Bluetooth audio data packet is transmitted to a Bluetooth device;

[0107] A detection module 520, configured to detect an input operation instruction when the Bluetooth audio is determined to be abnormal based on the connection parameter information, the operation instruction being used to indicate that the Bluetooth audio is in a stuck state;

[0108] The repair module 530 is used to perform repair processing on the Bluetooth audio in response to the operation instruction.

[0109] Optional, such as Figure 6 As shown, the above device is specifically used for:

[0110] Comparing the connection parameter information with a preset parameter determination standard within a preset time period;

[0111] When the connection parameter information does not meet the preset parameter determination standard, it is determined that the Bluetooth audio is abnormal.

[0112] Optionally, the repair module 530 includes:

[0113] An acquisition unit 531 is used to acquire transmission parameter information of a Bluetooth audio data packet and functional parameter information of a terminal device;

[0114] The judging unit 532 is used to judge whether the transmission parameter information and the function parameter information meet the preset transmission standard;

[0115] The adjusting unit 533 is used to adjust the transmission parameter information of the Bluetooth audio data packet and the functional parameter information of the terminal device when the transmission parameter information and the functional parameter information do not meet the preset transmission standard.

[0116] Optionally, the adjustment unit 533 is specifically configured to:

[0117] Determine the bit rate of the Bluetooth audio data packet from the transmission parameter information;

[0118] Reduce the bit rate of Bluetooth audio packets.

[0119] Optionally, the adjustment unit 533 is specifically configured to:

[0120] Check whether the terminal device is the main device;

[0121] When the terminal device is a master device, the transmission power of the Bluetooth audio and the number of codecs supported by the terminal device are determined from the function parameter information of the terminal device;

[0122] Increase the transmission power of Bluetooth audio;

[0123] Reduce the number of codecs supported by the terminal device.

[0124] Optionally, the above device is also used for:

[0125] Continue to monitor the connection parameter information of the Bluetooth audio data packet during the transmission process;

[0126] Determine whether the connection parameter information meets the preset parameter determination criteria;

[0127] When the connection parameter information meets the preset parameter determination criteria, the adjusted transmission parameter information, the adjusted function parameter information and the corresponding connected Bluetooth device information are sent to other devices;

[0128] When the parameter information does not meet the preset parameter judgment standard, a prompt message is generated and displayed.

[0129] Optionally, the above device is also used for:

[0130] Binding and saving the adjusted transmission parameter information, the adjusted function parameter information and the corresponding connected Bluetooth device information identifier as a configuration file;

[0131] Send the configuration file to the cloud control system so that the cloud control system can send the configuration file to other devices.

[0132] It can be understood that the functions of each functional module of the Bluetooth audio repair device provided in this embodiment can be specifically implemented according to the method in the above method embodiment, and its specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0133] on the other hand, Figure 7 A schematic diagram of the hardware structure of a terminal device is provided for an embodiment of the present application. The terminal device provided in the embodiment of the present application includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the peripheral function implementation method of the terminal device as described above is implemented. Figure 7 , Figure 7 A schematic diagram of the structure of a computer system of a terminal device according to an embodiment of the present application.

[0134] like Figure 7 As shown, the computer system 1300 includes a central processing unit (CPU) 1301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1302 or a program loaded from a storage part 1303 to a random access memory (RAM) 1303. In the RAM 1303, various programs and data required for the operation of the system 1300 are also stored. The CPU 1301, the ROM 1302, and the RAM 1303 are connected to each other via a bus 1304. An input / output (I / O) interface 1305 is also connected to the bus 1304.

[0135] The following components are connected to the I / O interface 1305: an input section 1306 including a keyboard, a mouse, etc.; an output section 1307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1308 including a hard disk, etc.; and a communication section 1309 including a network interface card such as a LAN card, a modem, etc. The communication section 1309 performs communication processing via a network such as the Internet. A drive 1310 is also connected to the I / O interface 1305 as needed. A removable medium 1311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1310 as needed, so that a computer program read therefrom is installed into the storage section 1308 as needed.

[0136] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a machine-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1303, and / or installed from the removable medium 1311. When the computer program is executed by the central processing unit (CPU) 1301, the above-mentioned functions defined in the system of the present application are executed.

[0137] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0138] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of the code, and the aforementioned module, program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0139] The units or modules involved in the embodiments of the present application may be implemented by software or hardware. The units or modules described may also be provided in a processor, for example, may be described as: a processor comprising: an acquisition module, a detection module and a repair module. The names of these units or modules do not, in certain cases, constitute limitations on the units or modules themselves, for example, the acquisition module may also be described as a module "for obtaining connection parameter information when a Bluetooth audio data packet is transmitted to a Bluetooth device".

[0140] As another aspect, the present application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or it may exist independently and not be assembled into the electronic device. The above computer-readable storage medium stores one or more programs, and when the above programs are used by one or more processors to execute the Bluetooth audio repair method described in the present application: obtaining the connection parameter information when the Bluetooth audio data packet is transmitted to the Bluetooth device; when the Bluetooth audio is judged to be abnormal based on the connection parameter information, detecting the input operation instruction, the operation instruction is used to indicate that the Bluetooth audio is in a stuck state; in response to the operation instruction, the Bluetooth audio is repaired.

[0141] In summary, the Bluetooth audio repair method, device, equipment and medium provided in the embodiments of the present application obtain the connection parameter information when the Bluetooth audio data packet is transmitted to the Bluetooth device, and based on the connection parameter information, determine whether the Bluetooth audio is abnormal. When the Bluetooth audio is abnormal, detect the operation instruction, which is used to indicate that the Bluetooth audio is in a stuck state, and respond to the operation instruction to repair the Bluetooth audio. This technical solution can monitor the connection parameter information of the Bluetooth audio data packet, and when it indicates that the Bluetooth audio is in a stuck state, automatically repair the Bluetooth audio, so that the Bluetooth device accurately receives the Bluetooth audio data packet, increases the transmission accuracy of the audio information, and greatly improves the user experience.

[0142] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the present application.

Claims

1. A Bluetooth audio repair method, applied to a terminal device, characterized in that: The method comprises: Acquire connection parameter information when a Bluetooth audio data packet is transmitted to a Bluetooth device; the connection parameter information includes a retransmission rate and a confirmation character reply time; When it is determined based on the connection parameter information that the Bluetooth audio is abnormal, detecting an input operation instruction, the operation instruction is used to indicate that the Bluetooth audio is in a stuck state; In response to the operation instruction, acquiring the transmission parameter information of the Bluetooth audio data packet and the functional parameter information of the terminal device; determining whether the transmission parameter information and the functional parameter information meet the preset transmission standard; when the transmission parameter information and the functional parameter information do not meet the preset transmission standard, adjusting the transmission parameter information of the Bluetooth audio data packet and the functional parameter information of the terminal device; Adjusting the transmission parameter information of the Bluetooth audio data packet includes: Determining the bit rate of the Bluetooth audio data packet from the transmission parameter information; reducing the bit rate of the Bluetooth audio data packet; Adjusting the functional parameter information of the terminal device includes: Check whether the terminal device is a main device; when the terminal device is a main device, determine the transmission power of the Bluetooth audio and the number of codecs supported by the terminal device from the functional parameter information of the terminal device; increase the transmission power of the Bluetooth audio; and reduce the number of codecs supported by the terminal device.

2. The method according to claim 1, characterized in that After obtaining the connection parameter information when the Bluetooth audio data packet is transmitted to the Bluetooth device, the method further includes: Within a preset time period, comparing the connection parameter information with a preset parameter determination criterion; When the connection parameter information does not meet the preset parameter determination standard, it is determined that the Bluetooth audio is abnormal.

3. The method according to claim 1, characterized in that After repairing the Bluetooth audio, the method further includes: Continue to monitor the connection parameter information of the Bluetooth audio data packet during the transmission process; Determining whether the connection parameter information meets a preset parameter determination standard; When the connection parameter information meets the preset parameter determination criteria, the adjusted transmission parameter information, the adjusted function parameter information and the corresponding connected Bluetooth device information are sent to other devices; When the connection parameter information does not meet the preset parameter judgment standard, a prompt message is generated and displayed.

4. The method according to claim 3, characterized in that Sending the adjusted transmission parameter information, the adjusted function parameter information and the corresponding connected Bluetooth device information to other devices, including: Binding and saving the adjusted transmission parameter information, the adjusted function parameter information and the corresponding connected Bluetooth device information identifier as a configuration file; The configuration file is sent to a cloud control system, so that the cloud control system sends the configuration file to other devices.

5. A Bluetooth audio repair device, characterized in that: The device comprises: An acquisition module, used to acquire connection parameter information when a Bluetooth audio data packet is transmitted to a Bluetooth device; the connection parameter information includes a retransmission rate and a confirmation character reply time; A detection module, configured to detect an input operation instruction when it is determined based on the connection parameter information that the Bluetooth audio is abnormal, wherein the operation instruction is used to indicate that the Bluetooth audio is in a stuck state; A repair module, configured to obtain, in response to the operation instruction, the transmission parameter information of the Bluetooth audio data packet and the functional parameter information of the terminal device; determine whether the transmission parameter information and the functional parameter information meet the preset transmission standard; and when the transmission parameter information and the functional parameter information do not meet the preset transmission standard, adjust the transmission parameter information of the Bluetooth audio data packet and the functional parameter information of the terminal device; The repair module is specifically used to determine the bit rate of the Bluetooth audio data packet from the transmission parameter information; reduce the bit rate of the Bluetooth audio data packet; Check whether the terminal device is a main device; when the terminal device is a main device, determine the transmission power of the Bluetooth audio and the number of codecs supported by the terminal device from the functional parameter information of the terminal device; increase the transmission power of the Bluetooth audio; and reduce the number of codecs supported by the terminal device.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the Bluetooth audio repair method as described in any one of claims 1 to 4 is implemented.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the Bluetooth audio repair method as described in any one of claims 1 to 4 is implemented.