Vehicle function control method, device, electronic device and medium based on BLE

The location is determined through the signal strength and link information of the mobile terminal and the vehicle's Bluetooth device to achieve intelligent vehicle control, which solves the inconvenient problem of traditional vehicle unlocking methods and improves user experience and operational convenience.

CN117376813BActive Publication Date: 2024-10-29BYD CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210770562.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2024-10-29
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

The traditional vehicle unlocking method requires both hands to operate a mechanical key or enter a password, which provides a poor user experience and is especially inconvenient when carrying it for shopping.

Method used

By connecting the mobile terminal to the Bluetooth device on the vehicle, the signal strength and communication link information are obtained, and the signal strength between the device in the vehicle and the terminal is determined, thereby realizing intelligent control of the vehicle, such as senseless entry and door unlocking.

Benefits of technology

It enables intelligent control of the vehicle without carrying a mechanical key or manual operation, improving user experience and operational convenience, reducing mobile phone power consumption and extending standby time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117376813B_ABST
    Figure CN117376813B_ABST
Patent Text Reader

Abstract

The present application discloses a vehicle function control method, device, electronic device and medium based on BLE. The method includes: when detecting that the Bluetooth connection between a mobile terminal and a first Bluetooth device on a vehicle is successful, obtaining the first signal strength RSSI value and communication link information between the mobile terminal and the first Bluetooth device; according to the communication link information, determining the second signal strength RSSI values ​​between several second Bluetooth devices on the vehicle and the mobile terminal respectively; according to the first signal strength RSSI value and several second signal strength RSSI values, determining the target position information between the mobile terminal and the vehicle. A BLE connection is achieved between the mobile terminal and the first Bluetooth device on the vehicle, the RSSI value and communication link information between the mobile terminal and the first Bluetooth device are obtained, and the RSSI values ​​of the second Bluetooth devices and the mobile terminal are obtained through several second Bluetooth devices on the vehicle, thereby realizing accurate positioning of the vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle control technology, and in particular to a vehicle function control method, device, electronic device and medium based on BLE. Background Art

[0002] With the rapid development of technology, people have a stronger demand for intelligent operating systems. For example, in daily life, after people purchase the goods they need from shopping malls, supermarkets and other places, they usually need to drive their own vehicles home. At this time, because their hands are full of shopping goods, in traditional scenarios, people need to put down the goods in their hands, and then take out the mechanical key or enter the password to open the car door. This unlocking method requires carrying a mechanical key and manual operation, which is inconvenient for users to operate and has a poor user experience. Summary of the invention

[0003] In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a vehicle function control method, device, electronic device and medium based on BLE.

[0004] In a first aspect, a vehicle function control method based on BLE is provided, the method comprising:

[0005] When it is detected that the Bluetooth connection between the mobile terminal and the first Bluetooth device on the vehicle is successful, obtaining a first signal strength RSSI value and communication link information between the mobile terminal and the first Bluetooth device, wherein the communication link information includes communication channel information;

[0006] Determine, according to the communication link information, a plurality of second signal strength RSSI values ​​between a plurality of second Bluetooth devices on the vehicle and the mobile terminal respectively;

[0007] The target position information between the mobile terminal and the vehicle is determined according to the first signal strength RSSI value and a plurality of the second signal strength RSSI values.

[0008] In a second aspect, a BLE-based vehicle function control device is provided, comprising:

[0009] an acquisition module, configured to acquire a first signal strength RSSI value and communication link information between the mobile terminal and the first Bluetooth device when a successful Bluetooth connection is detected between the mobile terminal and the first Bluetooth device on the vehicle, wherein the communication link information includes communication channel information;

[0010] A first determination module is used to determine a plurality of second signal strength RSSI values ​​between a plurality of second Bluetooth devices on the vehicle and the mobile terminal respectively according to the communication link information;

[0011] The second determination module is used to determine the target position information between the mobile terminal and the vehicle according to the first signal strength RSSI value and a plurality of the second signal strength RSSI values.

[0012] According to a third aspect, an electronic device is provided, including:

[0013] one or more processors;

[0014] A memory for storing one or more programs;

[0015] When one or more programs are executed by one or more processors, the one or more processors execute the BLE-based vehicle function control method provided in the embodiments of the present application.

[0016] In a fourth aspect, a computer-readable storage medium storing a computer program is provided, and the program is executed by a processor as a BLE-based vehicle function control method provided in each embodiment of the present application.

[0017] According to the technical solution provided in the embodiments of the present application, a BLE-based vehicle function control method, device, electronic device and medium are provided, and a BLE connection is realized through a mobile terminal and a first Bluetooth device installed on a vehicle, so as to obtain a first signal strength RSSI value and communication link information between the first Bluetooth device and the mobile terminal, and determine a second signal strength RSSI value of a second Bluetooth device on the vehicle and the mobile terminal according to the communication link information, and then determine the relative position and distance information of the mobile terminal and the vehicle. When the mobile terminal carried by the user enters the target range of the vehicle, corresponding intelligent control operations can be performed on the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0019] Figure 1 An exemplary flow chart of an implementation of a BLE-based vehicle function control method provided in an embodiment of the present application;

