Bluetooth Automatic Connection Method, Device, User Equipment and Vehicle-mounted Equipment
By using a non-Bluetooth wireless network to obtain the authentication code during Bluetooth connection, automatic authentication of Bluetooth connection is achieved, solving the problem of user manual operation in the existing technology, and improving the user experience.
Patent Information
- Application Number
- CN202110534472.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-17
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2041-05-17
AI Technical Summary
The existing Bluetooth technology requires user manual authentication when establishing a connection for the first time, resulting in poor user experience.
Obtain the authentication code through a non-Bluetooth wireless network, and automatically perform Bluetooth connection authentication based on the authentication code to avoid manual operations by users.
It realizes automatic authentication without user access confirmation during the first Bluetooth connection, improving the convenience and user experience of Bluetooth connection.
Smart Images

Figure CN115379415B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automotive technologies, particularly to the field of intelligent vehicle technologies, and specifically provides a Bluetooth automatic connection method, device, user equipment, and vehicle-mounted equipment. Background Art
[0002] Bluetooth technology is a cutting-edge open wireless communication standard that can wirelessly connect desktop computers, laptops, portable devices, PDAs, mobile phones, camera phones, printers, digital cameras, headsets, keyboards, and even computer mice within a short range.
[0003] Bluetooth wireless technology uses a globally available frequency band (2.4 GHz) and can be used without hindrance around the world. With the increasingly widespread application of Bluetooth technology in wireless terminals, it has also become a catalyst for the development and industrialization of the Internet of Things. The Bluetooth baseband part provides protection and information confidentiality mechanisms for users at the physical layer. Personal information in the connection is protected through encryption. The encryption key is usually managed by the upper layer of the program. Network transfer protocols and application programs can also provide security mechanisms for users.
[0004] Among them, authentication is a key part of Bluetooth communication, which allows users to establish a trust domain for personal Bluetooth devices. For example, only the user's own laptop is allowed to communicate through the user's own mobile phone. Authentication is based on the "request-response" algorithm. Currently, when Bluetooth is first established, users need to perform manual operations for authentication. After the first authentication, subsequent Bluetooth communications can be automatically connected based on the first authentication information. Summary of the Invention
[0005] An object of the present invention is to provide a Bluetooth automatic connection method, device, user equipment, and vehicle-mounted equipment, which can avoid the need for users to perform manual operations for authentication when initially establishing a Bluetooth connection, and achieve automatic authentication without user access confirmation when initially establishing a Bluetooth connection.
[0006] Another object of the present invention is to provide a Bluetooth automatic connection method, device, user equipment, and vehicle-mounted equipment. When the Bluetooth connection is a first connection, by obtaining an authentication code through a non-Bluetooth wireless network and authenticating the Bluetooth connection based on the authentication code, users can avoid the need for manual operations for authentication when initially establishing a Bluetooth connection, achieve automatic authentication without user access confirmation when initially establishing a Bluetooth connection, and improve the convenience of Bluetooth connection.
[0007] Another object of the present invention is to provide a Bluetooth automatic connection method, device, user equipment and vehicle-mounted equipment, wherein the application program that issues a Bluetooth demand signal is authenticated as a trusted application program through an authentication code, a higher-level trust relationship for Bluetooth connection is established, and automatic authentication without user access confirmation is realized when the Bluetooth connection is established for the first time.
[0008] To achieve the above object, in a first aspect, the present invention provides a Bluetooth automatic connection method, which is applied to user equipment and includes the following steps: when detecting a Bluetooth demand signal sent by an application program, start a Bluetooth connection and determine whether the Bluetooth connection is a first connection; when the Bluetooth connection is a first connection, obtain an authentication code from the vehicle-mounted equipment through a pre-established non-Bluetooth wireless network; authenticate the Bluetooth connection initiated by the application program based on the authentication code; after the Bluetooth connection initiated by the application program passes the authentication, confirm that the Bluetooth connection initiated by the application program is a secure connection, and establish a Bluetooth connection between the user equipment and the vehicle-mounted equipment, avoiding the need for the user to manually operate for authentication when the Bluetooth connection is established for the first time, and realizing automatic authentication without user access confirmation when the Bluetooth connection is established for the first time.
[0009] Wherein, the authenticating the Bluetooth connection initiated by the application program based on the authentication code includes: matching the obtained authentication code with a locally stored authentication code in the user equipment; when the authentication code matches the locally stored authentication code in the user equipment, authenticate the application program as a trusted application program; after authenticating the application program as a trusted application program, confirm that the Bluetooth connection initiated by the application program is a secure connection. The application program that issues a Bluetooth demand signal is authenticated as a trusted application program through the authentication code, a higher-level trust relationship for Bluetooth connection is established, and automatic authentication without user access confirmation is realized when the Bluetooth connection is established for the first time.
[0010] In a second aspect, the present invention provides a Bluetooth automatic connection method, which is applied to vehicle-mounted equipment and includes the following steps: when detecting a Bluetooth demand signal sent by an application program projected by the user equipment in the vehicle-mounted equipment, obtain the authentication code of the pre-stored user equipment; send the authentication code to the user equipment for the user equipment to authenticate the Bluetooth connection; after the user equipment authenticates the Bluetooth connection, establish a connection with the user equipment.
[0011] In a third aspect, the present invention provides a Bluetooth automatic connection device applied to a user device, including: a first connection detection module, which starts a Bluetooth connection and determines whether the Bluetooth connection is a first connection when detecting a Bluetooth demand signal sent by an application program; an authentication code acquisition module, which acquires an authentication code from a vehicle-mounted device through a non-Bluetooth wireless network with a pre-established connection when the Bluetooth connection is a first connection; an authentication module, which authenticates the Bluetooth connection initiated by the application program based on the authentication code; and a connection confirmation module, which confirms that the Bluetooth connection initiated by the application program is a secure connection and establishes a Bluetooth connection between the user device and the vehicle-mounted device after the Bluetooth connection initiated by the application program passes the authentication.
[0012] In a fourth aspect, the present invention provides a Bluetooth automatic connection device applied to a vehicle-mounted device, including: an authentication code acquisition module, which acquires the pre-stored authentication code of a user device when detecting a Bluetooth demand signal sent by an application program projected from the user device in the vehicle-mounted device; an authentication code sending module, which sends the authentication code to the user device for the user device to authenticate the Bluetooth connection; and a Bluetooth connection module, which establishes a connection with the user device after the user device passes the authentication of the Bluetooth connection.
[0013] In a fifth aspect, the present invention provides a user device, which includes a memory for storing a computer program; and a processor connected to the memory for running the computer program to implement the Bluetooth automatic connection method applied to the user device as described above.
[0014] In a sixth aspect, the present invention provides a vehicle-mounted device, which includes a memory for storing a computer program; and a processor connected to the memory for running the computer program to implement the Bluetooth automatic connection method applied to the vehicle-mounted device as described above. Description of the Drawings
[0015] Figure 1 It shows an application schematic diagram of the Bluetooth automatic connection method of the present invention in an embodiment;
[0016] Figure 2 It shows a principle flowchart of the Bluetooth automatic connection method of the present invention in an embodiment when applied to a user device;
[0017] Figure 3 It shows a principle flowchart of Bluetooth authentication of the Bluetooth automatic connection method of the present invention in an embodiment when applied to a user device;
[0018] Figure 4Schematic diagram of network transmission of screen mirroring data in an embodiment when the Bluetooth automatic connection method of the present invention is applied to a user device;
[0019] Figure 5 Schematic flowchart of the principle in an embodiment when the Bluetooth automatic connection method of the present invention is applied to a vehicle-mounted device;
[0020] Figure 6 Schematic block diagram of the principle in an embodiment when the Bluetooth automatic connection device of the present invention is used for a user device;
[0021] Figure 7 Schematic block diagram of the principle in an embodiment when the Bluetooth automatic connection device of the present invention is used for a vehicle-mounted device;
[0022] Figure 8 Schematic diagram of the principle structure in an embodiment of the user device of the present invention;
[0023] Figure 9 Schematic diagram of the principle structure in an embodiment of the vehicle-mounted device of the present invention;
[0024] Description of component labels
[0025] 10 User device
[0026] 101 Processor
[0027] 102 Memory
[0028] 20 Vehicle-mounted device
[0029] 201 Processor
[0030] 202 Memory
[0031] 30 Vehicle
[0032] 100 Bluetooth automatic connection device
[0033] 110 First connection detection module
[0034] 120 Authentication code acquisition module
[0035] 130 Authentication module
[0036] 140 Confirm connection module
[0037] 200 Bluetooth automatic connection device
[0038] 210 Authentication code acquisition module
[0039] 220 Authentication code sending module
[0040] 230 Bluetooth connection module
[0041] Steps S110 to S140
[0042] Steps S131 to S133
[0043] Steps S210 to S220 Specific Embodiment
[0044] The following describes the embodiments of the present invention through specific examples. Those skilled in the art can easily understand the other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments. Various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, without conflict, the following embodiments and the features in the embodiments can be combined with each other.
[0045] It should be noted that the diagrams provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner. Therefore, only the components related to the present invention are shown in the diagrams, rather than being drawn according to the number, shape, and size of the components in actual implementation. The type, quantity, and proportion of each component in actual implementation can be arbitrarily changed, and the component layout type may also be more complex.
[0046] This embodiment provides a Bluetooth automatic connection method, device, user equipment, and vehicle equipment, which can avoid the need for users to manually operate for authentication when establishing a Bluetooth connection for the first time, and achieve automatic authentication without the need for user access confirmation when establishing a Bluetooth connection for the first time.
[0047] Figure 1 It is shown as an application schematic diagram of the Bluetooth automatic connection method of this embodiment. Figure 1 In the user equipment 10 includes but is not limited to intelligent mobile devices of users such as mobile phones, PADs, wearable devices, intelligent AI devices, etc. Among them, an application program (such as a screen mirroring application program, a vehicle head unit control program, etc.) is installed in the user equipment 10. The Figure 1 In the vehicle equipment 20 is installed in the vehicle 30, and the vehicle 30 is a car or a two-wheeled electric vehicle. The vehicle equipment 20 includes but is not limited to an in-vehicle head unit, an in-vehicle box, etc. installed with a Bluetooth module, which can establish a connection with the user equipment 10 through Bluetooth and interact with the application program in the user equipment 10. Such as Figure 1As shown, in the Bluetooth automatic connection method of this embodiment, when the user device 10 with the application installed and the in-vehicle device 20 in the vehicle 30 have established a connection through a non-Bluetooth wireless network (such as wifi, GPRS, 2 / 3 / 4 / 5G wireless network), when the user device 10 and the in-vehicle device 20 perform the first Bluetooth connection, the first Bluetooth connection is authenticated based on the authentication code of the user device 10 pre-stored in the in-vehicle device 20 to confirm that the Bluetooth connection is a secure connection, and the Bluetooth connection between the user device 10 and the in-vehicle device 20 is established, enabling the user to avoid the need for manual operation by the user for authentication during the first establishment of the Bluetooth connection, realizing automatic authentication without the need for user access confirmation during the first establishment of the Bluetooth connection, and improving the convenience of the Bluetooth connection.
[0048] The principles and implementation manners of the Bluetooth automatic connection method, the user device 10, and the storage medium of this embodiment will be elaborated in detail below, enabling those skilled in the art to understand the Bluetooth automatic connection method, the user device 10, and the storage medium of this embodiment without creative labor.
[0049] This embodiment provides a Bluetooth automatic connection method. Figure 2 It is shown as the principle flowchart when the Bluetooth automatic connection method of this embodiment is applied to the user device. As Figure 2 shown, the Bluetooth automatic connection method includes the following steps:
[0050] Step S110: When detecting a Bluetooth demand signal sent by the application, start the Bluetooth connection and determine whether the Bluetooth connection is the first connection;
[0051] Step S120: When the Bluetooth connection is the first connection, obtain the authentication code from the in-vehicle device through the pre-established non-Bluetooth wireless network;
[0052] Step S130: Authenticate the Bluetooth connection initiated by the application based on the authentication code;
[0053] Step S140: After the Bluetooth connection initiated by the application passes the authentication, confirm that the Bluetooth connection initiated by the application is a secure connection, and establish the Bluetooth connection between the user device and the in-vehicle device.
[0054] The following details steps S110 to S140 of the Bluetooth automatic connection method of this embodiment.
[0055] Step S110: When detecting a Bluetooth demand signal sent by the application, start the Bluetooth connection and determine whether the Bluetooth connection is the first connection.
[0056] Specifically, in this embodiment, the user equipment 10 detects a Bluetooth demand signal sent by an application program, starts a Bluetooth connection, scans for connectable Bluetooth signals, and detects the Bluetooth signal strength of the connectable Bluetooth signals. When the detected Bluetooth signal strength is within a preset signal strength range, it is determined whether the Bluetooth connection is a first connection: it is determined whether there is connection information of the vehicle-mounted device 20 to which the connectable Bluetooth signal belongs in the Bluetooth connection list, that is, it is determined whether the vehicle-mounted device 20 to which the connectable Bluetooth signal belongs has established a Bluetooth connection with the user equipment 10. If not, it is determined that the Bluetooth connection is a first connection; if so, it is determined that the Bluetooth connection is not a first connection.
[0057] Step S120: When the Bluetooth connection is a first connection, obtain an authentication code from the vehicle-mounted device 20 through a non-Bluetooth wireless network with a pre-established connection.
[0058] In this embodiment, the user equipment 10 and the vehicle-mounted device 20 pre-establish non-Bluetooth wireless networks such as Wi-Fi, GPRS, 2G / 3G / 4G / 5G wireless networks.
[0059] The vehicle-mounted device 20 pre-stores the authentication code of the user equipment 10, where the authentication code of the user equipment 10 is an authentication code exclusive to the user equipment 10 provided by the manufacturer of the user equipment 10. The authentication code of the user equipment 10 is pre-stored in the vehicle-mounted device 20. When the user equipment 10 requests to establish Bluetooth communication with the vehicle-mounted device 20, through a non-Bluetooth wireless network such as Wi-Fi, GPRS, 2G / 3G / 4G / 5G wireless networks pre-established with the vehicle-mounted device 20, the authentication code exclusive to the user equipment 10 in the vehicle-mounted device 20 is sent to the user equipment 10.
[0060] In this embodiment, the authentication code exclusive to the user equipment 10 can be directly stored in the vehicle-mounted device 20 or stored in the cloud server of the vehicle-mounted device 20. When the user equipment 10 requests to establish Bluetooth communication with the vehicle-mounted device 20, the vehicle-mounted device 20 downloads and obtains the corresponding authentication code from the cloud server.
[0061] Step S130: Authenticate the Bluetooth connection initiated by the application program based on the authentication code.
[0062] Specifically, in this embodiment, as Figure 3 shown, the authenticating the Bluetooth connection initiated by the application program based on the authentication code includes:
[0063] Step S131: Match the obtained authentication code with the local authentication code pre-stored in the user equipment 10;
[0064] Step S132: When the authentication code matches the local authentication code pre-stored in the user device 10, authenticate the application as a trustworthy application;
[0065] Step S133: After authenticating the application as a trustworthy application, confirm that the Bluetooth connection initiated by the application is a secure connection.
[0066] In this embodiment, the authentication code obtained from the vehicle-mounted device 20 is compared with the local authentication code of the user device 10 to determine that the application initiating the Bluetooth connection is a secure and trustworthy application, and then confirm that the Bluetooth connection initiated by the application is a secure connection.
[0067] Step S140: After the Bluetooth connection initiated by the application passes the authentication, confirm that the Bluetooth connection initiated by the application is a secure connection, and establish a Bluetooth connection between the user device 10 and the vehicle-mounted device 20.
[0068] In this embodiment, the application that issues the Bluetooth demand signal is authenticated as a trustworthy application through the authentication code, establishing a higher-level trust relationship for the Bluetooth connection, and realizing automatic authentication without the need for user access confirmation when establishing the Bluetooth connection for the first time.
[0069] In addition, in this embodiment, the Bluetooth automatic connection method further includes: in response to the connection between the user device 10 and the vehicle-mounted device 20, prompting that the user device 10 and the vehicle-mounted device 20 have been connected; wherein, the prompting methods include: controlling the user device 10 to light up the screen, pop-up window prompt, voice prompt, or a combination of one or more of them.
[0070] For example, after the user device 10 and the vehicle-mounted device 20 are connected, the user is prompted that the user device 10 and the vehicle-mounted device 20 are connected by controlling the user device 10 to light up the screen. For example, when the vehicle head unit and the mobile phone Bluetooth connection is successful, the mobile phone lock screen display is triggered to light up the screen.
[0071] For another example, after the user device 10 and the vehicle-mounted device 20 are connected, a message box can also be popped up under the lock screen of the user device 10 for a pop-up window prompt. For example, when the vehicle head unit and the mobile phone Bluetooth connection is successful, the message “Bluetooth connection has been established” is popped up on the mobile phone screen.
[0072] In addition, after the user device 10 and the vehicle-mounted device 20 are connected, it can also be prompted by voice or vibration. For example, when the vehicle head unit and the mobile phone Bluetooth connection is successful, the mobile phone plays: “Bluetooth connection has been established”.
[0073] Therefore, in the Bluetooth automatic connection method of this embodiment, when the user device 10 and the vehicle-mounted device 20 establish a Bluetooth connection for the first time, authentication is automatically performed, achieving the effect of seamless authentication and effectively improving the user experience.
[0074] In this embodiment, an audio signal is transmitted to the vehicle-mounted device 20 through the established Bluetooth connection, and a video signal is transmitted to the vehicle-mounted device 20 through the non-Bluetooth wireless network.
[0075] In this embodiment, as Figure 4 shown, the application program of the user device 10 is a screen mirroring application program. When the video stream of the user device 10 is cast to the vehicle-mounted device 20, the audio signal is transmitted through the Bluetooth network, and the video signal is transmitted through a non-Bluetooth wireless network such as Wi-Fi. After the user device 10 and the vehicle-mounted device 20 establish a connection through Wi-Fi and need to establish a Bluetooth connection, the Bluetooth automatic connection method of this embodiment is automatically used to establish a Bluetooth connection between the user device 10 and the vehicle-mounted device 20. Then, an audio signal is transmitted to the vehicle-mounted device 20 through the established Bluetooth connection, and a video signal is transmitted to the vehicle-mounted device 20 through the non-Bluetooth wireless network.
[0076] This embodiment also provides a Bluetooth automatic connection method, which is applied to the vehicle-mounted device 20. Figure 5 The following shows the principle flowchart when the Bluetooth automatic connection method of this embodiment is applied to the vehicle-mounted device 20. As Figure 5 shown, when the Bluetooth automatic connection method is applied to the vehicle-mounted device 20, it includes the following steps:
[0077] Step S210: When detecting a Bluetooth demand signal sent by the application program mirrored from the user device 10 in the vehicle-mounted device 20, obtain the pre-stored authentication code of the user device 10.
[0078] Among them, the vehicle-mounted device 20 pre-stores the authentication code of the user device 10, or the vehicle-mounted device 20 obtains the authentication code of the user device 10 pre-stored in the cloud server from the cloud server.
[0079] Step S220: Send the authentication code to the user device 10 for the user device 10 to authenticate the Bluetooth connection.
[0080] Step S230: After the user device 10 authenticates the Bluetooth connection, establish a connection with the user device 10.
[0081] That is to say, in this embodiment, when the application program initiating the Bluetooth connection needs to be authenticated, it can obtain the authentication code (certification code) from the in-vehicle device 20 or the cloud server, authenticate the application program as a secure application program, and the user device 10 will authenticate the Bluetooth connection initiated by the application program as a secure connection. If it is not a connection initiated by a third-party application program, fast authentication can be performed.
[0082] As Figure 6 shown, this embodiment also provides a Bluetooth automatic connection device 100, which is applied to the user device 10. The Bluetooth automatic connection device 100 includes: a first connection detection module 110, an authentication code acquisition module 120, an authentication module 130, and a connection confirmation module 140.
[0083] In this embodiment, when the first connection detection module 110 detects a Bluetooth demand signal sent by the application program, it starts the Bluetooth connection and determines whether the Bluetooth connection is a first connection.
[0084] In this embodiment, when the Bluetooth connection is a first connection, the authentication code acquisition module 120 obtains the authentication code from the in-vehicle device 20 through a non-Bluetooth wireless network with a pre-established connection.
[0085] In this embodiment, the authentication module 130 authenticates the Bluetooth connection initiated by the application program based on the authentication code.
[0086] In this embodiment, after the Bluetooth connection initiated by the application program passes the authentication, the connection confirmation module 140 confirms that the Bluetooth connection initiated by the application program is a secure connection and establishes a Bluetooth connection between the user device 10 and the in-vehicle device 20.
[0087] In this embodiment, the technical features and implementation principles of the Bluetooth automatic connection device 100 applied to the user device 10 are the same as those of steps S110 to S140 in the Bluetooth automatic connection method applied to the user device 10 in this embodiment. The common technical features between the device and the method will not be elaborated.
[0088] As Figure 7 shown, this embodiment also provides a Bluetooth automatic connection device 200, which is applied to the in-vehicle device 20. The Bluetooth automatic connection device 200 includes: an authentication code acquisition module 210, an authentication code sending module 220, and a Bluetooth connection module 230.
[0089] In this embodiment, when the authentication code acquisition module 210 detects a Bluetooth demand signal sent by the application program projected by the user device 10 in the in-vehicle device 20, it acquires the pre-stored authentication code of the user device 10;
[0090] In this embodiment, the authentication code sending module 220 sends the authentication code to the user device 10 for the user device 10 to authenticate the Bluetooth connection;
[0091] In this embodiment, after the user device 10 authenticates the Bluetooth connection, the Bluetooth connection module 230 establishes a connection with the user device 10.
[0092] In this embodiment, the technical features and implementation principles of the Bluetooth automatic connection device 100 applied to the vehicle-mounted device 20 are the same as those of the steps S210 to S220 of the Bluetooth automatic connection method applied to the vehicle-mounted device 20 in this embodiment. The common technical features between the device and the method will not be described in detail.
[0093] As Figure 8 shown, this embodiment further provides a user device 10, which is a mobile device of users such as a mobile phone, a PAD, a wearable device, and a smart AI device; the user device 10 includes a memory 102 for storing a computer program; a processor 101 for running the computer program to implement the above-mentioned Bluetooth automatic connection method applied to the user device 10.
[0094] The memory 102 is connected to the processor 101 through a system bus and completes communication with each other. The memory 102 is used to store a computer program, and the processor 101 is used to run the computer program so that the user device 10 executes the Figures 2 to 4 Bluetooth automatic connection method as shown. The above-mentioned Bluetooth automatic connection method has been described in detail and will not be repeated here.
[0095] It should be further noted that the above-mentioned system bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This system bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of simplicity, only a thick line is shown in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used to implement communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory 102 may include a Random Access Memory (RAM), and may also include a non-volatile memory, such as at least one disk memory.
[0096] The above-mentioned processor 101 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be 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.
[0097] As Figure 9 shown, this embodiment also provides a vehicle-mounted device 20, which is an electronic device such as a car computer or a vehicle-mounted box that can establish a connection with the user device 10 through Bluetooth and interact with the application programs in the user device 10; the vehicle-mounted device 20 includes a memory 202 for storing computer programs; a processor 201 for running the computer programs to implement the above-mentioned Bluetooth automatic connection method applied to the vehicle-mounted device 20.
[0098] The memory 202 is connected to the processor 201 through a system bus and completes communication with each other. The memory 102 is used for storing computer programs, and the processor 201 is used for running the computer programs to enable the user device 10 to execute the Figure 5 Bluetooth automatic connection method shown. The above-mentioned Bluetooth automatic connection method has been described in detail and will not be elaborated here.
[0099] It should be noted that the above-mentioned system bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. This system bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, only a thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used to implement the communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory 202 may include a random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory.
[0100] The above-mentioned processor 201 can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be 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.
[0101] In addition, this embodiment also provides a storage medium storing program instructions, and when the program instructions are executed by the processor 101 or the processor 201, the above-mentioned Bluetooth automatic connection method is implemented. The above-mentioned Bluetooth automatic connection method has been described in detail, and will not be elaborated here.
[0102] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to a computer program. The foregoing computer program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments; and the foregoing storage medium includes: various media such as ROM, RAM, magnetic disks, or optical discs that can store program codes.
[0103] In summary, the present invention can avoid the need for users to manually operate for authentication when establishing a Bluetooth connection for the first time, and realize automatic authentication without user access confirmation when establishing a Bluetooth connection for the first time; authenticate the application program that sends the Bluetooth demand signal as a trusted application program through the authentication code, and establish a higher-level trust relationship for the Bluetooth connection, so as to realize automatic authentication without user access confirmation when establishing a Bluetooth connection for the first time. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.
[0104] The above embodiments are only illustrative of the principles and effects of the present invention, and are not used to limit the present invention. Any person familiar with this technology can modify or change the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or changes completed by those with ordinary knowledge in the technical field without departing from the spirit and technical idea disclosed by the present invention should still be covered by the claims of the present invention.
Claims
1. A Bluetooth automatic connection method, applied to a user device, characterized in that, it includes the following steps: When detecting a Bluetooth demand signal sent by an application program, start a Bluetooth connection and determine whether the Bluetooth connection is a first connection; When the Bluetooth connection is a first connection, obtain an authentication code from a vehicle-mounted device through a pre-established non-Bluetooth wireless network; Authenticate the Bluetooth connection initiated by the application program based on the authentication code; After confirming that the Bluetooth connection initiated by the application program is a secure connection, establish a Bluetooth connection between the user device and the vehicle-mounted device; The authenticating the Bluetooth connection initiated by the application program based on the authentication code includes: Match the obtained authentication code with a locally stored authentication code in the user device; When the authentication code matches the locally stored authentication code in the user device, authenticate the application program as a trusted application program; After authenticating the application program as a trusted application program, confirm that the Bluetooth connection initiated by the application program is a secure connection.
2. The method according to claim 1, wherein, Transmit an audio signal to the vehicle-mounted device through the established Bluetooth connection, and transmit a video signal to the vehicle-mounted device through the non-Bluetooth wireless network.
3. A Bluetooth automatic connection method, applied to a vehicle-mounted device, characterized in that, it includes the following steps: When detecting a Bluetooth demand signal sent by an application program projected from a user device in the vehicle-mounted device, obtain the pre-stored authentication code of the user device; Send the authentication code to the user device for the user device to authenticate the Bluetooth connection; When the authentication code matches the locally stored authentication code in the user device, authenticate the application program as a trusted application program; After authenticating the application program as a trusted application program, confirm that the Bluetooth connection initiated by the application program is a secure connection; After the user device confirms that the Bluetooth connection initiated by the application program is a secure connection, establish a connection with the user device.
4. The method according to claim 3, wherein, The authentication code is pre-stored in the vehicle-mounted device or the cloud server of the vehicle-mounted device.
5. The method according to claim 3, wherein, The obtaining the pre-stored authentication code of the user device includes: Collect user device information of a user device that has established a connection with the vehicle-mounted device through a wireless network; Based on the user device information, check whether there is an authentication code associated with the user device in the pre-stored authentication code list.
6. A Bluetooth automatic connection device, applied to a user device, characterized in that, it includes: A first connection detection module, which starts a Bluetooth connection and determines whether the Bluetooth connection is a first connection when detecting a Bluetooth demand signal sent by an application program; An authentication code acquisition module, which obtains an authentication code from a vehicle-mounted device through a pre-established non-Bluetooth wireless network when the Bluetooth connection is a first connection; An authentication module, which authenticates the Bluetooth connection initiated by the application program based on the authentication code; A confirmation connection module, which establishes a Bluetooth connection between the user device and the vehicle-mounted device after confirming that the Bluetooth connection initiated by the application is a secure connection; The authentication of the Bluetooth connection initiated by the application based on the authentication code includes: Matching the obtained authentication code with the locally stored authentication code in the user device; When the authentication code matches the locally stored authentication code in the user device, authenticating the application as a trustworthy application; After authenticating the application as a trustworthy application, confirming that the Bluetooth connection initiated by the application is a secure connection.
7. A Bluetooth automatic connection device, applied to a vehicle-mounted device, Characterized in that, It includes: An authentication code acquisition module, which acquires the pre-stored authentication code of the user device when detecting a Bluetooth demand signal sent by the application projected from the user device in the vehicle-mounted device; An authentication code sending module, which sends the authentication code to the user device for the user device to authenticate the Bluetooth connection. When the authentication code matches the locally stored authentication code in the user device, authenticating the application as a trustworthy application; After authenticating the application as a trustworthy application, confirming that the Bluetooth connection initiated by the application is a secure connection; A Bluetooth connection module, which establishes a connection with the user device after the user device confirms that the Bluetooth connection initiated by the application is a secure connection.
8. A user device, Wherein, It includes a memory for storing a computer program; a processor connected to the memory for running the computer program to implement the method according to any one of claims 1 to 2.
9. A vehicle-mounted device, Wherein, It includes a memory for storing a computer program; A processor connected to the memory for running the computer program to implement the method according to any one of claims 3 to 5.
Citation Information
Patent Citations
Connection method and device for bluetooth communication
CN106658356A
Bluetooth connection method and apparatus, computer device and computer readable storage medium
CN107277752A