Bluetooth module control method and device, electronic equipment and vehicle
By using user identifiers to distinguish Bluetooth processes in Bluetooth module control, the compatibility problem caused by inconsistent Bluetooth module process names in the existing technology is solved, and better scalability and portability are achieved.
Patent Information
- Application Number
- CN202311657046.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-05
- Publication Date
- 2025-06-06
AI Technical Summary
In the prior art, different processes of Bluetooth modules use broadcast notifications with different names, resulting in third-party applications being incompatible and poor scalability.
By controlling multiple users to run multiple Bluetooth processes on the same executable program, each Bluetooth process controls an independent Bluetooth module, and distinguishes the Bluetooth process through user identification to realize communication between Bluetooth applications and Bluetooth processes.
It realizes Bluetooth function compatibility and portability for third-party applications, simplifies support for multiple Bluetooth modules, and improves scalability.
Smart Images

Figure CN120111463A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication-related technical fields, and in particular to a Bluetooth module control method, device, electronic equipment and vehicle. Background Art
[0002] Existing devices, such as vehicles, include multiple different Bluetooth modules. Various Bluetooth applications need to communicate with different Bluetooth modules.
[0003] In the existing communication method, multiple different executable programs are compiled for different modules, which are used to control the communication of different Bluetooth modules. Different executable programs need to use broadcast notifications with different names. Figure 1 As shown, when supporting three Bluetooth modules, three separate installation packages are required, namely:
[0004] Bluetooth: com.android.bluetooth;
[0005] SubBluetooth:com.android.subbluetooth;
[0006] ThirdBluetooth:com.android.thirdbluetooth.
[0007] The three independent code installation packages are compiled into three executable programs respectively. When each executable program is run, three independent Bluetooth processes 11', 12', 13' are generated and managed by the Bluetooth module manager 14'. Various applications 15' need to communicate with different Bluetooth modules through corresponding Bluetooth processes.
[0008] However, different executable programs' Bluetooth processes use broadcast notifications with different names. When a third-party application (APP) communicates with a Bluetooth module, it needs to know the name of the executable program in advance. Therefore, it is not compatible with existing third-party applications, making it difficult to port third-party applications. And every time a Bluetooth module is added, a lot of code needs to be modified to compile the executable program that supports the new module, which has poor scalability. Summary of the invention
[0009] Based on this, it is necessary to provide a Bluetooth module control method, device, electronic device and vehicle to address the technical problems that the existing technology uses different names to distinguish Bluetooth processes, resulting in incompatibility with existing third-party applications and poor scalability.
[0010] The present invention provides a Bluetooth module control method, comprising:
[0011] Control multiple users to run multiple Bluetooth processes for the same executable program, each of the Bluetooth processes controlling an independent Bluetooth module;
[0012] A Bluetooth application in the operating system is controlled to communicate with the Bluetooth process run by the same user.
[0013] Furthermore, controlling multiple users to run multiple Bluetooth processes on the same executable program includes:
[0014] For the same executable program, multiple users are controlled to run multiple Bluetooth processes respectively, and each of the Bluetooth processes corresponds to the user identification of the running user.
[0015] Furthermore, the controlling multiple users to respectively run multiple Bluetooth processes includes:
[0016] Get the corresponding relationship between user ID and Bluetooth module;
[0017] According to the corresponding relationship, the user corresponding to the user identifier is controlled to run the Bluetooth process to control the corresponding Bluetooth module.
[0018] Furthermore, the controlling multiple users to respectively run multiple Bluetooth processes includes:
[0019] Control the user to execute Bluetooth protocol functions in the Bluetooth process.
[0020] Further, the controlling the user to execute the Bluetooth protocol function in the Bluetooth process includes:
[0021] Obtaining the Bluetooth protocol function of each of the user identifiers;
[0022] The user corresponding to the user identifier is controlled to execute the corresponding Bluetooth protocol function in the Bluetooth process.
[0023] Further, the controlling the Bluetooth application in the operating system to communicate with the Bluetooth process run by the same user includes:
[0024] sending application Bluetooth information of the Bluetooth application to the Bluetooth process run by a user of the Bluetooth application; or
[0025] The Bluetooth process is controlled to broadcast process Bluetooth information, and the Bluetooth application receives the process Bluetooth information of the Bluetooth process run by the same user.
[0026] Furthermore, after the Bluetooth application in the control operating system communicates with the Bluetooth process run by the same user, the method further includes:
[0027] The Bluetooth application is controlled to communicate with the Bluetooth process run by a user specified by the Bluetooth application.
[0028] The present invention provides a Bluetooth module control device, comprising:
[0029] A running module, used to control multiple users to run multiple Bluetooth processes for the same executable program, each of which controls an independent Bluetooth module;
[0030] The intra-user communication module is used to control the Bluetooth application in the operating system to communicate with the Bluetooth process run by the same user.
[0031] The present invention provides an electronic device, comprising:
[0032] at least one processor; and,
[0033] a memory communicatively connected to at least one of the processors; wherein,
[0034] The memory stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors so that the at least one processor can execute the Bluetooth module control method as described above.
[0035] The present invention provides a storage medium, wherein the storage medium stores computer instructions, and when a computer executes the computer instructions, it is used to execute all steps of the Bluetooth module control method as described above.
[0036] The present invention provides a vehicle, comprising the Bluetooth module control device as described above, or the electronic device as described above.
[0037] The present invention controls multiple users to run multiple Bluetooth processes for the same executable program, each of the Bluetooth processes controls an independent Bluetooth module, and controls the Bluetooth application in the operating system to communicate with the Bluetooth process run by the same user. Since the communication of different Bluetooth processes is distinguished by users, the Bluetooth processes are run by the same executable program. Therefore, the third-party application does not need to change the program name to be communicated, so that it can be compatible with existing third-party applications, better support the portability of the Bluetooth function of the third-party application, and when expansion is required, only the running user needs to be modified without a large number of modifications to the program, which has better scalability to support more modules. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A schematic diagram of a Bluetooth module communication system in the prior art;
[0039] Figure 2 This is a working flow diagram of a Bluetooth module control method according to an embodiment of the present invention;
[0040] Figure 3 This is a working flow chart of a Bluetooth module control method according to another embodiment of the present invention;
[0041] Figure 4 A schematic diagram of a Bluetooth module communication system according to a preferred embodiment of the present invention;
[0042] Figure 5 A schematic diagram of a Bluetooth module control device according to an embodiment of the present invention;
[0043] Figure 6 The figure is a schematic diagram of the hardware structure of an electronic device of the present invention. DETAILED DESCRIPTION
[0044] The specific embodiments of the present invention are further described below in conjunction with the accompanying drawings. The same components are represented by the same reference numerals. It should be noted that the words "front", "rear", "left", "right", "upper" and "lower" used in the following description refer to directions in the accompanying drawings, and the words "inner" and "outer" refer to directions toward or away from the geometric center of a specific component, respectively.
[0045] like Figure 2 The flowchart of a Bluetooth module control method according to an embodiment of the present invention includes:
[0046] Step S201, controlling multiple users to run multiple Bluetooth processes for the same executable program, each of the Bluetooth processes controlling an independent Bluetooth module;
[0047] Step S202: Control the Bluetooth application in the operating system to communicate with the Bluetooth process run by the same user.
[0048] Specifically, the present invention can be applied to electronic devices with processing capabilities, such as an electronic control unit (ECU) of a vehicle, an extended domain control unit (XCU) or other terminals.
[0049] First, the electronic device executes step S201 to control multiple users to run multiple Bluetooth processes for the same executable program, and each of the Bluetooth processes controls an independent Bluetooth module.
[0050] Specifically, using the same executable program installation package, multiple Bluetooth processes are run by different users, and each Bluetooth process will control an independent Bluetooth module.
[0051] The user is the user of the operating system. Different users can be distinguished by user identifiers. User identifiers include but are not limited to user accounts, such as the main driver's account or the co-driver's account. Figure 4 As shown, taking the Android system as an example, using the same Android executable program installation package (Bluetooth:com.androi.bluetooth), by using different users (User) to run multiple program instance processes, one program instance process supports an independent Bluetooth module. Each program process instance is a Bluetooth process.
[0052] Multiple Bluetooth processes are started by the Bluetooth management module 40 of the system. Then each Bluetooth process 41, 42, 43 controls different Bluetooth modules according to its own user. For example, the Bluetooth processes of User 0, User 1, and User 2 will control the first Bluetooth module, the second Bluetooth module, and the third Bluetooth module respectively.
[0053] Then, step S202 is performed to control the Bluetooth application in the operating system to communicate with the Bluetooth process run by the same user when the Bluetooth application uses the Bluetooth function.
[0054] Bluetooth applications are also run by users. Since applications run by the same user only communicate with processes run by the same user, Bluetooth applications communicate with the Bluetooth process run by the user running the Bluetooth application, thereby controlling the Bluetooth modules supported by the Bluetooth process. For example, if the user of a Bluetooth application is User 0, it only communicates with the Bluetooth process also run by User 0.
[0055] Bluetooth applications refer to applications in the operating system that use the Bluetooth function. Bluetooth applications include but are not limited to the system's built-in Bluetooth phone application, the system's Bluetooth settings application, the system's status bar Bluetooth function, Bluetooth music, and third-party Bluetooth applications.
[0056] In the Android system, Bluetooth applications and Bluetooth processes can communicate using the binder mechanism.
[0057] Different from the prior art that uses the name of the Bluetooth process to distinguish the Bluetooth process, the present invention uses the user who runs the Bluetooth process to distinguish the Bluetooth process. The user is the user of the operating system itself. The present invention distinguishes the Bluetooth process by the user, so the names of different Bluetooth processes remain unchanged, so that the third-party application does not need to change the program name to be communicated, so as to be compatible with the existing third-party applications.
[0058] At the same time, when a Bluetooth module needs to be added, only the user needs to be modified or added without making a lot of changes to the rest of the program.
[0059] The present invention controls multiple users to run multiple Bluetooth processes for the same executable program, each of the Bluetooth processes controls an independent Bluetooth module, and controls the Bluetooth application in the operating system to communicate with the Bluetooth process run by the same user. Since the communication of different Bluetooth processes is distinguished by users, the Bluetooth processes are run by the same executable program. Therefore, the third-party application does not need to change the program name to be communicated, so that it can be compatible with existing third-party applications, better support the portability of the Bluetooth function of the third-party application, and when expansion is required, only the running user needs to be modified without a large number of modifications to the program, which has better scalability to support more modules.
[0060] like Figure 3 The figure shows a working flow chart of a Bluetooth module control method in another embodiment of the present invention, including:
[0061] Step S301: for the same executable program, control multiple users to respectively run multiple Bluetooth processes, each of the Bluetooth processes corresponds to the user ID of the running user, and each of the Bluetooth processes controls an independent Bluetooth module.
[0062] In one embodiment, controlling multiple users to respectively run multiple Bluetooth processes includes:
[0063] Get the corresponding relationship between user ID and Bluetooth module;
[0064] According to the corresponding relationship, the user corresponding to the user identifier is controlled to run the Bluetooth process to control the corresponding Bluetooth module.
[0065] In one embodiment, controlling multiple users to respectively run multiple Bluetooth processes includes:
[0066] Control the user to execute Bluetooth protocol functions in the Bluetooth process.
[0067] In one embodiment, controlling the user to execute a Bluetooth protocol function in the Bluetooth process includes:
[0068] Obtaining the Bluetooth protocol function of each of the user identifiers;
[0069] The user corresponding to the user identifier is controlled to execute the corresponding Bluetooth protocol function in the Bluetooth process.
[0070] Step S302, sending the application Bluetooth information of the Bluetooth application to the Bluetooth process run by the user of the Bluetooth application; or
[0071] The Bluetooth process is controlled to broadcast process Bluetooth information, and the Bluetooth application receives the process Bluetooth information of the Bluetooth process run by the same user.
[0072] In one embodiment, after the Bluetooth application in the control operating system communicates with the Bluetooth process run by the same user, the method further includes:
[0073] The Bluetooth application is controlled to communicate with the Bluetooth process run by a user specified by the Bluetooth application.
[0074] Specifically, first, step S301 is executed to control multiple users to respectively run multiple Bluetooth processes for the same executable program, each of the Bluetooth processes corresponds to the user ID of the running user, and each of the Bluetooth processes controls an independent Bluetooth module.
[0075] Taking the Android system as an example, using the same Android executable program installation package (Bluetooth:com.androi.bluetooth), multiple program instance processes are run by users corresponding to different user IDs. One program instance process supports an independent Bluetooth module. Each program process instance is a Bluetooth process.
[0076] In some embodiments, the user identification is a main driver user identification and a co-driver user identification of the vehicle, such as a user account of the main driver user or a user account of the co-driver user.
[0077] In one embodiment, controlling multiple users to respectively run multiple Bluetooth processes includes:
[0078] Get the corresponding relationship between user ID and Bluetooth module;
[0079] According to the corresponding relationship, the user corresponding to the user identifier is controlled to run the Bluetooth process to control the corresponding Bluetooth module.
[0080] Specifically, the correspondence between the user identification and the Bluetooth module is preset. For example, the correspondence between each user identification and the Bluetooth module is preset in the executable program. For example, the correspondence between the user identification and the Bluetooth module is recorded in advance in a table.
[0081] Then, the users corresponding to different user identifiers run the executable program to run different Bluetooth processes. Each Bluetooth process will obtain the corresponding relationship from the executable program and execute the Bluetooth module corresponding to the user identifier.
[0082] This embodiment establishes a correspondence between a user identifier and a Bluetooth module to determine that different Bluetooth processes control different Bluetooth modules.
[0083] In one embodiment, controlling multiple users to respectively run multiple Bluetooth processes includes:
[0084] Control the user to execute Bluetooth protocol functions in the Bluetooth process.
[0085] Specifically, different Bluetooth applications can communicate with appropriate Bluetooth processes according to the Bluetooth protocols they adopt to control corresponding Bluetooth modules.
[0086] In this embodiment, each Bluetooth process uses different Bluetooth protocol functions to adapt to the Bluetooth protocol requirements of different Bluetooth applications.
[0087] In one embodiment, controlling the user to execute a Bluetooth protocol function in the Bluetooth process includes:
[0088] Obtaining the Bluetooth protocol function of each of the user identifiers;
[0089] The user corresponding to the user identifier is controlled to execute the corresponding Bluetooth protocol function in the Bluetooth process.
[0090] Specifically, the Bluetooth protocol functions of different user identifiers are preset, for example, which Bluetooth protocol functions should be enabled for each user identifier are preset in the executable program.
[0091] Then, the executable program is executed with different user identifiers to run different Bluetooth processes. Each Bluetooth process will obtain the Bluetooth protocol function corresponding to the user identifier from the executable program, and execute and control the Bluetooth protocol function corresponding to the user identifier.
[0092] For example, the Bluetooth protocol corresponding to the user ID of the user running the Bluetooth application can be set as the Bluetooth protocol adopted by the Bluetooth application. Then, when the user corresponding to the user ID runs the Bluetooth process, the Bluetooth process and the Bluetooth application will adopt the same Bluetooth protocol to facilitate communication. For example, the corresponding relationship between the user ID and the Bluetooth protocol ID can be recorded in a table. The Bluetooth protocol ID is used to represent different Bluetooth protocols and can be identified by different characters.
[0093] This embodiment distinguishes Bluetooth protocol functions through user identifiers to meet Bluetooth protocol requirements of different applications.
[0094] Afterwards, step S302 is executed to perform communication between the Bluetooth application and the Bluetooth process for the same user, and the application Bluetooth information of the Bluetooth application is sent to the Bluetooth process run by the user of the Bluetooth application; or the Bluetooth process is controlled to broadcast the process Bluetooth information, and the Bluetooth application receives the process Bluetooth information of the Bluetooth process run by the same user.
[0095] Specifically, the Bluetooth application communicates with the Bluetooth process of the same user. Figure 4As shown, the Bluetooth application 44 of user User 0 will communicate with the Bluetooth process 41 of the same User 0. Similarly, the Bluetooth application 45 of user User 1 will communicate with the Bluetooth process 42 of the same User 1, and the Bluetooth application 46 of user User 2 will communicate with the Bluetooth process 43 of the same User 2.
[0096] The Bluetooth applications 44 of user User 0 include, but are not limited to: the system's own Bluetooth phone application, the system's Bluetooth setting application, the system's status bar Bluetooth function, and Bluetooth music.
[0097] The Bluetooth application 45 of user User 1 and the application 46 of user User 2 include but are not limited to third-party Bluetooth applications.
[0098] When a Bluetooth application sends information to a Bluetooth module, the application Bluetooth information of the Bluetooth application is sent to a Bluetooth process run by a user of the application.
[0099] At the same time, when the Bluetooth process needs to send information, the Bluetooth process is controlled to broadcast the process Bluetooth information, and the Bluetooth application receives the process Bluetooth information of the same user.
[0100] Among them, Bluetooth broadcasting only communicates internally within the same user, and does not communicate across users. Therefore, Bluetooth applications will only receive the process Bluetooth information of the same user. Taking the Android system as an example, when a Bluetooth application runs the standard interface (Application Programming Interface, API) provided by the system to receive information, it will receive information from the same user, thus only receiving the process Bluetooth information of the same user.
[0101] This embodiment allows the Bluetooth process to be run by the same executable program. Therefore, third-party applications do not need to change the name of the program to be communicated, so that they can be compatible with existing third-party applications and better support the portability of the Bluetooth function of third-party applications. At the same time, when expansion is required, only the running user needs to be modified without making a lot of modifications to the program, which has better scalability to support more modules. This embodiment is aimed at a multi-Bluetooth module system, utilizing a multi-user function, such as the Android MultiU function, and using multiple user identifiers to run multiple Bluetooth processes. The matching relationship between the user identifier and the Bluetooth module is pre-set in the program, so that different Bluetooth processes control different Bluetooth modules according to their respective user identifiers. At the same time, the Bluetooth process can also use different Bluetooth protocol functions according to the user identifier to adapt to the various needs of different applications.
[0102] In one embodiment, after the Bluetooth application in the control operating system communicates with the Bluetooth process run by the same user, the method further includes:
[0103] The Bluetooth application is controlled to communicate with the Bluetooth process run by a user specified by the Bluetooth application.
[0104] Specifically, when a Bluetooth application needs to communicate with a Bluetooth process run by other users to use a Bluetooth module controlled by other users, a private API can be used for communication. In the private API, the Bluetooth application provides the user of the Bluetooth process to be communicated, such as providing a user ID, and the system controls the Bluetooth application to communicate with the Bluetooth process run by the specified user.
[0105] When the Bluetooth application sends information to the Bluetooth module, the application Bluetooth information of the Bluetooth application is sent to the Bluetooth process run by the user specified by the application;
[0106] At the same time, when the Bluetooth process needs to send information, the Bluetooth process broadcasts the process Bluetooth information, and the Bluetooth application receives the process Bluetooth information of the Bluetooth process run by the user specified by it.
[0107] This embodiment enables a Bluetooth application to use the Bluetooth processes of other users, thereby controlling more Bluetooth modules.
[0108] Based on the same inventive concept, Figure 5 FIG. 1 is a schematic diagram of a Bluetooth module control device according to an embodiment of the present invention, comprising:
[0109] The running module 501 is used to control multiple users to run multiple Bluetooth processes for the same executable program, and each of the Bluetooth processes controls an independent Bluetooth module;
[0110] The intra-user communication module 502 is used to control the Bluetooth application in the operating system to communicate with the Bluetooth process run by the same user.
[0111] The present invention controls multiple users to run multiple Bluetooth processes for the same executable program, each of the Bluetooth processes controls an independent Bluetooth module, and controls the Bluetooth application in the operating system to communicate with the Bluetooth process run by the same user. Since the communication of different Bluetooth processes is distinguished by users, the Bluetooth processes are run by the same executable program. Therefore, the third-party application does not need to change the program name to be communicated, so that it can be compatible with existing third-party applications, better support the portability of the Bluetooth function of the third-party application, and when expansion is required, only the running user needs to be modified without a large number of modifications to the program, which has better scalability to support more modules.
[0112] In one embodiment, controlling multiple users to run multiple Bluetooth processes on the same executable program includes:
[0113] For the same executable program, multiple users are controlled to run multiple Bluetooth processes respectively, and each of the Bluetooth processes corresponds to the user identification of the running user.
[0114] In one embodiment, controlling multiple users to respectively run multiple Bluetooth processes includes:
[0115] Get the corresponding relationship between user ID and Bluetooth module;
[0116] According to the corresponding relationship, the user corresponding to the user identifier is controlled to run the Bluetooth process to control the corresponding Bluetooth module.
[0117] In one embodiment, controlling multiple users to respectively run multiple Bluetooth processes includes:
[0118] Control the user to execute Bluetooth protocol functions in the Bluetooth process.
[0119] In one embodiment, controlling the user to execute a Bluetooth protocol function in the Bluetooth process includes:
[0120] Obtaining the Bluetooth protocol function of each of the user identifiers;
[0121] The user corresponding to the user identifier is controlled to execute the corresponding Bluetooth protocol function in the Bluetooth process.
[0122] In one embodiment, the controlling the Bluetooth application in the operating system to communicate with the Bluetooth process run by the same user comprises:
[0123] sending application Bluetooth information of the Bluetooth application to the Bluetooth process run by a user of the Bluetooth application; or
[0124] The Bluetooth process is controlled to broadcast process Bluetooth information, and the Bluetooth application receives the process Bluetooth information of the Bluetooth process run by the same user.
[0125] In one embodiment, it further includes an external communication module for:
[0126] The Bluetooth application is controlled to communicate with the Bluetooth process run by a user specified by the Bluetooth application.
[0127] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0128] like Figure 6 The figure shows a hardware structure diagram of an electronic device of the present invention, including:
[0129] at least one processor 601; and,
[0130] A memory 602 is communicatively connected to at least one of the processors 601; wherein,
[0131] The memory 602 stores instructions that can be executed by at least one of the processors. The instructions are executed by at least one of the processors so that the at least one of the processors can execute the Bluetooth module control method as described above.
[0132] Figure 6 A processor 601 is taken as an example.
[0133] The electronic device may further include: an input device 603 and a display device 604 .
[0134] The processor 601, the memory 602, the input device 603 and the display device 604 may be connected via a bus or other means, and the figure takes the connection via a bus as an example.
[0135] The memory 602 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the Bluetooth module control method in the embodiment of the present application, for example, Figure 1 , Figure 2 The processor 601 executes various functional applications and data processing by running the non-volatile software programs, instructions and modules stored in the memory 602, that is, the Bluetooth module control method in the above embodiment is implemented.
[0136] The memory 602 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the Bluetooth module control method, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 602 may optionally include a memory remotely arranged relative to the processor 601, and these remote memories may be connected to the device for executing the Bluetooth module control method via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0137] The input device 603 can receive user clicks and generate signal inputs related to user settings and function control of the Bluetooth module control method. The display device 604 can include display devices such as a display screen.
[0138] The one or more modules are stored in the memory 602 and when executed by the one or more processors 601 , the Bluetooth module control method in any of the above method embodiments is executed.
[0139] The present invention controls multiple users to run multiple Bluetooth processes for the same executable program, each of the Bluetooth processes controls an independent Bluetooth module, and controls the Bluetooth application in the operating system to communicate with the Bluetooth process run by the same user. Since the communication of different Bluetooth processes is distinguished by users, the Bluetooth processes are run by the same executable program. Therefore, the third-party application does not need to change the program name to be communicated, so that it can be compatible with existing third-party applications, better support the portability of the Bluetooth function of the third-party application, and when expansion is required, only the running user needs to be modified without a large number of modifications to the program, which has better scalability to support more modules.
[0140] An embodiment of the present invention provides a storage medium, wherein the storage medium stores computer instructions. When a computer executes the computer instructions, the storage medium is used to execute all steps of the Bluetooth module control method as described above.
[0141] In the context of the present disclosure, a storage medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or apparatus. The storage medium may be a machine-readable signal medium or a machine-readable storage medium. Alternatively, the storage medium may be a non-temporary computer-readable storage medium, for example, a non-temporary computer-readable storage medium may be a ROM, a random access memory (Random Access Memory, RAM), a compact disc read-only memory (Compact Disc ROM, CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0142] An embodiment of the present invention provides a vehicle, including the Bluetooth module control device as described above, or the electronic device as described above. It is understandable that the vehicle may also include: a processor, a memory, and a computer program. The computer program is stored in the memory and is configured to be executed by the processor to implement the Bluetooth module control method provided in the embodiment of the present disclosure. The processor and the memory are already in Figure 6 The parts described in the illustrated embodiment are not repeated here.
[0143] Among them, the Bluetooth module control device or electronic device controls the vehicle's operating system to execute the Bluetooth module control method provided by the embodiment of the present disclosure to control the vehicle's Bluetooth application to communicate with the vehicle's Bluetooth module.
[0144] The vehicle's Bluetooth application can be any application with Bluetooth function in the vehicle's head unit. The vehicle's Bluetooth application includes but is not limited to the vehicle's Bluetooth phone application, the vehicle's Bluetooth setting application, the vehicle's status bar Bluetooth function, the vehicle's Bluetooth music, and third-party Bluetooth applications. The vehicle's operating system is preferably an Android system.
[0145] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A Bluetooth module control method, It is characterized in that include: A user controlling multiple operating systems can run multiple Bluetooth processes for the same executable program, each of which controls an independent Bluetooth module; A Bluetooth application in the operating system is controlled to communicate with the Bluetooth process run by the same user.
2. The Bluetooth module control method according to claim 1, It is characterized in that The controlling multiple users to run multiple Bluetooth processes on the same executable program includes: For the same executable program, multiple users are controlled to run multiple Bluetooth processes respectively, and each of the Bluetooth processes corresponds to the user identification of the running user.
3. The Bluetooth module control method according to claim 2, It is characterized in that The controlling multiple users to respectively run multiple Bluetooth processes includes: Get the corresponding relationship between user ID and Bluetooth module; According to the corresponding relationship, the user corresponding to the user identifier is controlled to run the Bluetooth process to control the corresponding Bluetooth module.
4. The Bluetooth module control method according to claim 2, It is characterized in that The controlling multiple users to respectively run multiple Bluetooth processes includes: Control the user to execute Bluetooth protocol functions in the Bluetooth process.
5. The Bluetooth module control method according to claim 4, It is characterized in that The controlling the user to execute the Bluetooth protocol function in the Bluetooth process includes: Obtaining the Bluetooth protocol function of each of the user identifiers; The user corresponding to the user identifier is controlled to execute the corresponding Bluetooth protocol function in the Bluetooth process.
6. The Bluetooth module control method according to claim 1, It is characterized in that The controlling the Bluetooth application in the operating system to communicate with the Bluetooth process run by the same user comprises: sending application Bluetooth information of the Bluetooth application to the Bluetooth process run by a user of the Bluetooth application; or The Bluetooth process is controlled to broadcast process Bluetooth information, and the Bluetooth application receives the process Bluetooth information of the Bluetooth process run by the same user.
7. The Bluetooth module control method according to claim 1, It is characterized in that After the Bluetooth application in the control operating system communicates with the Bluetooth process run by the same user, the method further includes: The Bluetooth application is controlled to communicate with the Bluetooth process run by a user specified by the Bluetooth application.
8. A Bluetooth module control device, It is characterized in that include: A running module, used to control multiple users to run multiple Bluetooth processes for the same executable program, each of which controls an independent Bluetooth module; The intra-user communication module is used to control the Bluetooth application in the operating system to communicate with the Bluetooth process run by the same user.
9. An electronic device, It is characterized in that include: at least one processor; as well as, a memory communicatively connected to at least one of the processors; wherein, The memory stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors so that at least one of the processors can execute the Bluetooth module control method according to any one of claims 1 to 7.
10. A vehicle, It is characterized in that It includes the Bluetooth module control device as claimed in claim 8, or the electronic device as claimed in claim 9.