[0020] Figure 2 A schematic diagram of the connection between a first Bluetooth device, a second Bluetooth device and a mobile terminal on a vehicle provided in an embodiment of the present application;

[0021] Figure 3 A data interaction diagram between the master node, slave node and monitor node provided in the embodiment of the present application;

[0022] Figure 4An exemplary flow chart of a preferred implementation of a BLE-based vehicle function control method provided in an embodiment of the present application;

[0023] Figure 5 (a) is a timing diagram of a traditional broadcast scan provided in an embodiment of the present application; Figure 5 (b) is a timing diagram of link monitoring based on GFSK technology provided in an embodiment of the present application;

[0024] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.

[0026] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0027] Please refer to Figure 1 The exemplary flow chart of the vehicle function control method based on BLE shown in the figure, the vehicle function control method based on BLE provided by the present invention includes:

[0028] S10: when it is detected that the Bluetooth connection between the mobile terminal and the first Bluetooth device on the vehicle is successful, obtaining a first signal strength RSSI value and communication link information between the mobile terminal and the first Bluetooth device, wherein the communication link information includes communication channel information;

[0029] S20: determining, according to the communication link information, a plurality of second signal strength RSSI values ​​between a plurality of second Bluetooth devices on the vehicle and the mobile terminal respectively;

[0030] S30: Determine the target location information between the mobile terminal and the vehicle according to the first signal strength RSSI value and a plurality of the second signal strength RSSI values.

[0031] In this embodiment, signal strength RSSI refers to Received Signal Strength Indication. The present invention provides a scheme for calculating the relative distance between a mobile terminal and a low-frequency antenna in a vehicle according to the RSSI of a received low-frequency signal. The spatial position of the mobile terminal relative to the vehicle can be located by cross-covering the range of multiple low-frequency antennas. In the vehicle function control method based on BLE (Bluetooth Low Energy, low-power Bluetooth) of the present application, a connectable broadcast is transmitted by a first Bluetooth device installed on the vehicle (such as transmitting a connectable broadcast at intervals of 100ms), and the mobile terminal scans the connectable broadcast and performs a Bluetooth connection. When it is detected that the mobile terminal is successfully connected to the first Bluetooth device by Bluetooth, the first signal strength RSSI value and the communication link information between the mobile terminal and the first Bluetooth device are obtained, and the distance information between the first Bluetooth device and the mobile terminal is determined according to the obtained first signal strength RSSI value. At the same time, several second Bluetooth devices on the vehicle monitor the communication channel information between the first Bluetooth device and the mobile terminal, and determine the second signal strength RSSI value between each second Bluetooth device and the mobile terminal through the data packet transmitted in the communication channel information, and then determine the distance between each second Bluetooth device and the mobile terminal according to the second signal strength RSSI value. Finally, the target position information between the mobile terminal and the vehicle is determined according to the distance information between the first Bluetooth device and the mobile terminal, and the distances between a plurality of second Bluetooth devices and the mobile terminal.

[0032] Specifically, Figure 2 As shown, the mobile terminal has a master node, the first Bluetooth device is a slave node, the slave node is located in the vehicle's armrest box or central control room, the slave node is connected to the body controller (BCM) via a CAN line, and the second Bluetooth device is a monitor node. The master node of the mobile terminal is the initiator, and the slave node on the vehicle is the receiver. All Bluetooth communication processes require the connection and release of the link. When the connection starts, the connection initiator temporarily acts as the master, responsible for establishing the connection, frequency synchronization and all communications. The master node and the slave node can perform wireless Bluetooth communication. The slave node of the present application can be multiple. When multi-link monitoring is required, the master node can initiate a Bluetooth connection with multiple slave nodes.

[0033] It should be noted that the mobile terminal can be a mobile phone, and the mobile phone master node and slave node are connected by Bluetooth. The mobile phone no longer needs to broadcast, which reduces the burden on the mobile phone. It not only solves the problem that some mobile phones cannot broadcast in the background, but also reduces the power consumption of the mobile phone and extends the standby time of the mobile phone.

[0034] In one embodiment, in step S20, determining, based on the communication link information, a plurality of second signal strength RSSI values ​​between a plurality of second Bluetooth devices on the vehicle and the mobile terminal, respectively, includes:

[0035] S201: configuring a plurality of second Bluetooth devices according to the communication link information to control each of the second Bluetooth devices to enter a monitoring mode;

[0036] S202: Each of the second Bluetooth devices monitors the radio frequency channel corresponding to the communication channel information to determine a second signal strength RSSI value between each of the second Bluetooth devices and the mobile terminal.

