Disclosure of Invention
The invention overcomes the defects and provides the intelligent optimization method and device for the Bluetooth equipment with strong compatibility and stable performance and the Bluetooth equipment.
The technical scheme adopted by the invention for solving the technical problems is as follows:
an intelligent optimization method for compatibility of Bluetooth equipment, wherein characteristic information with typical compatibility problems and corresponding solutions thereof are prestored in the Bluetooth equipment, and the method comprises the following steps: identifying the characteristic information of the Bluetooth device or/and the opposite terminal device; and if the identified characteristic information has a pre-stored typical compatibility problem, indexing to obtain a corresponding solution, and implementing the solution.
Further, after the step of identifying the feature information of the bluetooth device itself or/and the peer device, the method further includes: and if the identified characteristic information fails to index to obtain a corresponding solution, or if the performance index of the data communication fails to reach a set threshold, learning and optimizing to obtain a feasible solution.
Further, after the step of learning and optimizing to obtain a feasible solution, the method further includes: recording the feasible solutions obtained by learning and optimization as pre-stored solutions for indexing.
Further, the feature information comprises basic feature information or/and behavior feature information of the bluetooth device itself or/and the opposite terminal device; the basic characteristic information is the existing basic information of the equipment; the behavior feature information is a special behavior feature shown by the equipment in the communication process.
Further, the learning and optimization are performed based on the behavior feature information: analyzing the behavior characteristics of the Bluetooth device or/and the opposite terminal device, trying a plurality of pre-stored solutions and combinations thereof for the behavior characteristic information which may have a plurality of prior, and gradually converging to the optimal performance index of data communication, namely a feasible solution.
Further, the learning and optimization are performed based on performance indicators of data communication: and in the data communication process with the opposite terminal equipment, continuously adjusting the communication parameters of the Bluetooth equipment, and gradually converging to the optimal performance index of data communication, namely a feasible solution.
Further, the learning and optimization adopt at least one of a local off-line mode, an online cloud mode and an online-offline combination mode.
Further, the learning and optimizing is performed in at least one of the following manners: a non-intervention progressive mode automatically acquires a feasible solution through self progressive learning and optimization; prompting the user for intervention by an indicator light or a prompt tone, and entering learning and optimization after receiving user confirmation; and the user directly intervenes, and directly receives a user instruction to enter learning and optimization, wherein the user instruction comprises at least one of a test method, a test process, result evaluation and scheme selection.
Further, the step of indexing and obtaining a corresponding solution if the identified feature information has a pre-stored typical compatibility problem specifically includes:
if the current Bluetooth equipment tends to be the Bluetooth master equipment, the solution of the index is to perform role switching with opposite terminal equipment;
if the current equipment as the slave equipment has serious performance problems, the solution of the index is to actively disconnect the active Bluetooth connection and refuse to connect a plurality of Bluetooth equipment;
if the problem of poor adaptive packet type scheduling exists, the solution of the index is to inform the opposite terminal device of the data packet types which are not supported during function negotiation;
if there is always an unstable interference signal before the preamble symbol, the solution of indexing is to narrow the receiving window;
if the frequency of the packet is not stable, the solution of the index is to allow more error bits when the sync word matches.
Further, the learning and optimizing results in a feasible solution comprising:
the current Bluetooth equipment is allowed to be used as master equipment, and meanwhile, the data packet type is limited;
adjusting audio coding to reduce the requirement of wireless bandwidth;
adjusting and increasing a local cache;
adjusting radio frequency parameters to increase or decrease the receiving sensitivity;
and adjusting the strategy of channel evaluation.
An intelligent optimization device for Bluetooth equipment compatibility comprises a solution pre-storing unit: for pre-storing a number of solutions; a feature information identification unit: and the method is used for judging whether the identified characteristic information has a pre-stored typical compatibility problem, indexing and obtaining a corresponding solution, and adjusting the communication parameters of the Bluetooth equipment to carry out data communication based on the obtained solution.
Further, the device further comprises an optimizing and learning unit, configured to learn and optimize to obtain a feasible solution if the identified feature information fails to index to obtain a corresponding solution, or if a performance index of data communication fails to reach a set threshold.
Further, the learning and optimizing unit is further configured to record the obtained feasible solution to the solution pre-storing unit; the feature information identification unit further comprises a basic feature identification unit or/and a behavior feature identification unit, which are respectively used for identifying the basic feature information or/and the behavior feature information of the Bluetooth device itself or/and the opposite terminal device, judging if a corresponding solution is provided, indexing from the solution pre-storage unit and obtaining the corresponding solution.
A bluetooth device comprising an antenna, a radio frequency transceiver, a baseband processor, a smart processor and a memory, said memory storing pre-stored solutions, said smart processor, when executing a computer program, performing the steps of the bluetooth device compatibility smart optimization method according to any ofclaims 1 to 10.
The invention pre-stores the characteristic information with typical compatibility problem and the corresponding solution thereof in the Bluetooth device, after identifying the characteristic information of the Bluetooth device itself or/and the opposite terminal device, if the pre-stored typical compatibility problem exists, the corresponding solution is obtained by indexing, and the solution is implemented, thereby leading the Bluetooth device to adopt the most matched connection mode and the link parameter setting strategy according to the result of the characteristic information identification, so as to improve the compatibility of the Bluetooth device and ensure the stable connection performance and communication quality. Further, if the identified feature information fails to index to obtain a corresponding solution, or if the performance index of the data communication fails to reach a set threshold, learning and optimization are performed, a feasible solution with better performance can be obtained, and more compatibility requirements are met.
Detailed Description
The technical solution of the present invention will be further described in detail with reference to specific embodiments. It should be noted that, in order to make the technical solutions and advantages in the embodiments of the present application more clearly understood, the following description of the exemplary embodiments of the present application with reference to the accompanying drawings is made in further detail, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and are not exhaustive of all the embodiments. 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 embodiment of the invention provides an intelligent optimization method for compatibility of Bluetooth equipment, wherein characteristic information with typical compatibility problems and a corresponding solution thereof are prestored in the Bluetooth equipment, and the method comprises the following steps:
identifying the characteristic information of the Bluetooth device or/and the opposite terminal device;
if the identified characteristic information has a pre-stored typical compatibility problem, indexing to obtain a corresponding solution, and implementing the solution, such as adjusting communication parameters of the bluetooth device to perform data communication and the like. And the Bluetooth equipment adopts the best matching connection mode and the link parameter setting strategy to carry out data communication according to the result of the characteristic information identification, thereby improving the compatibility of the Bluetooth equipment and ensuring the stable connection performance and communication quality.
Further, if the identified characteristic information fails to index to obtain a corresponding solution, or if the performance index of data communication fails to reach a set threshold, learning and optimizing are performed to obtain a feasible solution; and readjusting communication parameters of the Bluetooth device for data communication based on the obtained solution. The feasible solutions obtained from learning and optimization can then be recorded as pre-stored solutions for indexing.
The feature information comprises basic feature information or behavior feature information of the Bluetooth device or/and the opposite terminal device. The Bluetooth equipment can index and obtain a corresponding solution according to the recognized characteristic information with a pre-stored typical compatibility problem; or, indexing and obtaining a corresponding solution according to the pre-stored typical compatibility problem of the identified behavior feature information; or, after judging that no pre-stored typical compatibility problem exists or no pre-stored solution is indexed according to the identified behavior feature information, the identified basic feature information may be used to judge whether a typical compatibility problem exists or not, if so, the corresponding pre-stored solution is indexed, and if not, the learning and optimization mode is entered.
The learning and optimizing can be performed based on the behavior feature information: analyzing the behavior characteristics of the Bluetooth device or/and the opposite-end device, trying a plurality of pre-stored solutions and combinations thereof for the behavior characteristic information with various prior possibly, and gradually converging the solutions until the performance index of data communication is optimal, wherein the solutions are feasible solutions; or based on the performance indexes of data communication: namely, in the data communication process with the opposite terminal device, the communication parameters of the bluetooth device are continuously adjusted, and the performance index of the data communication is gradually converged to be optimal, which is a feasible solution.
As shown in fig. 1, a flowchart of a preferred embodiment of the intelligent bluetooth device compatibility optimizing method provided by the present invention has the following steps:
s1: identifying the basic characteristic information of the self and/or opposite terminal equipment,
s2: if the typical compatibility problem exists, then
S3: indexing a pre-stored solution, and implementing the solution if a corresponding solution is obtained; otherwise
S4: a priori information identifying behavioral characteristics of the device itself and/or the peer device,
s5: if the typical compatibility problem exists, then
S6: indexing a pre-stored solution, and implementing the solution if a corresponding solution is obtained; otherwise
S7: learning and optimizing, if a feasible solution is obtained when the optimization result gradually converges,
s8: recording the feasible solutions as pre-stored solutions for indexing.
In this embodiment, the basic feature information may include manufacturer information, a bluetooth version, a software version, a bluetooth address, and other existing basic information of the device, and the behavior feature information may include special behavior features that the device exhibits in a communication process, such as repeatedly requiring role switching, repeatedly disconnecting a bluetooth connection, transmitting signal quality, a channel mapping table, and the like.
As shown in fig. 2, a schematic block diagram of a bluetooth audio device provided in an embodiment of the present invention includes an antenna, a radio frequency transceiver, a baseband processor, an intelligent processor, a memory, a user interface, and an audio input/output processor, where the memory is used to store pre-stored solutions, and the intelligent processor is used to execute the steps of the bluetooth device intelligent optimization method when executing a computer program.
The protocol and intelligent processor and the memory are used for storing and executing the Bluetooth protocol and the application program, storing user and link information, establishing connection and interactive data with Bluetooth opposite-end equipment, and processing audio signals collected by the audio input and output processor into user data. The baseband processor is responsible for encapsulating control, management and user data of interaction between the Bluetooth audio equipment and the opposite terminal equipment into a bottom layer protocol packet according to a Bluetooth protocol, modulating the bottom layer protocol packet into a radio frequency signal through the radio frequency transceiver, and transmitting the radio frequency signal to the opposite terminal equipment through the antenna. The antenna is used for receiving an aerial Bluetooth radio frequency signal, the aerial Bluetooth radio frequency signal is amplified, frequency-converted, filtered and demodulated into a digital baseband signal through the radio frequency transceiver, the baseband processor processes the digital baseband signal into a receiving state, control information, protocol management and user data according to a protocol, and then the digital baseband signal is sent to the protocol, the intelligent processor and the memory for further processing and storage, audio data is recovered, and the audio data is provided for the audio input and output processor for further carrying out various processing and playing on the audio data. The user interface is used for processing the operation performed on the audio equipment by the user and displaying the state of the audio equipment.
It should be noted that, because the bluetooth audio device is a relatively large product in the current bluetooth devices, and has a wide application, and has higher requirements on signal quality, connection stability, and the like, the following takes the bluetooth audio device as an example to describe the technical solution provided by the present invention in detail, but the present invention is not limited thereto, and the method of the present invention can also be applied to other types of bluetooth devices except the bluetooth audio device.
Several different kinds of bluetooth devices are listed below, and the implementation of the method of the preferred embodiment of the present invention is further explained with reference to fig. 1 and 2.
In the first category, when version information is exchanged in the connection phase of the bluetooth device, according to the existing basic feature information such as chip vendor information, bluetooth version information, software version information, etc. identified in step S1, in step S2, it is determined whether there are various known typical compatibility problems in the currently connected device, and if so, step S3 is directly performed, and a pre-stored solution is indexed and adopted. For example, a bluetooth audio device a with a bluetooth version of 4.0 or more, which is a chip produced by a certain chip manufacturer, has a typical compatibility problem, i.e., it tends to be a bluetooth master device, and once the bluetooth master device is made, the device rejects the role switching request of the opposite terminal. For this type of bluetooth audio device a, the pre-stored solution is indexed to Sol 1: role switching is performed with an opposite terminal device, and the following two situations are specifically distinguished: (1) if the Bluetooth audio device A is connected with more than two Bluetooth devices at the same time, the master device of the Bluetooth devices is preferentially made. Then, after the connection with the opposite-end bluetooth device completes the bottom link and interacts the bluetooth version information, according to the identified basic feature information, i.e. the company identification number and the bluetooth version number in the version information, the role switching of the opposite-end bluetooth device is required before the Host connection is completed. And after the role switching, rejecting the opposite-end role switching request. (2) If the Bluetooth audio device A is connected with only one Bluetooth device, the Bluetooth audio device A is not actively switched to be the main device, and the role switching request of the opposite-end device is not rejected. When the opposite terminal equipment sends a role switching request to serve as the master equipment, the Bluetooth audio equipment A is switched to be the slave equipment.
In the second category, in the identification process of the basic feature information, such bluetooth audio devices do not have a typical compatibility problem, as shown in step S4, according to the prior information identifying the behavior feature of the peer device, the peer device currently connected is determined to have a typical compatibility problem through step S5, and as shown in step S6, a prestored solution is indexed. For example:
the bluetooth audio device B1, not only tends to be a bluetooth master, but also has serious performance problems once it is a bluetooth slave, for example, the audio transmission bandwidth requirement cannot be met by using the short packet type, and even the bluetooth connection is actively disconnected. The bluetooth audio device having such features has a large number of chip manufacturers and bluetooth versions, and cannot be distinguished by the version information in step S1. For the device B1 with such behavior, which has a typical compatibility problem, i.e. a serious performance problem, a pre-stored solution isSol 2, the bluetooth audio device B1 does not actively switch to the master device and does not reject the role switching request of the peer device, and when the bluetooth audio device B1 connects multiple bluetooth devices, the inactive bluetooth connection is actively disconnected and the multiple bluetooth devices are rejected.
The bluetooth audio device B2, during the identification process of the behavior characteristics in step S4, finds that there is a typical compatibility problem of poor adaptive packet type scheduling, which is likely to cause bluetooth audio non-fluency during the adaptive packet type scheduling process, especially during the switching process of bluetooth EDR3 and EDR2 types. In order to obtain a stable audio data stream, for this type of device B2, a pre-stored solution such asSol 3 tells the peer device that the EDR3 packet type is not supported at the time of function (Features) negotiation.
The bluetooth audio device B3 finds its packet sending time accurate in the process of identifying the behavior characteristics, but there is a typical compatibility problem that there is always an unstable interference signal before the Preamble symbol (Preamble), and such a signal is likely to cause the false detection of the Preamble symbol, thereby resulting in poor receiving performance. For such bluetooth audio device B3, a pre-stored solution such asSol 4, bluetooth audio device B3 narrows the receive window during music playback, i.e., reduces the bluetooth protocol specification +/-10us blur window to +/-5us, thereby improving the reception performance for such devices.
The bluetooth audio device B4, during the identification of the behavior characteristics, finds that it is based on production quality failure, resulting in a typical compatibility problem, i.e., the frequency of the packet is not stable, resulting in poor sync word reception performance during reception. A pre-stored solution such asSol 5 for this type of bluetooth device B4 allows a bit more error bits when the sync words match. For example, 4 bits in error are normally allowed, and 8 in error are allowed for this type of device.
And in the third large category, when the pre-stored solution cannot be indexed through the identified basic characteristic information and behavior characteristic information except the known characteristics of the first large category and the second large category, performing step S7, obtaining a feasible solution by adopting an automatic learning and optimizing mode, and recording the feasible solution as the pre-stored solution for later indexing in step S8.
The learning and optimizing process of step S7 is divided into two types, one is learning and optimizing based on behavior feature information, analyzing behavior features of connected opposite-end devices, trying various pre-stored solutions and combinations thereof for devices that may have a variety of prior feature information, and gradually converging to a feasible solution. For example, bluetooth device C1 is prone to master and adaptive packet type scheduling is unstable, and a solution obtained through learning and optimization may be to limit the characteristics of EDR3 packet types while allowing it to master.
The other method is to learn and optimize based on signal transmission performance, namely, in the data communication process of the bluetooth audio device and the opposite terminal device, various parameters of data transmission are continuously adjusted, and the parameters gradually converge to the optimal signal transmission performance, namely, a feasible solution is obtained. For example:
the bluetooth audio device C2 has a sufficient received signal strength, but there is a case of packet loss and jamming during audio playing, and automatically adjusts audio codes, such as the bit pool parameters of SBC codes, through learning and optimization, gradually reduces the bit pool parameters supported by the maximum to obtain a smaller bit rate in the air, and reduces the requirement of wireless bandwidth, thereby obtaining smooth music.
The Bluetooth audio device C3 automatically adjusts and adds a local play cache through learning and optimization aiming at the condition that occasionally there is a behavior that a sound source device does not send music data for a long time or the packet sending interval of the sound source device is suddenly increased to possibly cause music blocking, so as to ensure smooth music.
The bluetooth audio device C4 continuously evaluates the signal strength (RSSI) and signal quality of the audio source device, automatically adjusts the radio frequency parameters to improve the receiving sensitivity and ensure the communication quality through learning and optimization, or properly reduces the sensitivity to save power consumption.
The bluetooth audio device C5, especially using a smart phone as a sound source device, uses a time division multiplexing mode to enable bluetooth and WiFi to share radio frequency, when the bluetooth audio device is used as a master device to send a packet to the audio device without response, the corresponding channel may be treated as an interfered channel to cause chaotic channel estimation of adaptive frequency hopping, so as to adjust a strategy of channel estimation, trust the estimation result of the cell phone to the channel more, thereby improving the stability of adaptive frequency hopping.
The learning and optimizing step can adopt a non-intervention progressive mode, a user intervention prompting mode or a user direct intervention mode from the angle of human intervention degree. The non-prompting and non-intervention progressive mode is suitable for the condition without obvious performance defects, and a feasible solution can be automatically obtained through self progressive learning and optimization; the user is prompted to enter the learning and optimizing mode through an indicator light or a prompt tone, and the user can determine whether to optimize according to the current specific prompt condition; in the direct intervention mode of the user, the user can also send an instruction at a direct key to enter a learning and optimizing mode, and the method is suitable for professional users by artificially setting a testing method, a testing process, result evaluation, scheme selection and the like.
The learning and optimization may be in at least one of a local offline mode, an online cloud mode, and an online-offline combination mode based on a storage location of a pre-stored solution. The learning and optimizing process of the local off-line learning and optimizing mode is completed locally, namely the Bluetooth audio equipment and the opposite terminal equipment enter a specific learning mode, the behavior characteristics of the opposite terminal equipment are automatically analyzed through various testability connection and debugging processes, various solutions are automatically tried, and the solutions are stored locally. In the online cloud learning and optimizing mode, the characteristic parameters or behavior characteristics of opposite-end equipment are submitted first, and an optimized solution is obtained through cloud database query and direct index. And if the optimized solution cannot be obtained, submitting an offline optimization application, automatically finishing learning and optimization through the same equipment by the cloud, and downloading an optimization result to the current Bluetooth audio equipment. The online and offline combined learning and optimization modes combine a locally pre-stored solution with cloud data for learning. Or, a mixed optimization mode of online, offline and manual intervention combination is adopted.
Based on the above explanation, the present invention can index the pre-stored solution, i.e. adjust the corresponding connection and link parameter setting strategies, according to the manufacturer information, bluetooth version, software version, bluetooth address, etc. of the current bluetooth device and the peer device, or the special behavior characteristics in the connection process, such as repeatedly requiring the characteristics of role switching, transmitting signal quality, channel mapping table, etc., and perform learning and optimizing strategies when the pre-stored solution cannot be obtained, thereby obtaining the best matching connection mode and link parameter setting strategy, improving the compatibility of the bluetooth device, and ensuring the stable connection performance and data transmission quality.
Fig. 3 is a schematic block diagram of a preferred embodiment of the intelligent bluetooth device compatibility optimizing apparatus according to the present invention. The device comprises a solution pre-storing unit, a basic feature recognition unit, a behavior feature recognition unit and a learning and optimizing unit. Wherein,
the solution pre-storing unit: for pre-storing a number of solutions;
the feature information identification unit: the system comprises a Bluetooth device, a database server and a communication module, wherein the Bluetooth device is used for identifying characteristic information of a Bluetooth device, and the database server is used for storing the characteristic information of the Bluetooth device;
the optimization and learning unit is configured to learn and optimize to obtain a feasible solution if the identified feature information fails to index to obtain a corresponding solution or if the performance index of data communication fails to reach a set threshold, and may be further configured to record the obtained feasible solution to the solution pre-storing unit.
The feature information identification unit further comprises a basic feature identification unit or/and a behavior feature identification unit, which are respectively used for identifying the basic feature information or/and the behavior feature information of the Bluetooth device itself or/and the opposite terminal device, judging if a corresponding solution is provided, indexing from the solution pre-storage unit and obtaining the corresponding solution.
The method, the device and the bluetooth device for intelligent optimization of compatibility of the bluetooth device provided by the embodiment of the present invention are described in detail above, a specific example is applied in the description to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and applications, and in summary, the above description is only a specific embodiment of the present invention and is not intended to limit the scope of the present invention, and any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the present invention.
It will be further appreciated by those of ordinary skill in the art that the elements and method steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described above generally in terms of their functionality in order to clearly illustrate the interchangeability of hardware and software. Whether these functions are performed in hardware or software depends on the particular application of the solution and design constraints. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.