Disclosure of Invention
Based on this, the present invention aims to provide a method, a system, a computer and a readable storage medium for automatic activation of a bluetooth key, so as to solve the problem that in the prior art, both the activation and connection processes of the bluetooth key need to be initiated from a mobile terminal of a user, so that the user needs to perform additional manual connection.
The first aspect of the invention provides a method for automatically activating a Bluetooth key, which comprises the following steps:
when the vehicle-mounted terminal receives a trigger signal, the vehicle-mounted terminal starts a vehicle-mounted Bluetooth module and enables the vehicle-mounted Bluetooth module to initiate a Bluetooth pairing request to the mobile terminal;
when the mobile terminal receives the Bluetooth pairing request, the mobile terminal establishes wireless network connection with a cloud server and sends a key downloading request instruction to the cloud server;
when the mobile terminal receives a first Bluetooth key sent by the cloud server, the mobile terminal performs key authentication on the first Bluetooth key and a second Bluetooth key preset in the vehicle-mounted terminal so as to activate the key state of the vehicle-mounted terminal.
The beneficial effects of the invention are as follows: the vehicle-mounted terminal receives the trigger signal so that the vehicle-mounted terminal can start the vehicle-mounted Bluetooth module and enable the vehicle-mounted Bluetooth module to initiate a Bluetooth pairing request to the mobile terminal, further, as long as the mobile terminal receives the Bluetooth pairing request, the mobile terminal can establish wireless communication connection with the cloud server to send a key downloading request instruction to the cloud server, and finally, the key state of the vehicle-mounted terminal can be automatically activated only by carrying out key authentication on a first Bluetooth key received by the mobile terminal and a second Bluetooth key preset in the vehicle-mounted terminal. Through the mode, the automatic activation of the Bluetooth key between the mobile terminal and the vehicle-mounted terminal of the user can be realized, the user is not required to manually activate the Bluetooth key, and the Bluetooth key activation method is simple and convenient, so that the use experience of the user is greatly improved.
Preferably, when the vehicle-mounted terminal receives the trigger signal, the step of enabling the vehicle-mounted bluetooth module and enabling the vehicle-mounted bluetooth module to initiate a bluetooth pairing request to the mobile terminal includes:
when the vehicle-mounted terminal receives the sensing signals acquired by the seat sensor and the image signals acquired by the camera, the vehicle-mounted terminal starts the vehicle-mounted Bluetooth module through the CAN network, and enables the vehicle-mounted Bluetooth module to start Bluetooth broadcasting to initiate a Bluetooth pairing request to the mobile terminal.
Preferably, when the mobile terminal receives the bluetooth pairing request, the step of establishing a wireless network connection between the mobile terminal and a cloud server and sending a key downloading request instruction to the cloud server includes:
when the mobile terminal receives the Bluetooth pairing request, the mobile terminal judges whether a Bluetooth certificate in the Bluetooth pairing request is legal or not;
if the Bluetooth certificate is legal, the mobile terminal invokes a Bluetooth key downloading interface through a preset SDK, and triggers to establish wireless network connection with the cloud server through the SDK;
after the mobile terminal establishes wireless network connection with the cloud server, the mobile terminal sends a key downloading request instruction to the cloud server.
Preferably, after the step that the mobile terminal sends a key downloading request instruction to the cloud server after the mobile terminal establishes a wireless network connection with the cloud server, the method further includes:
after the cloud server receives the key downloading request instruction, the cloud server identifies a vehicle identification code corresponding to the vehicle-mounted terminal and a mobile phone identifier corresponding to the mobile terminal so as to generate the first Bluetooth key;
and the cloud server sends the first Bluetooth key to the mobile terminal through an SDK network.
Preferably, after the step of performing key authentication on the first bluetooth key and a second bluetooth key preset in the vehicle-mounted terminal by the mobile terminal when the mobile terminal receives the first bluetooth key sent by the cloud server to activate the key state of the vehicle-mounted terminal, the method further includes:
when the mobile terminal receives the Bluetooth pairing request sent by the vehicle-mounted terminal again, the mobile terminal actively wakes up the first Bluetooth key and the second Bluetooth key in the vehicle-mounted terminal to perform key authentication so as to activate the key state of the vehicle-mounted terminal.
The second aspect of the present invention provides an automatic bluetooth key activation system, which includes a vehicle-mounted terminal and a mobile terminal:
the vehicle-mounted terminal is used for receiving the trigger signal and starting the vehicle-mounted Bluetooth module so that the vehicle-mounted Bluetooth module initiates a Bluetooth pairing request to the mobile terminal;
the mobile terminal is used for receiving the Bluetooth pairing request, and establishing wireless network connection with a cloud server so as to send a key downloading request instruction to the cloud server;
the mobile terminal is further used for receiving a first Bluetooth key sent by the cloud server, and performing key authentication on the first Bluetooth key and a second Bluetooth key preset in the vehicle-mounted terminal so as to activate the key state of the vehicle-mounted terminal.
In the automatic Bluetooth key activation system, the vehicle-mounted terminal is specifically configured to receive a sensing signal collected by the seat sensor and an image signal collected by the camera, and enable the vehicle-mounted Bluetooth module through the CAN network, so that the vehicle-mounted Bluetooth module starts Bluetooth broadcasting and initiates a Bluetooth pairing request to the mobile terminal.
In the automatic bluetooth key activation system, the mobile terminal is specifically configured to receive the bluetooth pairing request, and determine whether a bluetooth certificate in the bluetooth pairing request is legal;
if the Bluetooth certificate is legal, the mobile terminal invokes a Bluetooth key downloading interface through a preset SDK, and triggers to establish wireless network connection with the cloud server through the SDK;
after the mobile terminal establishes wireless network connection with the cloud server, the mobile terminal sends a key downloading request instruction to the cloud server.
In the above automatic bluetooth key activation system, the automatic bluetooth key activation system further includes:
after the cloud server receives the key downloading request instruction, the cloud server identifies a vehicle identification code corresponding to the vehicle-mounted terminal and a mobile phone identifier corresponding to the mobile terminal so as to generate the first Bluetooth key;
and the cloud server sends the first Bluetooth key to the mobile terminal through an SDK network.
In the above automatic bluetooth key activation system, the automatic bluetooth key activation system further includes:
when the mobile terminal receives the Bluetooth pairing request sent by the vehicle-mounted terminal again, the mobile terminal actively wakes up the first Bluetooth key and the second Bluetooth key in the vehicle-mounted terminal to perform key authentication so as to activate the key state of the vehicle-mounted terminal.
A third aspect of the present invention proposes a computer comprising a memory, a processor and a computer program stored on said memory and executable on said processor, said processor implementing the bluetooth key auto-activation method as described above when executing said computer program.
A fourth aspect of the present invention proposes a readable storage medium having stored thereon a computer program which, when executed by a processor, implements a bluetooth key automatic activation method as described above.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Detailed Description
In order that the invention may be readily understood, a more complete description of the invention will be rendered by reference to the appended drawings. Several embodiments of the invention are presented in the figures. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "mounted" on another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like are used herein for illustrative purposes only.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
The existing Bluetooth key activation and connection processes are initiated from the mobile terminal of the user, so that the user needs to be additionally connected manually, the Bluetooth key is not convenient enough, and the use experience of the user is reduced.
Referring to fig. 1, an automatic bluetooth key activation method provided by a first embodiment of the present invention is mainly applied between a mobile terminal and a vehicle-mounted terminal of a user, and is used for implementing automatic activation of a bluetooth key between the mobile terminal and the vehicle-mounted terminal, so that the user is not required to perform manual activation, and the use experience of the user is greatly improved.
Specifically, the method for automatically activating the bluetooth key provided in the embodiment specifically includes the following steps:
step S10, when a vehicle-mounted terminal receives a trigger signal, the vehicle-mounted terminal starts a vehicle-mounted Bluetooth module and enables the vehicle-mounted Bluetooth module to initiate a Bluetooth pairing request to a mobile terminal;
specifically, in this embodiment, it should be noted first that, in order to automatically trigger the activation operation of the bluetooth key between the vehicle-mounted terminal and the mobile terminal of the user, in this embodiment, a trigger element is set in the vehicle-mounted terminal in advance, and specifically, the trigger element may be a seat sensor set in the main driving seat or a camera set on the front windshield, where the seat sensor may collect a pressure signal of the user, the camera may collect an image signal of the user, and both the seat sensor and the camera are electrically connected with the vehicle-mounted terminal.
Therefore, in this step, when the vehicle-mounted terminal receives any one or more of the above trigger signals, the vehicle-mounted terminal may immediately start the vehicle-mounted bluetooth module pre-installed in the current vehicle, and enable the vehicle-mounted bluetooth module to initiate a bluetooth pairing request to the mobile terminal of the current user.
Step S20, when the mobile terminal receives the Bluetooth pairing request, the mobile terminal establishes wireless network connection with a cloud server and sends a key downloading request instruction to the cloud server;
further, in this step, after the vehicle-mounted terminal is triggered and the vehicle-mounted bluetooth module is enabled in the step S10, the vehicle-mounted bluetooth module may send a bluetooth pairing request to the mobile terminal within the detection range thereof, that is, send a bluetooth pairing request to the mobile terminal of the user who has already started the bluetooth function, and specifically, the mobile terminal of the user may be a mobile phone, a tablet computer, a smart watch or the like with the bluetooth function, which may all receive the bluetooth pairing request sent by the vehicle-mounted bluetooth module.
Further, when the mobile terminal of the user receives the bluetooth pairing request, the mobile terminal automatically establishes wireless network connection with the cloud server and immediately sends a key downloading request instruction to the cloud server, wherein it is required to be noted that bluetooth keys corresponding to various vehicle types are stored in the cloud server, and when the cloud server receives the key downloading request instruction sent by the mobile terminal of the current user, the cloud server can send the corresponding bluetooth keys to the mobile terminal of the current user.
Step S30, when the mobile terminal receives the first Bluetooth key sent by the cloud server, the mobile terminal performs key authentication on the first Bluetooth key and a second Bluetooth key preset in the vehicle-mounted terminal so as to activate the key state of the vehicle-mounted terminal.
Finally, in this step, after the mobile terminal sends the key downloading request instruction to the cloud server, the cloud server issues a corresponding first bluetooth key to the mobile terminal, and at the same time, the mobile terminal performs key authentication on the received first bluetooth key and a second bluetooth key preloaded inside the vehicle-mounted terminal, so that the bluetooth key state inside the current vehicle-mounted terminal can be effectively activated, and the activation of the bluetooth key between the mobile terminal of the current user and the vehicle-mounted terminal can be automatically completed.
When the mobile terminal is used, the vehicle-mounted terminal receives the trigger signal so that the vehicle-mounted terminal can start the vehicle-mounted Bluetooth module and enable the vehicle-mounted Bluetooth module to initiate a Bluetooth pairing request to the mobile terminal, further, as long as the mobile terminal receives the Bluetooth pairing request, the mobile terminal can establish wireless communication connection with the cloud server so as to send a key downloading request instruction to the cloud server, and finally, the key state of the vehicle-mounted terminal can be automatically activated only by carrying out key authentication on a first Bluetooth key received by the mobile terminal and a second Bluetooth key preset in the vehicle-mounted terminal. Through the mode, the automatic activation of the Bluetooth key between the mobile terminal and the vehicle-mounted terminal of the user can be realized, the user is not required to manually activate the Bluetooth key, and the Bluetooth key activation method is simple and convenient, so that the use experience of the user is greatly improved.
It should be noted that the foregoing implementation procedure is only for illustrating the feasibility of the present application, but this does not represent that the bluetooth key automatic activation method of the present application has only one implementation procedure, and instead, the bluetooth key automatic activation method of the present application may be incorporated into the feasible embodiments of the present application as long as it can be implemented.
In summary, the automatic activation method of the Bluetooth key provided by the embodiment of the invention can realize the automatic activation of the Bluetooth key between the mobile terminal and the vehicle-mounted terminal of the user, and the user is not required to manually activate the Bluetooth key, so that the method is simple and convenient, and the use experience of the user is greatly improved.
Referring to fig. 2, a method for automatically activating a bluetooth key according to a second embodiment of the invention is shown, and the method specifically includes the following steps:
specifically, the method for automatically activating the bluetooth key provided in the embodiment is also specifically applied between a mobile terminal of a user and a vehicle-mounted terminal, wherein the mobile terminal of the user can be a mobile phone, a tablet personal computer, an intelligent watch and the like with a bluetooth function, and the vehicle-mounted terminal is a vehicle-mounted controller.
Step S11, when the vehicle-mounted terminal receives the sensing signals acquired by the seat sensor and the image signals acquired by the camera, the vehicle-mounted terminal starts the vehicle-mounted Bluetooth module through the CAN network, and enables the vehicle-mounted Bluetooth module to start Bluetooth broadcasting to initiate a Bluetooth pairing request to the mobile terminal.
In this embodiment, it should be noted that, before leaving the factory, each vehicle is preloaded with a vehicle-mounted bluetooth module inside, and the vehicle-mounted bluetooth module is electrically connected with a vehicle-mounted terminal, so, in this embodiment, in order to be able to automatically trigger the vehicle-mounted bluetooth module, a seat sensor is preloaded in a main driving seat of a current vehicle, and a camera facing the main driving seat is mounted on a front windshield of the current vehicle.
When the vehicle-mounted terminal receives the pressure signal and the image signal, the vehicle-mounted terminal CAN accurately judge that the driver enters the vehicle, so that the vehicle-mounted terminal CAN immediately start the vehicle-mounted Bluetooth module through the CAN network, and the vehicle-mounted Bluetooth module starts Bluetooth broadcasting to automatically initiate Bluetooth pairing requests to the mobile terminal of the current driver.
Step S21, when the mobile terminal receives the Bluetooth pairing request, the mobile terminal judges whether a Bluetooth certificate in the Bluetooth pairing request is legal or not; if the Bluetooth certificate is legal, the mobile terminal invokes a Bluetooth key downloading interface through a preset SDK, and triggers to establish wireless network connection with the cloud server through the SDK; after the mobile terminal establishes wireless network connection with the cloud server, the mobile terminal sends a key downloading request instruction to the cloud server.
In this step, it should be noted that, when the mobile terminal receives a bluetooth pairing request initiated by the vehicle bluetooth module, the mobile terminal will immediately determine whether a bluetooth certificate in the bluetooth pairing request is legal, if the current bluetooth certificate is legal, the current mobile terminal will call an internal preset bluetooth key downloading interface through an internal preset SDK thereof, further trigger a wireless network connection with a cloud server through the SDK, and finally, after the mobile terminal establishes a wireless network connection with the cloud server, the mobile terminal can send a key downloading request instruction to the cloud server.
In this embodiment, it should be noted that, after the step of sending, by the mobile terminal, a key download request instruction to the cloud server after the step of establishing a wireless network connection between the mobile terminal and the cloud server, the method further includes:
step S31, after the cloud server receives the key downloading request instruction, the cloud server identifies a vehicle identification code corresponding to the vehicle-mounted terminal and a mobile phone identifier corresponding to the mobile terminal so as to generate the first Bluetooth key; and the cloud server sends the first Bluetooth key to the mobile terminal through an SDK network.
Further, in this step, it should be noted that, after the cloud server receives the key downloading request instruction sent by the mobile terminal, the cloud server can identify the vehicle identification code corresponding to the vehicle terminal and the mobile phone identifier corresponding to the mobile terminal, so as to generate the corresponding first bluetooth key, and finally, the cloud server sends the first bluetooth key generated in real time to the mobile terminal of the user through the SDK network.
Step S41, when the mobile terminal receives a first Bluetooth key sent by the cloud server, the mobile terminal performs key authentication on the first Bluetooth key and a second Bluetooth key preset in the vehicle-mounted terminal so as to activate the key state of the vehicle-mounted terminal;
in this step, after the mobile terminal sends a key downloading request instruction to the cloud server, the cloud server issues a corresponding first bluetooth key to the mobile terminal, and at the same time, the mobile terminal performs key authentication on the received first bluetooth key and a second bluetooth key preloaded inside the vehicle-mounted terminal, so that the state of the bluetooth key inside the current vehicle-mounted terminal can be effectively activated, and activation of the bluetooth key between the mobile terminal of the current user and the vehicle-mounted terminal can be automatically completed.
In this embodiment, it should be noted that, after the step of performing, by the mobile terminal, key authentication between the first bluetooth key and a second bluetooth key preset in the vehicle-mounted terminal to activate the key state of the vehicle-mounted terminal when the mobile terminal receives the first bluetooth key sent by the cloud server, the method further includes:
step S51, when the mobile terminal receives the bluetooth pairing request sent by the vehicle-mounted terminal again, the mobile terminal actively wakes up the first bluetooth key and the second bluetooth key in the vehicle-mounted terminal to perform key authentication so as to activate the key state of the vehicle-mounted terminal.
Finally, in this step, when the mobile terminal of the user has completed the initial activation with the vehicle-mounted terminal through the above steps, in other cases, as long as the mobile terminal of the current user receives the bluetooth pairing request sent by the vehicle-mounted terminal again, the mobile terminal can actively wake up the first bluetooth key and the second bluetooth key in the current vehicle-mounted terminal to perform key authentication, so as to automatically activate the key state of the current vehicle-mounted terminal, without activating again, thereby greatly improving the use experience of the user.
It should be noted that, for the sake of brevity, the method according to the second embodiment of the present invention, which implements the same principle and some of the technical effects as the first embodiment, may be provided with corresponding details with reference to the first embodiment.
In summary, according to the method for automatically activating the Bluetooth key provided by the embodiment of the invention, the Bluetooth key between the mobile terminal and the vehicle-mounted terminal of the user can be automatically activated, and the user is not required to manually activate the Bluetooth key, so that the method is simple and convenient, and the use experience of the user is greatly improved.
Referring to fig. 3, a bluetooth key automatic activation system according to a third embodiment of the present invention is shown, and the system includes a vehicle terminal 12 and a mobile terminal 22:
the vehicle-mounted terminal 12 is configured to receive a trigger signal and enable a vehicle-mounted bluetooth module to enable the vehicle-mounted bluetooth module to initiate a bluetooth pairing request to the mobile terminal;
the mobile terminal 22 is configured to receive the bluetooth pairing request, and establish a wireless network connection with a cloud server, so as to send a key downloading request instruction to the cloud server;
the mobile terminal 22 is further configured to receive a first bluetooth key sent by the cloud server, and perform key authentication on the first bluetooth key and a second bluetooth key preset in the vehicle-mounted terminal, so as to activate a key state of the vehicle-mounted terminal.
In the automatic Bluetooth key activation system, the vehicle-mounted terminal is specifically configured to receive a sensing signal collected by the seat sensor and an image signal collected by the camera, and enable the vehicle-mounted Bluetooth module through the CAN network, so that the vehicle-mounted Bluetooth module starts Bluetooth broadcasting and initiates a Bluetooth pairing request to the mobile terminal.
In the automatic bluetooth key activation system, the mobile terminal is specifically configured to receive the bluetooth pairing request, and determine whether a bluetooth certificate in the bluetooth pairing request is legal;
if the Bluetooth certificate is legal, the mobile terminal invokes a Bluetooth key downloading interface through a preset SDK, and triggers to establish wireless network connection with the cloud server through the SDK;
after the mobile terminal establishes wireless network connection with the cloud server, the mobile terminal sends a key downloading request instruction to the cloud server.
In the above automatic bluetooth key activation system, the automatic bluetooth key activation system further includes:
after the cloud server receives the key downloading request instruction, the cloud server identifies a vehicle identification code corresponding to the vehicle-mounted terminal and a mobile phone identifier corresponding to the mobile terminal so as to generate the first Bluetooth key;
and the cloud server sends the first Bluetooth key to the mobile terminal through an SDK network.
In the above automatic bluetooth key activation system, the automatic bluetooth key activation system further includes:
when the mobile terminal receives the Bluetooth pairing request sent by the vehicle-mounted terminal again, the mobile terminal actively wakes up the first Bluetooth key and the second Bluetooth key in the vehicle-mounted terminal to perform key authentication so as to activate the key state of the vehicle-mounted terminal.
A fourth embodiment of the present invention provides a computer, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the automatic activation method of a bluetooth key provided in the first embodiment or the second embodiment when executing the computer program.
A fifth embodiment of the present invention provides a readable storage medium having stored thereon a computer program which, when executed by a processor, implements the bluetooth key automatic activation method provided in the first embodiment or the second embodiment described above.
In summary, according to the method for automatically activating the bluetooth key provided by the embodiment of the invention, the bluetooth key between the mobile terminal and the vehicle-mounted terminal of the user can be automatically activated, and the user is not required to manually activate the bluetooth key, so that the method is simple and convenient, and the use experience of the user is greatly improved.
The above-described respective modules may be functional modules or program modules, and may be implemented by software or hardware. For modules implemented in hardware, the various modules described above may be provided on the same processor; or the modules may be provided in any combination and located in different processors.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer readable medium may even be paper or other suitable medium upon which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. The above embodiments provide that various steps or methods may be implemented in software or firmware provided stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as provided in another embodiment, may be implemented using any one or combination of the following techniques, as are known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
The description provided herein with reference to the terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. The schematic representations of the above terms are provided in this specification not necessarily referring to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The foregoing examples illustrate only a few embodiments of the invention and are described in detail herein without thereby limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.