CN112382304A - Bluetooth audio repairing method, device, equipment and medium - Google Patents

Bluetooth audio repairing method, device, equipment and medium Download PDF

Info

Publication number
CN112382304A
CN112382304A CN202011217228.8A CN202011217228A CN112382304A CN 112382304 A CN112382304 A CN 112382304A CN 202011217228 A CN202011217228 A CN 202011217228A CN 112382304 A CN112382304 A CN 112382304A
Authority
CN
China
Prior art keywords
parameter information
bluetooth audio
bluetooth
transmission
equipment
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.)
Pending
Application number
CN202011217228.8A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202011217228.8A priority Critical patent/CN112382304A/en
Publication of CN112382304A publication Critical patent/CN112382304A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/0017Lossless audio signal coding; Perfect reconstruction of coded audio signal by transmission of coding error
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a Bluetooth audio repairing method, a device, equipment and a medium, wherein the method comprises the following steps: acquiring connection parameter information when a Bluetooth audio data packet is transmitted to Bluetooth equipment; when the Bluetooth audio is judged to be abnormal based on the connection parameter information, detecting an input operation instruction, wherein the operation instruction is used for indicating that the Bluetooth audio is in a stuck state; and responding to the operation instruction, and performing repair processing on the Bluetooth audio. According to the scheme, when the Bluetooth audio is in a blocking state, the Bluetooth audio can be automatically repaired, so that the transmission accuracy of audio information is improved, and the user experience is improved.

Description

