CN-121985434-A - Bluetooth connection establishment method, device, equipment, storage medium and program product
Abstract
The application provides a Bluetooth connection establishment method, a device, equipment, a storage medium and a program product, and relates to the technical field of Bluetooth communication. The method comprises the steps of broadcasting a vehicle machine identifier of a vehicle machine at a vehicle machine end, receiving response type broadcast data of a first intelligent peripheral, wherein the response type broadcast data are sent by the vehicle machine after the first intelligent peripheral responds to scanning, broadcasting an invitation connection request if the response type broadcast data are the peripheral identifiers of the first intelligent peripheral, wherein the invitation connection request carries the peripheral identifiers of the first intelligent peripheral, receiving a first Bluetooth connection request sent by the first intelligent peripheral in response to the invitation connection request, and establishing Bluetooth connection between the vehicle machine and the first intelligent peripheral based on the first Bluetooth connection request, so that the intelligent level and the non-inductive interaction capability of interconnection between the vehicle machine and the intelligent peripheral are improved.
Inventors
- LI YOU
- ZHOU WENHUAN
- CHEN XIAO
Assignees
- 岚图汽车科技股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260212
Claims (15)
- 1. The Bluetooth connection establishment method is characterized by being applied to a vehicle machine and comprising the following steps: broadcasting the vehicle-machine identification of the vehicle-machine; receiving responsive broadcast data of a first intelligent peripheral, wherein the responsive broadcast data is transmitted by the first intelligent peripheral in response to scanning of the vehicle; If the responsive broadcast data is the peripheral identification of the first intelligent peripheral, broadcasting an invitation connection request, wherein the invitation connection request carries the peripheral identification of the first intelligent peripheral; receiving a first Bluetooth connection request sent by the first intelligent peripheral in response to the invitation connection request; and establishing Bluetooth connection between the vehicle machine and the first intelligent peripheral based on the first Bluetooth connection request.
- 2. The method as recited in claim 1, further comprising: Starting timing when an invitation connection request is broadcast, and obtaining an invitation time length; If the invitation time is less than or equal to the invitation time threshold and Bluetooth connection between the vehicle and the first intelligent peripheral is completed, broadcasting a vehicle identifier of the vehicle; and if the invitation time is longer than the invitation time threshold, broadcasting the vehicle-machine identification of the vehicle-machine.
- 3. The method according to claim 1 or 2, further comprising: If the responsive broadcast data is a second Bluetooth connection request sent by a second intelligent peripheral, establishing Bluetooth connection between the vehicle and the second intelligent peripheral based on the second Bluetooth connection request, wherein the second intelligent peripheral is an intelligent peripheral bound with the vehicle.
- 4. The method according to claim 1 or 2, wherein broadcasting the car logo of the car is stopped if the invitation connection request is broadcast, and broadcasting the invitation connection request is stopped if the car logo of the car is broadcast.
- 5. The Bluetooth connection establishment method is characterized by being applied to intelligent peripherals and comprising the following steps: determining whether the intelligent peripheral establishes a binding relationship with the vehicle machine corresponding to the vehicle machine identifier or not in response to the scanning of the vehicle machine identifier; if the intelligent peripheral device and the vehicle machine corresponding to the vehicle machine identifier do not establish a binding relationship, transmitting responsive broadcast data to the vehicle machine, wherein the responsive broadcast data is the peripheral device identifier of the intelligent peripheral device; Receiving an invitation connection request broadcast by a vehicle machine, wherein the invitation connection request carries a peripheral identification of the intelligent peripheral; Responding to the invitation connection request, and sending a first Bluetooth connection request to the vehicle machine; And establishing Bluetooth connection between the vehicle machine and the intelligent peripheral based on the first Bluetooth connection request.
- 6. The method as recited in claim 5, further comprising: starting timing when responsive broadcast data is sent to the vehicle-mounted device, and obtaining broadcast duration; and if the broadcasting time length is greater than a broadcasting time length threshold value, stopping sending the responsive broadcasting data.
- 7. The method according to claim 5 or 6, further comprising: and if the invitation connection request does not carry the peripheral identification of the intelligent peripheral, ignoring the invitation connection request.
- 8. The method according to claim 5 or 6, further comprising: if a binding relation is established between the vehicle and the vehicle corresponding to the vehicle identifier, transmitting responsive broadcast data to the vehicle, wherein the responsive broadcast data is a second Bluetooth connection request; And establishing Bluetooth connection between the vehicle machine and the intelligent peripheral based on the second Bluetooth connection request.
- 9. A vehicle machine, comprising: The broadcasting unit is used for broadcasting the vehicle-machine identification of the vehicle-machine; The system comprises a responsive broadcast receiving unit, a first intelligent peripheral, a second intelligent peripheral and a third intelligent peripheral, wherein the responsive broadcast receiving unit is used for receiving responsive broadcast data of the first intelligent peripheral, and the responsive broadcast data is transmitted by the first intelligent peripheral in response to scanning to the vehicle; An invitation unit, configured to broadcast an invitation connection request if responsive broadcast data is a peripheral identifier of the first intelligent peripheral, where the invitation connection request carries the peripheral identifier of the first intelligent peripheral; A request receiving unit, configured to receive a first bluetooth connection request sent by the first intelligent peripheral in response to the invite connection request; And the vehicle-mounted machine connection unit is used for establishing Bluetooth connection between the vehicle-mounted machine and the first intelligent peripheral based on the first Bluetooth connection request.
- 10. An intelligent peripheral, comprising: The broadcasting response unit is used for responding to the scanned vehicle-to-machine identification and determining whether the intelligent peripheral establishes a binding relationship with the vehicle-to-machine corresponding to the vehicle-to-machine identification; The peripheral broadcasting unit is used for sending responsive broadcasting data to the vehicle machine if the intelligent peripheral does not establish a binding relationship with the vehicle machine corresponding to the vehicle machine identifier, wherein the responsive broadcasting data is the peripheral identifier of the intelligent peripheral; The invitation receiving unit is used for receiving an invitation connection request broadcast by the vehicle machine, wherein the invitation connection request carries a peripheral identification of the intelligent peripheral; the request unit is used for responding to the invitation connection request and sending a first Bluetooth connection request to the vehicle machine; and the peripheral connection unit is used for establishing Bluetooth connection between the vehicle and the intelligent peripheral based on the first Bluetooth connection request.
- 11. A bluetooth connection establishment system comprising a vehicle according to claim 9 and a peripheral according to claim 10.
- 12. An electronic device, comprising: One or more processors; Storage means for storing one or more programs which, when executed by the one or more processors, cause the electronic device to implement the bluetooth connection establishment method as claimed in any one of claims 1 to 8.
- 13. A computer readable storage medium, wherein computer executable instructions are stored in the computer readable storage medium, which when executed by a processor is adapted to implement the bluetooth connection establishment method according to any of claims 1 to 8.
- 14. A computer program product, characterized in that the computer program product comprises computer program instructions for causing a computer to execute the bluetooth connection establishment method according to any of the claims 1 to 6.
- 15. A computer program, characterized in that the computer program causes a computer to execute the bluetooth connection establishment method according to any one of claims 1 to 8.
Description
Bluetooth connection establishment method, device, equipment, storage medium and program product Technical Field The present application relates to the field of bluetooth communication technologies, and in particular, to a bluetooth connection establishment method, apparatus, device, storage medium, and program product. Background With the development of intelligent automobiles, users have increasingly demanded interconnection between automobile machines and various types of intelligent peripherals, such as mobile phones, flat panels, rear-row display screens, remote controllers, bluetooth buttons and the like. In the prior art, bluetooth connection between a vehicle machine and an intelligent peripheral mainly depends on a unidirectional connection mechanism of a traditional BLE (Bluetooth Low Energy ) protocol. In the bluetooth low energy architecture, the two communication parties are fixedly divided into two roles of a GATT (Generic Attribute Profile, general attribute specification) client and a GATT server, and a vehicle machine serving as the GATT server needs to passively wait for active scanning discovery of an intelligent peripheral serving as the GATT client, and needs to initiate and establish bluetooth connection with the vehicle machine after manual selection by a user. However, the discovery and connection between the intelligent peripheral and the vehicle machine in the mode are required to rely on manual operation of a user, so that the due noninductive interaction of the intelligent vehicle is affected. Therefore, it is desirable to provide a solution that can promote the level of intelligence and non-sensible interaction capability of the interconnection of the vehicle with the intelligent peripherals. Disclosure of Invention The embodiment of the application provides a Bluetooth connection establishment method, a Bluetooth connection establishment device, bluetooth connection establishment equipment, bluetooth connection establishment storage media and Bluetooth connection establishment program products, which are used for configuring bidirectional connection initiation capability of a vehicle machine and an intelligent peripheral, so that automatic mutual discovery and automatic connection between the vehicle machine and the intelligent peripheral are realized. In a first aspect, an embodiment of the present application provides a bluetooth connection establishment method, which is applied to a vehicle, and includes: Broadcasting a vehicle-machine identifier of the vehicle-machine; Receiving responsive broadcast data of the first intelligent peripheral, wherein the responsive broadcast data is sent by the first intelligent peripheral in response to scanning to the vehicle; If the responsive broadcast data is the peripheral identification of the first intelligent peripheral, broadcasting an invitation connection request, wherein the invitation connection request carries the peripheral identification of the first intelligent peripheral; Receiving a first Bluetooth connection request sent by a first intelligent peripheral in response to the invitation connection request; based on the first Bluetooth connection request, bluetooth connection between the vehicle machine and the first intelligent peripheral is established. In one possible embodiment, the method further comprises: Starting timing when an invitation connection request is broadcast, and obtaining an invitation time length; if the invitation time is less than or equal to the invitation time threshold and Bluetooth connection of the vehicle and the first intelligent peripheral is completed, broadcasting a vehicle identification of the vehicle; and if the invitation time is longer than the invitation time threshold, broadcasting the vehicle-machine identification of the vehicle-machine. In one possible embodiment, the method further comprises: If the responsive broadcast data is a second Bluetooth connection request sent by the second intelligent peripheral, bluetooth connection between the vehicle machine and the second intelligent peripheral is established based on the second Bluetooth connection request, and the second intelligent peripheral is an intelligent peripheral bound with the vehicle machine. In one possible implementation, if the invitation connection request is broadcast, the vehicle identification of the vehicle is stopped, and if the vehicle identification of the vehicle is broadcast, the invitation connection request is stopped. In a second aspect, an embodiment of the present application provides a bluetooth connection establishment method, applied to an intelligent peripheral, including: determining whether the intelligent peripheral establishes a binding relationship with the vehicle machine corresponding to the vehicle machine identifier or not in response to the scanning of the vehicle machine identifier; If the intelligent peripheral device and the vehicle machine corresponding to the vehicle machine identifie