Key power consumption processing method and device
By monitoring power status and motion sensor data in the car physical key, combining Bluetooth connection status, and controlling the working modes of UWB and low-power Bluetooth, the problem of high power consumption of physical keys is solved, extending battery life and improving user experience.
Patent Information
- Application Number
- CN202510075143.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-17
- Publication Date
- 2025-04-11
AI Technical Summary
The high power consumption problems caused by low-power Bluetooth and UWB technologies in automotive physical keys have shortened button battery life and affected user experience.
By monitoring the power state of the physical key, switch the wake-up and sleep states; use the motion sensor to determine whether the key posture is moving, and switch the waiting states when necessary; turn on the UWB ranging function when the vehicle Bluetooth is connected, and turn it off after a preset time to regulate power consumption.
It effectively reduces the overall power consumption of physical keys, extends the service life of button batteries, and improves the user experience.
Smart Images

Figure CN119815481A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile intelligent technology, and in particular to a method and device for processing key power consumption. Background Art
[0002] With the improvement of the level of social intelligence, people are becoming more and more demanding on the intelligence of cars. From traditional mechanical physical keys to today's physical car keys that integrate low-power Bluetooth and UWB technology, physical car keys are moving towards a more convenient and intelligent direction.
[0003] However, with the integration of new technologies, the power consumption brought by low-power Bluetooth and UWB in physical car keys is very large, and the power consumption of UWB is several times that of low-power Bluetooth. In addition, the physical car keys are powered by button batteries. If Bluetooth and UWB are turned on for a long time, the life of the button batteries will be greatly shortened, resulting in the need to frequently replace the batteries, affecting the user experience.
[0004] Therefore, how to reduce the power consumption of physical car keys is an urgent problem that needs to be solved. Summary of the invention
[0005] Based on the above-mentioned deficiencies of the prior art, the present application provides a method and device for processing key power consumption to solve the problem of reducing the power consumption of a physical car key.
[0006] In order to achieve the above objectives, this application provides the following technical solutions:
[0007] The first aspect of the present application provides a method for processing key power consumption, comprising:
[0008] When it is detected that the physical key is powered on, the current state of the physical key is switched to a wake-up state;
[0009] Detecting whether the physical key is connected to the vehicle via Bluetooth within a first preset time period;
[0010] If the physical key is not connected to the Bluetooth of the vehicle within the first preset time period, switching the awake state of the physical key to the sleep state;
[0011] Determining whether the current posture of the physical key is moving by a motion sensor;
[0012] If the current posture of the physical key moves, the sleeping state of the physical key is switched to the waiting state, and in the waiting state, whether the physical key is connected to the Bluetooth of the vehicle within the first preset time period is detected;
[0013] If the physical key is connected to the vehicle via Bluetooth within the first preset time period, the physical key is switched from a standby state to a moving state, and a UWB ranging function of the physical key is detected to be turned on;
[0014] If the UWB ranging function of the physical key is turned on, the UWB ranging function is turned off after the USB ranging function is turned on for longer than a preset time.
[0015] Optionally, in the above-mentioned method for processing key power consumption, the step of determining whether the current posture of the physical key is in motion includes:
[0016] Obtaining the acceleration values corresponding to the three-dimensional directions collected in advance when the physical key is in the awakened state;
[0017] In the sleep state, the current acceleration value corresponding to the physical key in the three-dimensional direction is periodically collected by the motion sensor, and the difference between the acceleration corresponding to each direction and the current acceleration is calculated respectively;
[0018] Comparing whether the difference in any direction is greater than a preset threshold within a preset time period;
[0019] If the difference in any direction is greater than a preset threshold value within a preset time period, it is determined that the current posture of the physical key has moved;
[0020] If the difference in any direction is less than a preset threshold value within a preset time period, it is determined that the current posture of the physical key has not moved;
[0021] or,
[0022] When the motion sensor detects that a button on the physical key is triggered, it is determined that the current posture of the physical key moves.
[0023] Optionally, in the above-mentioned method for processing key power consumption, the detecting whether to enable the UWB ranging function of the physical key includes:
[0024] Measuring the distance between the physical key and the vehicle by using Bluetooth technology;
[0025] Determining whether the distance between the physical key and the vehicle is less than a preset distance;
[0026] If the distance between the physical key and the vehicle is less than the preset distance, it is determined to turn on the UWB ranging function of the physical key.
[0027] Optionally, in the above-mentioned method for processing key power consumption, after the USB ranging function is turned on for longer than a preset time and the UWB ranging function is turned off, the method further includes:
[0028] Detecting whether the physical key is currently disconnected from the Bluetooth of the vehicle;
[0029] If the physical key is currently disconnected from the Bluetooth of the vehicle, the acceleration value corresponding to the physical key in the three-dimensional direction is collected through the motion sensor, and the motion state of the physical key is switched to the sleep state.
[0030] Optionally, in the above-mentioned method for processing key power consumption, after detecting whether the physical key is connected to the Bluetooth of the vehicle within the first preset time period, the method further includes:
[0031] If the physical key is connected to the vehicle via Bluetooth within a first preset time period, measuring the distance between the physical key and the vehicle via Bluetooth technology;
[0032] Determining whether the distance between the physical key and the vehicle is less than a preset distance;
[0033] If the distance between the physical key and the vehicle is less than the preset distance, the UWB ranging function of the physical key is turned on, and after the USB ranging function is turned on for a time greater than a preset time, the UWB ranging function is turned off;
[0034] After the UWB ranging function is turned off, when it is detected that the physical key is disconnected from the Bluetooth of the vehicle, the acceleration value corresponding to the physical key in the three-dimensional direction is collected by the motion sensor, and the motion state of the physical key is switched to the sleep state;
[0035] Determining whether the current posture of the physical key is moving according to the acceleration values corresponding to the physical key in the three-dimensional direction;
[0036] If the current posture of the physical key moves, the sleep state of the physical key is switched to the standby state, and whether the physical key is connected to the Bluetooth of the vehicle is detected;
[0037] If it is detected that the physical key is not connected to the Bluetooth of the vehicle, the ready-to-move state of the physical key is switched back to the sleep state;
[0038] If a Bluetooth connection between the physical key and the vehicle is detected, the standby state of the physical key is switched to the motion state, and the process of measuring the distance between the physical key and the vehicle by using the Bluetooth technology is returned to be executed.
[0039] A second aspect of the present application provides a key power consumption processing device, including:
[0040] A monitoring unit, configured to switch the current state of the physical key to a wake-up state when detecting that the physical key is powered on;
[0041] A first detection unit, used to detect whether the physical key is connected to the vehicle through Bluetooth within a first preset time period;
[0042] a state switching unit, configured to switch the wake-up state of the physical key to the sleep state if the physical key is not connected to the Bluetooth of the vehicle within the first preset time period;
[0043] A motion determination unit, used to determine whether the current posture of the physical key is moving through a motion sensor;
[0044] a second detection unit, configured to switch the sleeping state of the physical key to a waiting state if the current posture of the physical key moves, and in the waiting state, detect whether the physical key is connected to the Bluetooth of the vehicle within the first preset time period;
[0045] a third detection unit, configured to switch the physical key from a standby state to a moving state if the physical key is connected to the vehicle via Bluetooth within the first preset time period, and detect whether a UWB ranging function of the physical key is turned on;
[0046] The closing unit is used to close the UWB ranging function if the UWB ranging function of the physical key is turned on and after the turning-on time of the USB ranging function is greater than a preset time.
[0047] Optionally, in the above-mentioned key power consumption processing device, the motion judgment unit includes:
[0048] An acquisition unit, used to acquire the acceleration values corresponding to the three-dimensional directions collected in advance when the physical key is in the awakened state;
[0049] A first acquisition unit is used to periodically acquire the current acceleration value corresponding to the physical key in three-dimensional directions through a motion sensor in a sleep state, and respectively calculate the difference between the acceleration corresponding to each direction and the current acceleration;
[0050] A comparison unit, used to compare whether the difference in any direction is greater than a preset threshold within a preset time period;
[0051] A first determination unit, configured to determine that the current posture of the physical key has moved if the difference in any direction is greater than a preset threshold within a preset time period;
[0052] A second determination unit, configured to determine that the current posture of the physical key has not moved if the difference in any direction is less than a preset threshold within a preset time period;
[0053] or,
[0054] The third determining unit is used to determine that the current posture of the physical key moves when a key on the physical key is detected by a motion sensor.
[0055] Optionally, in the above-mentioned key power consumption processing device, the third detection unit includes:
[0056] A first measuring unit, configured to measure the distance between the physical key and the vehicle through Bluetooth technology;
[0057] A first judging unit, configured to judge whether the distance between the physical key and the vehicle is less than a preset distance;
[0058] The fourth determining unit is used to determine whether to enable the UWB ranging function of the physical key if the distance between the physical key and the vehicle is less than the preset distance.
[0059] Optionally, in the above-mentioned key power consumption processing device, it also includes:
[0060] A fourth detection unit, used to detect whether the physical key is currently disconnected from the Bluetooth of the vehicle;
[0061] The second acquisition unit is used to collect the acceleration value corresponding to the current physical key in the three-dimensional direction through the motion sensor if the current physical key is disconnected from the Bluetooth of the vehicle, and switch the motion state of the physical key to the sleep state.
[0062] Optionally, in the above-mentioned key power consumption processing device, it also includes:
[0063] A second measuring unit, configured to measure the distance between the physical key and the vehicle by using Bluetooth technology if the physical key is connected to the vehicle via Bluetooth within a first preset time period;
[0064] A second judging unit, used to judge whether the distance between the physical key and the vehicle is less than a preset distance;
[0065] an activation unit, configured to activate a UWB ranging function of the physical key if the distance between the physical key and the vehicle is less than the preset distance, and to deactivate the UWB ranging function after the activation time of the USB ranging function is greater than the preset time;
[0066] A third acquisition unit is used for acquiring the acceleration value corresponding to the physical key in the three-dimensional direction through a motion sensor after the UWB ranging function is turned off, when it is detected that the physical key is disconnected from the Bluetooth of the vehicle, and switching the motion state of the physical key to a sleep state;
[0067] A third judgment unit, used to judge whether the current posture of the physical key is moving according to the acceleration value corresponding to the physical key in the three-dimensional direction;
[0068] a fifth detection unit, configured to switch the sleeping state of the physical key to a waiting state if the current posture of the physical key moves, and detect whether the physical key is connected to the Bluetooth of the vehicle;
[0069] A first switching unit, configured to switch the physical key from the ready-to-move state to the sleep state if it is detected that the physical key is not connected to the vehicle via Bluetooth;
[0070] The second switching unit is used for switching the waiting state of the physical key to the moving state if a Bluetooth connection between the physical key and the vehicle is detected, and returning to execute the measurement of the distance between the physical key and the vehicle through the Bluetooth technology.
[0071] The present application provides a method for processing key power consumption, which switches the current state of the physical key to the awake state after monitoring that the physical key is powered on, then detects whether the physical key is connected to the Bluetooth of the vehicle within a first preset time period, and if the physical key is not connected to the Bluetooth of the vehicle within the first preset time period, switches the awake state of the physical key to the sleep state, and finally determines whether the current posture of the physical key moves through a motion sensor, and if the current posture of the physical key moves, switches the sleep state of the physical key to the waiting state, and in the waiting state, detects whether the physical key is connected to the Bluetooth of the vehicle within the first preset time period, and if the physical key is connected to the Bluetooth of the vehicle within the first preset time period, switches the waiting state of the physical key to the moving state, and determines whether to turn on the UWB ranging function of the physical key, and if the UWB ranging function of the physical key is turned on, the UWB ranging function is turned off after the USB ranging function is turned on for more than the preset time. Thus, the movement of the key is detected in real time through the motion sensor, and the working modes of the UWB and low-power Bluetooth in the physical key are adjusted in combination with the Bluetooth connection, thereby effectively reducing the overall power consumption of the physical key. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0073] Figure 1 A flowchart of a method for processing key power consumption provided in an embodiment of the present application;
[0074] Figure 2 A flowchart of a method for activating a distance measurement function provided in an embodiment of the present application;
[0075] Figure 3 A schematic diagram of a vehicle distance measurement structure provided in an embodiment of the present application;
[0076] Figure 4 A schematic flow chart of a method for detecting disconnection of a physical key is provided for another embodiment of the present application;
[0077] Figure 5 A flowchart diagram of another method for processing key power consumption is provided for another embodiment of the present application;
[0078] Figure 6 A structural schematic diagram of a method for processing key power consumption provided in an embodiment of the present application;
[0079] Figure 7 A schematic diagram of the structure of a key power consumption processing device provided in another embodiment of the present application. DETAILED DESCRIPTION
[0080] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0081] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0082] The present application embodiment provides a method for processing key power consumption, such as Figure 1 As shown, the specific steps include:
[0083] S101. When it is detected that the physical key is powered on, the current state of the physical key is switched to a wake-up state.
[0084] It is understandable that when it is detected that the key is inserted or touches the power source, that is, when the key is powered on, the key state will become awake so that it can subsequently start communicating with other devices or perform specific operations, thereby ensuring that the key can respond immediately when needed and minimize energy consumption when not in use.
[0085] Optionally, once it detects that the key is powered on, it can send a specific wake-up signal to the vehicle or establish a connection to start authentication, unlocking the vehicle, etc. This approach ensures that the physical key can respond quickly and communicate with the vehicle when needed while maintaining low power consumption.
[0086] S102: Detect whether the physical key is connected to the Bluetooth of the vehicle within a first preset time period.
[0087] It should be noted that in the embodiment of the present application, when the state of the physical key is the awake state, it is necessary to combine the connection between the key and Bluetooth to understand the user's usage scenario, and then switch the key to different working states, so that the purpose of low power consumption can be achieved in different working states, and by detecting the Bluetooth connection, the vehicle system can determine whether there is an authorized physical key nearby, and can allow the use of specific functions under certain conditions, such as unlocking the door, starting the engine, etc. Therefore, when the state of the physical key is the awake state, it is necessary to immediately detect whether the physical key is connected to the vehicle's Bluetooth within the first preset time period. If the physical key is not connected to the vehicle's Bluetooth within the first preset time period, it means that the owner currently does not have a scenario to use the physical key, so step S103 is executed.
[0088] Optionally, the first preset time period is 30 seconds, and of course it can also be other time thresholds, which can be set specifically according to requirements.
[0089] S103: Switch the wake-up state of the physical key to the sleep state.
[0090] Specifically, when the physical key is not connected to the vehicle's Bluetooth within the first preset time period, it means that the owner does not need to use the vehicle at present. In order to reduce the power consumption of the physical key, it is necessary to switch the wake-up state of the physical key to the sleep state, which can also reduce the use of the battery and thus increase the service life of the key battery.
[0091] It should be noted that when the physical key is in sleep mode, the physical key's Bluetooth broadcast and other functions such as UWB are turned off. At this time, the vehicle task is suspended and only the button and motion sensor functions are retained.
[0092] S104: Determine, by means of a motion sensor, whether the current posture of the physical key is moving.
[0093] It should be noted that when the physical key is in sleep mode, in order to ensure timely response and communication with the vehicle, the motion sensor needs to determine whether the current posture of the physical key is moving, which helps to improve the user experience and ensure that the vehicle can start or perform other operations normally when the physical key is carried. For example, if the owner puts the physical key in his pocket or holds it in his hand, it means that the current posture of the physical key is moving.
[0094] Therefore, if the current posture of the physical key moves, it means that the owner may need to use the car, so step S105 is executed. Optionally, if the current posture of the physical key does not move, it means that the owner still does not need to use the car, so the physical key remains in a dormant state.
[0095] Optionally, in another embodiment of the present application, a specific implementation of step S104 includes the following steps:
[0096] Get the corresponding acceleration values in the three-dimensional direction that have been pre-collected when the physical key is in the awake state.
[0097] It should be noted that in order to ensure that the physical key can be promptly informed of whether it moves when it is in the sleep state, it is necessary to use the motion sensor module to periodically detect the acceleration value of the sensor physical key on the three mutually perpendicular axes xyz (that is, three-dimensional directions) with the surface plane of the sensor chip as the xoy plane when the physical key is in the sleep state, that is, when it is awakened, so as to determine whether the physical key has moved.
[0098] In the sleep state, the motion sensor periodically collects the current acceleration value corresponding to the physical key in the three-dimensional direction, and calculates the difference between the corresponding acceleration in each direction and the current acceleration.
[0099] It is understandable that in order to determine whether the physical key has moved in the sleep state, it is also necessary to periodically collect the acceleration values of the physical key on the three mutually perpendicular axes xyz (that is, three-dimensional directions) through the motion sensor in the sleep state, and calculate the difference between the corresponding acceleration in each direction and the current acceleration. The difference is used to determine whether the physical key has moved.
[0100] Compare whether the difference in any direction is greater than a preset threshold within a preset time period.
[0101] It should be noted that in the embodiment of the present application, in order to prevent the physical key from being accidentally touched and moving, it is necessary to compare whether the difference in any direction is greater than a preset threshold within a preset time period. If the difference in any direction is greater than the preset threshold within the preset time period, it is more certain that the current posture of the physical key has moved. If the difference in any direction is less than the preset threshold within the preset time period, it can be basically determined that the current posture of the physical key has not moved.
[0102] or,
[0103] When the motion sensor detects that a button on the physical key is triggered, it is determined that the current posture of the physical key moves.
[0104] It should be noted that when a button on the physical key is triggered by the car owner, it means that the car owner may use the physical key to perform relevant operations on the vehicle at this time, such as starting the engine or unlocking the door. Therefore, it can also be determined that the current posture of the physical key is moving. Therefore, when the motion sensor detects that the button on the physical key is triggered, it is determined that the current posture of the physical key is moving.
[0105] S105: Switch the sleep state of the physical key to a standby state, and in the standby state, detect whether the physical key is connected to the vehicle via Bluetooth within a first preset time period.
[0106] It should be noted that when the current posture of the physical key moves, in order to prevent the physical key from being accidentally touched, thereby detecting that the physical key has moved, the sleep state of the physical key can be switched to the waiting state first, and then in the embodiment of the present application, in order to further know whether the physical key has actually moved or been accidentally touched, the system can confirm through Bluetooth, that is, detect whether the physical key is connected to the vehicle's Bluetooth within a first preset time period. If the physical key is connected to the vehicle's Bluetooth within the first preset time period, the owner can use the physical key to communicate with the vehicle and determine that the functions of the physical key still need to be used, so step S106 is executed at this time.
[0107] Optionally, if the physical key is not connected to the vehicle's Bluetooth within a first preset time period, the acceleration value of the physical key in the current xyz direction is recorded by a motion sensor, and then the waiting state of the physical key is switched to a sleeping state.
[0108] S106: Switch the physical key's standby state to a moving state, and detect whether the UWB ranging function of the physical key is turned on.
[0109] It should be noted that when the physical key is connected to the vehicle's Bluetooth within the first preset time period, it means that the car owner needs to use the car at this time and needs to use the button function on the physical key. Therefore, it is necessary to switch the physical key's standby state to the motion state. However, since the physical key needs to be at a certain distance from the vehicle, the function on the button can be sensed by the vehicle, thereby triggering the vehicle to perform corresponding actions. Therefore, it is necessary to locate the vehicle's position information, which can be achieved through the UWB ranging function on the physical key. However, since the UWB ranging function consumes a lot of power, the physical key must meet certain requirements before the UWB ranging function can be turned on. Therefore, after switching the physical key's standby state to the motion state, it is necessary to determine whether to turn on the UWB ranging function of the physical key. If the UWB ranging function of the physical key is turned on, it means that the physical key has met the requirements for turning on the UWB ranging function. Therefore, step S107 is executed at this time.
[0110] Optionally, if the UWB ranging function of the physical key is not enabled, it means that the physical key does not meet the requirements for enabling the UWB ranging function, and therefore further testing is required.
[0111] Optionally, in another embodiment of the present application, a specific implementation of step S106 is as follows: Figure 2 As shown, the following steps are included:
[0112] S201. Measure the distance between the physical key and the vehicle through Bluetooth technology.
[0113] It should be noted that since the UWB ranging function of the physical key consumes too much power, when the physical key is in motion, the car and the physical key are connected via Bluetooth. The two can first measure the distance via Bluetooth, thereby avoiding turning on the UWB ranging function for ranging at the beginning, which can effectively reduce the power consumption of the car's physical key.
[0114] S202: Determine whether the distance between the physical key and the vehicle is less than a preset distance.
[0115] Specifically, since the UWB ranging accuracy is much higher than the Bluetooth RSSI ranging, in order to further accurately measure the vehicle's location information, the key's UWB can be turned on for more accurate ranging after the distance measured by the Bluetooth technology is less than a certain distance. Therefore, it is necessary to further determine whether the distance between the physical key and the vehicle is less than the preset distance. If the distance between the physical key and the vehicle is less than the preset distance, it means that the physical key's UWB ranging function will be turned on for ranging, so step S203 is executed.
[0116] Optionally, if the distance between the physical key and the vehicle is greater than a preset distance, it means that the UWB ranging function of the physical key cannot be activated to avoid consuming the power consumption of the physical key.
[0117] S203: Determine whether to enable the UWB ranging function of the physical key.
[0118] Specifically, when the distance between the physical key and the vehicle is less than the preset distance, the UWB ranging function of the physical key needs to be enabled. For details, please refer to Figure 3 The content shown, Figure 3 Slave modules are installed at the four corners of the CRRC train, supporting ble (RSSI ranging) and UWB ranging. The one in the middle is the master module. After obtaining the distance values between the four nodes in the car and the physical key, the location information of the physical key can be obtained by solving the positioning equation.
[0119] S107: After the USB ranging function is turned on for longer than a preset time, the UWB ranging function is turned off.
[0120] It should be emphasized that after turning on the UWB ranging function of the physical key, it is necessary to turn off the USB ranging function after using it for a certain period of time, so as to effectively reduce the power consumption of the physical key. Therefore, it is necessary to obtain the turning-on time of the USB ranging function, and then turn off the UWB ranging function after the turning-on time of the USB ranging function is greater than the preset time.
[0121] Optionally, the preset time is 2 minutes, and of course it can also be other time thresholds, which can be specifically set according to needs.
[0122] Optionally, UWB can also be turned off due to actual working conditions. For example, after the car starts, the main module of the vehicle will notify the physical key to turn off UWB.
[0123] Optionally, the physical key may be automatically disconnected from the vehicle's Bluetooth. In order to switch the state of the physical key in a timely manner to reduce power consumption, in another embodiment of the present application, the Bluetooth connection status is also detected. Figure 4 As shown, another embodiment of the present application provides a method for detecting disconnection of a physical key, comprising the following steps:
[0124] S401, detecting whether the current physical key is disconnected from the vehicle's Bluetooth.
[0125] It should be noted that when the physical key is in motion, the physical key will automatically disconnect from the vehicle's Bluetooth. Therefore, it is necessary to periodically check whether the current physical key is disconnected from the vehicle's Bluetooth. If the current physical key is disconnected from the vehicle's Bluetooth, it is necessary to switch the current state of the physical key in time to avoid turning on the UWB ranging function of the physical key again. Therefore, step S402 is executed at this time.
[0126] S402: Collect the acceleration values corresponding to the current physical key in three-dimensional directions through a motion sensor, and switch the motion state of the physical key to a sleep state.
[0127] It should be noted that when the current physical key is disconnected from the vehicle's Bluetooth, it is also necessary to collect the acceleration values corresponding to the current physical key in the three-dimensional direction through the motion sensor, and switch the motion state of the physical key to the sleep state, so as to subsequently determine whether the physical key moves again when the physical key is in the sleep state.
[0128] Optionally, when it is detected that the physical key is powered on, the current state of the physical key is switched to the awake state. There is also a situation where the physical key is immediately connected to the Bluetooth of the vehicle, so after executing step S102, optionally, as Figure 5 As shown, another embodiment of the present application provides another method for processing key power consumption, comprising the following steps:
[0129] S501. If the physical key is connected to the vehicle via Bluetooth within a first preset time period, the distance between the physical key and the vehicle is measured using Bluetooth technology.
[0130] Specifically, after the physical key is powered on, the current state of the physical key is switched to the awake state, and if the physical key is connected to the vehicle's Bluetooth within a first preset time period, it means that the owner is holding the key close to the door, and the key itself can sense the vehicle within a certain distance, thereby automatically unlocking the door. Therefore, it is necessary to measure the distance between the physical key and the vehicle through Bluetooth technology.
[0131] S502: Determine whether the distance between the physical key and the vehicle is less than a preset distance.
[0132] It should be noted that the specific implementation of step S502 may refer to step S202 in the above method embodiment, and will not be described in detail here.
[0133] It should also be noted that if the distance between the physical key and the vehicle is less than the preset distance, step S503 is executed.
[0134] S503, turning on the UWB ranging function of the physical key, and turning off the UWB ranging function after the USB ranging function is turned on for longer than a preset time.
[0135] It should be noted that the specific implementation of step S503 may refer to step S107 in the above method embodiment, and will not be described in detail here.
[0136] S504: After turning off the UWB ranging function, when it is detected that the physical key is disconnected from the vehicle's Bluetooth, the corresponding acceleration value of the physical key in the three-dimensional direction is collected through the motion sensor, and the motion state of the physical key is switched to the sleep state.
[0137] It should be noted that the specific implementation of step S504 may refer to step S402 in the above method embodiment, and will not be described in detail here.
[0138] S505: Determine whether the current posture of the physical key is moving according to the acceleration values corresponding to the physical key in the three-dimensional directions.
[0139] It should be noted that before the physical key goes to sleep each time, the motion sensor needs to collect the acceleration values gx, gy, gz in the xyz direction (that is, in the three-dimensional direction) for a period of time, and use this acceleration value as the reference value. After the physical key goes to sleep, the motion sensor will periodically collect the acceleration values fx, fy, fz in the xyz direction, and compare fx, fy, fz with gx, gy, gz to determine whether the physical key has moved. That is, when the difference between the acceleration value in any direction and the reference value is greater than a threshold for a certain period of time, it can be considered that the physical key has moved, so step S506 is executed at this time.
[0140] Optionally, if the current posture of the physical key does not move, the acceleration value in the xyz direction continues to be periodically collected through the motion sensor.
[0141] S506: Switch the sleep state of the physical key to the standby state, and detect whether the physical key is connected to the vehicle's Bluetooth.
[0142] Specifically, when the current posture of the physical key moves, it is necessary to promptly switch the sleep state of the physical key to the standby state and turn on the Bluetooth broadcast.
[0143] It should be noted that the specific implementation method of detecting whether the physical key is connected to the vehicle's Bluetooth can be referred to step S105 in the above method embodiment, which will not be repeated here.
[0144] It should also be noted that if it is detected that the physical key is not connected to the vehicle's Bluetooth, step S507 is executed. If the physical key is connected to the vehicle's Bluetooth, step S508 is executed.
[0145] S507: Switch the physical key's standby state back to the sleep state.
[0146] Specifically, before switching back to the sleep state, the acceleration value corresponding to the physical key in the three-dimensional direction is collected through the motion sensor.
[0147] S508: Switch the waiting state of the physical key to the moving state.
[0148] It should be noted that when switching the physical key's standby state to the motion state, it is necessary to return to step S501, that is, measure the distance between the physical key and the vehicle through Bluetooth technology, so as to switch the physical key to different working modes according to the user's usage scenario.
[0149] For easier understanding of the embodiments of this application, please refer to Figure 6 The content shown.
[0150] The present application provides a method for processing key power consumption, which switches the current state of the physical key to the awake state after monitoring that the physical key is powered on, then detects whether the physical key is connected to the Bluetooth of the vehicle within a first preset time period, and if the physical key is not connected to the Bluetooth of the vehicle within the first preset time period, switches the awake state of the physical key to the sleep state, and finally determines whether the current posture of the physical key moves through a motion sensor, and if the current posture of the physical key moves, switches the sleep state of the physical key to the waiting state, and in the waiting state, detects whether the physical key is connected to the Bluetooth of the vehicle within the first preset time period, and if the physical key is connected to the Bluetooth of the vehicle within the first preset time period, switches the waiting state of the physical key to the moving state, and determines whether to turn on the UWB ranging function of the physical key, and if the UWB ranging function of the physical key is turned on, the UWB ranging function is turned off after the USB ranging function is turned on for more than the preset time. Thus, the movement of the key is detected in real time through the motion sensor, and the working modes of the UWB and low-power Bluetooth in the physical key are adjusted in combination with the Bluetooth connection, thereby effectively reducing the overall power consumption of the physical key.
[0151] Another embodiment of the present application provides a key power consumption processing device, such as Figure 7 As shown, it includes the following units:
[0152] The monitoring unit 701 is used to switch the current state of the physical key to the awake state when it is detected that the physical key is powered on.
[0153] The first detection unit 702 is used to detect whether the physical key is connected to the vehicle via Bluetooth within a first preset time period.
[0154] The state switching unit 703 is used to switch the awakening state of the physical key to the sleeping state if the physical key is not connected to the Bluetooth of the vehicle within a first preset time period.
[0155] The motion determination unit 704 is used to determine whether the current posture of the physical key is moving through the motion sensor.
[0156] The second detection unit 705 is used to switch the sleep state of the physical key to the standby state if the current posture of the physical key moves, and in the standby state, detect whether the physical key is connected to the Bluetooth of the vehicle within a first preset time period.
[0157] The third detection unit 706 is used to switch the standby state of the physical key to the moving state if the physical key is connected to the vehicle via Bluetooth within a first preset time period, and detect whether the UWB ranging function of the physical key is turned on.
[0158] The closing unit 707 is used to close the UWB ranging function if the UWB ranging function of the physical key is turned on, after the USB ranging function is turned on for longer than a preset time.
[0159] It should be noted that the specific working process of the above-mentioned units in the embodiment of the present application can refer to steps S101 to S107 in the above-mentioned method embodiment, and will not be repeated here.
[0160] Optionally, in a key power consumption processing device provided in another embodiment of the present application, the motion determination unit 704 includes:
[0161] The acquisition unit is used to acquire the acceleration values corresponding to the three-dimensional directions that are pre-collected when the physical key is in the awakened state.
[0162] The first acquisition unit is used to periodically acquire the current acceleration value corresponding to the physical key in three-dimensional directions through the motion sensor in the sleep state, and respectively calculate the difference between the corresponding acceleration in each direction and the current acceleration.
[0163] The comparison unit is used to compare whether the difference in any direction is greater than a preset threshold within a preset time period.
[0164] The first determination unit is used to determine that the current posture of the physical key moves if the difference in any direction is greater than a preset threshold within a preset time period.
[0165] The second determination unit is used to determine that the current posture of the physical key has not moved if the difference in any direction is less than a preset threshold within a preset time period.
[0166] or,
[0167] The third determining unit is used to determine that the current posture of the physical key moves when the motion sensor detects that a key on the physical key is triggered.
[0168] Optionally, in a key power consumption processing device provided in another embodiment of the present application, the third detection unit 706 includes:
[0169] The first measuring unit is used to measure the distance between the physical key and the vehicle through Bluetooth technology.
[0170] The first determination unit is used to determine whether the distance between the physical key and the vehicle is less than a preset distance.
[0171] The fourth determining unit is used to determine whether to enable the UWB ranging function of the physical key if the distance between the physical key and the vehicle is less than a preset distance.
[0172] Optionally, a key power consumption processing device provided in another embodiment of the present application further includes:
[0173] The fourth detection unit is used to detect whether the current physical key is disconnected from the vehicle's Bluetooth.
[0174] The second acquisition unit is used to collect the acceleration value corresponding to the current physical key in the three-dimensional direction through the motion sensor if the current physical key is disconnected from the Bluetooth of the vehicle, and switch the motion state of the physical key to the sleep state.
[0175] Optionally, a key power consumption processing device provided in another embodiment of the present application further includes:
[0176] The second measuring unit is used to measure the distance between the physical key and the vehicle through the Bluetooth technology if the physical key and the vehicle are connected via Bluetooth within a first preset time period.
[0177] The second judgment unit is used to judge whether the distance between the physical key and the vehicle is less than a preset distance.
[0178] The activation unit is used to activate the UWB ranging function of the physical key if the distance between the physical key and the vehicle is less than a preset distance, and to deactivate the UWB ranging function after the activation time of the USB ranging function is greater than a preset time.
[0179] The third acquisition unit is used to collect the acceleration value of the physical key in the three-dimensional direction through the motion sensor after turning off the UWB ranging function, when it is detected that the physical key is disconnected from the Bluetooth of the vehicle, and switch the motion state of the physical key to the sleep state.
[0180] The third judgment unit is used to judge whether the current posture of the physical key moves according to the acceleration values corresponding to the physical key in the three-dimensional direction.
[0181] The fifth detection unit is used to switch the sleep state of the physical key to the waiting state if the current posture of the physical key moves, and detect whether the physical key is connected to the Bluetooth of the vehicle.
[0182] The first switching unit is used to switch the physical key's ready-to-move state back to the sleep state if it is detected that the physical key is not connected to the vehicle's Bluetooth.
[0183] The second switching unit is used for switching the waiting state of the physical key to the moving state if a Bluetooth connection between the physical key and the vehicle is detected, and returning to execute the distance measurement between the physical key and the vehicle through the Bluetooth technology.
[0184] It should be noted that the specific working process of each unit provided in the above embodiments of the present application can refer to the corresponding steps in the above method embodiments, and will not be repeated here.
[0185] In summary, the embodiment of the present application provides a key power consumption processing device, which judges the user's usage scenario and switches the key to a different working mode based on the acceleration data collected by the motion sensor and the key's Bluetooth connection status, thereby achieving the goal of reducing the average power consumption of the physical key as much as possible without affecting the functions required by the user.
[0186] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0187] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for processing key power consumption, characterized in that: include: When it is detected that the physical key is powered on, the current state of the physical key is switched to a wake-up state; Detecting whether the physical key is connected to the vehicle via Bluetooth within a first preset time period; If the physical key is not connected to the Bluetooth of the vehicle within the first preset time period, switching the awake state of the physical key to the sleep state; Determining whether the current posture of the physical key is moving by a motion sensor; If the current posture of the physical key moves, the sleeping state of the physical key is switched to the waiting state, and in the waiting state, whether the physical key is connected to the Bluetooth of the vehicle within the first preset time period is detected; If the physical key is connected to the vehicle via Bluetooth within the first preset time period, the physical key is switched from a standby state to a moving state, and a UWB ranging function of the physical key is detected to be turned on; If the UWB ranging function of the physical key is turned on, the UWB ranging function is turned off after the USB ranging function is turned on for longer than a preset time.
2. The method according to claim 1, characterized in that The determining whether the current posture of the physical key is in motion includes: Obtaining the acceleration values corresponding to the three-dimensional directions collected in advance when the physical key is in the awakened state; In the sleep state, the current acceleration value corresponding to the physical key in the three-dimensional direction is periodically collected by the motion sensor, and the difference between the acceleration corresponding to each direction and the current acceleration is calculated respectively; Comparing whether the difference in any direction is greater than a preset threshold within a preset time period; If the difference in any direction is greater than a preset threshold value within a preset time period, it is determined that the current posture of the physical key has moved; If the difference in any direction is less than a preset threshold value within a preset time period, it is determined that the current posture of the physical key has not moved; or, When the motion sensor detects that a button on the physical key is triggered, it is determined that the current posture of the physical key moves.
3. The method according to claim 1, characterized in that The detecting whether the UWB ranging function of the physical key is turned on includes: Measuring the distance between the physical key and the vehicle by using Bluetooth technology; Determining whether the distance between the physical key and the vehicle is less than a preset distance; If the distance between the physical key and the vehicle is less than the preset distance, it is determined to turn on the UWB ranging function of the physical key.
4. The method according to claim 1, characterized in that: After the USB ranging function is turned on for longer than a preset time and the UWB ranging function is turned off, the method further includes: Detecting whether the physical key is currently disconnected from the Bluetooth of the vehicle; If the physical key is currently disconnected from the Bluetooth of the vehicle, the acceleration value corresponding to the physical key in the three-dimensional direction is collected through the motion sensor, and the motion state of the physical key is switched to the sleep state.
5. The method according to claim 1, characterized in that After detecting whether the physical key is connected to the vehicle's Bluetooth within a first preset time period, the method further includes: If the physical key is connected to the vehicle via Bluetooth within a first preset time period, measuring the distance between the physical key and the vehicle via Bluetooth technology; Determining whether the distance between the physical key and the vehicle is less than a preset distance; If the distance between the physical key and the vehicle is less than the preset distance, the UWB ranging function of the physical key is turned on, and after the USB ranging function is turned on for a time greater than a preset time, the UWB ranging function is turned off; After the UWB ranging function is turned off, when it is detected that the physical key is disconnected from the Bluetooth of the vehicle, the acceleration value corresponding to the physical key in the three-dimensional direction is collected by the motion sensor, and the motion state of the physical key is switched to the sleep state; Determining whether the current posture of the physical key is moving according to the acceleration values corresponding to the physical key in the three-dimensional direction; If the current posture of the physical key moves, the sleep state of the physical key is switched to the standby state, and whether the physical key is connected to the Bluetooth of the vehicle is detected; If it is detected that the physical key is not connected to the Bluetooth of the vehicle, the ready-to-move state of the physical key is switched back to the sleep state; If a Bluetooth connection between the physical key and the vehicle is detected, the standby state of the physical key is switched to the motion state, and the process of measuring the distance between the physical key and the vehicle by using the Bluetooth technology is returned to be executed.
6. A key power consumption processing device, characterized in that: include: A monitoring unit, configured to switch the current state of the physical key to a wake-up state when detecting that the physical key is powered on; A first detection unit, used to detect whether the physical key is connected to the vehicle through Bluetooth within a first preset time period; a state switching unit, configured to switch the wake-up state of the physical key to the sleep state if the physical key is not connected to the Bluetooth of the vehicle within the first preset time period; A motion determination unit, used to determine whether the current posture of the physical key is moving through a motion sensor; a second detection unit, configured to switch the physical key from a sleep state to a standby state if the physical key moves in its current posture, and to detect whether the physical key is connected to the vehicle via Bluetooth within the first preset time period in the standby state; a third detection unit, configured to switch the physical key from a standby state to a moving state if the physical key is connected to the vehicle via Bluetooth within the first preset time period, and detect whether a UWB ranging function of the physical key is turned on; The closing unit is used to close the UWB ranging function if the UWB ranging function of the physical key is turned on and after the turning-on time of the USB ranging function is greater than a preset time.
7. The device according to claim 6, characterized in that The motion determination unit comprises: An acquisition unit, used to acquire the acceleration values corresponding to the three-dimensional directions collected in advance when the physical key is in the awakened state; A first acquisition unit is used to periodically acquire the current acceleration value corresponding to the physical key in three-dimensional directions through a motion sensor in a sleep state, and respectively calculate the difference between the acceleration corresponding to each direction and the current acceleration; A comparison unit, used to compare whether the difference in any direction is greater than a preset threshold within a preset time period; A first determination unit, configured to determine that the current posture of the physical key has moved if the difference in any direction is greater than a preset threshold within a preset time period; A second determination unit, configured to determine that the current posture of the physical key has not moved if the difference in any direction is less than a preset threshold within a preset time period; or, The third determining unit is used to determine that the current posture of the physical key moves when a key on the physical key is detected by a motion sensor.
8. The device according to claim 6, characterized in that The third detection unit comprises: A first measuring unit, configured to measure the distance between the physical key and the vehicle through Bluetooth technology; A first judging unit, configured to judge whether the distance between the physical key and the vehicle is less than a preset distance; The fourth determining unit is used to determine whether to enable the UWB ranging function of the physical key if the distance between the physical key and the vehicle is less than the preset distance.
9. The device according to claim 6, characterized in that Also includes: A fourth detection unit, used to detect whether the physical key is currently disconnected from the Bluetooth of the vehicle; The second acquisition unit is used to collect the acceleration value corresponding to the current physical key in the three-dimensional direction through the motion sensor if the current physical key is disconnected from the Bluetooth of the vehicle, and switch the motion state of the physical key to the sleep state.
10. The device according to claim 6, characterized in that Also includes: A second measuring unit, configured to measure the distance between the physical key and the vehicle by using Bluetooth technology if the physical key is connected to the vehicle via Bluetooth within a first preset time period; A second judging unit, used to judge whether the distance between the physical key and the vehicle is less than a preset distance; an activation unit, configured to activate the UWB ranging function of the physical key if the distance between the physical key and the vehicle is less than the preset distance, and to deactivate the UWB ranging function after the activation time of the USB ranging function is greater than the preset time; A third acquisition unit is used for acquiring the acceleration value corresponding to the physical key in the three-dimensional direction through a motion sensor after the UWB ranging function is turned off, when it is detected that the physical key is disconnected from the Bluetooth of the vehicle, and switching the motion state of the physical key to a sleep state; A third judgment unit, used to judge whether the current posture of the physical key is moving according to the acceleration value corresponding to the physical key in the three-dimensional direction; a fifth detection unit, configured to switch the sleeping state of the physical key to a waiting state if the current posture of the physical key moves, and detect whether the physical key is connected to the Bluetooth of the vehicle; A first switching unit, configured to switch the physical key from the ready-to-move state to the sleep state if it is detected that the physical key is not connected to the vehicle via Bluetooth; The second switching unit is used for switching the waiting state of the physical key to the moving state if a Bluetooth connection between the physical key and the vehicle is detected, and returning to execute the measurement of the distance between the physical key and the vehicle through the Bluetooth technology.
Citation Information
Cited By
Automobile Bluetooth entity key power consumption optimization method and automobile Bluetooth entity key
CN121968065A