Bluetooth audio repairing method, device, equipment and medium
Technical Field
The present invention relates generally to the field of audio repair technologies, and in particular, to a method, an apparatus, a device, and a medium for bluetooth audio repair.
Background
With the rapid development of wireless communication technology, bluetooth technology has been widely used in more and more fields, such as the automotive field, the industrial production field, the medical field, and the like. Bluetooth can carry out wireless information exchange among numerous equipment such as mobile phone, wireless earphone, notebook computer, relevant peripheral equipment to make data transmission become more rapid high-efficient.
At present, the important application of bluetooth is to transmit audio information, and the audio information is transmitted in the form of data packets in a bluetooth system, but due to the co-channel signal interference or the fact that the bluetooth device itself adopts a non-standard protocol to encode and decode the audio, the original information of a transmitting end cannot be accurately received, resulting in lower transmission accuracy of the audio information.
Disclosure of Invention
In view of the foregoing defects or shortcomings in the prior art, it is desirable to provide a method, an apparatus, a device, and a medium for repairing a bluetooth audio, which can repair the bluetooth audio when the bluetooth audio is in a stuck state, thereby increasing transmission accuracy of audio information and improving user experience.
In a first aspect, the present application provides a bluetooth audio repairing method, including:
acquiring connection parameter information when a Bluetooth audio data packet is transmitted to Bluetooth equipment;
when the Bluetooth audio is judged to be abnormal based on the connection parameter information, detecting an input operation instruction, wherein the operation instruction is used for indicating that the Bluetooth audio is in a stuck state;
and responding to the operation instruction, and performing repair processing on the Bluetooth audio.
In one embodiment, after obtaining connection parameter information for transmission of a bluetooth audio datagram to a bluetooth device, the method further comprises:
comparing the connection parameter information with a preset parameter judgment standard within a preset time period;
and when the connection parameter information does not meet the preset parameter judgment standard, determining that the Bluetooth audio is abnormal.
In one embodiment, the repair processing of the bluetooth audio includes:
acquiring transmission parameter information of a Bluetooth audio data packet and functional parameter information of terminal equipment;
judging whether the transmission parameter information and the function parameter information meet a preset transmission standard or not;
and when the transmission parameter information and the function parameter information do not accord with the preset transmission standard, adjusting the transmission parameter information of the Bluetooth audio data packet and the function parameter information of the terminal equipment.
In one embodiment, adjusting transmission parameter information of a bluetooth audio packet comprises:
determining the code rate of the Bluetooth audio data packet from the transmission parameter information;
and the code rate of the Bluetooth audio data packet is reduced.
In one embodiment, adjusting the function parameter information of the terminal device includes:
checking whether the terminal equipment is the main equipment or not;
when the terminal equipment is the main equipment, determining the transmitting power of the Bluetooth audio and the number of the codecs supported by the terminal equipment from the functional parameter information of the terminal equipment;
increasing the transmitting power of the Bluetooth audio;
the number of codecs supported by the terminal device is reduced.
In one embodiment, after the repair processing is performed on the bluetooth audio, the method further includes:
continuously monitoring the connection parameter information of the Bluetooth audio data packet in the transmission process;
judging whether the connection parameter information meets a preset parameter judgment standard or not;
when the connection parameter information meets the preset parameter judgment standard, sending the adjusted transmission parameter information, the adjusted function parameter information and the correspondingly connected Bluetooth equipment information to other equipment;
and when the connection parameter information does not meet the preset parameter judgment standard, generating and displaying prompt information.
In one embodiment, the sending the adjusted transmission parameter information, the adjusted function parameter information, and the bluetooth device information corresponding to the connection to the other device includes:
binding and saving the adjusted transmission parameter information, the adjusted functional parameter information and the correspondingly connected Bluetooth equipment information identifier as configuration files;
and sending the configuration file to the cloud control system so that the cloud control system sends the configuration file to other equipment.
In a second aspect, the present application provides a bluetooth audio repair device, comprising:
the acquisition module is used for acquiring the connection parameter information when the Bluetooth audio data packet is transmitted to the Bluetooth equipment;
the detection module is used for detecting an input operation instruction when the Bluetooth audio is judged to be abnormal based on the connection parameter information, and the operation instruction is used for indicating that the Bluetooth audio is in a stuck state;
and the repair module is used for responding to the operation instruction and performing repair processing on the Bluetooth audio.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the bluetooth audio recovery method when executing the computer program.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the bluetooth audio recovery method described above.
According to the method, the device, the equipment and the medium for repairing the Bluetooth audio, the connection parameter information when the Bluetooth audio data packet is transmitted to the Bluetooth equipment is obtained, when the Bluetooth audio is judged to be abnormal based on the connection parameter information, the input operation instruction is detected, the operation instruction is used for indicating that the Bluetooth audio is in a stuck state, and the Bluetooth audio is repaired in response to the operation instruction. This technical scheme can monitor the connection parameter information of bluetooth audio data package to when instructing the bluetooth audio frequency to be in the card pause state, carry out repairing to the bluetooth audio frequency automatically, thereby make bluetooth equipment accuracy receive the bluetooth audio data package, increased audio information's transmission degree of accuracy, to a great extent has promoted user experience.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a schematic structural diagram of a bluetooth audio repair system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a bluetooth audio repairing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a bluetooth audio repair method according to another embodiment of the present application;
fig. 4 is a schematic flowchart of an interaction method of a bluetooth audio repairing method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a bluetooth audio repairing apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a bluetooth audio repairing apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer system according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
It can be understood that bluetooth, as a global small-range wireless connection technology, can implement data communication and voice communication between devices, which are convenient, fast, flexible, safe, low-cost, and low-power consumption. With the increasing popularity of bluetooth technology, more and more people are beginning to listen to music, voice, etc. using bluetooth devices, such as bluetooth headsets, bluetooth speakers, etc.
One of the applications of bluetooth is to transmit audio information, but due to the interference of the same frequency signals, a certain degree of loss exists in the data packet during the transmission process, so that the receiving end cannot accurately receive the original information of the transmitting end, that is, the user can have the phenomenon of audio jamming during the process of using the bluetooth device, and if sound occurs, the audio jamming is intermittent, or when watching a movie or video, the picture and the voice are not synchronous. Or due to the limitation of the audio transmission coding format supported by the bluetooth chip adopted by the bluetooth device, the original information of the sending end cannot be accurately received, and the transmission accuracy of the audio information is low.
Based on the defects, the application provides the repairing method of the Bluetooth audio, which can monitor the connection parameter information of the Bluetooth audio data packet, and automatically repair the Bluetooth audio when the Bluetooth audio is indicated to be in a stuck state, so that the Bluetooth device can accurately receive the Bluetooth audio data packet, the transmission accuracy of the audio information is improved, and the user experience is greatly improved.
The bluetooth audio repairing method provided by the embodiment of the application can be applied to the bluetooth audio repairing system shown in fig. 1.
As shown in fig. 1, the system includes a terminal device 10, a bluetooth device 20, and a cloud control system 30, where the terminal device 10 establishes communication connections with the bluetooth device 20 and the cloud control system 30, respectively.
Optionally, the terminal device 10 may be a mobile phone, a tablet computer, a palmtop computer, a Personal Digital Assistant (PDA), a desktop computer, a Digital TV, a Portable Media Player (PMP), a wearable device, an intelligent bracelet, a pedometer, and other devices supporting a bluetooth communication function, which is not limited in this application. The terminal device 10 is configured to monitor connection parameter information of a bluetooth audio data packet, and when an operation instruction indicating that the bluetooth audio is in a stuck state is detected, repair the bluetooth audio.
The bluetooth device 20 may be a bluetooth headset, a bluetooth speaker, a bluetooth car, a bluetooth MP3, or other electronic devices capable of bluetooth communication.
The cloud control system 30 may be a hardware device such as a server, may also include software installed on the hardware device, may also include one or more virtualization platforms, or may be a cloud computing service center. The cloud control system may store a configuration file, where the configuration file may include information such as a black and white box list, a code rate of packet transmission, a master node identifier, and an equipment identifier of the bluetooth device.
The terminal device 10 and the bluetooth device 20 can establish communication connection through bluetooth, and the terminal device 10 and the cloud control system 30 can establish communication connection through a wireless network. Optionally, the wireless network described above uses standard communication techniques and/or protocols. The Network is typically the Internet, but may 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, wireline or wireless Network, a private Network, or any combination of virtual private networks.
For convenience of understanding and explanation, the bluetooth audio repair method, apparatus, device and medium provided by the embodiments of the present application are described in detail below with reference to fig. 2 to 7.
Fig. 2 is a schematic flowchart of a bluetooth audio repairing method according to an embodiment of the present application, and as shown in fig. 2, the method may be executed by a terminal device, and includes:
s101, obtaining connection parameter information when the Bluetooth audio data packet is transmitted to the Bluetooth equipment.
Specifically, before sending the bluetooth audio data packet to the bluetooth device, the terminal device needs to establish communication connection with the bluetooth device, the bluetooth device may be opened first to enter a pairing state, and then connectable bluetooth devices are searched through the terminal device to obtain device information of the bluetooth device, and the bluetooth device is authorized based on the device information, so that communication connection between the terminal device and the bluetooth device is established.
For example, when the bluetooth device is a bluetooth headset and the terminal device is a mobile phone, a communication connection between the mobile phone and the bluetooth headset needs to be established, a power-on button can be pressed for a long time within a preset time, and at this time, the bluetooth headset is switched from power-off to power-on and then to a pairing state, which shows that an indicator lamp is on for a long time, at this time, connectable bluetooth devices can be searched on the mobile phone, and the communication connection between the mobile phone and the bluetooth headset can be established by finding out the bluetooth headset identifier and setting the bluetooth headset as an authorization device.
After establishing communication connection between the terminal device and the bluetooth device, the terminal device may send a bluetooth audio data packet to the bluetooth device through the bluetooth chip, and after sending the bluetooth audio data packet, obtain connection parameter information corresponding to the bluetooth audio data packet, where the connection parameter information may be, for example, a retransmission rate and an Acknowledgement Character (ACK) reply time.
The retransmission rate is a ratio of retransmission information to all pieces of call information.
ACK, i.e., an acknowledgement character, is a transmission control character that a receiver sends to a sender in data communication. Indicating that the transmitted data is received without errors. In the TCP/IP protocol, if the receiving side successfully receives the data, an ACK data is recovered. Usually, the ACK signal has its own fixed format and length size, and is returned to the sender by the receiver.
In this embodiment, after receiving the bluetooth audio data packet, the bluetooth device may send an ACK to the terminal device, which indicates that the bluetooth audio data packet has been received, and at this time, the bluetooth chip in the terminal device may determine the response time of the ACK according to a time difference between the time of sending the bluetooth audio data packet and the time of receiving the ACK sent by the bluetooth device.
In this step, the terminal device may compare the connection parameter information with a preset parameter determination standard within a preset time period, and determine that the bluetooth audio is abnormal when the connection parameter information does not meet the preset parameter determination standard. The preset parameter judgment standard can be corresponding connection parameter information when the Bluetooth audio achieves the expected tone quality effect.
When the connection parameter information meets the preset parameter judgment standard, the Bluetooth audio is determined to be normal, and the terminal equipment does not need to monitor the connection parameter information.
Illustratively, when the terminal device sends a bluetooth audio data packet to the bluetooth device, the retransmission rate of the bluetooth audio data packet and the reply time of the ACK may be obtained within 2 minutes, and when the retransmission rate exceeds 80 and the reply time of the ACK exceeds 150ms, the bluetooth audio is determined to be abnormal.
S102, when the Bluetooth audio is judged to be abnormal based on the connection parameter information, detecting an input operation instruction, wherein the operation instruction is used for indicating that the Bluetooth audio is in a stuck state.
S103, responding to the operation instruction, and repairing the Bluetooth audio.
When the connection parameter information does not meet the preset parameter judgment standard, determining that the Bluetooth audio is abnormal, popping up a window on an interface by the terminal equipment, wherein the window can display a selection window for asking whether the current audio is stuck and a selection window for yes and no, and when the user clicks the selection window, detecting an operation instruction of the user for indicating that the Bluetooth audio is in a stuck state by the terminal equipment, and responding to the operation instruction by the terminal equipment to repair the Bluetooth audio.
When the user clicks 'no', the terminal device detects an operation instruction of the user for indicating that the bluetooth audio is not in the stuck state, and in response to the operation instruction, the terminal device does not need to monitor the connection parameter information in the process of playing the bluetooth audio.
According to the Bluetooth audio repairing method, the connection parameter information when the Bluetooth audio data packet is transmitted to the Bluetooth device is obtained, and when the Bluetooth audio is judged to be abnormal based on the connection parameter information, the input operation instruction is detected, the operation instruction is used for indicating that the Bluetooth audio is in a stuck state, and the Bluetooth audio is repaired in response to the operation instruction. This technical scheme can monitor the connection parameter information of bluetooth audio data package to when instructing the bluetooth audio frequency to be in the card pause state, carry out repairing to the bluetooth audio frequency automatically, thereby make bluetooth equipment accuracy receive the bluetooth audio data package, increased audio information's transmission degree of accuracy, to a great extent has promoted user experience.
On the basis of the foregoing embodiment, fig. 3 is a schematic flowchart of a bluetooth audio repair method provided in an embodiment of the present application, and as shown in fig. 3, the method includes:
s201, acquiring transmission parameter information of the Bluetooth audio data packet and function parameter information of the terminal equipment.
S202, judging whether the transmission parameter information and the function parameter information meet a preset transmission standard.
S203, when the transmission parameter information and the function parameter information do not accord with the preset transmission standard, adjusting the transmission parameter information of the Bluetooth audio data packet and the function parameter information of the equipment.
Specifically, after detecting an operation instruction of the user indicating that the current bluetooth audio is in a stuck state, the terminal device obtains transmission parameter information of the bluetooth audio data packet and function parameter information of the device. The transmission parameter information may include a code rate of a bluetooth audio data packet, and the function parameter information of the device may include a transmission power of the bluetooth audio, a number of supported codecs, and the like.
It should be noted that the code rate is also called bit rate, and is the number of data bits transmitted per unit time during data transmission, and the unit used is kbps, that is, kilobits per second. The code rate directly affects the sound quality of the audio, generally speaking, the higher the code rate, the better the sound quality, such as mp3 audio file, the bit rate is not higher than 192 kbps.
After the transmission parameter information and the function parameter information of the equipment are obtained, whether the transmission parameter information and the function parameter information accord with a preset transmission standard or not can be judged, and when the transmission parameter information and the function parameter information do not accord with the preset transmission standard, the transmission parameter information of the Bluetooth audio data packet and the function information of the equipment are adjusted.
In this step, when adjusting the transmission parameter information of the bluetooth audio data packet, the code rate of the bluetooth audio data packet can be determined from the transmission parameter information, and the code rate of the bluetooth audio data packet is reduced. For example, it may be determined whether the codec supported by the terminal device supports dynamic adjustment of the code rate, where the number of the supported codecs may be large, and the code rate corresponding to each codec is different. When the code rate is dynamically adjusted, the code rate of the Bluetooth audio data packet is directly reduced; when dynamic rate adjustment is not supported, a request may be sent to the bluetooth device to reduce the rate of the bluetooth audio data packet.
When the function parameter information of the equipment is adjusted, whether the terminal equipment is the main equipment or not can be checked, and when the terminal equipment is not the main equipment, the terminal equipment is forced to be the main equipment and the corresponding Bluetooth equipment is informed; when the terminal equipment is the main equipment, the transmitting function of the Bluetooth audio and the number of the codecs supported by the terminal equipment are determined from the function parameter information of the auxiliary equipment, and the number of the codecs supported by the terminal equipment is reduced by increasing the transmitting power of the Bluetooth audio. For example, when the number of codecs supported by the terminal device is 7, the number of supported codecs can be reduced to 5.
After repairing the bluetooth audio, the terminal device may re-establish connection with the bluetooth device, and send the adjusted transmission parameter information and the adjusted function parameter information to the bluetooth device, and then continue to monitor the connection parameter information of the bluetooth audio data packet in the transmission process, where the connection parameter information includes a retransmission rate and an ACK reply time, and determine whether the parameter information meets a preset parameter determination standard, and when the connection parameter information meets the preset parameter determination standard, it indicates that the measures for repairing the bluetooth audio are valid, then send the adjusted transmission parameter, the adjusted function parameter information and the correspondingly connected bluetooth device information to other devices.
And when the connection parameter information does not meet the preset parameter judgment standard, generating and displaying prompt information, wherein the prompt information is used for reminding a user that the measures for repairing the Bluetooth audio are invalid, searching the reason of the abnormal Bluetooth audio again according to the feedback result of the user, and continuously adjusting the related parameters until the monitored connection parameter information of the Bluetooth audio data packet meets the preset parameter judgment standard.
Optionally, when the monitored connection parameter information of the bluetooth audio data packet conforms to the preset parameter determination standard, the adjusted transmission parameter information, the adjusted function parameter information, and the bluetooth device identifier connected correspondingly may be bound and stored 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. The bluetooth device identifier may be, for example, the mac address of the bluetooth device. The other devices may be plural.
According to the embodiment, after a user does not need to find the problem of each device, the corresponding configuration file is modified and repackaged and then sent to the corresponding device, and the configuration file can be sent to other devices through the cloud control system, so that when the 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, and the Bluetooth audio data packet is directly transmitted according to the adjusted transmission parameter information and the adjusted functional parameter information, so that the system packaging cost is reduced, and the efficiency of Bluetooth audio transmission is improved.
Optionally, the detailed process of the method can be seen in fig. 4:
s301, connection parameter information when the Bluetooth audio data packet is transmitted to the Bluetooth device is obtained.
S302, judging whether the Bluetooth audio is abnormal or not based on the connection parameter information.
And S303, when the Bluetooth audio is abnormal, detecting an input operation instruction.
S304, responding to the operation instruction, and acquiring the transmission parameter information of the Bluetooth audio data packet and the function parameter information of the equipment.
S305, judging whether the transmission parameter information and the function parameter information meet the preset transmission standard.
S306, when the transmission parameter information and the function parameter information do not accord with the preset transmission standard, adjusting the transmission parameter information of the Bluetooth audio data packet and the function parameter information of the equipment.
S307, continuously monitoring the connection parameter information of the Bluetooth audio data packet in the transmission process.
And S308, judging whether the connection parameter information meets the preset parameter judgment standard.
S309, when the connection parameter information meets the preset parameter judgment standard, binding and saving the adjusted transmission parameter information, the adjusted function parameter information and the corresponding connected Bluetooth device information identifier as configuration files.
And S310, sending the configuration file to the cloud control system.
Specifically, for example, the terminal device is a mobile phone, the bluetooth device is a bluetooth headset, the mobile phone establishes a communication connection with the bluetooth headset in advance, and then sends the bluetooth Audio data packet to the bluetooth headset, the mobile phone may perform compression Coding processing on the Audio data to obtain the bluetooth Audio data packet, for example, a Sub-band Coding (SBC) Coding algorithm or an Advanced Audio Coding (ACC) Coding algorithm may be adopted, and then connection parameter information when the bluetooth Audio data packet is transmitted to the bluetooth headset is obtained, where the connection parameter information includes a retransmission rate and an ACK reply time.
When the retransmission rate exceeds a preset threshold 80 and the ACK reply time exceeds a preset duration of 150ms, determining that the bluetooth audio is abnormal, in order to avoid misjudgment, further judging whether the bluetooth audio is stuck or not by a user, and popping up a window on a mobile phone interface, so that the user judges whether the bluetooth audio is stuck or not, and when an operation instruction that the user selects stuck is detected, automatically acquiring transmission parameter information of a bluetooth audio data packet and function parameter information of the mobile phone, and judging whether the transmission parameter information meets a preset transmission standard or not, wherein the transmission parameter information may include a code rate of the bluetooth audio data packet, and the function parameter information of the mobile phone may be the transmission power of the bluetooth audio, the number of codecs supported by the mobile phone, and the like.
When the transmission parameter information and the function parameter information are judged to be not in accordance with the preset transmission standard, the code rate of the Bluetooth audio data packet is reduced, the mobile phone is forced to become a main device, the number of codecs supported by the mobile phone is reduced, the Bluetooth transmitting power of the mobile phone is increased, and other measures are taken to repair the Bluetooth audio, after the repair is completed, the mobile phone can be connected with the Bluetooth earphone again, then the adjusted transmission parameter information and the adjusted function parameter information are sent to the Bluetooth earphone, so that the Bluetooth audio processing is carried out according to the adjusted parameter information, the connection parameter information of the Bluetooth audio data packet in the transmission process is monitored continuously, whether the connection parameter information is in accordance with the preset parameter judgment standard is judged, and when the connection parameter information is in accordance with the preset parameter judgment standard, the adjusted transmission parameter information, And binding the adjusted function parameter information and the Bluetooth headset information identifier connected correspondingly to store the function parameter information and the Bluetooth headset information identifier as configuration files, and sending the configuration files to the cloud control system, so that the cloud control system sends the configuration files to other equipment. If the monitored connection parameter information is still abnormal within a certain time, prompt information is displayed on an interface to prompt a user that the adjustment measures are invalid, and related parameters need to be continuously adjusted to finish the repair processing of the Bluetooth audio.
It should be noted that the SBC Audio code is a bluetooth Audio code forcibly specified in the bluetooth Audio transmission protocol (A2 DP), and the SBC compresses the Audio, transmits the compressed Audio through the bluetooth wireless connection, and then decompresses the Audio at the receiving end and plays the compressed Audio. ACC is a high compression ratio coding algorithm.
In this embodiment, the connection parameter information of the bluetooth audio data packet can be monitored in real time, so that when the bluetooth audio data packet is detected, the bluetooth audio data packet is automatically repaired, the accuracy of data transmission is improved, the configuration file is issued to other equipment in a cloud control mode, the system packaging cost can be reduced, the efficiency of bluetooth audio transmission is improved, and the user experience is further improved.
It should be noted that while the operations of the method of the present invention are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Rather, the steps depicted in the flowcharts may change the order of execution. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
Fig. 5 is a schematic structural diagram of a bluetooth audio repairing apparatus according to an embodiment of the present application. As shown in fig. 5, the apparatus may include:
an obtaining module 510, configured to obtain parameter information when a bluetooth audio data packet is transmitted to a bluetooth device;
the detection module 520 is configured to detect an input operation instruction when the bluetooth audio is determined to be abnormal based on the connection parameter information, where the operation instruction is used to indicate that the bluetooth audio is in a stuck state;
and the repair module 530 is used for responding to the operation instruction and performing repair processing on the Bluetooth audio.
Optionally, as shown in fig. 6, the apparatus is specifically configured to:
comparing the connection parameter information with a preset parameter judgment standard within a preset time period;
and when the connection parameter information does not meet the preset parameter judgment standard, determining that the Bluetooth audio is abnormal.
Optionally, the repair module 530 includes:
an obtaining unit 531, configured to obtain transmission parameter information of a bluetooth audio data packet and function parameter information of a terminal device;
a judging unit 532, configured to judge whether the transmission parameter information and the function parameter information meet a preset transmission standard;
an adjusting unit 533, configured to adjust the transmission parameter information of the bluetooth audio data packet and the function parameter information of the terminal device when the transmission parameter information and the function parameter information do not meet the preset transmission standard.
Optionally, the adjusting unit 533 is specifically configured to:
determining the code rate of the Bluetooth audio data packet from the transmission parameter information;
and the code rate of the Bluetooth audio data packet is reduced.
Optionally, the adjusting unit 533 is specifically configured to:
checking whether the terminal equipment is the main equipment or not;
when the terminal equipment is the main equipment, determining the transmitting power of the Bluetooth audio and the number of the codecs supported by the terminal equipment from the functional parameter information of the terminal equipment;
increasing the transmitting power of the Bluetooth audio;
the number of codecs supported by the terminal device is reduced.
Optionally, the apparatus is further configured to:
continuously monitoring the connection parameter information of the Bluetooth audio data packet in the transmission process;
judging whether the connection parameter information meets a preset parameter judgment standard or not;
when the connection parameter information meets the preset parameter judgment standard, sending the adjusted transmission parameter information, the adjusted function parameter information and the correspondingly connected Bluetooth equipment information to other equipment;
and when the parameter information does not meet the preset parameter judgment standard, generating and displaying prompt information.
Optionally, the apparatus is further configured to:
binding and saving the adjusted transmission parameter information, the adjusted functional parameter information and the correspondingly connected Bluetooth equipment information identifier as configuration files;
and sending the configuration file to the cloud control system so that the cloud control system sends the configuration file to other equipment.
It can be understood that the functions of each functional module of the bluetooth audio repairing apparatus provided in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
On the other hand, fig. 7 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present application. The terminal device provided by the embodiment of the application comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, and when the processor executes the program, the peripheral function implementation method of the terminal device is implemented. Referring to fig. 7, fig. 7 is a schematic structural diagram of a computer system of a terminal device according to an embodiment of the present application.
As shown in fig. 7, the computer system 1300 includes a Central Processing Unit (CPU)1301 that 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 section 1303 into a Random Access Memory (RAM) 1303. In the RAM 1303, various programs and data necessary for the operation of the system 1300 are also stored. The CPU 1301, the ROM1302, and the RAM 1303 are connected to each other via a bus 1304. An input/output (I/O) interface 1305 is also connected to bus 1304.
The following components are connected to the I/O interface 1305: an input portion 1306 including a keyboard, a mouse, and the like; an output section 1307 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 1308 including a hard disk and the like; and a communication section 1309 including a network interface card such as a LAN card, a modem, or the like. 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, or the like is mounted on the drive 1310 as necessary, so that a computer program read out therefrom is mounted into the storage portion 1308 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 1303 and/or installed from the removable medium 1311. The computer program executes the above-described functions defined in the system of the present application when executed by a Central Processing Unit (CPU) 1301.
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 two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, and may be described as: a processor, comprising: the device comprises an acquisition module, a detection module and a repair module. The names of these units or modules do not in some cases constitute a limitation on the units or modules themselves, and for example, the acquiring module may also be described as a module for acquiring connection parameter information when bluetooth audio packets are transmitted to a bluetooth device.
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 embodiments; or may be separate and not incorporated into the electronic device. The computer-readable storage medium stores one or more programs that, when executed by one or more processors, perform the bluetooth audio repair method described in this application: acquiring connection parameter information when a Bluetooth audio data packet is transmitted to Bluetooth equipment; when the Bluetooth audio is judged to be abnormal based on the connection parameter information, detecting an input operation instruction, wherein the operation instruction is used for indicating that the Bluetooth audio is in a stuck state; and responding to the operation instruction, and performing repair processing on the Bluetooth audio.
In summary, the method, the apparatus, the device and the medium for repairing the bluetooth audio provided in the embodiments of the present application determine whether the bluetooth audio is abnormal or not by obtaining the connection parameter information when the bluetooth audio data packet is transmitted to the bluetooth device, and detect an operation instruction when the bluetooth audio is abnormal, where the operation instruction is used to indicate that the bluetooth audio is in a stuck state, and perform a repair process on the bluetooth audio in response to the operation instruction. This technical scheme can monitor the connection parameter information of bluetooth audio data package to when instructing the bluetooth audio frequency to be in the card pause state, carry out repairing to the bluetooth audio frequency automatically, thereby make bluetooth equipment accuracy receive the bluetooth audio data package, increased audio information's transmission degree of accuracy, to a great extent has promoted user experience.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention as referred to in the present application is not limited to the embodiments with a specific combination of the above-mentioned features, but also covers other embodiments with any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. A Bluetooth audio repairing method is applied to terminal equipment and is characterized by comprising the following steps:
acquiring connection parameter information when a Bluetooth audio data packet is transmitted to Bluetooth equipment;
when the Bluetooth audio is judged to be abnormal based on the connection parameter information, detecting an input operation instruction, wherein the operation instruction is used for indicating that the Bluetooth audio is in a stuck state;
and responding to the operation instruction, and performing repair processing on the Bluetooth audio.
2. The method of claim 1, wherein after obtaining connection parameter information for transmission of a bluetooth audio datagram to a bluetooth device, the method further comprises:
comparing the connection parameter information with a preset parameter judgment standard within a preset time period;
and when the connection parameter information does not meet the preset parameter judgment standard, determining that the Bluetooth audio is abnormal.
3. The method of claim 1, wherein performing a repair process on the Bluetooth audio comprises:
acquiring transmission parameter information of the Bluetooth audio data packet and function parameter information of the terminal equipment;
judging whether the transmission parameter information and the function parameter information meet a preset transmission standard or not;
and when the transmission parameter information and the function parameter information do not accord with the preset transmission standard, adjusting the transmission parameter information of the Bluetooth audio data packet and the function parameter information of the terminal equipment.
4. The method of claim 3, wherein adjusting the transmission parameter information of the Bluetooth audio packet comprises:
determining the code rate of the Bluetooth audio data packet from the transmission parameter information;
and reducing the code rate of the Bluetooth audio data packet.
5. The method of claim 3, wherein adjusting the function parameter information of the terminal device comprises:
checking whether the terminal equipment is a main equipment;
when the terminal equipment is main equipment, determining the transmitting power of the Bluetooth audio and the number of the codecs supported by the terminal equipment from the function parameter information of the terminal equipment;
increasing the transmission power of the Bluetooth audio;
the number of codecs supported by the terminal device is reduced.
6. The method of claim 1, wherein after the repair processing of the bluetooth audio, the method further comprises:
continuously monitoring the connection parameter information of the Bluetooth audio data packet in the transmission process;
judging whether the connection parameter information meets the preset parameter judgment standard or not;
when the connection parameter information meets a preset parameter judgment standard, sending the adjusted transmission parameter information, the adjusted function parameter information and the correspondingly connected Bluetooth equipment information to other equipment;
and when the connection parameter information does not accord with the preset parameter judgment standard, generating and displaying prompt information.
7. The method of claim 6, wherein sending the adjusted transmission parameter information, the adjusted function parameter information, and the corresponding connected Bluetooth device information to other devices comprises:
binding and saving the adjusted transmission parameter information, the adjusted functional parameter information and the correspondingly connected Bluetooth equipment information identifier as configuration files;
and sending the configuration file to a cloud control system so that the cloud control system sends the configuration file to other equipment.
8. A bluetooth audio remediation device, the device comprising:
the acquisition module is used for acquiring the connection parameter information when the Bluetooth audio data packet is transmitted to the Bluetooth equipment;
the detection module is used for detecting an input operation instruction when the Bluetooth audio is judged to be abnormal based on the connection parameter information, wherein the operation instruction is used for indicating that the Bluetooth audio is in a stuck state;
and the repair module is used for responding to the operation instruction and performing repair processing on the Bluetooth audio.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the program, implements the bluetooth audio repair method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the bluetooth audio repair method according to any one of claims 1 to 7.
CN202011217228.8A 2020-11-04 2020-11-04 Bluetooth audio repairing method, device, equipment and medium Pending CN112382304A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011217228.8A CN112382304A (en) 2020-11-04 2020-11-04 Bluetooth audio repairing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011217228.8A CN112382304A (en) 2020-11-04 2020-11-04 Bluetooth audio repairing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN112382304A true CN112382304A (en) 2021-02-19

