Method, apparatus, electronic device, and storage medium for updating a Bluetooth management configuration file

By obtaining the identification information of the Bluetooth device and the target configuration instructions entered by the user, determining the target Bluetooth limit conditions and updating the Bluetooth management configuration file, the compatibility issues during Bluetooth device pairing are solved, and the update efficiency and cost are improved.

CN114945163BActive Publication Date: 2025-05-27GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210495368.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-07
Publication Date
2025-05-27
Estimated Expiration
2042-05-07

AI Technical Summary

Technical Problem

In the prior art, Bluetooth devices often have problems of incompatibility or instability when pairing and connecting, and updates of Bluetooth management configuration files require manufacturers to recompile and push, which is costly and inefficient.

Method used

By obtaining the identification information of the connected Bluetooth device and the target configuration instructions entered by the user, determine the target Bluetooth restrictions corresponding to the target configuration instructions, and add the identification information of the Bluetooth device to the corresponding location of the Bluetooth management configuration file to realize the update of the Bluetooth management configuration file.

Benefits of technology

This method saves the time for manufacturers to recompile and push Bluetooth management configuration files, improves update efficiency and cost, and solves the compatibility issues of Bluetooth devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114945163B_ABST
    Figure CN114945163B_ABST
Patent Text Reader

Abstract

The present application discloses a method, apparatus, electronic device and storage medium for updating a Bluetooth management configuration file. The method includes: obtaining identification information of a connected Bluetooth device, where the identification information is used to identify the Bluetooth device; obtaining a target configuration instruction input by a user for the Bluetooth device; determining a target Bluetooth restriction condition corresponding to the target configuration instruction; and adding the identification information of the Bluetooth device to a corresponding position in the Bluetooth management configuration file based on the target Bluetooth restriction condition. By the above method, the present application can improve the update efficiency and cost of the Bluetooth management configuration file.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of electronic devices, and in particular, to a method, apparatus, electronic device, and storage medium for updating a Bluetooth management configuration file. Background Art

[0002] With the rapid popularization of Bluetooth technology, most of the various electronic devices around people already support Bluetooth, such as mobile terminals like mobile phones and tablet computers, Bluetooth headsets, Bluetooth speakers, and in-vehicle Bluetooth, etc.

[0003] Generally, after successful negotiation, Bluetooth devices use the same Bluetooth protocol for Bluetooth communication. The Bluetooth protocol only makes specification requirements and provides technical support. Additionally, due to the reasons of their own R & D for many Bluetooth devices, there will be some problems of function incompatibility or instability when many different Bluetooth devices are paired and connected for use. Therefore, it is necessary to configure a Bluetooth management configuration file for the Bluetooth device, and modify the Bluetooth protocol after connection and pairing through the Bluetooth management configuration file to solve the Bluetooth compatibility problem.

[0004] However, currently, the maintenance of the Bluetooth management configuration file requires the manufacturer to recompile the system software to update the electronic device, and then push the recompiled system version to the user, which has a high time cost and low efficiency. Summary of the Invention

[0005] A first aspect of this application provides a method for updating a Bluetooth management configuration file, including: obtaining identification information of a connected Bluetooth device, where the identification information is used to identify the Bluetooth device; obtaining a target configuration instruction input by a user for the Bluetooth device; determining a target Bluetooth restriction condition corresponding to the target configuration instruction; and adding the identification information of the Bluetooth device to a corresponding position in the Bluetooth management configuration file based on the target Bluetooth restriction condition.

[0006] A second aspect of this application provides an apparatus for updating a Bluetooth management configuration file, including: a first obtaining module, configured to obtain identification information of a connected Bluetooth device, where the identification information is used to identify the Bluetooth device; a second obtaining module, configured to obtain a target configuration instruction input by a user for the Bluetooth device; a determining module, configured to determine a target Bluetooth restriction condition corresponding to the target configuration instruction; and an adding module, configured to add the identification information of the Bluetooth device to a corresponding position in the Bluetooth management configuration file based on the target Bluetooth restriction condition.

[0007] A third aspect of this application provides an electronic device, which includes a memory and a processor coupled to each other, where the memory is used to store program data, and the processor is used to execute the program data to implement the foregoing method.

[0008] A fourth aspect of the present application provides a computer-readable storage medium, in which program data is stored. When the program data is executed by a processor, it is used to implement the foregoing method.

[0009] The beneficial effects of the present application are as follows: Different from the prior art, the present application obtains the identification information of the connected Bluetooth device, where the identification information is used to identify the Bluetooth device, then obtains the target configuration instruction input by the user for the Bluetooth device, then determines the target Bluetooth restriction condition corresponding to the target configuration instruction, and then based on the target Bluetooth restriction condition, adds the identification information of the Bluetooth device to the corresponding position of the Bluetooth management configuration file. Among them, since the corresponding relationship between the target configuration instruction and the target Bluetooth restriction condition is designed, when the user needs to update the Bluetooth management configuration file, the corresponding target Bluetooth restriction condition can be automatically obtained by inputting the target configuration instruction, and then based on the target Bluetooth restriction condition, the identification information of the Bluetooth device can be added to the corresponding position of the Bluetooth management configuration file to realize the update of the Bluetooth management configuration file. Thus, the time for the manufacturer to recompile and push the Bluetooth management configuration file is saved, the update efficiency and cost of the Bluetooth management configuration file are improved, and at the same time, the compatibility problem of the Bluetooth device is also solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the present application, the following will briefly introduce the drawings required in the description of the embodiments. Obviously, the following described drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts. Among them:

[0011] Figure 1 is a flowchart of an embodiment of the method for updating the Bluetooth management configuration file in the present application;

[0012] Figure 2 is Figure 1 a flowchart of an embodiment of step S12 in

[0013] Figure 3 is a schematic diagram of a user input interface;

[0014] Figure 4 is another schematic diagram of a user input interface;

[0015] Figure 5 is Figure 2 a flowchart of an embodiment of step S122 in

[0016] Figure 6 is a flowchart of the process of modifying the device name to the target configuration instruction;

[0017] Figure 7It is a flowchart of another embodiment of the method for updating the Bluetooth management profile in the present application;

[0018] Figure 8 is Figure 7 a flowchart of an embodiment of step S23 in

[0019] Figure 9 It is a structural schematic block diagram of an embodiment of the device for updating the Bluetooth management profile in the present application;

[0020] Figure 10 It is a structural schematic block diagram of an embodiment of the electronic device in the present application;

[0021] Figure 11 It is a structural schematic block diagram of an embodiment of the computer-readable storage medium in the present application. Detailed Description of the Embodiment

[0022] Referring to "embodiment" in the present application means that the specific features, structures or characteristics described in combination with the embodiment can be included in at least one embodiment of the present application. The phrase appears in various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.

[0023] The terms "first" and "second" in the present application are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" can explicitly or implicitly include at least one of such features. In the description of the present application, the meaning of "a plurality" is at least two, such as two, three, etc., unless otherwise specifically defined. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally further includes steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products or devices.

[0024] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.

[0025] First, the professional terms appearing in the present application are explained:

[0026] SDP (Session Description Protocol), also known as the Service Discovery Protocol, is used to obtain device information of Bluetooth devices, such as device name, address information, Bluetooth version, Bluetooth protocol version, Bluetooth profile version, etc.

[0027] A Bluetooth profile, also known as a Bluetooth Profile, is a wireless interface specification for data communication between Bluetooth devices. A Bluetooth profile is a definition of a viable application, defining the general behavior adopted by a Bluetooth device for communication with other Bluetooth devices. A specific part of the Bluetooth protocol stack used by the communication profile. To perform tasks, each profile adopts specific options and parameters at each level of the protocol stack. Bluetooth profiles such as GAP (Generic Access Profile), SPP (Serial Port Profile), A2DP (Advanced Audio Distribution Profile), etc. Bluetooth profiles support vendor customization.

[0028] The basic process of Bluetooth device connection operation is as follows: after a Bluetooth device scans the relevant information of another Bluetooth device through the SDP protocol, it replies to the peer according to its own Bluetooth protocol support situation. After successful negotiation, the same Bluetooth Profile is used for Bluetooth communication.

[0029] The Bluetooth protocol only makes specification requirements and provides technical support. Due to the reasons of many Bluetooth devices' own R & D, there will be some problems of function incompatibility or instability when many different Bluetooth devices are paired and connected for use. For example, a Bluetooth audio device does not support the AAC (Advanced Audio Coding) audio coding format well, and there may be problems such as Bluetooth card stuttering and no sound. However, the Bluetooth device itself can also support the SBC (Sub-band coding) audio coding format. If the terminal device uses the AAC audio coding format when negotiating A2DP with the Bluetooth audio device and there is a problem that the audio cannot be played normally, then it is necessary to negotiate and modify to use the SBC audio coding format. However, the default specified by the Bluetooth Profile itself will negotiate to the higher-level AAC audio coding format. Therefore, it is necessary to forcibly modify the Bluetooth Profile after connection and pairing by configuring a Bluetooth management profile (such as a Bluetooth black and white list profile).

[0030] However, since the Bluetooth management profile is written into the code of the electronic device in advance and is fixed. When a problem occurs with a Bluetooth device that does not exist in a Bluetooth management profile, due to system limitations, the Bluetooth management profile cannot be directly modified, and the system software needs to be recompiled to update the electronic device. Especially after receiving feedback from users about these problems, as a manufacturer, it is very costly in terms of time to recompile the version and push it to users, and there may even be other problems due to the uncertainty of the compiled version, which is both time-consuming and unstable. Based on this, the present application proposes a method for updating the Bluetooth management profile, which is as follows:

[0031] Please refer to Figure 1 , Figure 1 which is a schematic flowchart of an embodiment of the method for updating the Bluetooth management profile of the present application. Among them, the execution subject of the present application is an electronic device, such as a mobile phone, a tablet computer, a Bluetooth headset and other Bluetooth-enabled electronic devices.

