[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN115103341A - Bluetooth connection method and related equipment - Google Patents

Bluetooth connection method and related equipment Download PDF

Info

Publication number
CN115103341A
CN115103341A CN202111178086.3A CN202111178086A CN115103341A CN 115103341 A CN115103341 A CN 115103341A CN 202111178086 A CN202111178086 A CN 202111178086A CN 115103341 A CN115103341 A CN 115103341A
Authority
CN
China
Prior art keywords
mac address
pin code
mobile terminal
vehicle
bluetooth
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111178086.3A
Other languages
Chinese (zh)
Inventor
王兵
杨劲松
唐清勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Great Wall Motor Co Ltd
Original Assignee
Great Wall Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Great Wall Motor Co Ltd filed Critical Great Wall Motor Co Ltd
Priority to CN202111178086.3A priority Critical patent/CN115103341A/en
Publication of CN115103341A publication Critical patent/CN115103341A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/009Security arrangements; Authentication; Protecting privacy or anonymity specially adapted for networks, e.g. wireless sensor networks, ad-hoc networks, RFID networks or cloud networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/69Identity-dependent
    • H04W12/71Hardware identity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/69Identity-dependent
    • H04W12/77Graphical identity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/48Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for in-vehicle communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The Bluetooth connection method and the related device can receive a Bluetooth pairing request sent by a mobile terminal device, wherein the Bluetooth pairing request is generated by the mobile terminal device scanning a vehicle-mounted Bluetooth pairing graph to obtain a vehicle-mounted MAC address of a vehicle-mounted device; establishing transmission connection with the mobile terminal equipment based on the Bluetooth pairing request to obtain a first MAC address of the mobile terminal equipment; after the first MAC address is obtained, the mobile terminal equipment is communicated with the PIN code negotiation equipment, identity verification is carried out on the mobile terminal equipment based on the PIN code according to the first MAC address, and identity verification is carried out on the vehicle equipment by the mobile terminal equipment based on the PIN code according to the vehicle MAC address; and after the identity authentication is passed, establishing a Bluetooth communication link with the mobile terminal equipment. The vehicle-mounted device and the mobile terminal device can automatically perform identity verification according to the MAC addresses obtained by the vehicle-mounted device and the mobile terminal device based on the PIN codes, so that Bluetooth pairing of the vehicle-mounted device and the mobile terminal device can be rapidly achieved.

Description

Bluetooth connection method and related equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a bluetooth connection method and related devices.
Background
With the continuous development and popularization of wireless technology, more and more intelligent devices support bluetooth communication. For example: the Bluetooth headset and the smart television can be in communication connection with the smart phone through Bluetooth.
The traditional Bluetooth pairing connection requires a plurality of operation steps of searching, clicking pairing and confirming pairing, and the pairing is usually successful only by repeating the pairing for a plurality of times in practical use. Along with the car machine equipment is more and more intelligent, the user often needs to carry out the bluetooth with mobile terminal equipment and car machine equipment and be connected, because traditional bluetooth pairs and connects complex operation, is unfavorable for the user to conveniently use bluetooth function on car machine equipment.
Disclosure of Invention
In view of the above problems, the present disclosure provides a bluetooth connection method and related device that overcome the above problems or at least partially solve the above problems, and solves the problem of cumbersome operation of bluetooth functions on a vehicle device. The technical scheme is as follows:
a Bluetooth connection method is applied to vehicle equipment and comprises the following steps:
receiving a Bluetooth pairing request sent by mobile terminal equipment, wherein the Bluetooth pairing request is generated after the mobile terminal equipment scans a vehicle-mounted Bluetooth pairing graph to obtain a vehicle-mounted MAC address of the vehicle-mounted equipment;
establishing transmission connection with the mobile terminal equipment based on the Bluetooth pairing request to obtain a first MAC address of the mobile terminal equipment;
after the first MAC address is obtained, communication with the mobile terminal equipment is carried out to negotiate a PIN code, the mobile terminal equipment is authenticated according to the first MAC address based on the PIN code, and the mobile terminal equipment is enabled to authenticate the vehicle equipment according to the vehicle MAC address based on the PIN code;
and after the identity authentication is passed, establishing a Bluetooth communication link with the mobile terminal equipment.
Optionally, the performing identity verification on the mobile terminal device based on the PIN code according to the first MAC address includes:
receiving a first PIN code checking request sent by the mobile terminal equipment, wherein the first PIN code checking request comprises the PIN code and a second MAC address;
and responding to the first PIN code checking request, performing consistency comparison and verification on the second MAC address and the first MAC address based on the PIN code, and if the second MAC address is consistent with the first MAC address, confirming that the identity verification of the mobile terminal equipment is passed.
Optionally, the method further includes:
under the condition that the first PIN code verification request fails to be responded, a preset PIN code input page is called and displayed through a vehicle-mounted touch screen, so that a user can input the PIN code through the PIN code input page;
and acquiring the PIN code input by the user on the PIN code input page, and executing the step of performing consistency comparison and verification on the second MAC address and the first MAC address based on the PIN code.
Optionally, the enabling the mobile end device to authenticate the vehicle device based on the PIN code according to the vehicle MAC address includes:
and sending a second PIN code checking request to the mobile terminal device, wherein the second PIN code checking request comprises the PIN code and a third MAC address, so that the mobile terminal device compares and verifies the consistency of the third MAC address and the vehicle-terminal MAC address based on the PIN code, and if the third MAC address is consistent with the vehicle-terminal MAC address, the mobile terminal device confirms that the identity verification of the vehicle-machine device is passed.
Optionally, after the identity authentication is passed, establishing a bluetooth communication link with the mobile end device includes:
after the identity authentication is passed, a first PIN code authentication success signal is sent to the mobile terminal equipment;
receiving a second PIN code verification success signal sent by the mobile terminal equipment; the second PIN code verification success signal is generated after the mobile terminal equipment confirms that the identity verification of the vehicle-mounted equipment passes;
and establishing a Bluetooth communication link with the mobile terminal equipment based on the first PIN code verification success signal and the second PIN code verification success signal.
Optionally, the vehicle-mounted bluetooth pairing graph is a two-dimensional code.
The utility model provides a bluetooth connecting device, is applied to car machine equipment, the device includes: a Bluetooth pairing request receiving module, a first MAC address obtaining module, an identity verification module and a Bluetooth connection module,
the Bluetooth pairing request receiving module is used for receiving a Bluetooth pairing request sent by mobile terminal equipment, wherein the Bluetooth pairing request is generated after the mobile terminal equipment scans a vehicle-mounted Bluetooth pairing graph to obtain a vehicle-mounted MAC address of the vehicle-mounted equipment;
the first MAC address obtaining module is configured to establish a transmission connection with the mobile end device based on the bluetooth pairing request, and obtain a first MAC address of the mobile end device;
the identity verification module is used for communicating with the mobile terminal equipment to negotiate a PIN code after the first MAC address is obtained, verifying the identity of the mobile terminal equipment according to the first MAC address based on the PIN code, and enabling the mobile terminal equipment to verify the identity of the vehicle equipment according to the vehicle MAC address based on the PIN code;
and the Bluetooth connection module is used for establishing a Bluetooth communication link with the mobile terminal equipment after the identity authentication is passed.
Optionally, the identity verification module includes: the first PIN code checking request receiving unit and the first MAC address comparison and verification unit,
the first PIN code checking request receiving unit is configured to receive a first PIN code checking request sent by the mobile terminal device, where the first PIN code checking request includes the PIN code and a second MAC address;
the first MAC address comparison and verification unit is configured to perform consistency comparison and verification on the second MAC address and the first MAC address based on the PIN code in response to the first PIN code verification request, and if the second MAC address is consistent with the first MAC address, confirm that the identity verification of the mobile terminal device is passed.
A storage medium having stored thereon a program which, when executed by a processor, implements the bluetooth connection method of any one of the above.
The vehicle equipment comprises at least one processor, at least one memory and a bus, wherein the memory and the bus are connected with the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to call program instructions in the memory to perform any of the above-described bluetooth connection methods.
By means of the technical scheme, the Bluetooth connection method and the related equipment provided by the disclosure can receive a Bluetooth pairing request sent by mobile terminal equipment, wherein the Bluetooth pairing request is generated after the mobile terminal equipment scans a vehicle-mounted Bluetooth pairing graph to obtain a vehicle-mounted MAC address of vehicle-mounted equipment; establishing transmission connection with the mobile terminal equipment based on the Bluetooth pairing request to obtain a first MAC address of the mobile terminal equipment; after the first MAC address is obtained, the mobile terminal equipment is communicated with the PIN code negotiation equipment, identity verification is carried out on the mobile terminal equipment based on the PIN code according to the first MAC address, and identity verification is carried out on the vehicle equipment by the mobile terminal equipment based on the PIN code according to the vehicle MAC address; and after the identity authentication is passed, establishing a Bluetooth communication link with the mobile terminal equipment. The disclosed PIN code based on communication negotiation enables the vehicle equipment and the mobile terminal equipment to automatically perform identity verification respectively according to the obtained MAC address, after the PIN code is received, identity verification is not required to be performed according to the PIN code input by a user, but verification is performed through the MAC address, so that the operation of the user in the Bluetooth connection process is reduced, Bluetooth pairing of the vehicle equipment and the mobile terminal equipment is rapidly achieved, the function that Bluetooth can be connected only by scanning Bluetooth pairing graphs is achieved, and the Bluetooth function of the vehicle equipment is convenient for the user to use.
The foregoing description is only an overview of the technical solutions of the present disclosure, and the embodiments of the present disclosure are described below in order to make the technical means of the present disclosure more clearly understood and to make the above and other objects, features, and advantages of the present disclosure more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the disclosure. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating an implementation manner of a bluetooth connection method according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating another implementation of a bluetooth connection method according to an embodiment of the present disclosure;
fig. 3 shows a schematic structural diagram of a bluetooth connection apparatus according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As shown in fig. 1, a flowchart of an implementation manner of a bluetooth connection method provided in an embodiment of the present disclosure is schematically shown, where the bluetooth connection method is applied to a car-mounted device, and the bluetooth connection method may include:
s100, receiving a Bluetooth pairing request sent by the mobile terminal device, wherein the Bluetooth pairing request is generated after the mobile terminal device scans a vehicle-mounted Bluetooth pairing graph to obtain a vehicle-mounted MAC address of the vehicle-mounted device.
The in-vehicle device may be an in-vehicle infotainment device installed in a vehicle. The vehicle-mounted device has the function of information communication such as Bluetooth and the like. The vehicle-mounted Bluetooth pairing graph of the vehicle-mounted equipment can be displayed through the vehicle-mounted touch screen of the vehicle-mounted equipment. The vehicle bluetooth pairing pattern may include a first MAC address of the vehicle-mounted device and a bluetooth name of the vehicle-mounted device. The Bluetooth name is used for displaying on the mobile terminal device, and the first MAC address is used for Bluetooth pairing with the mobile terminal device. The mobile terminal device may record the first MAC address.
The MAC Address (Media Access Control Address) may be referred to as a Media Access Control Address (MAC Address), a local area network Address (LAN Address), a MAC Address, an Ethernet Address (Ethernet Address) or a Physical Address (Physical Address), and the MAC Address is an Address for confirming a location of a network device.
Optionally, the vehicle-mounted bluetooth pairing graph is a two-dimensional code. It can be understood that the vehicle bluetooth pairing graph may also be a multi-dimensional graph code carrying the first MAC address of the vehicle-mounted device.
The mobile terminal device may be an intelligent device with bluetooth and graphic code scanning functions. For example: smart phones and tablet computers.
Optionally, the embodiment of the present disclosure may display the vehicle-mounted bluetooth pairing graph of the vehicle-mounted device in response to a bluetooth pairing triggering operation of the user on the vehicle-mounted device. The trigger operation may be a voice command as well as a manual click.
It can be understood that, after scanning the vehicle-mounted bluetooth pairing pattern, the mobile end device sends a bluetooth pairing request to the in-vehicle device if the first MAC address of the in-vehicle device is successfully obtained.
Specifically, the mobile terminal device may display confirmation information indicating whether bluetooth connection is performed with the in-vehicle device after scanning the vehicle-mounted bluetooth pairing pattern, respond to a confirmation operation of a user on the confirmation information, and control to start the bluetooth function of the mobile terminal device when the bluetooth function of the mobile terminal device is not started. And under the condition that the Bluetooth function of the mobile terminal equipment is started, sending a Bluetooth pairing request to the vehicle equipment.
Furthermore, after the mobile terminal device scans the vehicle-mounted Bluetooth pairing graph, the mobile terminal device jumps to an applet or a webpage interface, and whether the mobile terminal device is paired with the vehicle-mounted Bluetooth device or not is popped up on the applet or the webpage interface. Optionally, the confirmation information may include a confirmation button and a cancel button, and the user may click the confirmation button to perform the confirmation operation or click the cancel button to perform the cancel operation. It can be understood that when the user performs the cancel operation, the bluetooth pairing is ended. The embodiment of the disclosure automatically opens the bluetooth function of the mobile terminal device by responding to the confirmation operation of the user on the confirmation information, so that the mobile terminal device and the vehicle device can be bluetooth paired.
S200, establishing transmission connection with the mobile terminal equipment based on the Bluetooth pairing request, and obtaining a first MAC address of the mobile terminal equipment.
The embodiment of the disclosure may implement handshaking (Handshake) with the mobile end device through a handshaking protocol based on the bluetooth pairing request, that is, a transmission connection is established between the in-vehicle device and the mobile end device, and the in-vehicle device may obtain the first MAC address of the mobile end device through the transmission connection. The car machine device provided by the embodiment of the disclosure can record the first MAC address.
S300, after the first MAC address is obtained, the mobile terminal equipment is communicated with the PIN code negotiation device, identity verification is conducted on the mobile terminal equipment based on the PIN code according to the first MAC address, and identity verification is conducted on the vehicle equipment by the mobile terminal equipment based on the PIN code according to the vehicle MAC address.
And the PIN code is a communication identification password determined by the vehicle-mounted device and the mobile terminal device in the communication negotiation. After the car-mounted device and the mobile terminal device record the PIN codes, the MAC addresses of the respective recorded counterparts may be authenticated based on the PIN codes.
The in-vehicle device may perform authentication on the recorded first MAC address in response to the verification request carrying the PIN code. The mobile terminal device can respond to the checking request carrying the PIN code and carry out identity verification on the recorded vehicle-side MAC address.
Optionally, the embodiment of the present disclosure may receive a first PIN code checking request sent by the mobile terminal device, where the first PIN code checking request includes a PIN code and a second MAC address. And responding to the first PIN code check request, performing consistency comparison and verification on the second MAC address and the first MAC address based on the PIN code, and confirming that the identity verification of the mobile terminal equipment passes if the second MAC address is consistent with the first MAC address.
Optionally, in the embodiment of the present disclosure, under the condition that the second MAC address is inconsistent with the first MAC address, it is determined that the identity authentication of the mobile end device does not pass, and the bluetooth pairing process with the mobile end device is ended. The embodiment of the disclosure can accurately compare and verify the consistency of the second MAC address and the obtained first MAC address of the mobile terminal device based on the PIN carried in the first PIN verification request, thereby accurately verifying the identity of the mobile terminal device.
Optionally, the embodiment of the present disclosure may send a second PIN code verification request to the mobile end device, where the second PIN code verification request includes a PIN code and a third MAC address, so that the mobile end device performs consistency comparison verification on the third MAC address and the car end MAC address based on the PIN code, and if the third MAC address is consistent with the car end MAC address, it is determined that the identity verification of the car machine device passes.
The mobile terminal equipment can accurately compare and verify the consistency of the third MAC address and the vehicle-mounted MAC address obtained by scanning the vehicle-mounted Bluetooth pairing graph based on the PIN carried in the second PIN verification request, so that the identity of the vehicle-mounted equipment is accurately verified.
Optionally, the mobile terminal device may pop up a preset verification pairing box corresponding to the PIN code in the second PIN code verification request under the condition that the third MAC address is inconsistent with the vehicle-end MAC address, and the user selects to confirm or cancel the preset verification pairing box. And if an operation signal that the user selects to confirm in the preset verification pairing frame is received, confirming that the identity verification of the vehicle equipment is passed. And if an operation signal that the user selects to cancel in the preset check pairing frame is received, ending the Bluetooth pairing process.
S400, after the identity authentication is passed, a Bluetooth communication link is established with the mobile terminal equipment.
Specifically, under the condition that the vehicle-mounted device passes the authentication of the mobile terminal device and the condition that the mobile terminal device passes the authentication of the vehicle-mounted device, the vehicle-mounted device and the mobile terminal device can mutually send a successful authentication signal, so that a bluetooth communication link is established.
Optionally, based on the method shown in fig. 1, as shown in fig. 2, a flowchart of an implementation manner of a bluetooth connection method provided in the embodiment of the present disclosure may include:
and S410, after the identity authentication is passed, sending a first PIN code authentication success signal to the mobile terminal equipment.
S420, receiving a second PIN code verification success signal sent by the mobile terminal equipment; and the second PIN code verification success signal is generated after the mobile terminal equipment confirms that the identity verification of the vehicle equipment passes.
And S430, establishing a Bluetooth communication link with the mobile terminal device based on the first PIN code verification success signal and the second PIN code verification success signal.
The vehicle-mounted device and the mobile terminal device mutually send PIN code verification success signals to each other, so that the two sides can establish a Bluetooth communication link based on Bluetooth related protocols after receiving the PIN code verification success signals sent by the other sides, and Bluetooth communication is realized. Alternatively, the bluetooth-related protocols may include the HFP protocol and the A2DP protocol.
In the actual Bluetooth pairing process, under the condition that the vehicle-mounted Bluetooth pairing graph is displayed on the vehicle-mounted equipment, the vehicle-mounted equipment can be in a Bluetooth pairing state and defaults that the PIN in the first PIN verification request is correct. If the vehicle-mounted device has already exited the display interface of the vehicle-mounted bluetooth pairing graph, that is, the vehicle-mounted device may have exited the bluetooth pairing state, so that the response of the vehicle-mounted device to the first PIN code verification request sent by the mobile terminal device scanning the vehicle-mounted bluetooth pairing graph fails, and the mobile terminal device cannot be authenticated.
The Bluetooth pairing method and the Bluetooth pairing device can request the user to manually input the PIN on the vehicle-mounted device and reactivate the Bluetooth pairing state of the vehicle-mounted device through the PIN input by the user under the condition that the vehicle-mounted device has quit the display interface of the vehicle-mounted Bluetooth pairing graph and fails to respond to the first PIN verification request.
Optionally, in the embodiment of the present disclosure, under the condition that the first PIN code verification request fails to be responded, a preset PIN code input page is called and displayed through the vehicle-mounted touch screen, so that the user inputs the PIN code through the PIN code input page. And acquiring the PIN code input by the user on the PIN code input page, comparing and verifying the consistency of the second MAC address and the first MAC address based on the PIN code, and confirming that the identity verification of the mobile terminal equipment is passed if the second MAC address is consistent with the first MAC address.
The method and the device for verifying the mobile terminal device can provide an option for manually inputting the PIN for the user by calling the preset PIN input page under the condition that the vehicle device fails to respond to the first PIN verification request, and avoid the problem that the mobile terminal device cannot be authenticated because the vehicle device fails to respond to the first PIN verification request due to the fact that the vehicle device exits from a display interface of a vehicle-mounted Bluetooth pairing graph.
The Bluetooth connection method can receive a Bluetooth pairing request sent by mobile terminal equipment, wherein the Bluetooth pairing request is generated after the mobile terminal equipment scans a vehicle-mounted Bluetooth pairing graph to obtain a vehicle-mounted MAC address of vehicle-mounted equipment; establishing transmission connection with the mobile terminal equipment based on the Bluetooth pairing request to obtain a first MAC address of the mobile terminal equipment; after the first MAC address is obtained, the mobile terminal equipment is communicated with the PIN code negotiation equipment, identity verification is carried out on the mobile terminal equipment based on the PIN code according to the first MAC address, and identity verification is carried out on the vehicle equipment by the mobile terminal equipment based on the PIN code according to the vehicle MAC address; and after the identity authentication is passed, establishing a Bluetooth communication link with the mobile terminal equipment. The disclosed PIN code based on communication negotiation enables the vehicle equipment and the mobile terminal equipment to automatically perform identity verification respectively according to the obtained MAC address, after the PIN code is received, identity verification is not required to be performed according to the PIN code input by a user, but verification is performed through the MAC address, so that the operation of the user in the Bluetooth connection process is reduced, Bluetooth pairing of the vehicle equipment and the mobile terminal equipment is rapidly achieved, the function that Bluetooth can be connected only by scanning Bluetooth pairing graphs is achieved, and the Bluetooth function of the vehicle equipment is convenient for the user to use.
Although the operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
Corresponding to the foregoing method embodiment, an embodiment of the present disclosure further provides a bluetooth connection device, where the bluetooth connection device is applied to an in-vehicle device, and a structure of the bluetooth connection device is shown in fig. 3, and may include: the bluetooth pairing request receiving module 10, the first MAC address obtaining module 20, the authentication module 30, and the bluetooth connection module 40.
The bluetooth pairing request receiving module 10 is configured to receive a bluetooth pairing request sent by a mobile device, where the bluetooth pairing request is generated after the mobile device scans a vehicle-mounted bluetooth pairing graph to obtain a vehicle-mounted MAC address of a vehicle device.
The first MAC address obtaining module 20 is configured to establish a transmission connection with the mobile end device based on the bluetooth pairing request, and obtain a first MAC address of the mobile end device.
The identity authentication module 30 is configured to, after obtaining the first MAC address, negotiate a PIN code with the mobile end device, perform identity authentication on the mobile end device according to the first MAC address based on the PIN code, and enable the mobile end device to perform identity authentication on the vehicle device according to the vehicle MAC address based on the PIN code.
And the Bluetooth connection module 40 is used for establishing a Bluetooth communication link with the mobile terminal device after the identity authentication is passed.
Optionally, the identity verification module 30 includes: the first PIN code checking request receiving unit is compared with the first MAC address verifying unit.
The mobile terminal device comprises a first PIN code checking request receiving unit, which is used for receiving a first PIN code checking request sent by the mobile terminal device, wherein the first PIN code checking request comprises a PIN code and a second MAC address.
And the first MAC address comparison and verification unit is used for responding to the first PIN code verification request, performing consistency comparison and verification on the second MAC address and the first MAC address based on the PIN code, and confirming that the identity verification of the mobile terminal equipment is passed if the second MAC address is consistent with the first MAC address.
Optionally, the bluetooth connection apparatus may further include: the device comprises a PIN code input page calling unit and a PIN code obtaining unit.
The PIN code input page calling unit is used for calling a preset PIN code input page and displaying the preset PIN code input page through the vehicle-mounted touch screen under the condition that the first PIN code verification request is failed to respond so that a user can input the PIN code through the PIN code input page;
and the PIN code obtaining unit is used for obtaining a PIN code input by a user on the PIN code input page and triggering the first MAC address comparison and verification unit to carry out consistency comparison and verification on the second MAC address and the first MAC address based on the PIN code.
Optionally, the identity verification module 30 includes: and a second PIN code check request sending unit.
And the second PIN code check request sending unit is used for sending a second PIN code check request to the mobile terminal equipment, wherein the second PIN code check request comprises a PIN code and a third MAC address, so that the mobile terminal equipment performs consistency comparison and verification on the third MAC address and the vehicle-end MAC address based on the PIN code, and if the third MAC address is consistent with the vehicle-end MAC address, the identity verification of the vehicle-machine equipment is confirmed to be passed.
Optionally, the bluetooth connection module 40 is specifically configured to send a first PIN code verification success signal to the mobile terminal device after the identity verification passes; receiving a second PIN code verification success signal sent by the mobile terminal equipment; the second PIN code verification success signal is generated after the mobile terminal equipment confirms that the identity verification of the vehicle equipment passes; and establishing a Bluetooth communication link with the mobile terminal equipment based on the first PIN code verification success signal and the second PIN code verification success signal.
Optionally, the vehicle-mounted bluetooth pairing graph is a two-dimensional code.
The Bluetooth connection device can receive a Bluetooth pairing request sent by mobile terminal equipment, wherein the Bluetooth pairing request is generated after the mobile terminal equipment scans a vehicle-mounted Bluetooth pairing graph to obtain a vehicle-mounted MAC address of vehicle-mounted equipment; establishing transmission connection with the mobile terminal equipment based on the Bluetooth pairing request to obtain a first MAC address of the mobile terminal equipment; after the first MAC address is obtained, the mobile terminal equipment is communicated with the PIN code negotiation equipment, identity verification is carried out on the mobile terminal equipment based on the PIN code according to the first MAC address, and identity verification is carried out on the vehicle equipment by the mobile terminal equipment based on the PIN code according to the vehicle MAC address; and after the identity authentication is passed, establishing a Bluetooth communication link with the mobile terminal equipment. The disclosed PIN code based on communication negotiation enables the vehicle equipment and the mobile terminal equipment to automatically perform identity verification respectively according to the obtained MAC address, after the PIN code is received, identity verification is not required to be performed according to the PIN code input by a user, but verification is performed through the MAC address, so that the operation of the user in the Bluetooth connection process is reduced, Bluetooth pairing of the vehicle equipment and the mobile terminal equipment is rapidly achieved, the function that Bluetooth can be connected only by scanning Bluetooth pairing graphs is achieved, and the Bluetooth function of the vehicle equipment is convenient for the user to use.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The bluetooth connection device comprises a processor and a memory, wherein the bluetooth pairing request receiving module 10, the first MAC address obtaining module 20, the authentication module 30, the bluetooth connection module 40 and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the PIN code based on communication negotiation is obtained by adjusting the kernel parameters, so that the vehicle equipment and the mobile terminal equipment can automatically perform identity verification according to the MAC addresses obtained by the vehicle equipment and the mobile terminal equipment, the Bluetooth pairing of the vehicle equipment and the mobile terminal equipment is rapidly realized, the operation of performing Bluetooth pairing on the vehicle equipment by a user is reduced, and the user can conveniently use the Bluetooth function of the vehicle equipment.
An embodiment of the present disclosure provides a computer-readable storage medium having a program stored thereon, the program implementing the bluetooth connection method when executed by a processor.
The embodiment of the disclosure provides a processor, which is used for running a program, wherein the program executes the Bluetooth connection method during running.
The embodiment of the disclosure provides a vehicle-mounted device, which comprises at least one processor, at least one memory and a bus, wherein the memory and the bus are connected with the processor; the processor and the memory complete mutual communication through a bus; the processor is used for calling the program instructions in the memory to execute the Bluetooth connection method.
The present disclosure also provides a computer program product adapted to execute a program initialized with the steps of the bluetooth connection method when executed on a car-in-vehicle device.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, in-vehicle devices (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a car machine device includes one or more processors (CPUs), memory, and a bus. The in-vehicle device may further include an input/output interface, a network interface, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
In the description of the present disclosure, it is to be understood that the directions or positional relationships indicated as referring to the terms "upper", "lower", "front", "rear", "left" and "right", etc., are only for convenience of description and simplification of description based on the directions or positional relationships shown in the drawings, and do not indicate or imply that the positions or elements referred to must have a specific direction, be constituted in a specific direction and operated, and thus, are not to be construed as limitations of the present disclosure.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The above are merely examples of the present disclosure and are not intended to limit the present disclosure. Various modifications and variations of this disclosure will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure should be included in the scope of the claims of the present disclosure.

Claims (10)

1. The Bluetooth connection method is applied to vehicle equipment and comprises the following steps:
receiving a Bluetooth pairing request sent by mobile terminal equipment, wherein the Bluetooth pairing request is generated after the mobile terminal equipment scans a vehicle-mounted Bluetooth pairing graph to obtain a vehicle-mounted MAC address of the vehicle-mounted equipment;
establishing transmission connection with the mobile terminal equipment based on the Bluetooth pairing request to obtain a first MAC address of the mobile terminal equipment;
after the first MAC address is obtained, communication with the mobile terminal equipment is carried out to negotiate a PIN code, the mobile terminal equipment is authenticated according to the first MAC address based on the PIN code, and the mobile terminal equipment is enabled to authenticate the vehicle equipment according to the vehicle MAC address based on the PIN code;
and after the identity authentication is passed, establishing a Bluetooth communication link with the mobile terminal equipment.
2. The method according to claim 1, wherein the authenticating the mobile end device according to the first MAC address based on the PIN code comprises:
receiving a first PIN code checking request sent by the mobile terminal equipment, wherein the first PIN code checking request comprises the PIN code and a second MAC address;
and responding to the first PIN code checking request, performing consistency comparison and verification on the second MAC address and the first MAC address based on the PIN code, and if the second MAC address is consistent with the first MAC address, confirming that the identity verification of the mobile terminal equipment is passed.
3. The method of claim 2, further comprising:
under the condition that the first PIN code verification request fails to be responded, a preset PIN code input page is called and displayed through a vehicle-mounted touch screen, so that a user can input the PIN code through the PIN code input page;
and acquiring the PIN code input by the user on the PIN code input page, and executing the step of performing consistency comparison and verification on the second MAC address and the first MAC address based on the PIN code.
4. The method according to claim 1, wherein the enabling the mobile terminal device to authenticate the in-vehicle device according to the vehicle MAC address based on the PIN code comprises:
and sending a second PIN code checking request to the mobile terminal device, wherein the second PIN code checking request comprises the PIN code and a third MAC address, so that the mobile terminal device compares and verifies the consistency of the third MAC address and the vehicle-terminal MAC address based on the PIN code, and if the third MAC address is consistent with the vehicle-terminal MAC address, the mobile terminal device confirms that the identity verification of the vehicle-machine device is passed.
5. The method according to claim 1, wherein the establishing a bluetooth communication link with the mobile end device after the authentication is passed comprises:
after the identity authentication is passed, a first PIN code authentication success signal is sent to the mobile terminal equipment;
receiving a second PIN code verification success signal sent by the mobile terminal equipment; the second PIN code verification success signal is generated after the mobile terminal equipment confirms that the identity verification of the car machine equipment passes;
and establishing a Bluetooth communication link with the mobile terminal equipment based on the first PIN code verification success signal and the second PIN code verification success signal.
6. The method of claim 1, wherein the vehicle Bluetooth pairing pattern is a two-dimensional code.
7. The utility model provides a bluetooth connecting device, its characterized in that is applied to car machine equipment, the device includes: a Bluetooth pairing request receiving module, a first MAC address obtaining module, an identity verification module and a Bluetooth connection module,
the Bluetooth pairing request receiving module is used for receiving a Bluetooth pairing request sent by mobile terminal equipment, wherein the Bluetooth pairing request is generated after the mobile terminal equipment scans a vehicle-mounted Bluetooth pairing graph to obtain a vehicle-mounted MAC address of the vehicle-mounted equipment;
the first MAC address obtaining module is configured to establish a transmission connection with the mobile end device based on the bluetooth pairing request, and obtain a first MAC address of the mobile end device;
the identity verification module is configured to, after obtaining the first MAC address, negotiate a PIN code with the mobile end device, perform identity verification on the mobile end device according to the first MAC address based on the PIN code, and enable the mobile end device to perform identity verification on the vehicle-mounted device according to the vehicle-mounted MAC address based on the PIN code;
and the Bluetooth connection module is used for establishing a Bluetooth communication link with the mobile terminal equipment after the identity authentication is passed.
8. The apparatus of claim 7, wherein the identity verification module comprises: the first PIN code checking request receiving unit and the first MAC address comparison and verification unit,
the first PIN code checking request receiving unit is configured to receive a first PIN code checking request sent by the mobile terminal device, where the first PIN code checking request includes the PIN code and a second MAC address;
the first MAC address comparison and verification unit is configured to perform consistency comparison and verification on the second MAC address and the first MAC address based on the PIN code in response to the first PIN code verification request, and if the second MAC address is consistent with the first MAC address, confirm that the identity verification of the mobile terminal device is passed.
9. A computer-readable storage medium on which a program is stored, the program realizing the bluetooth connection method according to any one of claims 1 to 6 when executed by a processor.
10. The vehicle equipment comprises at least one processor, at least one memory and a bus, wherein the memory and the bus are connected with the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to invoke program instructions in the memory to perform the bluetooth connection method of any of claims 1 to 6.
CN202111178086.3A 2021-10-09 2021-10-09 Bluetooth connection method and related equipment Pending CN115103341A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111178086.3A CN115103341A (en) 2021-10-09 2021-10-09 Bluetooth connection method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111178086.3A CN115103341A (en) 2021-10-09 2021-10-09 Bluetooth connection method and related equipment

Publications (1)

Publication Number Publication Date
CN115103341A true CN115103341A (en) 2022-09-23

Family

ID=83287787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111178086.3A Pending CN115103341A (en) 2021-10-09 2021-10-09 Bluetooth connection method and related equipment

Country Status (1)

Country Link
CN (1) CN115103341A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115761954A (en) * 2022-11-14 2023-03-07 嬴彻星创智能科技(上海)有限公司 Bluetooth key connection method and device for vehicle

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110083050A (en) * 2010-01-13 2011-07-20 (주)이월리서치 System for authentication using pairing function in bluetooth terminal and method thereof
CN103763786A (en) * 2014-01-20 2014-04-30 梅平 Equipment pairing method, terminal and system
EP2874094A1 (en) * 2013-11-14 2015-05-20 Software602 a.s. Data authorization method
CN107249168A (en) * 2017-05-18 2017-10-13 宇龙计算机通信科技(深圳)有限公司 A kind of data directional transmissions and method of reseptance and device
CN110177354A (en) * 2019-06-21 2019-08-27 湖北亿咖通科技有限公司 A kind of wireless control method and system of vehicle
CN110636485A (en) * 2019-09-20 2019-12-31 深圳市万普拉斯科技有限公司 Bluetooth automatic connection method and method for initiating Bluetooth connection
CN111050307A (en) * 2019-11-27 2020-04-21 深圳星康医疗科技有限公司 Method, system and computer readable storage medium for realizing Bluetooth connection based on two-dimensional bar code

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110083050A (en) * 2010-01-13 2011-07-20 (주)이월리서치 System for authentication using pairing function in bluetooth terminal and method thereof
EP2874094A1 (en) * 2013-11-14 2015-05-20 Software602 a.s. Data authorization method
CN103763786A (en) * 2014-01-20 2014-04-30 梅平 Equipment pairing method, terminal and system
CN107249168A (en) * 2017-05-18 2017-10-13 宇龙计算机通信科技(深圳)有限公司 A kind of data directional transmissions and method of reseptance and device
CN110177354A (en) * 2019-06-21 2019-08-27 湖北亿咖通科技有限公司 A kind of wireless control method and system of vehicle
CN110636485A (en) * 2019-09-20 2019-12-31 深圳市万普拉斯科技有限公司 Bluetooth automatic connection method and method for initiating Bluetooth connection
CN111050307A (en) * 2019-11-27 2020-04-21 深圳星康医疗科技有限公司 Method, system and computer readable storage medium for realizing Bluetooth connection based on two-dimensional bar code

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115761954A (en) * 2022-11-14 2023-03-07 嬴彻星创智能科技(上海)有限公司 Bluetooth key connection method and device for vehicle

Similar Documents

Publication Publication Date Title
CN107800708B (en) Vehicle-mounted machine account automatic login method and vehicle-mounted machine device
US20150024688A1 (en) Automatic Pairing of a Vehicle and a Mobile Communications Device
CN101406020B (en) Methods, apparatuses and software for authentication of devices temporarily provided with a SIM to store a challenge-response
US9160424B2 (en) Bluetooth® system and Bluetooth® bonding process
KR102232966B1 (en) Un-tact digital key service system and method thereof
CN105025433A (en) Bluetooth pairing method and terminal
US20210136577A1 (en) Method and a device for wireless connection
CN113508609A (en) User-friendly vehicle-mounted Bluetooth pairing scheme
CN105825158A (en) NFC (Near Field Communication) device, reader, system and configuration data transmission method
CN106792473B (en) Bluetooth connection method and system, mobile terminal and vehicle-mounted equipment
CN115065703B (en) Internet of things system, authentication and communication method thereof and related equipment
CN112738046B (en) One-key login method, terminal and system server
CN115103341A (en) Bluetooth connection method and related equipment
CN112770314A (en) Method and device for establishing communication connection
CN104125205B (en) A kind of communication account number login method, system and terminal
US20230196337A1 (en) Method, terminal device, server, system and storage medium for activating payment functions
CN110446197B (en) Communication control method, device, equipment and storage medium of intelligent equipment
CN105282821A (en) Terminal and method for connecting the terminal with wireless fidelity WiFi access point
CN111132131A (en) Number copying method, terminal and storage medium
CN116366705A (en) Device connection management method, related device, system and storage medium
CN115705762A (en) Vehicle control method, device, equipment, terminal and medium
CN115379415A (en) Bluetooth automatic connection method and device, user equipment and vehicle-mounted equipment
CN111107545B (en) Account synchronization method, medium and terminal based on NFC
CN110891263A (en) Connection establishing method, diagnosis device and terminal device
WO2016177104A1 (en) Data transmission device method, device and two-tap cable

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination