CN-122028223-A - Bluetooth equipment connection method and device and vehicle-mounted terminal
Abstract
The application discloses a Bluetooth device connection method and device and a vehicle-mounted terminal, and belongs to the technical field of wireless communication. The method comprises the steps that the proxy gateway establishes communication connection with the vehicle machine through a first Bluetooth protocol, the proxy gateway receives first broadcast information broadcast by at least one Bluetooth device under the condition that the proxy gateway scans the at least one Bluetooth device supporting a second Bluetooth protocol, the proxy gateway processes the first broadcast information to obtain second broadcast information conforming to a data format of the first Bluetooth protocol, the proxy gateway sends the second broadcast information to the vehicle machine, the proxy gateway receives a connection request returned by the vehicle machine based on the second broadcast information, the proxy gateway establishes communication connection with the target Bluetooth device through the second Bluetooth protocol based on an identifier of the connection request of the target Bluetooth device, and the proxy gateway sends a connection instruction to the target Bluetooth device. According to the application, the cross-protocol communication between the vehicle and the target Bluetooth device can be realized without modifying hardware or a bottom layer protocol of the vehicle.
Inventors
- DENG WENLI
Assignees
- 芜湖汽车前瞻技术研究院有限公司
- 奇瑞汽车股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260105
Claims (10)
- 1. A method for connecting a bluetooth device, the method comprising: The proxy gateway establishes communication connection with the vehicle machine through a first Bluetooth protocol, the proxy gateway supports the first Bluetooth protocol and a second Bluetooth protocol, and the vehicle machine supports the first Bluetooth protocol; in the case that the proxy gateway scans at least one bluetooth device supporting the second bluetooth protocol, the proxy gateway receives first broadcast information broadcast by the at least one bluetooth device; The proxy gateway processes the first broadcast information to obtain second broadcast information which accords with the data format of the first Bluetooth protocol; the proxy gateway sends the second broadcast information to the vehicle machine; The proxy gateway receives a connection request returned by the vehicle machine based on the second broadcast information, wherein the connection request comprises an identifier of a target Bluetooth device to be connected in the at least one Bluetooth device; The proxy gateway establishes communication connection with the target Bluetooth device through the second Bluetooth protocol based on the identifier of the target Bluetooth device; And the proxy gateway sends a connection instruction to the target Bluetooth device, wherein the connection instruction is used for establishing an indirect communication connection link between the vehicle machine and the target Bluetooth device through the proxy gateway after the connection instruction is confirmed by the target Bluetooth device.
- 2. The method of claim 1, wherein the proxy gateway processing the first broadcast information to obtain second broadcast information in accordance with a data format of the first bluetooth protocol, comprises: the proxy gateway analyzes the equipment name, the identifier and the service list in the first broadcast information to obtain effective information; Determining each reference field based on the valid information, wherein the reference fields comprise an instruction type field, a device identification field, a data length field and a check field; And combining the reference fields based on a protocol format corresponding to the first Bluetooth protocol to obtain the second broadcast information conforming to the data format of the first Bluetooth protocol.
- 3. The method according to claim 1, wherein the method further comprises: the proxy gateway identifies a characteristic value identifier of the target Bluetooth device based on the service list of the first broadcast information, wherein the characteristic value identifier is used for determining a transmission channel of perception data of the target Bluetooth device; The proxy gateway initiates a data notification subscription request to the target Bluetooth device based on a transmission channel corresponding to the characteristic value identifier, wherein the data notification subscription request is used for authorizing the proxy gateway to receive the perception data of the target Bluetooth device; and under the condition that the data notification subscription request is confirmed, the proxy gateway receives the perception data of the target Bluetooth device through a transmission channel corresponding to the characteristic value identifier.
- 4. A method according to claim 3, characterized in that the method further comprises: The proxy gateway acquires first data information and sends the first data information to the vehicle machine based on a transmission channel of a serial port protocol of the first Bluetooth protocol; The proxy gateway receives a control instruction of the vehicle machine based on a transmission channel of a serial port protocol of the first Bluetooth protocol, the control instruction is generated based on a user interface element of a triggered virtual device in user interface elements of virtual devices displayed in a display screen of the vehicle machine, the user interface elements of a plurality of virtual devices are determined based on the first data information, the user interface element of any virtual device is associated with one virtual device, and the virtual device is a virtual mapping device of the target Bluetooth device.
- 5. The method according to claim 4, wherein the method further comprises: the proxy gateway identifying a device type of the target bluetooth device based on an identifier of a service list of the first broadcast information; the proxy gateway calls an analysis strategy corresponding to the equipment type, analyzes the perception data and obtains reference data information; and the proxy gateway processes the reference data information based on the data format of the first Bluetooth protocol to obtain the first data information.
- 6. The method of claim 4, wherein after the proxy gateway receives the control instruction of the vehicle based on the transmission channel of the serial port protocol of the first bluetooth protocol, the method further comprises: in the case that the proxy gateway is in communication connection with a plurality of target Bluetooth devices, the proxy gateway determines a first Bluetooth device from the plurality of target Bluetooth devices based on the control instruction; The proxy gateway determines interaction information based on the control instruction; and the proxy gateway sends the interaction information to the first Bluetooth device.
- 7. The method of claim 6, wherein after the proxy gateway sends the interaction information to the first bluetooth device, further comprising: The proxy gateway receives execution state information of interaction operation fed back by the first Bluetooth device through a transmission channel of a general attribute configuration file of the second Bluetooth protocol, wherein the interaction operation is an operation executed by the first Bluetooth device based on the interaction information; The proxy gateway processes the execution state information to obtain state feedback information conforming to the data format of the first Bluetooth protocol; and the proxy gateway sends the state feedback information to the vehicle machine through a transmission channel corresponding to the serial port protocol of the first Bluetooth protocol.
- 8. The method according to any one of claims 1 to 7, further comprising: The proxy gateway monitors the connection state of each target Bluetooth device under the condition that the proxy gateway is connected with a plurality of target Bluetooth devices; Under the condition that the connection state of any target Bluetooth device is changed, the proxy gateway generates state information; The proxy gateway processes the state information to obtain an information packet conforming to the data format of the first Bluetooth protocol; and the proxy gateway sends the information packet to the vehicle machine.
- 9. A connection apparatus for a bluetooth device, the apparatus comprising: The proxy gateway establishes communication connection with the vehicle machine through a first Bluetooth protocol, the proxy gateway supports the first Bluetooth protocol and a second Bluetooth protocol, and the vehicle machine supports the first Bluetooth protocol; The connection module is further configured to, when the proxy gateway scans at least one bluetooth device supporting the second bluetooth protocol, receive first broadcast information broadcast by the at least one bluetooth device; The processing module is used for processing the first broadcast information by the proxy gateway to obtain second broadcast information which accords with the data format of the first Bluetooth protocol; the sending module is used for sending the second broadcast information to the vehicle machine through the proxy gateway; The receiving module is used for receiving a connection request returned by the vehicle machine based on the second broadcast information by the proxy gateway, wherein the connection request comprises an identifier of a target Bluetooth device to be connected in the at least one Bluetooth device; the connection module is further configured to establish communication connection with the target bluetooth device through the second bluetooth protocol based on the identifier of the target bluetooth device by using the proxy gateway; the sending module is further configured to send a connection instruction to the target bluetooth device by using the proxy gateway, where the connection instruction is used to establish an indirect communication connection link between the vehicle and the target bluetooth device through the proxy gateway after the connection instruction is confirmed by the target bluetooth device, and the connection instruction is obtained based on the connection request.
- 10. A vehicle-mounted terminal, characterized in that it comprises a processor and a memory in which a computer program is stored, which computer program is loaded and executed by the processor to implement the connection method of a bluetooth device according to any one of claims 1 to 8.
Description
Bluetooth equipment connection method and device and vehicle-mounted terminal Technical Field The embodiment of the application relates to the technical field of wireless communication, in particular to a Bluetooth device connection method and device and a vehicle-mounted terminal. Background The bluetooth communication technology is widely used in vehicle-mounted systems as a short-range wireless communication technology. Bluetooth communication technologies include classical Bluetooth (Bluetooth) communication technologies and Bluetooth low energy (Bluetooth Low Energy, BLE) communication technologies. Among other things, classical bluetooth communication technology focuses on the continuous, higher data rate transmission requirements. Such as audio transmission, video transmission. The low-power consumption Bluetooth communication technology focuses on the transmission requirement of low-power consumption and intermittent data, and is widely applied to internet of things (Internet of Things, ioT) devices. Such as heart rate monitors, smart keys (PASSIVE ENTRY PASSIVE START, PEPS), tire pressure monitoring system (Tire Pressure Monitoring System, TPMS) sensors, running radars, etc. In the related art, an in-vehicle system of a vehicle has supported a classical bluetooth communication technology, but it is difficult for the in-vehicle system to realize connection with a Bluetooth Low Energy (BLE) device. If the vehicle-mounted system is connected with BLE equipment, the whole set of vehicle hardware is required to be replaced, the cost is high, and the installation and debugging process is complex, so that the compatibility of the vehicle-mounted system to BLE internet of things equipment and the expansion flexibility of intelligent functions of the vehicle are reduced. Disclosure of Invention The embodiment of the application provides a Bluetooth device connection method, a Bluetooth device connection device and a vehicle-mounted terminal, which can realize cross-protocol communication between a vehicle and a target Bluetooth device without modifying hardware or a bottom layer protocol of the vehicle. The technical scheme is as follows: in one aspect, an embodiment of the present application provides a method for connecting a bluetooth device, where the method includes: The proxy gateway establishes communication connection with the vehicle machine through a first Bluetooth protocol, the proxy gateway supports the first Bluetooth protocol and a second Bluetooth protocol, and the vehicle machine supports the first Bluetooth protocol; in the case that the proxy gateway scans at least one bluetooth device supporting the second bluetooth protocol, the proxy gateway receives first broadcast information broadcast by the at least one bluetooth device; The proxy gateway processes the first broadcast information to obtain second broadcast information which accords with the data format of the first Bluetooth protocol; the proxy gateway sends the second broadcast information to the vehicle machine; The proxy gateway receives a connection request returned by the vehicle machine based on the second broadcast information, wherein the connection request comprises an identifier of a target Bluetooth device to be connected in the at least one Bluetooth device; The proxy gateway establishes communication connection with the target Bluetooth device through the second Bluetooth protocol based on the identifier of the target Bluetooth device; And the proxy gateway sends a connection instruction to the target Bluetooth device, wherein the connection instruction is used for establishing an indirect communication connection link between the vehicle machine and the target Bluetooth device through the proxy gateway after the connection instruction is confirmed by the target Bluetooth device. In another aspect, an embodiment of the present application provides a connection apparatus for a bluetooth device, where the apparatus includes: the connection module is used for establishing communication connection between the proxy gateway and the vehicle machine through a first Bluetooth protocol, the proxy gateway supports the first Bluetooth protocol and a second Bluetooth protocol, and the vehicle machine supports the first Bluetooth protocol; The connection module is further configured to, when the proxy gateway scans at least one bluetooth device supporting the second bluetooth protocol, receive first broadcast information broadcast by the at least one bluetooth device; The processing module is used for processing the first broadcast information by the proxy gateway to obtain second broadcast information which accords with the data format of the first Bluetooth protocol; the sending module is used for sending the second broadcast information to the vehicle machine through the proxy gateway; The receiving module is used for receiving a connection request returned by the vehicle machine based on the second broadcast information by the