[0032] The method may include the following steps:

[0033] Step S11: Obtain the identification information of the connected Bluetooth device, where the identification information is used to identify the Bluetooth device.

[0034] The Bluetooth device is a Bluetooth-enabled electronic device.

[0035] Before step S11, it further includes establishing a Bluetooth connection between the electronic device and the Bluetooth device. After the electronic device and the Bluetooth device establish a Bluetooth connection, the electronic device can query the device information of the Bluetooth device through the SDP protocol, and the device information may include the identification information of the Bluetooth device and other information. The identification information may be at least one of a device name and address information (such as at least part of the MAC address). At least part of the MAC address, for example, the first preset number of bits of the MAC address, such as the first 6 bits.

[0036] Among them, the process of establishing a Bluetooth connection may include: the electronic device initiates a Bluetooth scan, discovers at least one Bluetooth device to be connected, and displays relevant information (such as the name of the Bluetooth device), and then selects a Bluetooth device for connection according to the user instruction. If the connection is successful, the electronic device and the Bluetooth device establish a Bluetooth connection. For example, the user clicks on the name of the Bluetooth device to be connected on the display screen, and correspondingly, the electronic device selects to connect to the Bluetooth device according to the user's click operation.

[0037] Step S12: Obtain the target configuration instruction input by the user for the Bluetooth device.

[0038] The ways for the user to input the target configuration instruction may include, but are not limited to: touch, voice, input devices connected to the electronic device (such as a mouse, keyboard, touchpad, etc.), and other input methods. For specific descriptions, please refer to the following embodiments.

[0039] Step S13: Determine the target Bluetooth restriction condition corresponding to the target configuration instruction.

[0040] In some embodiments, the electronic device pre-stores the association relationship between the target configuration instruction and the target Bluetooth restriction condition, or the association relationship between the target configuration instruction and the target Bluetooth restriction condition is stored in a server or other device. The electronic device can obtain the target Bluetooth restriction condition corresponding to the target configuration instruction from the server or other devices.

[0041] Among them, the association relationship between the target configuration instruction and the target Bluetooth restriction condition can be stored in a table or in a program code file.

[0042] Step S14: Based on the target Bluetooth restriction condition, add the identification information of the Bluetooth device to the corresponding position of the Bluetooth management configuration file.

[0043] The target Bluetooth restriction condition is used to restrict the Bluetooth configuration file after the Bluetooth device is connected and paired. For example, when negotiating A2DP for the Bluetooth device, a lower-level SBC audio coding format is adopted, thereby avoiding Bluetooth incompatibility problems.

[0044] In this embodiment, the Bluetooth management configuration file includes multiple candidate Bluetooth restriction conditions, and there is a candidate Bluetooth restriction condition in the Bluetooth management configuration file that matches the target Bluetooth restriction condition. The positions of each candidate Bluetooth restriction condition in the Bluetooth configuration file are different. Specifically, in step S14, the target Bluetooth restriction condition can be matched with the candidate Bluetooth restriction conditions in the Bluetooth management configuration file, and the identification information of the Bluetooth device is associated and stored with the matched candidate Bluetooth restriction condition.

[0045] The Bluetooth management configuration file is used to record the association relationship between Bluetooth devices and candidate Bluetooth restriction conditions. Specifically, the Bluetooth management configuration file can record the association relationship between Bluetooth devices and candidate Bluetooth restriction conditions by recording the association relationship between the identification information of Bluetooth devices and candidate Bluetooth restriction conditions. Before this application, if a user wanted to update the Bluetooth management configuration file, that is, configure candidate Bluetooth restriction conditions for a new Bluetooth device (a Bluetooth device not recorded in the Bluetooth management configuration file), they needed to report to the manufacturer and then wait for the manufacturer to recompile and push the system version, which had a high time cost. Based on this application, for the target configuration instruction input by the user for the new Bluetooth device, the electronic device can automatically add the identification information of the new Bluetooth device to the corresponding position in the Bluetooth management configuration file. Without only solving the compatibility problem of the new Bluetooth device, it also improves the update efficiency and cost of the Bluetooth management configuration file. The whole process is convenient and fast, improving the user experience.

[0046] In some embodiments, due to the different characteristics of Bluetooth devices, the Bluetooth management configuration file will associate different identification information of Bluetooth devices with candidate Bluetooth restriction conditions. For example, a certain model of Bluetooth headset has compatibility problems and needs to be added to the Bluetooth management configuration file. If the name of this Bluetooth headset is fixed, the device name will be used as a judgment condition and added to the Bluetooth management configuration file. Correspondingly, in the Bluetooth management configuration file, it is expressed as "Discovery Sport=Name Based". Additionally, if a series of Bluetooth headsets launched by a company all have compatibility problems, but the first 6 digits of the MAC address of this series of Bluetooth headsets are fixed, then the first 6 digits of the Bluetooth MAC address will be used as a judgment condition and added to the Bluetooth management configuration file. Correspondingly, in the Bluetooth management configuration file, it is expressed as "74:6F:F7=Address_Based".