[0037] Specifically, according to the acquired communication link information, several second Bluetooth devices are configured so that the second Bluetooth devices and the first Bluetooth device work on the same radio frequency channel. On the same radio frequency channel, the second Bluetooth device can monitor the data packet between the first Bluetooth device and the mobile terminal, and obtain the second signal strength RSSI value between each second Bluetooth device and the mobile terminal based on the data packet, and use the signal strength RSSI values ​​collected by multiple second Bluetooth devices for auxiliary positioning.

[0038] In this application, slave nodes are required, and monitor nodes can be effectively set or increased or decreased according to the actual application scenario. The number of monitor nodes can be 0, 1, 2, 3, 4, 5, etc., and the location and antenna of the monitor nodes can be reasonably arranged. For example, Figure 2 As shown, monitor node 1 is located on the left rearview mirror, and the antenna needs to be tilted backwards to ensure that the signal is not blocked at the left front door. Monitor node 2 is located on the right rearview mirror, and the antenna needs to be tilted backwards to ensure that the signal is not blocked at the right front door. Monitor node 3 is located on the right rear door handle, and the antenna is installed facing outward. Monitor node 4 is located on the left rear door handle, and the antenna is installed facing outward. Monitor node 5 is located on the rear bumper to ensure that the signal is not blocked at the rear of the vehicle. If the number of monitor nodes is reduced, the positioning accuracy will be reduced, but the cost will be saved.

[0039] In one embodiment, in step S201, the first Bluetooth device is connected to each of the second Bluetooth devices via a wired / wireless connection;

[0040] Wherein, configuring a plurality of second Bluetooth devices according to the communication link information includes:

[0041] S2010: The first Bluetooth device wakes up a plurality of the second Bluetooth devices, and synchronizes the communication link information to all the second Bluetooth devices;

[0042] S2011: Each of the second Bluetooth devices frequency-hops to a radio frequency channel corresponding to the communication channel information to monitor data packets transmitted between the mobile terminal and the first Bluetooth device on the radio frequency channel.

[0043] Specifically, Figure 2 As shown in the figure, all monitor nodes use LIN lines to connect to slave nodes, effectively reducing the complexity of the connection. When the master node of the mobile phone initiates a Bluetooth connection with multiple slave nodes, the monitor node can monitor multiple links at the same time.

[0044] like Figure 3-4 As shown, several second Bluetooth device monitor nodes provided in the embodiment of the present application are in sleep mode under normal conditions, that is, they are all in sleep mode before being awakened to reduce the power consumption of the whole vehicle. When the master node of the mobile terminal completes the Bluetooth connection with the slave node, the slave node will wake up the monitor node and configure the monitor node parameters. After the configuration is completed, the monitor node performs frequency hopping and monitoring operations to synchronize the connection parameters of the monitor node and the slave node, and enter the GFSK monitoring mode.

[0045] In one embodiment, in step S2011, after each of the second Bluetooth devices hops to the radio frequency channel corresponding to the communication channel information, the method further includes:

[0046] Monitoring whether communication channel information between the mobile terminal and the first Bluetooth device changes;

[0047] When a change is detected, determining a frequency hopping algorithm between the mobile terminal and the first Bluetooth device;

[0048] Each of the second Bluetooth devices is controlled to synchronously frequency hop following the frequency hopping algorithm to monitor data packets transmitted between the mobile terminal and the first Bluetooth device after the frequency hopping.

[0049] In this embodiment, if Figure 3-4 As shown, during the real-time monitoring process of the second Bluetooth device, it is determined whether the communication channel between the first Bluetooth device and the mobile terminal has changed. If so, the channel change algorithm (i.e., the GFSK frequency hopping algorithm) is determined, and then the second Bluetooth device is controlled to synchronize the frequency hopping with the frequency hopping rules of the first Bluetooth device and the mobile terminal. The second Bluetooth device realizes autonomous frequency hopping, and after hopping to the corresponding communication channel, it monitors the connection status of the mobile terminal and the first Bluetooth device in the current communication channel in real time.

[0050] Compared with the traditional method of obtaining signal strength RSSI value through broadcast scanning, the embodiment of the present application adopts GFSK (Gauss frequency Shift Keying) frequency hopping algorithm for link monitoring. When the slave node and the mobile terminal master node establish a Bluetooth connection and maintain the Bluetooth connection, the monitor node adopts the GFSK frequency hopping algorithm to make the monitor node and the slave node work on the same RF channel, and synchronize frequency hopping with the frequency hopping rules of the slave node and the mobile terminal master node to perform multi-point RSSI value sampling.

[0051] like Figure 5 As shown, by comparing the timing diagram of the traditional broadcast scanning and the timing diagram of the GFSK link monitoring of the present application, it can be seen that:

[0052] (1) Figure 5 As shown in (a), in the traditional broadcast scanning solution, the scanning node has a large duty cycle. In order to obtain as much data wave as possible in the broadcast channel, the scanning node will perform a nearly full-window scan, which will generate higher power consumption for low-power devices. Whether it is the car-side Bluetooth or the mobile phone as a SAN device, it will affect the system power consumption. Figure 5 As shown in (b), in the GFSK link monitoring solution of the present application, the monitoring duty cycle is very small, close to the duty cycle of data transmission in the connected state, which greatly reduces the power consumption of the system.

[0053] (2) Figure 5 As shown in (a), in the traditional broadcast scanning solution, data packets can only be broadcast on three ADV channels 37, 38, and 39, and the scanning device can only collect data on these three channels, which will greatly reduce the probability of discovery and cause data lag for the real-time positioning system. Figure 5 As shown in (b), in the GFSK link monitoring solution of this application, the monitor and slave nodes synchronize frequency hopping (on 37 data channels), and can monitor signals on the same channel every time, greatly increasing the real-time performance of data collection. This application uses 37 BLE data channels for data collection. In a noisy environment, it can reduce the interference of the same frequency channel and the impact of reflections and obstacles. At the same time, encrypted communication can be carried out between the mobile phone and the terminal device, improving product safety and reliability and preventing relay attacks.

[0054] In one embodiment, after detecting that the Bluetooth connection between the mobile terminal and the first Bluetooth device on the vehicle is successful, and before determining, based on the communication link information, a plurality of second signal strength RSSI values ​​between a plurality of second Bluetooth devices on the vehicle and the mobile terminal respectively, the method further includes:

[0055] The mobile terminal performs an identity security authentication operation with the first Bluetooth device. If the authentication fails or no security authentication request initiated by the mobile terminal is received within the specified time, the current Bluetooth connection is disconnected and link resources are released; otherwise, the current Bluetooth connection state is maintained between the mobile terminal and the first Bluetooth device.

[0056] In this embodiment, if Figure 3-4 As shown, this application adds an identity security authentication mechanism, which is used to determine whether the connection between the mobile terminal and the first Bluetooth device is safe and reliable. That is, after the master node of the mobile phone establishes a Bluetooth connection with the slave node, identity security authentication is required. If the security authentication fails or the security authentication request initiated by the mobile phone is not received within the specified time (such as 15 seconds), the current connection is disconnected and the link resources are released to ensure that the valid account can connect to the target device; if the security authentication passes, the current BLE connection state is maintained, the master node of the mobile phone requests the vehicle status information from the slave node (the period can be 1s), and the slave node replies with the current status information of the vehicle.

[0057] In one embodiment, in step S30, determining the target location information between the mobile terminal and the vehicle according to the first signal strength RSSI value and a plurality of the second signal strength RSSI values ​​includes:

[0058] Performing a filtering compensation operation on the first signal strength RSSI value and / or a plurality of the second signal strength RSSI values ​​to obtain a filtering compensated RSSI value; wherein the filtering compensation operation includes a Kalman filtering operation and a preset mean value compensation operation;

[0059] According to the filtered compensated RSSI value, the location information of the first Bluetooth device in the vehicle and the location information of each of the second Bluetooth devices in the vehicle, based on a predetermined three-sided positioning algorithm and / or area detection algorithm, the target location information between the mobile terminal and the vehicle is determined.

[0060] In this embodiment, if Figure 3As shown in the figure, in the actual environment, the signal strength RSSI value is easily affected by the surrounding environment, such as the angle of the mobile phone, obstacles in space, reflection of objects and other factors, so it is necessary to filter and compensate the signal strength RSSI value reported by the slave node. The filtering compensation uses the Kalman filter algorithm to make its signal change an asymptotic curve; at the same time, the mean of the data in a calculation window is used to perform secondary compensation on the mutated signal. Among them, Kalman filtering is an algorithm that uses the linear system state equation to optimally estimate the system state through the system input and output observation data.

[0061] According to the actual node conditions set in the vehicle, different application solutions are selected. When the system is initialized, the slave node downloads the status and location information of all monitor nodes. When calculating the position, according to the filter-compensated RSSI value, the location information of the first Bluetooth device in the vehicle, and the location information of each second Bluetooth device in the vehicle, and according to the number of monitor nodes, a single-point positioning algorithm, a three-sided positioning algorithm, a repeated three-sided positioning algorithm or a regional detection algorithm is selected to determine the target location information between the mobile terminal and the vehicle. If the number of monitor nodes is 0, the single-point positioning algorithm is used to estimate the area where the vehicle is located relative to the mobile terminal; if the number of monitor nodes is two, the three-sided positioning algorithm and the regional detection algorithm are combined with the slave node to obtain the target location information between the vehicle and the mobile terminal; if the number of monitor nodes is greater than two, the multiple three-sided positioning algorithm and the regional detection algorithm are used, and compensation optimization is performed to obtain the target location information between the vehicle and the mobile terminal. The method of combining the three-sided positioning algorithm and the regional detection algorithm can improve the vehicle positioning accuracy.

