A digital key control method, device, equipment and medium
By obtaining the area data of the digital key and the sensor data of the mobile terminal, determining the user behavior trend and controlling the digital key, the error operation problem caused by instability of Bluetooth signals is solved, and the control accuracy and user experience are improved.
Patent Information
- Application Number
- CN202411976852.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2044-12-31
AI Technical Summary
The existing Bluetooth digital key control methods are easily affected by the environment, resulting in unstable operation in complex environments and prone to incorrect operations, such as frequent unlocking, which affects the user experience.
By obtaining the area data of the digital key and the sensor data of the mobile terminal, the user's behavior trend is determined, and the digital key is controlled based on this trend to improve control accuracy.
Improves the accuracy of digital key control, improves user experience, and reduces errors caused by instability in Bluetooth signal.
Smart Images

Figure CN119399866B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automobile intelligent technology, and in particular to a control method, device, equipment and medium for a digital key. Background Art
[0002] Digital key is an emerging technology. Digital key allows car owners to use smart devices such as smartphones, smart watches or bracelets to control the vehicle, which brings great convenience to car owners. Therefore, digital key will replace traditional keys and become a development trend.
[0003] Common digital keys are mainly Bluetooth digital keys. The Bluetooth signal strength sent by the Bluetooth digital key is received through the Bluetooth anchor point on the car to determine the position of the Bluetooth digital key relative to the car, so as to perform operations such as unlocking.
[0004] Existing Bluetooth digital key control usually uses the Bluetooth signal strength to judge vehicle operations, such as welcoming, unlocking, locking, etc. However, Bluetooth signals are easily affected by the environment, resulting in unstable Bluetooth signals received by the vehicle, making Bluetooth digital keys unable to meet the needs in complex environments. For example, when the Bluetooth signal is unstable, this method may lead to incorrect operations, such as users frequently unlocking and locking while standing still. The accuracy of digital key control is poor, which causes a bad experience for users. Summary of the invention
[0005] The present invention provides a method, device, equipment and medium for controlling a digital key, which determines the user's behavior trend through sensor data that can be obtained in a mobile terminal, and then controls the digital key, thereby improving the accuracy of digital key control and enhancing the user experience of the digital key.
[0006] According to one aspect of the present invention, a method for controlling a digital key is provided, comprising:
[0007] Acquire regional data of a digital key and sensor data of a mobile terminal; wherein the mobile terminal is a carrier of the digital key;
[0008] Determine a target behavior trend of a target user according to the area data and the sensor data;
[0009] The digital key is controlled based on a target behavior trend of the target user.
[0010] According to another aspect of the present invention, there is provided a control device for a digital key, comprising:
[0011] A data acquisition module, used to acquire the regional data of the digital key and the sensor data of the mobile terminal; wherein the mobile terminal is the carrier of the digital key;
[0012] A behavior trend determination module, used to determine a target behavior trend of a target user according to the area data and the sensor data;
[0013] A digital key control module is used to control the digital key based on the target behavior trend of the target user.
[0014] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the digital key control method described in any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the control method of a digital key described in any embodiment of the present invention when executed.
[0019] The technical solution of the embodiment of the present invention obtains the regional data of the digital key and the sensor data of the mobile terminal; wherein the mobile terminal is the carrier of the digital key; determines the target behavior trend of the target user according to the regional data and the sensor data; and controls the digital key based on the target behavior trend of the target user. This technical solution determines the user's behavior trend through the sensor data that can be obtained in the mobile terminal, and then controls the digital key, thereby improving the accuracy of the control of the digital key and enhancing the user experience of the digital key.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1is a flow chart of a method for controlling a digital key according to Embodiment 1 of the present invention;
[0023] Figure 2 is a flow chart of a method for controlling a digital key according to a second embodiment of the present invention;
[0024] Figure 3 is a structural schematic diagram of a control device for a digital key provided according to a third embodiment of the present invention;
[0025] Figure 4 It is a schematic diagram of the structure of an electronic device provided according to Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second" and "target" in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] Embodiment 1
[0029] Figure 1 This is a flow chart of a digital key control method provided according to the first embodiment of the present invention. This embodiment is applicable to the case of intelligently controlling the digital key of a vehicle. The method can be executed by a digital key control device. The digital key control device can be implemented in the form of hardware and / or software. The digital key control device can be configured in an electronic device with data processing capabilities. Figure 1 As shown, the method includes:
[0030] S110, obtaining regional data of the digital key and sensor data of the mobile terminal.
[0031] Among them, the mobile terminal is the carrier of the digital key. The mobile terminal may include but is not limited to smart devices such as smart phones, smart watches or bracelets. The digital key may be a Bluetooth digital key. In this embodiment, the Bluetooth BLE digital key is usually equipped with 4 or 5 Bluetooth BLE anchor points on the car, of which at least one anchor point is installed in the car. The digital key is used to control operations such as unlocking or locking the target vehicle. The target vehicle may be a vehicle corresponding to the target user. The regional data can be understood as the sensing area where the digital key is located. In this embodiment, the regional data of the digital key refers to the sensing area where the digital key is located based on the Bluetooth strength of the digital key. The regional data may specifically include the welcome area, the unlocking area, the unlocking area, and the connection area, which can be set according to actual conditions. The sensor data can be understood as the smart sensor hub data in the mobile terminal. The mobile terminal in this embodiment may be a smart phone, and its sensor data may be the mobile phone Sensor Hub data. Specifically, in this embodiment, the accelerometer and global position GNSS data provided in the mobile phone Sensor Hub can be obtained. Among them, the GNSS data mainly refers to the position, speed, time and other information provided by the Global Navigation Satellite System.
[0032] In this embodiment, the current sensing area of the digital key corresponding to the vehicle and the accelerometer data and global positioning data of the mobile terminal can be obtained.
[0033] S120: Determine a target behavior trend of the target user according to the area data and the sensor data.
[0034] The target behavior trend can be understood as the movement behavior trend of the target user relative to the vehicle. In this embodiment, the target behavior trend can include a behavior trend of approaching the vehicle, a behavior trend of moving away from the vehicle, and a behavior trend of staying in place.
[0035] In this embodiment, the movement trend of the target user relative to the target vehicle, that is, the target behavior trend, can be detected based on the real-time acquired data of the area where the digital key is located, the accelerometer and global position GNSS data provided by the smartphone Sensor Hub, and the receiving power of the N BLE anchor points carried by the target vehicle.
[0036] S130. Control the digital key based on the target behavior trend of the target user.
[0037] In this embodiment, the operation of the digital key can be controlled according to the target behavior trend of the target user. Specifically, the method of controlling the digital key based on the target behavior trend of the target user can be: when the target behavior trend of the target user is the approaching behavior trend, the digital key is controlled to perform an unlocking operation; when the target behavior trend of the target user is the moving away behavior trend, the digital key is controlled to perform a locking operation. When the target behavior trend of the target user is the staying in place behavior trend, the digital key is not controlled.
[0038] The technical solution of the embodiment of the present invention obtains the regional data of the digital key and the sensor data of the mobile terminal; wherein the mobile terminal is the carrier of the digital key; determines the target behavior trend of the target user according to the regional data and the sensor data; and controls the digital key based on the target behavior trend of the target user. This technical solution determines the user's behavior trend through the sensor data that can be obtained in the mobile terminal, and then controls the digital key, thereby improving the accuracy of the control of the digital key and enhancing the user experience of the digital key.
[0039] Embodiment 2
[0040] Figure 2 This is a flow chart of a digital key control method provided according to the second embodiment of the present invention, and this embodiment is optimized based on the above embodiment. The specific optimization is as follows: the sensor data includes acceleration data and position data; the target behavior trend of the target user is determined based on the area data and the sensor data, including: determining the motion state of the target user based on the acceleration data; when the motion state is a non-stationary state, reading the location data of the mobile terminal in real time; determining the initial behavior trend based on the position data and the area data, and updating the state flag based on the initial behavior trend; determining the target behavior trend of the target user based on the initial behavior trend, the state flag and the position data. Figure 2 As shown, the method includes:
[0041] S210: Acquire regional data of the digital key and sensor data of the mobile terminal.
[0042] The mobile terminal is the carrier of the digital key; the sensor data includes acceleration data and position data. The acceleration data can be understood as the data read by the accelerometer. The position data can be understood as the position coordinates, speed, time and other information provided by the Global Navigation Satellite System in the mobile terminal.
[0043] S220: Determine the motion state of the target user according to the acceleration data.
[0044] The target user's motion state may be the current state of the user determined by analyzing and processing the acceleration data reading. In this embodiment, the target user's motion state may include four motion states: static state, shaking state in place, walking state, and disordered shaking state in movement.
[0045] Specifically, in this embodiment, it is necessary to obtain the acceleration data of the target user at different time points through an acceleration sensor. These acceleration data are usually represented in the form of three-dimensional vectors, corresponding to the acceleration values on the x, y, and z axes, respectively. The modulus, standard deviation, total energy and low-frequency energy are calculated according to the acceleration values on the x, y, and z axes. Based on the calculated modulus, standard deviation, total energy, low-frequency energy and other information, a judgment basis can be designed to judge the user's motion state, thereby obtaining the target user's motion states such as static state, shaking state in place, walking state, and disordered shaking state while moving.
[0046] S230: When the motion state is not a stationary state, read the location data of the mobile terminal in real time.
[0047] The location data may be the latest location data acquired through real-time updates. In this embodiment, the area where the digital key is located and the Bluetooth signal strength sliding window may be updated in real time, and the acceleration value read by the mobile terminal API and the location coordinate information read by the mobile terminal API may also be updated in real time. In this embodiment, the area data and the location data and acceleration data in the sensor data have their corresponding sliding windows to store their respective corresponding data.
[0048] In this embodiment, when the target user's motion state is non-stationary, that is, when the target user's motion state is any state of shaking in place, walking, or disordered shaking during movement, the location information of the mobile terminal will be obtained in real time, the location coordinate data read by the mobile phone API will be updated in real time, and the sliding window of N seconds will be maintained; and the accuracy of the location coordinates and the motion state of the target user will be monitored in real time; if the accuracy of the location coordinates is too poor or the motion state of the target user changes, the location coordinate sliding window can be reset to re-update the location coordinate data read by the mobile phone API. Among them, N seconds can be a sliding window of 3-4 seconds, which can maintain a window data of relatively good quality, so as to obtain relatively good positioning data.
[0049] In this embodiment, when the user's motion state is a stationary state, it can be detected that the user's behavior trend is a staying in place behavior trend, and no further analysis and processing is required.
[0050] S240: Determine an initial behavior trend according to the location data and the area data, and update a status flag based on the initial behavior trend.
[0051] Among them, the initial behavior trend can be understood as the possible behavior trend of the target user. In this embodiment, the possible behavior trend of the target user can be preliminarily determined based on the location coordinate data and the area data. The initial trend of approaching the vehicle includes the initial trend of approaching the vehicle and the initial trend of moving away from the vehicle. Among them, the initial trend of approaching the vehicle can be understood as a possible trend of approaching the vehicle behavior; the initial trend of moving away from the vehicle can be understood as a possible trend of moving away from the vehicle behavior. The state flag can be understood as the identifier corresponding to the different behavior states corresponding to the initial behavior trend. In this embodiment, the state flag may include a state flag corresponding to the behavior state of the initial trend of approaching the vehicle, and a state flag corresponding to the behavior state of the initial trend of moving away from the vehicle.
[0052] Specifically, in this embodiment, it can be determined whether the target user is walking from inside the car to outside the car based on the location information obtained by the mobile terminal and the area information of the digital key. If the target user is walking from inside the car to outside the car, the initial behavior trend of the target user is that he may walk away from the vehicle, that is, he may walk away from the vehicle, and its corresponding status flag checkFlag can be updated to CHECK_AWAY_IN_OUT, that is, the mark of walking from inside the car to outside the car; if the target user is not walking from inside the car to outside the car, it is continued to be determined whether the target user is walking from the unlocking area to the locking area based on the location information obtained by the mobile terminal and the area information of the digital key. If the target user is walking from the unlocking area to the locking area, it is determined that the initial behavior trend of the target user is The behavior trend of moving away from the vehicle, that is, there is a possibility of moving away from the vehicle, and its corresponding status flag checkFlag can be updated to CHECK_AWAY_PE_LOCK, which is an indication of moving from the unlocking area to the locking area; if the target user is not moving from the unlocking area to the locking area, it is determined whether the target user is located in the connection area, the welcome area or the locking area based on the location information obtained by the mobile terminal and the area information of the digital key. If the target user is located in the connection area, the welcome area or the locking area, it is determined that the initial behavior trend of the target user is the initial approach to the vehicle trend, that is, there is a possibility of approaching the vehicle, and its corresponding status flag checkFlag can be updated to CHECK_APPROACH.
[0053] In this embodiment, the initial behavior trend away from the vehicle corresponds to two status flags, and the initial behavior trend towards the vehicle corresponds to one status flag. In this embodiment, the initial behavior trend of the target user can be determined based on the sensing area where the digital key is located and the real-time location data, and the status flag can be updated according to the status corresponding to the initial behavior trend.
[0054] S250: Determine a target behavior trend of the target user according to the initial behavior trend, the state flag, and the location data.
[0055] The target behavior trend can be understood as the behavior trend of the vehicle corresponding to the target user that is finally determined. In this embodiment, the target behavior trend can include a behavior trend of approaching the vehicle and a behavior trend of moving away from the vehicle.
[0056] In this embodiment, if the initial behavior trend is an initial approaching vehicle trend, the algorithm logic of the approaching trend operator is executed according to the state flag corresponding to the target user behavior state of the initial approaching vehicle trend and the real-time location data to determine whether the target user's final behavior trend is an approaching vehicle behavior trend. If the initial behavior trend is a moving away from the vehicle trend, the algorithm logic of the moving away trend operator is executed according to the state flag corresponding to the target user behavior state of the initial moving away from the vehicle trend and the real-time location data to determine whether the target user's final behavior trend is a moving away from the vehicle behavior trend.
[0057] In this embodiment, optionally, the initial behavior trend includes an initial trend away from the vehicle; determining the target behavior trend of the target user based on the initial behavior trend, the status flag and the position data, including: when the initial behavior trend is the initial trend away from the vehicle, judging whether the sliding window data has a target away heading angle; if the sliding window data does not have a target away heading angle, determining a first heading angle and a first distance based on the status flag and multiple position data; determining the target away heading angle based on the first heading angle, and determining the target behavior trend based on the target away heading angle and the first distance.
[0058] Among them, the sliding window data can be understood as a sliding window for storing calculated data, and in this embodiment, it can be used to store the calculated heading angle data and other data information. The target away heading angle can be understood as the away heading angle calculated when the target behavior trend is determined to be a away behavior trend. In this embodiment, the away heading angle corresponding to each time the target behavior trend is determined to be a away from the vehicle trend by the algorithm logic of the away trend operator can be used as the target away heading angle, and the target away heading angle is stored in the sliding window so as to be used as a judgment basis or reference information when the judgment logic is looped.
[0059] Among them, multiple location data can be understood as location coordinate data within a set time period. In this embodiment, if the status flag is checkFlag is CHECK_AWAY_IN_OUT, the GNSS coordinates of the target user just when he gets out of the car are recorded, and the GNSS coordinates of the user in motion in the next N seconds are continuously recorded as multiple location coordinate data. If the status flag is checkFlag is CHECK_AWAY_PE_LOCK, the real-time location coordinates of the target user within the current set time length are recorded as multiple location coordinate data. Among them, within N seconds can be at least within 3 seconds.
[0060] Among them, the number of first heading angles and first distances corresponds to the number of position data. The first heading angle may include multiple heading angles. In this embodiment, each position data can be determined by calculation to obtain a corresponding distance data and heading angle. Therefore, the number of first heading angles and the number of first distances in this embodiment can depend on the number of position data. Exemplarily, in this embodiment, if the corresponding three position coordinates can be determined within at least 3 seconds, the three position coordinate data are the first position coordinate, the second position coordinate, and the third position coordinate, respectively. The heading angle and distance from the first position coordinate to the second position coordinate, the heading angle and distance from the first position coordinate to the third position coordinate, and the heading angle and distance from the second position coordinate to the third position coordinate can be calculated respectively.
[0061] In this embodiment, when determining the possibility that the initial behavior trend is the initial trend of moving away from the vehicle, first determine whether the sliding window data contains the target moving away heading angle, that is, determine whether the target moving away heading angle has been calculated; if the sliding window data does not contain the target moving away heading angle, then the target moving away heading angle can be calculated. Specifically, since there are two corresponding status flags for the initial trend of moving away from the vehicle in this embodiment, in this embodiment, it can be determined whether the status flag is CHECK_AWAY_IN_OUT. If the status flag is CHECK_AWAY_IN_OUT, the GNSS coordinate data of the target user's position when he just got out of the car is recorded, and the GNSS coordinates of the target user's position in the next N seconds are continuously recorded. Among them, the N seconds here can be at least 3 seconds, which can be set according to actual needs. Then, the first heading angle and the first distance are calculated based on the position data of the target user when he just got out of the car and the corresponding multiple position data within at least 3 seconds. In this embodiment, the heading angle average can be calculated based on the multiple heading angles included in the first heading angle, and the heading angle average is used as the target away from the heading angle, and it is determined whether the multiple heading angles in the first heading angle meet the corresponding heading angle threshold requirements and whether the first distance meets the corresponding distance threshold requirements; if the multiple heading angles and multiple distance data meet the corresponding threshold requirements respectively, then the target behavior trend is determined to be away from the vehicle behavior trend. Among them, the heading angle threshold requirement and the distance threshold requirement can be pre-set. Exemplarily, the heading angle in this embodiment is used to characterize the current running direction of the target user, the heading angle threshold can be within 75 degrees, and the distance threshold requirement can be set to within 10 meters. In this embodiment, it can be set according to actual needs. In this embodiment, a total heading angle can be determined by calculating the target away angle, which is used to determine whether the current direction is consistent and consistent with changing in a stable direction.
[0062] Furthermore, in this embodiment, if multiple heading angles in the first heading angle do not meet the corresponding heading angle threshold requirements and / or each distance in the first distance does not meet the corresponding distance threshold requirements, the check flag of the initial behavior trend can be reset, indicating that the target user has no obvious behavior trend at this time.
[0063] Through such a setting in the present embodiment, the possibility of the initial trend being the trend away from the vehicle can be determined, and then the heading angle and distance of the target user's coordinate data can be determined, thereby determining the target behavior trend of the target user, thereby improving the reliability of the target behavior trend judgment and the turning curve, so as to accurately control the digital key.
[0064] In this embodiment, optionally, the status flag includes a first status flag and a second status flag; determining the first heading angle and the first distance based on the status flag and multiple position data includes: when the status flag is the first status flag, determining the first heading angle and the first distance based on multiple position data within a specified time period; when the status flag is the second status flag, determining the first heading angle and the first distance based on multiple position data acquired in real time.
[0065] The first flag may be CHECK_AWAY_IN_OUT, which is a flag corresponding to the state where the target user is walking from inside the car to outside the car. The second flag may be CHECK_AWAY_PE_LOCK, which is a flag corresponding to the state where the target user is walking from the unlocking area to the locking area. The specified duration may be when the target user just leaves the car and within at least 3 seconds of continuous recording.
[0066] In this embodiment, when the status flag is the first status flag, that is, CHECK_AWAY_IN_OUT, multiple position data corresponding to the target user just getting out of the car and continuously recorded for at least 3 seconds can be obtained, and the first heading angle and the first distance can be determined based on the determined multiple data; when the status flag is the second status flag, that is, CHECK_AWAY_PE_LOCK, multiple position data obtained in real time at the current moment can be obtained to determine the first heading angle and the first distance.
[0067] In this embodiment, different position coordinate data can be determined according to different determined status flags, thereby determining different heading angles and distance data, thereby improving the accuracy of data under different user states and improving the accuracy of user behavior state judgment.
[0068] In this embodiment, optionally, it also includes: if there is a target moving away from the heading angle, calculating the second heading angle and the second distance based on the current position data; comparing the second heading angle with the heading angle at which the target moves away, and continuing to judge whether the second heading angle and the second distance meet the first set threshold based on the comparison result, and determining the motion trajectory based on the heading angle at which the target moves away and the second heading angle; when the second heading angle and the second distance meet the first set threshold, and the motion trajectory moves away from the first initial coordinate, determining that the target behavior trend of the target user is a behavior trend moving away from the vehicle.
[0069] Among them, the first initial coordinate is determined based on the heading angle of the target away. The first initial coordinate in this embodiment can be understood as the initial position coordinates for calculating the first calculation of the heading angle of the target away. The current moment position data is the real-time position coordinate data of the current moment in the position data sliding window. The second heading angle can be understood as the heading angle determined according to the current moment position data. The second distance can be understood as the distance data calculated according to the current moment position data. The first set threshold can be understood as a pre-set threshold. The first set threshold in this embodiment may include a heading angle threshold and a distance threshold.
[0070] In this embodiment, when the possibility of determining that the initial behavior trend is the initial trend away from the vehicle is determined, by judging that the current sliding window data has a target away heading angle, that is, the away heading angle has been calculated, then the second heading angle and the second distance are calculated according to the corresponding position data in the GNSS sliding window at the current moment, and the second heading angle is compared with the target away heading angle to determine whether the two heading angles are close, so as to determine whether the target user is moving in this direction. In this embodiment, if the second heading angle is very close to the target away heading angle and the angle is relatively small, it can be further determined whether the second heading angle and the second distance meet the heading angle threshold and the distance threshold in the first set threshold, and the movement trajectory of the target user is determined based on the target away heading angle and the second heading angle; when the second heading angle and the second distance meet the heading angle threshold and the distance threshold in the first set threshold, and the movement trajectory is away from the first initial coordinate corresponding to the first determined target away heading angle, it can be determined that the target behavior trend of the target user is the trend away from the vehicle.
[0071] Furthermore, in this embodiment, when the second heading angle and the second distance do not satisfy the heading angle threshold and the distance threshold in the first set threshold, and the motion trajectory does not move away from the first initial coordinate corresponding to the heading angle determined for the first time when the target is away from the target, it is determined whether the target user has deviated from the running direction. If the target user has deviated from the running direction, the turning flag can be set and the relevant variables can be reset. At this time, it can be determined that the behavior trend of the target user has no obvious behavior trend.
[0072] Through such a setting in this embodiment, the corresponding heading angle and distance are determined based on different location data to judge the final behavior trend of the target user, thereby improving the reliability and accuracy of user behavior trend judgment and avoiding erroneous operation of the digital key when the Bluetooth signal is unstable.
[0073] In this embodiment, optionally, the initial behavior trend includes an initial trend of approaching the vehicle; determining the target behavior trend of the target user based on the initial behavior trend, the status flag and the position data, including: when the initial behavior trend is the initial trend of approaching the vehicle, judging whether the signal change trend of the Bluetooth anchor point satisfies the set signal condition; if the signal change trend of the Bluetooth anchor point satisfies the set signal condition, judging whether there is a target approaching heading angle in the sliding window data; if the sliding window data does not contain a target approaching heading angle, determining a third heading angle and a third distance based on the current multiple position data; determining the target approaching heading angle based on the third heading angle, and determining the target behavior trend based on the target approaching heading angle and the third distance.
[0074] Among them, setting the signal condition may be a condition for setting the signal of the Bluetooth anchor point, and in the present embodiment, the setting of the signal condition may be pre-set. In the present embodiment, the setting of the signal condition may be a characteristic of a gradually enhanced Bluetooth signal, that is, an approaching vehicle. The target approach heading angle may refer to an approach heading angle calculated when it is determined that the target behavior trend is an approaching behavior trend. In the present embodiment, each time the target behavior trend is determined by the algorithm logic of the approach trend operator to be an approaching vehicle trend, the corresponding approach heading angle may be used as the target approach heading angle, and the target approach heading angle may be stored in a sliding window so as to be used as a basis for judgment or reference information in the loop judgment logic.
[0075] The number of the third heading angle and the third distance corresponds to the number of the position data; the third heading angle may include multiple heading angles, and in this embodiment, each position data can be determined by calculation to obtain a corresponding distance data and heading angle, so the number of the third heading angle and the number of the third distance in this embodiment can depend on the number of the current multiple position data. Exemplarily, in this embodiment, if the number of the current multiple position data is 3, the third heading angle and the third distance are determined based on 3 position coordinate data, then the third heading angle may include three heading angle data, and the third distance may include three distance data.
[0076] When determining the possibility that the initial behavior trend is the initial trend away from the vehicle, first determine whether the signal change trend of the Bluetooth anchor point meets the set signal conditions, that is, whether it meets the characteristics of approaching the vehicle. If the signal change trend of the Bluetooth anchor point meets the set signal conditions, continue to determine whether there is a target approaching heading angle in the sliding window data, that is, determine whether the target approaching heading angle has been calculated; if the sliding window data does not contain a target approaching heading angle, then you can start calculating the target approaching heading angle, and you can calculate the corresponding heading angle and distance respectively according to the multiple position data in the current GNSS coordinate sliding window. You can determine whether the heading angle and distance meet the corresponding threshold requirements, and then continue to calculate the target approaching heading angle.
[0077] Furthermore, in this embodiment, if the sliding window data contains a target approaching heading angle, a fourth heading angle and a fourth distance are determined based on the current multiple position data; wherein the number of fourth heading angles and fourth distances corresponds to the number of position data; and when the fourth heading angle and the fourth distance satisfy the third set threshold, the target behavior trend is determined to be an approaching vehicle behavior trend.
[0078] Among them, the third set threshold may include a heading angle threshold and a distance threshold. In this embodiment, if the sliding window data has a target approaching heading angle, a fourth heading angle and a fourth distance are determined according to the current multiple position data in the current GNSS coordinate sliding window, and compared with the target approaching heading angle, and whether the fourth heading angle and the fourth distance meet the third set threshold is further determined according to the comparison result. If the fourth heading angle and the fourth distance meet the third set threshold, the target behavior trend is determined to be an approaching vehicle behavior trend.
[0079] In this embodiment, the specific method of determining the approaching heading angle of the target according to the third heading angle is to calculate the heading angle average according to the multiple heading angles included in the third heading angle, and use the heading angle average as the heading angle of the target moving away. Then, the corresponding target behavior trend is determined by judging the calculated heading angle of the target moving away, the third distance, and the third heading angle through the set threshold requirement.
[0080] Through such a setting in the present embodiment, in the case of the initial approach trend, the corresponding heading angle and distance are determined based on different position data to determine the final behavior trend of the target user, thereby improving the reliability and accuracy of user behavior trend judgment and avoiding erroneous operation of the digital key when the Bluetooth signal is unstable.
[0081] In this embodiment, optionally, the target approach heading angle is determined based on the third heading angle, and the target behavior trend is determined based on the target approach heading angle and the third distance, including: when the third heading angle and the third distance meet a second set threshold, determining the target approach heading angle based on the third heading angle; and determining the target behavior trend as an approaching vehicle behavior trend based on the target approach heading angle.
[0082] The second set threshold may include a heading angle threshold and a distance threshold. In this embodiment, when multiple heading angles in the third heading angle all meet the corresponding set heading threshold and the third distance all meet the corresponding distance threshold, the heading angle average can be calculated according to the multiple heading angles included in the third heading angle, and the heading angle average is used as the target away from the heading angle, and the current motion trajectory is determined to gradually move away from the first initial coordinate according to the target approaching heading angle, and the target behavior trend of the target user is determined to be the away from the vehicle behavior trend.
[0083] In this embodiment, if multiple heading angles in the third heading angle do not meet the corresponding set heading threshold and the third distances meet the corresponding distance threshold, the check flag of the initial trend is reset. In this case, the target user has no obvious behavioral trend.
[0084] In addition, in this embodiment, if the difference between the current heading angle and the approaching heading angle or the away heading angle is within a certain threshold range, it can be determined whether the target user has the possibility of turning around; if the target user has the possibility of turning around, it is necessary to recalculate the approaching heading angle or the away heading angle. Exemplarily, if the difference between the current heading angle and the approaching heading angle, or the difference between the current heading angle and the away heading angle is within the threshold range of -150 to 150 degrees, it is determined that the target user may have a tendency to turn around, and TURN_FLAG is set to 1. At this time, the approaching or away heading angle needs to be recalculated.
[0085] In this embodiment, through such a setting, the approach behavior trend of the target user is determined based on the calculated heading angle and distance, thereby improving the reliability and accuracy of user behavior trend determination.
[0086] S260. Control the digital key based on the target behavior trend of the target user.
[0087] The embodiment of the present invention integrates multiple sensor technologies, including Bluetooth, accelerometer, satellite positioning and other data, to provide user behavior trend assistance for the realization of digital key functions, enhance the stability of existing Bluetooth digital keys in complex environments, and to a certain extent solve the related pain points of the prior art, such as incorrect unlocking, ping-pong effect, etc.; moreover, the embodiment of the present invention is not limited to mobile terminals, or smartphone brands and models, and does not limit the layout of Bluetooth BLE anchor points on vehicles, and has wide adaptability.
[0088] The technical solution of the embodiment of the present invention is to obtain the regional data of the digital key and the sensor data of the mobile terminal; wherein the mobile terminal is the carrier of the digital key; the sensor data includes acceleration data and position data; determine the motion state of the target user according to the acceleration data; read the position data of the mobile terminal in real time when the motion state is not static; determine the initial behavior trend according to the position data and the regional data, and update the state flag based on the initial behavior trend; determine the target behavior trend of the target user according to the initial behavior trend, the state flag and the position data; and control the digital key based on the target behavior trend of the target user. This technical solution determines the user's behavior trend through the sensor data that can be obtained in the mobile terminal, and then controls the digital key, thereby improving the accuracy of the control of the digital key and enhancing the user experience of the digital key.
[0089] Embodiment 3
[0090] Figure 3 1 is a schematic diagram of the structure of a digital key control device provided according to Embodiment 3 of the present invention. Figure 3 As shown, the device comprises:
[0091] The data acquisition module 310 is used to acquire the regional data of the digital key and the sensor data of the mobile terminal; wherein the mobile terminal is the carrier of the digital key;
[0092] A behavior trend determination module 320, for determining a target behavior trend of a target user based on the area data and the sensor data;
[0093] The digital key control module 330 is used to control the digital key based on the target behavior trend of the target user.
[0094] Optionally, the sensor data includes acceleration data and position data;
[0095] The behavior trend determination module 320 includes:
[0096] A motion state determination unit, used to determine the motion state of the target user according to the acceleration data;
[0097] A position data acquisition unit, used to read the position data of the mobile terminal in real time when the motion state is not a stationary state;
[0098] An initial behavior trend determination unit, used to determine the initial behavior trend according to the location data and the area data, and update the state flag bit based on the initial behavior trend;
[0099] The target behavior trend determination unit is used to determine the target behavior trend of the target user according to the initial behavior trend, the state flag and the location data.
[0100] Optionally, the initial behavior trend includes an initial trend of moving away from the vehicle; the target behavior trend determination unit includes:
[0101] A data judgment subunit is used to judge whether there is a target away from the heading angle in the sliding window data when the initial behavior trend is an initial trend away from the vehicle;
[0102] A first heading angle determination subunit is used to determine a first heading angle and a first distance according to a state flag and a plurality of position data if the sliding window data does not contain a heading angle for the target to leave, wherein the number of the first heading angle and the first distance corresponds to the number of the position data;
[0103] The first target away heading angle determination subunit is used to determine the target away heading angle according to the first heading angle, and determine the target behavior trend based on the target away heading angle and the first distance.
[0104] Optionally, also include:
[0105] A second heading angle determination subunit, configured to calculate a second heading angle and a second distance according to the current position data if there is a target far away from the heading angle;
[0106] a threshold judgment subunit, configured to compare the second heading angle with the heading angle away from the target, continue to judge whether the second heading angle and the second distance meet a first set threshold based on the comparison result, and determine a motion trajectory based on the heading angle away from the target and the second heading angle;
[0107] The second target away from the heading angle determination subunit is used to determine the target behavior trend of the target user as a trend of away from the vehicle behavior when the second heading angle and the second distance meet the first set threshold and the motion trajectory is away from the first initial coordinate; wherein the first initial coordinate is determined based on the target away from the heading angle.
[0108] Optionally, the state flag bit includes a first state flag bit and a second state flag bit;
[0109] The first heading angle determination subunit is specifically used to determine the first heading angle and the first distance based on multiple position data within a specified time period when the status flag is the first status flag; and to determine the first heading angle and the first distance based on multiple position data acquired in real time when the status flag is the second status flag.
[0110] Optionally, the initial behavior trend includes an initial approaching vehicle trend; the target behavior trend determination unit includes:
[0111] A signal condition judgment subunit, used to judge whether the signal change trend of the Bluetooth anchor point meets the set signal condition when the initial behavior trend is the initial approaching vehicle trend;
[0112] The target approaching heading angle judgment subunit is used to judge whether there is a target approaching heading angle in the sliding window data if the signal change trend of the Bluetooth anchor point meets the set signal condition;
[0113] A third heading angle determination subunit is used to determine a third heading angle and a third distance according to the current plurality of position data if the sliding window data does not contain a target approaching heading angle; wherein the number of the third heading angle and the third distance corresponds to the number of the position data;
[0114] The target approach heading angle determination subunit is used to determine the target approach heading angle according to the third heading angle, and determine the target behavior trend based on the target approach heading angle and the third distance.
[0115] Optionally, the target approaching heading angle determination subunit is specifically used to determine the target approaching heading angle based on the third heading angle when the third heading angle and the third distance meet the second set threshold; and determine the target behavior trend as the approaching vehicle behavior trend based on the target approaching heading angle.
[0116] A digital key control device provided in an embodiment of the present invention can execute a digital key control method provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0117] Embodiment 4
[0118] Figure 4 1 is a schematic diagram of the structure of an electronic device provided according to Embodiment 4 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0119] like Figure 4As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.
[0120] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0121] The processor 11 may be a variety of general and / or dedicated processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a control method for a digital key.
[0122] In some embodiments, the control method of the digital key may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the control method of the digital key described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the control method of the digital key in any other appropriate manner (e.g., by means of firmware).
[0123] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0124] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0125] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0126] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0127] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0128] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0129] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0130] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for controlling a digital key, characterized in that: include: Acquire regional data of a digital key and sensor data of a mobile terminal; wherein the mobile terminal is a carrier of the digital key; Determine the target behavior trend of the target user according to the area data and the sensor data; wherein the target behavior trend includes a behavior trend of approaching a vehicle, a behavior trend of moving away from a vehicle, and a behavior trend of staying in place; controlling the digital key based on the target behavior trend of the target user; The sensor data includes acceleration data and position data; Determining a target behavior trend of a target user according to the area data and the sensor data includes: Determining a motion state of a target user according to the acceleration data; When the motion state is a non-stationary state, reading the position data of the mobile terminal in real time; Determine an initial behavior trend according to the location data and the area data, and update a status flag based on the initial behavior trend; Determine a target behavior trend of a target user according to the initial behavior trend, the state flag, and the location data; The initial behavior trend includes an initial tendency to move away from the vehicle; Determining a target behavior trend of a target user according to the initial behavior trend, the state flag, and the location data includes: In the case where the initial behavior trend is an initial trend of moving away from the vehicle, determining whether there is a target moving away from the heading angle in the sliding window data; If the sliding window data does not contain a heading angle indicating that the target is away from the target, determining a first heading angle and a first distance according to the state flag and a plurality of position data; wherein the number of the first heading angle and the first distance corresponds to the number of the position data; The heading angle at which the target departs is determined according to the first heading angle, and the target behavior trend is determined based on the heading angle at which the target departs and the first distance.
2. The method according to claim 1, characterized in that Also includes: If the target is far away from the heading angle, a second heading angle and a second distance are calculated according to the current position data; Comparing the second heading angle with the heading angle away from the target, continuing to determine whether the second heading angle and the second distance meet a first set threshold based on the comparison result, and determining a motion trajectory based on the heading angle away from the target and the second heading angle; When the second heading angle and the second distance meet the first set threshold and the motion trajectory is away from the first initial coordinate, the target behavior trend of the target user is determined to be away from the vehicle behavior trend; wherein the first initial coordinate is determined based on the target away heading angle.
3. The method according to claim 1, characterized in that The state flag bit includes a first state flag bit and a second state flag bit; Determining a first heading angle and a first distance according to the state flag and a plurality of position data includes: When the state flag is the first state flag, determining the first heading angle and the first distance according to a plurality of position data within a specified time period; When the status flag is the second status flag, the first heading angle and the first distance are determined according to a plurality of position data acquired in real time.
4. The method according to claim 1, characterized in that: The initial behavior trend includes an initial approaching vehicle trend; Determining a target behavior trend of a target user according to the initial behavior trend, the state flag, and the location data includes: In the case where the initial behavior trend is an initial approaching vehicle trend, determining whether a signal change trend of the Bluetooth anchor point satisfies a set signal condition; If the signal change trend of the Bluetooth anchor point meets the set signal condition, it is determined whether there is a target approaching the heading angle in the sliding window data; If the sliding window data does not contain the target approaching heading angle, determining a third heading angle and a third distance according to the current plurality of position data; wherein the number of the third heading angle and the third distance corresponds to the number of the position data; The target approach heading angle is determined according to the third heading angle, and the target behavior trend is determined based on the target approach heading angle and the third distance.
5. The method according to claim 4, characterized in that Determining a target approach heading angle according to the third heading angle, and determining a target behavior trend based on the target approach heading angle and the third distance, including: When the third heading angle and the third distance meet a second set threshold, determining a target approaching heading angle based on the third heading angle; The target behavior trend is determined as an approaching vehicle behavior trend based on the target approaching heading angle.
6. A digital key control device, characterized in that: include: A data acquisition module, used to acquire the regional data of the digital key and the sensor data of the mobile terminal; wherein the mobile terminal is the carrier of the digital key; A behavior trend determination module, used to determine a target behavior trend of a target user according to the area data and the sensor data; wherein the target behavior trend includes a behavior trend of approaching a vehicle, a behavior trend of moving away from a vehicle, and a behavior trend of staying in place; A digital key control module, used to control the digital key based on the target behavior trend of the target user; The sensor data includes acceleration data and position data; The behavior trend determination module includes: a motion state determining unit, configured to determine the motion state of the target user according to the acceleration data; A position data acquisition unit, used for reading the position data of the mobile terminal in real time when the motion state is a non-stationary state; an initial behavior trend determining unit, configured to determine an initial behavior trend according to the location data and the area data, and update a state flag based on the initial behavior trend; a target behavior trend determining unit, configured to determine a target behavior trend of a target user according to the initial behavior trend, the state flag bit, and the location data; The initial behavior trend includes an initial trend of moving away from the vehicle; and the target behavior trend determination unit includes: A data judgment subunit is used to judge whether there is a target away from the heading angle in the sliding window data when the initial behavior trend is an initial trend away from the vehicle; A first heading angle determination subunit is configured to determine a first heading angle and a first distance according to the state flag and a plurality of position data if the sliding window data does not contain a heading angle for the target to leave, wherein the number of the first heading angle and the first distance corresponds to the number of the position data; The first target departure heading angle determination subunit is used to determine the target departure heading angle according to the first heading angle, and determine the target behavior trend based on the target departure heading angle and the first distance.
7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the digital key control method described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the control method of the digital key according to any one of claims 1 to 5 when executed.
Citation Information
Patent Citations
Automobile keyless entry system
CN104442702A