[0047] In some embodiments, the Bluetooth management configuration file may include but is not limited to at least one of a Bluetooth blacklist configuration file, a Bluetooth whitelist configuration file, or a Bluetooth black and white list configuration file. Among them, the Bluetooth blacklist configuration file records the candidate Bluetooth restriction conditions corresponding to the Bluetooth devices that have compatibility problems with the electronic device, the Bluetooth whitelist configuration file records the candidate Bluetooth restriction conditions corresponding to the Bluetooth devices that have no compatibility problems with the electronic device, and the Bluetooth black and white list configuration file records the candidate Bluetooth restriction conditions corresponding to the Bluetooth devices that have compatibility problems and those that have no compatibility problems with the electronic device.

[0048] As an example: The Bluetooth management configuration file is an absolute volume whitelist. By adding the identification information of the Bluetooth device to the absolute volume whitelist, the Bluetooth device is allowed to use the absolute volume function of the A2DP Bluetooth profile (that is, the system volume and the Bluetooth headset volume are at the same level).

[0049] Among them, the Bluetooth black and white list configuration file is a file that originally exists in the Android system, and its name is, for example, interop_database.conf. However, different Android versions may modify the name and storage path of the Bluetooth black and white list configuration file.

[0050] In the above solution, the present application obtains the identification information of the connected Bluetooth device, where the identification information is used to identify the Bluetooth device, then obtains the target configuration instruction input by the user for the Bluetooth device, then determines the target Bluetooth restriction condition corresponding to the target configuration instruction, and then based on the target Bluetooth restriction condition, adds the identification information of the Bluetooth device to the corresponding position of the Bluetooth management configuration file. Among them, due to the design of the correspondence between the target configuration instruction and the target Bluetooth restriction condition, when the user needs to update the Bluetooth management configuration file, the corresponding target Bluetooth restriction condition can be automatically obtained by inputting the target configuration instruction, and then based on the target Bluetooth restriction condition, the identification information of the Bluetooth device can be added to the corresponding position of the Bluetooth management configuration file to achieve the update of the Bluetooth management configuration file. Thus, the time for the manufacturer to recompile and push the Bluetooth management configuration file is saved, the update efficiency and cost of the Bluetooth management configuration file are improved, and at the same time, the compatibility problem of the Bluetooth device is solved.

[0051] Please refer to Figures 2 to 4 , Figure 2 is Figure 1 a schematic flowchart of an embodiment of step S12 in Figure 3 a schematic diagram of a user input interface, Figure 4 and another schematic diagram of the user input interface.

[0052] In this embodiment, step S12 of obtaining the target configuration instruction input by the user for the Bluetooth device may include steps S121 to S122.

[0053] Step S121: Present a user input interface associated with the Bluetooth device to the user.

[0054] The user input interface is a display interface for prompting the user to input content. The user input interface can be the entire display interface of the display screen, or a partial display interface of the display screen. For example, a user input interface associated with the Bluetooth device is presented to the user in the form of a pop-up window.

[0055] Step S122: Obtain the target configuration instruction based on the content input by the user through the user input interface.

[0056] Such as Figure 3As shown, optionally, the user input interface 10 displays the content to be modified related to the Bluetooth device. The user can modify the content to be modified, and correspondingly, the electronic device can obtain the target configuration instruction based on the user's modification operation on the content to be modified. The modification operation is, for example, inputting content through the user input interface 10 (for example, inputting BT-IEAV). Among them, when the user inputs content through the user input interface 10, the electronic device will default that the user wants to delete the content to be modified, and thus automatically deletes the content to be modified. Alternatively, the user can first manually delete the content to be modified and then input content through the user input interface 10.

[0057] As Figure 4 shown, optionally, the user input interface 10 does not display the content to be modified related to the Bluetooth device. The user can directly input content through the user input interface 10 (for example, directly input BT-IEAV), and the electronic device obtains the target configuration instruction based on the content input by the user through the user input interface 10.

[0058] In some embodiments, the user can input content in the user input interface through input methods such as touch, voice, and input devices connected to the electronic device (such as a mouse, keyboard, touchpad, etc.).

[0059] Among them, when inputting through touch, the user input interface is not only used to prompt the user to input, but also can obtain the input content of the user on the user input interface. The input content of the user on the user input interface can be a touch trajectory (such as a point, line segment, circle, triangle, polygon, etc.), text (such as numbers, Chinese characters, English, punctuation marks, etc.), and the electronic device can obtain the target configuration instruction based on the content input by the user.

[0060] Among them, when inputting through voice, the user can input content in the user display interface through voice. Specifically, the electronic device can obtain the voice data input by the user, then perform semantic recognition on the voice data to obtain the corresponding voice input text, and display it on the user input interface. The user can confirm the accuracy of the voice input text through the user input interface. When the accuracy of the voice input text is relatively low, the user can also modify the voice input text and then obtain the target configuration instruction based on the modified text. In other embodiments, the electronic device may also not display the voice input text, but notify the user to confirm through other methods such as voice broadcast, or may also not notify the user and directly obtain the target configuration instruction.

[0061] When inputting through an input device connected to an electronic device, taking a mouse as an example, a user can press a button (left button, right button, or scroll wheel) of the mouse to control the cursor to move on the user input interface, forming a movement trajectory (for example, points, line segments, circles, triangles, polygons, etc.), and the electronic device obtains a target configuration instruction based on the movement trajectory. Or, taking a keyboard as an example, a user can input text on the user input interface through the keyboard, and the electronic device can obtain a target configuration instruction based on the text input by the user. The touchpad can also obtain a target configuration instruction based on the touch trajectory and input text on the touchpad, which will not be elaborated here.

[0062] In an application scenario, multiple input methods can be combined with the input content. For example, a user can describe the problem they encounter through voice. Correspondingly, the electronic device can convert the voice data input by the user into voice input text, then analyze the voice input text to obtain at least one candidate configuration instruction and present it to the user, and then obtain a target configuration instruction based on the user's selection operation on at least one candidate configuration instruction (such as clicking on the candidate configuration instruction). If none of the at least one candidate configuration instructions is the configuration instruction required by the user, the user can also obtain an instruction - function mapping table, which includes multiple candidate configuration instructions and the function descriptions of each candidate configuration instruction, and obtain a target configuration instruction through the selection operation on the candidate configuration instructions in the instruction - function mapping table.

[0063] Please refer to Figure 5 and Figure 6 , Figure 5 is Figure 2 a flowchart of an embodiment of step S122 in Figure 6 a schematic diagram of the process of modifying the device name to a target configuration instruction.

[0064] In some embodiments, the content to be modified can be the device name, and step S122 includes steps S1221 to S1222.

[0065] Step S1221: Display the device name of the Bluetooth device on the user input interface.

[0066] Step S1222: Obtain a target configuration instruction based on the user's modification operation on the device name.

[0067] The modification operation is, for example, deleting the device name, then inputting the target configuration instruction and confirming the modification is completed, or directly inputting the target configuration instruction, and the electronic device automatically deletes the device name based on the input target configuration instruction.

[0068] Such as Figure 6As shown in the figure, taking a mobile phone as an example, after the mobile phone establishes a connection with a Bluetooth device, each connected Bluetooth device has a corresponding display interface for displaying the device name, some control buttons for the Bluetooth device, etc. Among them, the device name can be modified. Therefore, in this embodiment, the target configuration instruction is obtained by modifying the device name, and the inherent display interface is utilized without providing a new display interface as the user input interface. Of course, a new display interface can also be provided additionally.

[0069] As Figure 6 shown in the figure, in some embodiments, the user input interface includes at least one display area (11, 12, 13, 14, 15) associated with the Bluetooth device. At least one display area associated with the Bluetooth device includes a target display area, and the target display area is used to obtain the target configuration instruction based on the content input by the user. Correspondingly, the electronic device obtains the target configuration instruction based on the content input by the user in the target display area. At least one display area associated with the Bluetooth device can be used to implement different functions. As Figure 6 shown in Interface 2 in the figure, display area 11 is used to display and modify the device name, display area 12 is used to cancel pairing, display area 13 is used to turn on or off some configuration services (including turning on / off call audio, turning on / off media audio), etc., display area 14 is used to turn on or off the use of high-quality audio, and display area 15 is used to display the MAC address of the device. And the target display area can be display area 11 for displaying and modifying the device name.

[0070] As Figure 6 shown in the figure, in some embodiments, the process for the user to modify the device name as the target configuration instruction is generally as follows:

[0071] (1) Click the "Bluetooth" button to enter Interface 1;

[0072] (2) Click the detailed information button M corresponding to "Bluetooth Device A" in the paired devices in Interface 1 to enter Interface 2 (which can be used as the user input interface 10);

[0073] (3) Click "Device A" under the device name in Interface 2 to enter Interface 3 to modify the device name;

[0074] (4) Interface 3 displays a pop-up box area 16 on Interface 2, and can also display a keyboard area 17, that is, the pop-up box area 16 and the keyboard area 17 cover part of the content of Interface 2. The pop-up window area 16 is used to input the modified content of the device name; the user inputs the target configuration instruction "BT-IEAV" in the pop-up window area and clicks Save to enter Interface 4;

[0075] (5) The interface 4 is the interface diagram after modifying the device name. It can be seen that the position of the device name has been modified to "BT-IEAV". It can be understood that the modified device name in this application is the device name shown to the user, and the actual device name of the Bluetooth device has not been modified.