[0062] In one embodiment, step S30 further includes:

[0063] S40: performing corresponding control operations on the vehicle according to the target position information;

[0064] Wherein, performing corresponding control operations on the vehicle according to the target position information includes:

[0065] It is determined that the mobile terminal is located in the area where the vehicle is located, and corresponding control operations are performed on the vehicle according to distance information between the vehicle and the mobile terminal or a real-time RSSI value between the first Bluetooth device and the mobile terminal.

[0066] In this embodiment, if Figure 4As shown, when the relative position and distance information of the mobile terminal relative to the vehicle are determined, when the mobile terminal carried by the user enters the target range of the vehicle, and combined with the real-time RSSI value information between the first Bluetooth device and the mobile terminal, the first Bluetooth device sends a control signal to the body controller (BCM) of the vehicle, thereby performing corresponding intelligent control operations on the vehicle, such as opening the door, starting the vehicle, etc., so that the user does not need to carry a mechanical key or a Bluetooth key, nor does he need to manually open the door, freeing the user's hands, providing the user with functions such as seamless entry and vehicle control, so that the user has a better driving experience.

[0067] In one embodiment, in step S40, performing corresponding control operations on the vehicle according to the distance information between the vehicle and the mobile terminal or the real-time RSSI value between the first Bluetooth device and the mobile terminal includes:

[0068] When the mobile terminal enters the welcome light area of ​​the vehicle, and the distance between the vehicle and the mobile terminal gradually shortens or the signal strength RSSI between the first Bluetooth device and the mobile terminal gradually becomes stronger, the first Bluetooth device sends a welcome light turn-on command to the vehicle body controller, and the vehicle body controller controls the welcome light to turn on automatically according to the acquired command;

[0069] When the mobile terminal enters the PE area of ​​the vehicle from the welcome light area of ​​the vehicle, and the distance between the vehicle and the mobile terminal gradually shortens or the signal strength RSSI between the first Bluetooth device and the mobile terminal gradually becomes stronger, the first Bluetooth device sends a door unlocking command to the body controller, and the body controller controls the door to automatically unlock according to the acquired command;

[0070] When the mobile terminal enters the PS area of ​​the vehicle from the PE area of ​​the vehicle, the first Bluetooth device sends a vehicle start command to the vehicle body controller, and the vehicle body controller controls the vehicle engine to start automatically according to the acquired command.

[0071] In this embodiment, when the user brings the mobile phone close to the vehicle, the vehicle's welcome light will automatically flash, the door will be unlocked and the vehicle will be started, providing the user with a non-perceptible vehicle entry function. The welcome light area means that the mobile phone is 5-10 meters outside the vehicle; the PE (Passive Entry) area means that the mobile phone is within 5 meters outside the vehicle; the PS (Passive Start) area means that the mobile phone is inside the vehicle. The above distance range values ​​used to divide the three areas are only exemplary. In actual application scenarios, other distance ranges can also be used for division.

[0072] like Figure 4As shown, when the distance between the vehicle and the mobile terminal gradually shortens or the signal strength RSSI between the first Bluetooth device and the mobile terminal gradually becomes stronger, it means that the user is gradually approaching the vehicle with the mobile phone; when the distance between the vehicle and the mobile terminal gradually shortens or the signal strength RSSI between the first Bluetooth device and the mobile terminal gradually weakens, it means that the user is gradually moving away from the vehicle with the mobile phone. In this application, the strength of the signal strength RSSI between the second Bluetooth device and the mobile terminal can also be used to determine whether the user is approaching or moving away from the vehicle.

[0073] When the mobile phone carried by the user enters the welcome light area outside the vehicle and the user is approaching the vehicle, the welcome light will automatically turn on. When the mobile phone carried by the user enters the PE (Passive Entry) area outside the vehicle (i.e. the keyless entry area) and the user is approaching the vehicle, the vehicle door unlocking function will be automatically completed. When the mobile phone carried by the user enters the PS (Passive Start) area (i.e. the keyless start area) inside the vehicle from the PE area outside the vehicle, the vehicle start function will be automatically completed in combination with the vehicle's brake status.

[0074] In one embodiment, in step S40, performing corresponding control operations on the vehicle according to the distance information between the vehicle and the mobile terminal or the real-time RSSI value between the first Bluetooth device and the mobile terminal includes:

[0075] When the mobile terminal enters the PE area of ​​the vehicle from the PS area of ​​the vehicle, the first Bluetooth device sends a vehicle engine stop command to the vehicle body controller, and the vehicle body controller controls the vehicle engine to automatically stop according to the acquired command;

[0076] When the mobile terminal enters the PE area of ​​the vehicle and the distance between the vehicle and the mobile terminal gradually increases or the signal strength RSSI between the first Bluetooth device and the mobile terminal gradually decreases, the first Bluetooth device sends a door lock command to the body controller, and the body controller controls the door to automatically lock according to the obtained command.

[0077] Specifically, when the vehicle engine is started successfully, the mobile terminal remains connected to the first Bluetooth device, and the first Bluetooth device continuously obtains the vehicle status information. When the vehicle stops moving and the mobile terminal enters the PE area outside the vehicle from the PS area inside the vehicle, the first Bluetooth device sends a vehicle engine stop command to the body controller, and the body controller controls the vehicle engine to stop automatically according to the obtained command; when the mobile terminal enters the PE area outside the vehicle and the user is moving away from the vehicle with the mobile phone, the first Bluetooth device sends a door lock command to the body controller, and the body controller controls the door to lock automatically according to the obtained command; at the same time, the mobile terminal disconnects from the first Bluetooth device, and the first Bluetooth device notifies the second Bluetooth device monitor node to enter sleep mode to reduce power consumption.

[0078] It should be noted that although the operations of the method of the present invention are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted in the flow chart can change the execution order.

[0079] According to a second aspect of an embodiment of the present application, a BLE-based vehicle function control device is provided, comprising:

[0080] an acquisition module, configured to acquire a first signal strength RSSI value and communication link information between the mobile terminal and the first Bluetooth device when a successful Bluetooth connection is detected between the mobile terminal and the first Bluetooth device on the vehicle, wherein the communication link information includes communication channel information;

[0081] A first determination module is used to determine a plurality of second signal strength RSSI values ​​between a plurality of second Bluetooth devices on the vehicle and the mobile terminal respectively according to the communication link information;

[0082] The second determination module is used to determine the target position information between the mobile terminal and the vehicle according to the first signal strength RSSI value and a plurality of the second signal strength RSSI values.

[0083] In one embodiment, the first determining module includes:

[0084] a configuration unit, configured to configure a plurality of second Bluetooth devices according to the communication link information, so as to control each of the second Bluetooth devices to enter a monitoring mode;

[0085] The first determining unit is configured to enable each of the second Bluetooth devices to monitor a radio frequency channel corresponding to the communication channel information, and determine a second signal strength RSSI value between each of the second Bluetooth devices and the mobile terminal.

[0086] In one embodiment, the configuration unit is specifically configured to wake up a plurality of the second Bluetooth devices by the first Bluetooth device, and synchronize the communication link information to all the second Bluetooth devices;

[0087] Each of the second Bluetooth devices hops to the radio frequency channel corresponding to the communication channel information to monitor the data packets transmitted between the mobile terminal and the first Bluetooth device on the radio frequency channel

[0088] In one embodiment, the apparatus further comprises:

[0089] A monitoring unit, used to monitor whether the communication channel information between the mobile terminal and the first Bluetooth device changes;

[0090] a frequency hopping algorithm determining unit, configured to determine a frequency hopping algorithm between the mobile terminal and the first Bluetooth device when a change is detected;

[0091] The control unit is used to control each of the second Bluetooth devices to synchronize frequency hopping according to the frequency hopping algorithm, so as to monitor the data packets transmitted between the mobile terminal and the first Bluetooth device after the frequency hopping.

[0092] In one embodiment, the apparatus further comprises:

[0093] The identity security authentication module is used to perform identity security authentication operations between the mobile terminal and the first Bluetooth device. If the authentication fails or the security authentication request initiated by the mobile terminal is not received within the specified time, the current Bluetooth connection is disconnected and the link resources are released; otherwise, the current Bluetooth connection state is maintained between the mobile terminal and the Bluetooth device.

[0094] In one embodiment, the second determining module further includes:

[0095] A filtering compensation unit, configured to perform a filtering compensation operation on the first signal strength RSSI value and / or a plurality of the second signal strength RSSI values ​​to obtain a filtering compensated RSSI value; wherein the filtering compensation operation includes a Kalman filtering operation and a preset mean value compensation operation;

[0096] A position determination unit is used to determine the target position information between the mobile terminal and the vehicle based on a predetermined three-sided positioning algorithm and / or an area detection algorithm according to the filtered compensated RSSI value, the position information of the first Bluetooth device in the vehicle, and the position information of each of the second Bluetooth devices in the vehicle.

[0097] In one embodiment, the apparatus further comprises:

[0098] The control module is used to determine whether the mobile terminal is located in the area where the vehicle is located, and perform corresponding control operations on the vehicle according to the distance information between the vehicle and the mobile terminal or the real-time RSSI value between the first Bluetooth device and the mobile terminal.

[0099] Figure 6 FIG. 1 shows a schematic diagram of the structure of an electronic device provided according to an embodiment of the present application. Figure 6 As shown, as another aspect, the present application also provides an electronic device 200, including one or more central processing units (CPU) 201, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 202 or the program loaded from the storage part 208 to the random access memory (RAM) 203. In the RAM 203, various programs and data required for system operation are also stored. The CPU 201, the ROM 202, and the RAM 203 are connected to each other through a bus 204. An input / output (I / O) interface 205 is also connected to the bus 204.

[0100] The following components are connected to the I / O interface 205: an input section 206 including a keyboard, a mouse, etc.; an output section 207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 208 including a hard disk, etc.; and a communication section 209 including a network interface card such as a LAN card, a modem, etc. The communication section 209 performs communication processing via a network such as the Internet. A drive 210 is also connected to the I / O interface 205 as needed. A removable medium 211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 210 as needed, so that a computer program read therefrom is installed into the storage section 208 as needed.

[0101] In particular, according to the embodiments of the present disclosure, the above reference Figure 1 , 3 , 4 described processes can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program tangibly contained on a machine-readable medium, and the computer program includes program code for executing a BLE-based vehicle function control method. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 209, and / or installed from a removable medium 211.

[0102] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a different order from the order marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0103] As another aspect, the present application also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the device described in the above embodiment; or it may be a computer-readable storage medium that exists independently and is not assembled into the device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the BLE-based vehicle function control method described in the present application.

[0104] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a dedicated hardware-based system that performs a specified function or operation, or can be realized by a combination of dedicated hardware and computer instructions.

[0105] The units or modules involved in the embodiments described in the present application may be implemented by software or by hardware. The units or modules described may also be arranged in a processor. For example, each of the units may be a software program arranged in a computer or a mobile smart device, or may be a separately configured hardware device. The names of these units or modules do not, in some cases, constitute limitations on the units or modules themselves.

[0106] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the present application.

Claims

1. A vehicle function control method based on BLE, characterized in that: The method comprises: When it is detected that the Bluetooth connection between the mobile terminal and the first Bluetooth device on the vehicle is successful, obtaining a first signal strength RSSI value and communication link information between the mobile terminal and the first Bluetooth device, wherein the communication link information includes communication channel information; Determine, according to the communication link information, a plurality of second signal strength RSSI values ​​between a plurality of second Bluetooth devices on the vehicle and the mobile terminal respectively; Determine target location information between the mobile terminal and the vehicle according to the first signal strength RSSI value and a plurality of the second signal strength RSSI values; The determining, according to the communication link information, a plurality of second signal strength RSSI values ​​between a plurality of second Bluetooth devices on the vehicle and the mobile terminal respectively comprises: configuring a plurality of second Bluetooth devices according to the communication link information to control each of the second Bluetooth devices to enter a monitoring mode; Each of the second Bluetooth devices monitors the radio frequency channel corresponding to the communication channel information to determine a second signal strength RSSI value between each of the second Bluetooth devices and the mobile terminal; The first Bluetooth device is connected to each of the second Bluetooth devices via a wired / wireless connection; Wherein, configuring a plurality of second Bluetooth devices according to the communication link information includes: The first Bluetooth device wakes up a plurality of the second Bluetooth devices, and synchronizes the communication link information to all the second Bluetooth devices; Each of the second Bluetooth devices frequency-hops to a radio frequency channel corresponding to the communication channel information to monitor data packets transmitted between the mobile terminal and the first Bluetooth device on the radio frequency channel; After each of the second Bluetooth devices hops to the radio frequency channel corresponding to the communication channel information, the method further includes: Monitoring whether communication channel information between the mobile terminal and the first Bluetooth device changes; When a change is detected, determining a frequency hopping algorithm between the mobile terminal and the first Bluetooth device; Each of the second Bluetooth devices is controlled to synchronously frequency hop following the frequency hopping algorithm to monitor data packets transmitted between the mobile terminal and the first Bluetooth device after the frequency hopping.

2. The BLE-based vehicle function control method according to claim 1, characterized in that: After detecting that the Bluetooth connection between the mobile terminal and the first Bluetooth device on the vehicle is successful, and before determining, based on the communication link information, a plurality of second signal strength RSSI values ​​between a plurality of second Bluetooth devices on the vehicle and the mobile terminal respectively, the method further includes: The mobile terminal performs an identity security authentication operation with the first Bluetooth device. If the authentication fails or no security authentication request initiated by the mobile terminal is received within the specified time, the current Bluetooth connection is disconnected and link resources are released; otherwise, the current Bluetooth connection state is maintained between the mobile terminal and the first Bluetooth device.

3. The BLE-based vehicle function control method according to any one of claims 1-2, characterized in that: The determining, according to the first signal strength RSSI value and a plurality of the second signal strength RSSI values, target location information between the mobile terminal and the vehicle includes: Performing a filtering compensation operation on the first signal strength RSSI value and / or a plurality of the second signal strength RSSI values ​​to obtain a filtering compensated RSSI value; wherein the filtering compensation operation includes a Kalman filtering operation and a preset mean value compensation operation; According to the filtered compensated RSSI value, the location information of the first Bluetooth device in the vehicle and the location information of each of the second Bluetooth devices in the vehicle, based on a predetermined three-sided positioning algorithm and / or area detection algorithm, the target location information between the mobile terminal and the vehicle is determined.