Family

ID=74579240

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011217228.8A Pending CN112382304A (en) 2020-11-04 2020-11-04 Bluetooth audio repairing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112382304A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143297A (en) * 2021-11-25 2022-03-04 北京蔚领时代科技有限公司 Ultralow-delay audio processing method and device suitable for cloud game scene
CN115664468A (en) * 2022-09-21 2023-01-31 深圳市酷开网络科技股份有限公司 Data transmission method and device of Bluetooth playing device, terminal device and medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143297A (en) * 2021-11-25 2022-03-04 北京蔚领时代科技有限公司 Ultralow-delay audio processing method and device suitable for cloud game scene
CN114143297B (en) * 2021-11-25 2024-04-26 北京蔚领时代科技有限公司 Ultralow-delay audio processing method and device suitable for cloud game scene
CN115664468A (en) * 2022-09-21 2023-01-31 深圳市酷开网络科技股份有限公司 Data transmission method and device of Bluetooth playing device, terminal device and medium
CN115664468B (en) * 2022-09-21 2023-11-21 深圳市酷开网络科技股份有限公司 Data transmission method and device of Bluetooth playing equipment, terminal equipment and medium

Similar Documents

Publication Publication Date Title
WO2021098405A1 (en) Data transmission method and apparatus, terminal, and storage medium
US10558427B2 (en) Electronic device for reproducing audio signal via external device and operating method thereof
CN108684029B (en) Bluetooth pairing connection method and system, Bluetooth device and terminal
CN111128203B (en) Audio data encoding method, audio data decoding method, audio data encoding device, audio data decoding device, electronic equipment and storage medium
WO2021121289A1 (en) Data receiving method and apparatus for bluetooth headset, device, and storage medium
US7860458B2 (en) Audio transmitting apparatus and mobile communication terminal
CN112382304A (en) Bluetooth audio repairing method, device, equipment and medium
CN111132111B (en) BLE-based audio sharing method, system and computer readable storage medium
US11936605B2 (en) Message processing method, apparatus and electronic device
EP3697057B1 (en) Method for controlling bitrate in realtime and electronic device thereof
WO2016000528A1 (en) Audio output method and device
CN110996019A (en) Screen projection method and system based on wireless transmission and storage medium
CN113473551A (en) Wireless loudspeaker system
WO2023201663A1 (en) Sensing by proxy (sbp) termination methods and apparatuses, electronic device, and storage medium
CN107566884B (en) Connection method, server and terminal
KR20200101012A (en) Method for processing audio data and electronic device therefor
US20080268922A1 (en) Information processing apparatus and cellular phone
CN117956546B (en) Device reconnection method, electronic device, storage medium and chip
CN115022766B (en) Audio data playing method and equipment
CN114285873B (en) Method, device, equipment and storage medium for establishing communication connection
CN112261712B (en) Power adjusting method and device
CN115396990A (en) Power consumption control method and device
CN113329387A (en) Bluetooth headset communication method and device
KR20090027817A (en) Method for output background sound and mobile communication terminal using the same
CN113014600A (en) Terminal control method and device and electronic equipment

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