[0076] In the above solution, by modifying the Bluetooth name to a fixed instruction to match the candidate Bluetooth restriction conditions, the configuration of the Bluetooth management profile in the user interface (UI interface) is realized simply and quickly, that is, the Bluetooth management profile is updated, which greatly improves the efficiency and cost of solving the Bluetooth compatibility problem. In addition, by using a rich set of candidate configuration instructions corresponding to all candidate Bluetooth restriction conditions sorted out from the Bluetooth management profile, most Bluetooth compatibility problems can be solved.

[0077] Please refer to Figure 7 , Figure 7 which is a schematic flowchart of another embodiment of the method for updating the Bluetooth management profile in this application. Figure 8 It is Figure 7 a schematic flowchart of an embodiment of step S23 in

[0078] This method may include the following steps:

[0079] Step S21: Obtain the identification information of the connected Bluetooth device, where the identification information is used to identify the Bluetooth device.

[0080] For the description of step S21, please refer to the relevant position of the aforementioned step S11, which will not be elaborated here.

[0081] After step S21, it may further include determining whether the identification information of the Bluetooth device is in the Bluetooth management profile; if so, obtaining the corresponding candidate Bluetooth restriction conditions based on the identification information of the Bluetooth device; if not, executing step S25, or step S26, or directly executing step S22.

[0082] Different from the above embodiment, in this embodiment, before step S22, it may further include step S25 and / or step S26. Among them, there is no fixed sequence between step S25 and step S26.

[0083] Step S25: Present an instruction-function mapping table to the user, where the instruction-function mapping table includes a plurality of candidate configuration instructions and the function descriptions of each candidate configuration instruction.

[0084] Among them, by presenting the instruction-function mapping table to the user, the user can determine the target configuration instruction based on the instruction-function mapping table, and can update the Bluetooth management profile faster.

[0085] Step S26: Receive a target configuration instruction from a server or other device and present the target configuration instruction to the user.

[0086] In an application scenario, when a user needs to modify a Bluetooth profile, the user feedbacks the problems encountered to the manufacturer. Then, the docking personnel of the manufacturer determine the corresponding target configuration instruction according to the problems feedbacked by the user, and then send the target configuration instruction to the user's electronic device through a server or other device. Thus, the electronic device can receive the target configuration instruction from the server or other device and present the target configuration instruction to the user. In other embodiments, after receiving the target configuration instruction from the server or other device, the target configuration instruction is directly input.

[0087] Step S22: Obtain a target configuration instruction input by the user for a Bluetooth device.

[0088] For the description of step S22, please refer to the relevant position of the foregoing step S12, which will not be elaborated here.

[0089] Step S23: Determine the target Bluetooth restriction conditions corresponding to the target configuration instruction.

[0090] In this embodiment, step S23 may include sub-steps S231 to S232:

[0091] Step S231: Obtain an instruction-condition mapping table, where the instruction-condition mapping table includes a plurality of candidate configuration instructions and the candidate Bluetooth restriction conditions corresponding to each candidate configuration instruction.

[0092] The instruction-condition mapping table may be pre-stored in the electronic device.

[0093] Among them, the candidate configuration instructions can be customized. For example, the manufacturers of each Bluetooth device can customize the candidate configuration instructions. As shown in the following table, the candidate configuration instructions are strings starting with "BT-".

[0094] Step S232: Match the target configuration instruction with the candidate configuration instructions in the instruction-condition mapping table, and use the candidate Bluetooth restriction conditions corresponding to the matched candidate configuration instructions as the target Bluetooth restriction conditions.

[0095] As an example, the instruction-condition mapping table is as follows:

[0096] Table 1 Instruction-Condition Mapping Table

[0097]

[0098]

[0099]

[0100] The above instruction - condition mapping table may include multiple candidate configuration instructions, the candidate Bluetooth restriction conditions corresponding to each candidate configuration instruction, function descriptions, and remarks. Of course, the instruction - condition mapping table may also only include multiple candidate configuration instructions and the candidate Bluetooth restriction conditions corresponding to each candidate configuration instruction.

[0101] In some embodiments, the instruction - condition mapping table and the instruction - function mapping table may be the same table (such as Table 1), or they may be different tables, which is not limited here. In addition, the instruction - condition mapping table in this application may be in the form of a table or in the form of program code, that is, a code file.

[0102] It can be understood that the instruction - condition mapping table is obtained based on the Bluetooth profile. For example, each manufacturer can configure the same candidate Bluetooth restriction conditions in the custom instruction - condition mapping table according to the candidate Bluetooth restriction conditions in the Bluetooth profile, for subsequent matching with the candidate Bluetooth restriction conditions in the Bluetooth profile.

[0103] Step S24: Based on the target Bluetooth restriction condition, add the identification information of the Bluetooth device to the corresponding position of the Bluetooth management profile.

[0104] For the description of step S24, please refer to the relevant position of the foregoing step S14, which will not be elaborated here.

[0105] Step S27: Disconnect the connection with the Bluetooth device and re - pair with the Bluetooth device to re - negotiate with the Bluetooth device based on the modified Bluetooth management profile.