4. The BLE-based vehicle function control method according to claim 3, characterized in that: The method further comprises: performing corresponding control operations on the vehicle according to the target position information; Wherein, performing corresponding control operations on the vehicle according to the target position information includes: It is determined that the mobile terminal is located in the area where the vehicle is located, and corresponding control operations are performed on the vehicle according to distance information between the vehicle and the mobile terminal or a real-time RSSI value between the first Bluetooth device and the mobile terminal.

5. The BLE-based vehicle function control method according to claim 4, characterized in that: The performing corresponding control operations on the vehicle according to the distance information between the vehicle and the mobile terminal or the real-time RSSI value between the first Bluetooth device and the mobile terminal includes: When the mobile terminal enters the welcome light area of ​​the vehicle, and the distance between the vehicle and the mobile terminal gradually shortens or the signal strength RSSI between the first Bluetooth device and the mobile terminal gradually becomes stronger, the first Bluetooth device sends a welcome light turn-on command to the vehicle body controller, and the vehicle body controller controls the welcome light to turn on automatically according to the acquired command; When the mobile terminal enters the PE area of ​​the vehicle from the welcome light area of ​​the vehicle, and the distance between the vehicle and the mobile terminal gradually shortens or the signal strength RSSI between the first Bluetooth device and the mobile terminal gradually becomes stronger, the first Bluetooth device sends a door unlocking command to the body controller, and the body controller controls the door to automatically unlock according to the acquired command; When the mobile terminal enters the PS area of ​​the vehicle from the PE area of ​​the vehicle, the first Bluetooth device sends a vehicle start command to the vehicle body controller, and the vehicle body controller controls the vehicle engine to start automatically according to the acquired command.

6. The BLE-based vehicle function control method according to claim 4, characterized in that: The performing corresponding control operations on the vehicle according to the distance information between the vehicle and the mobile terminal or the real-time RSSI value between the first Bluetooth device and the mobile terminal includes: When the mobile terminal enters the PE area of ​​the vehicle from the PS area of ​​the vehicle, the first Bluetooth device sends a vehicle engine stop command to the vehicle body controller, and the vehicle body controller controls the vehicle engine to automatically stop according to the acquired command; When the mobile terminal enters the PE area of ​​the vehicle and the distance between the vehicle and the mobile terminal gradually increases or the signal strength RSSI between the first Bluetooth device and the mobile terminal gradually decreases, the first Bluetooth device sends a door lock command to the body controller, and the body controller controls the door to automatically lock according to the obtained command.

7. A vehicle function control device based on BLE, characterized in that: The device comprises: an acquisition module, configured to acquire a first signal strength RSSI value and communication link information between the mobile terminal and the first Bluetooth device when a successful Bluetooth connection is detected between the mobile terminal and the first Bluetooth device on the vehicle, wherein the communication link information includes communication channel information; A first determination module is used to determine a plurality of second signal strength RSSI values ​​between a plurality of second Bluetooth devices on the vehicle and the mobile terminal respectively according to the communication link information; A second determination module, configured to determine target location information between the mobile terminal and the vehicle according to the first signal strength RSSI value and a plurality of the second signal strength RSSI values; The first determination module includes: a configuration unit, configured to configure a plurality of second Bluetooth devices according to the communication link information to control each of the second Bluetooth devices to enter a monitoring mode; a first determination unit, configured to enable each of the second Bluetooth devices to monitor a radio frequency channel corresponding to the communication channel information to determine a second signal strength RSSI value between each of the second Bluetooth devices and the mobile terminal; The first Bluetooth device is connected to each of the second Bluetooth devices via a wired / wireless connection; The configuration unit is used to wake up a plurality of the second Bluetooth devices by the first Bluetooth device, and synchronize the communication link information to all the second Bluetooth devices; each of the second Bluetooth devices hops to a radio frequency channel corresponding to the communication channel information to monitor data packets transmitted between the mobile terminal and the first Bluetooth device on the radio frequency channel; a monitoring unit, the monitoring unit being used to monitor whether the communication channel information between the mobile terminal and the first Bluetooth device changes; a frequency hopping algorithm determining unit, which is used to determine the frequency hopping algorithm between the mobile terminal and the first Bluetooth device when a change is detected; The control unit is used to control each of the second Bluetooth devices to synchronize frequency hopping according to the frequency hopping algorithm, so as to monitor the data packets transmitted between the mobile terminal and the first Bluetooth device after the frequency hopping.

8. An electronic device, characterized in that: The invention is characterized by comprising: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors execute the BLE-based vehicle function control method as described in any one of claims 1-6.

9. A computer-readable storage medium storing a computer program, characterized in that: When the program is executed by a processor, a BLE-based vehicle function control method as described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Multi-Bluetooth module and control method thereof

    CN112396736A

  • Indoor positioning method and system based on Bluetooth communication and BLE chip

    CN113534046A