[0106] Specifically, the electronic device obtains the identification information of the connected Bluetooth device, obtains the corresponding candidate Bluetooth restriction condition from the modified Bluetooth management profile based on the identification information of the Bluetooth device, and then re - negotiates with the Bluetooth device based on the candidate Bluetooth restriction condition.

[0107] In an application scenario, the AVRCP (Audio / Video Remote Control Profile) 1.3 function of an electronic device connecting to a Bluetooth device is normal, but the AVRCP 1.4 function has an abnormality. Since both the electronic device and the Bluetooth device support AVRCP 1.4, according to the normal process of the Bluetooth protocol, when the electronic device and the Bluetooth device perform pairing negotiation, the higher-level AVRCP 1.4 will be used, resulting in the function abnormality. Then, the Bluetooth management configuration file includes a candidate Bluetooth restriction condition "INTEROP_ADV_AVRCP_VER_1_3" for performing audio / video remote control using the lower-level AVRCP 1.3 during negotiation. If the identification information of the Bluetooth device is not recorded in the Bluetooth management configuration file, the updated Bluetooth management configuration file provided in this application can be adopted to write the identification information of the Bluetooth device to the code position corresponding to "INTEROP_ADV_AVRCP_VER_1_3". Thus, when the electronic device pairs with the Bluetooth device again, negotiation can be re-performed with the Bluetooth device based on the modified Bluetooth management configuration file to solve the above Bluetooth compatibility problem.

[0108] Please refer to Figure 9 , Figure 9 which is a structural schematic diagram of an embodiment of the device for updating the Bluetooth management configuration file in this application.

[0109] In this embodiment, the device 100 for updating the Bluetooth management configuration file includes a first acquisition module 110, a second acquisition module 120, a determination module 130, and an addition module 140. The first acquisition module 110 is configured to acquire the identification information of the connected Bluetooth device, where the identification information is used to identify the Bluetooth device; the second acquisition module 120 is configured to acquire a target configuration instruction input by a user for the Bluetooth device; the determination module 130 is configured to determine a target Bluetooth restriction condition corresponding to the target configuration instruction; and the addition module 140 is configured to add the identification information of the Bluetooth device to the corresponding position of the Bluetooth management configuration file based on the target Bluetooth restriction condition.

[0110] In some embodiments, acquiring a target configuration instruction input by a user for the Bluetooth device includes: presenting a user input interface associated with the Bluetooth device to the user; and acquiring the target configuration instruction based on the content input by the user through the user input interface.

[0111] In some embodiments, acquiring the target configuration instruction based on the content input by the user through the user input interface includes: displaying the device name of the Bluetooth device on the user input interface; and acquiring the target configuration instruction based on the modification operation of the user on the device name.

[0112] In some embodiments, before obtaining the target configuration instruction input by the user for the Bluetooth device, it further includes: presenting an instruction-function mapping table to the user, where the instruction-function mapping table includes a plurality of candidate configuration instructions and function descriptions of each candidate configuration instruction; or receiving the target configuration instruction from a server or other device and presenting the target configuration instruction to the user.

[0113] In some embodiments, determining the target Bluetooth restriction condition corresponding to the target configuration instruction includes: obtaining an instruction-condition mapping table, where the instruction-condition mapping table includes a plurality of candidate configuration instructions and candidate Bluetooth restriction conditions corresponding to each candidate configuration instruction; matching the target configuration instruction with the candidate configuration instructions in the instruction-condition mapping table, and using the candidate Bluetooth restriction condition corresponding to the matched candidate configuration instruction as the target Bluetooth restriction condition.

[0114] In some embodiments, the Bluetooth management configuration file includes a plurality of candidate Bluetooth restriction conditions; based on the target Bluetooth restriction condition, adding the identification information of the Bluetooth device to the corresponding position of the Bluetooth management configuration file includes: matching the target Bluetooth restriction condition with the candidate Bluetooth restriction conditions in the condition-device mapping table, and associatively storing the identification information of the Bluetooth device with the matched candidate Bluetooth restriction condition.

[0115] In some embodiments, based on the target Bluetooth restriction condition, adding the identification information of the Bluetooth device to the corresponding position of the Bluetooth management configuration file further includes: disconnecting the connection with the Bluetooth device and re-pairing with the Bluetooth device to re-negotiate with the Bluetooth device based on the modified Bluetooth management configuration file.

[0116] In some embodiments, the identification information is at least one of a device name and an address information.

[0117] Please refer to Figure 10 , Figure 10 which is a structural schematic diagram of an embodiment of an electronic device according to the present application.

[0118] The electronic device 200 may include a memory 210 and a processor 220 that are coupled to each other. The memory 210 is used to store program data, and the processor 220 is used to execute the program data to implement the steps in any of the above method embodiments. The electronic device 200 may include, but is not limited to: a personal computer (for example, a desktop computer, a laptop computer, a tablet computer, a handheld computer, etc.), a mobile phone, a server, a wearable device, and augmented reality (AR), virtual reality (VR) devices, a television, etc., which are not limited herein.

[0119] Specifically, the processor 220 is used to control itself and the memory 210 to implement the steps in any of the above method embodiments. The processor 220 may also be referred to as a CPU (Central Processing Unit). The processor 220 may be an integrated circuit chip with the ability to process signals. The processor 220 may also be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. Additionally, the processor 220 may be implemented by multiple integrated circuit chips together.

[0120] Please refer to Figure 11 , Figure 11 which is a structural schematic diagram of an embodiment of the computer-readable storage medium of the present application.

[0121] The computer-readable storage medium 300 stores program data 310, which, when executed by the processor, is used to implement the steps in any of the above method embodiments.

[0122] The computer-readable storage medium 300 may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc, etc., which can store computer programs, or it may be a server storing the computer program. The server may send the stored computer program to other devices for running, or it may also run the stored computer program itself.

[0123] In several embodiments provided in the present application, it should be understood that the disclosed methods and apparatuses may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other may be through some interfaces. The indirect coupling or communication connection of the device or unit may be in electrical, mechanical, or other forms.

[0124] The unit described as a separation component may or may not be physically separated. The component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or may be distributed across multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0125] In addition, in each embodiment of the present application, each functional unit may be integrated in a processing unit, may exist separately as individual physical units, or two or more units may be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

[0126] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs.

[0127] The above are only the embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present application.

Claims

1. A method for updating a Bluetooth management configuration file, characterized in that, it includes: Obtain the identification information of the connected Bluetooth device, where the identification information is used to identify the Bluetooth device; Present an instruction-function mapping table to the user, where the instruction-function mapping table includes a plurality of candidate configuration instructions and function descriptions of each candidate configuration instruction; or receive a target configuration instruction from a server or other device and present the target configuration instruction to the user; Obtain the target configuration instruction input by the user for the Bluetooth device; Determine the target Bluetooth restriction condition corresponding to the target configuration instruction; Based on the target Bluetooth restriction condition, add the identification information of the Bluetooth device to the corresponding position of the Bluetooth management configuration file.

2. The method according to claim 1, characterized in that, the obtaining the target configuration instruction input by the user for the Bluetooth device includes: Present a user input interface associated with the Bluetooth device to the user; Obtain the target configuration instruction based on the content input by the user through the user input interface.

3. The method according to claim 2, characterized in that, obtaining the target configuration instruction based on the content input by the user through the user input interface includes: Display the device name of the Bluetooth device on the user input interface; Obtain the target configuration instruction based on the user's modification operation on the device name.

4. The method according to claim 1, characterized in that, the determining the target Bluetooth restriction condition corresponding to the target configuration instruction includes: Obtain an instruction-condition mapping table, where the instruction-condition mapping table includes a plurality of candidate configuration instructions and candidate Bluetooth restriction conditions corresponding to each candidate configuration instruction; Match the target configuration instruction with the candidate configuration instructions in the instruction-condition mapping table, and use the candidate Bluetooth restriction condition corresponding to the matched candidate configuration instruction as the target Bluetooth restriction condition.

5. The method according to claim 4, characterized in that, the Bluetooth management configuration file includes a plurality of the candidate Bluetooth restriction conditions; the adding the identification information of the Bluetooth device to the corresponding position of the Bluetooth management configuration file based on the target Bluetooth restriction condition includes: Match the target Bluetooth restriction condition with the candidate Bluetooth restriction conditions in the Bluetooth management configuration file, and associate and store the identification information of the Bluetooth device with the matched candidate Bluetooth restriction condition.

6. The method according to any one of claims 1-5, characterized in that, the adding the identification information of the Bluetooth device to the corresponding position of the Bluetooth management configuration file based on the target Bluetooth restriction condition further includes: Disconnect the connection with the Bluetooth device and re-pair with the Bluetooth device to re-negotiate with the Bluetooth device based on the modified Bluetooth management configuration file.

7. The method according to claim 1, characterized in that, the identification information is at least one of a device name and an address information.

8. An apparatus for updating a Bluetooth management configuration file, characterized in that, it includes: A first acquisition module, configured to acquire identification information of a connected Bluetooth device, where the identification information is used to identify the Bluetooth device; A second acquisition module, configured to acquire a target configuration instruction input by a user for the Bluetooth device; the second acquisition module is further configured to present an instruction-function mapping table to the user, where the instruction-function mapping table includes a plurality of candidate configuration instructions and function descriptions of each of the candidate configuration instructions; or receive a target configuration instruction from a server or other device and present the target configuration instruction to the user; A determination module, configured to determine a target Bluetooth restriction condition corresponding to the target configuration instruction; An addition module, configured to add the identification information of the Bluetooth device to a corresponding position in a Bluetooth management configuration file based on the target Bluetooth restriction condition.

9. An electronic device, characterized in that the electronic device includes a memory and a processor coupled to each other, the memory is configured to store program data, and the processor is configured to execute the program data to implement the method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores program data, and when the program data is executed by a processor, it is used to implement the method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Bluetooth configuration file loading method and device, storage medium and terminal equipment

    CN111104186A