Intelligent key power supply control method and device, computer equipment and storage medium
By judging the power of the smart key from the initial low-frequency signal received by the vehicle, using the second power supply to make the MCU work, ensuring that the smart key interacts with the vehicle normally, solving the problem of startup failure caused by insufficient power, and improving the user experience.
Patent Information
- Application Number
- CN202510839374.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-23
- Publication Date
- 2025-08-19
AI Technical Summary
The insufficient power of the smart key causes the battery to be replaced in time, causing the vehicle to fail to start normally, causing inconvenience to daily travel.
By determining the target low frequency signal received from the vehicle, it is determined whether the power of the first power supply is lower than the preset power. If it is lower, the second power supply will supply power to the MCU, so that the MCU will enter the working mode, and process the target low frequency signal to generate a response command, transmitting a communication signal to interact with the vehicle.
When the first power supply is insufficient, the timely power supply of the second power supply causes the MCU to enter the working state, avoiding the failure of the smart key, and improving operational stability and user experience.
Smart Images

Figure CN120503739A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart keys, and in particular to a smart key power supply control method, device, computer equipment and storage medium. Background Art
[0002] With the advancement of automotive technology, most vehicles are equipped with PEPS (Passive-Entry-Passive-Start) systems, which enable functions such as starting, approach unlocking, door locking, and approach unlocking of the trunk using a smart key. While these features provide comfort, they also pose a challenge to the smart key's battery life. Because smart keys cannot be recharged at any time like mobile phones, users may not be able to detect a low smart key battery in time, making it difficult to replace the battery in time. This can cause the vehicle to not start properly, causing inconvenience in daily travel. Summary of the Invention
[0003] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a smart key power supply control method, device, computer equipment and storage medium.
[0004] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0005] The present invention is achieved through the following technical solutions:
[0006] In a first aspect, this embodiment provides a smart key power supply control method, comprising the following steps:
[0007] determining a target low-frequency signal based on an initial low-frequency signal received from a vehicle;
[0008] determining whether the power level of the first power source is lower than a preset power level based on the target low-frequency signal;
[0009] If the power level is lower than a preset level, the second power supply supplies power to the MCU to put the MCU into a working mode;
[0010] Controlling the MCU to process the target low-frequency signal to generate a response instruction;
[0011] Based on the response instruction, the low-frequency antenna transmits a communication signal to establish interaction with the vehicle.
[0012] Furthermore, the step of determining the target low-frequency signal from the initial low-frequency signal received by the smart key includes:
[0013] After receiving the initial low-frequency signal, the smart key transmits the initial low-frequency signal to the MCU to enable the MCU to enter a wake-up mode;
[0014] Controlling the MCU to detect the IO port based on preset detection rules;
[0015] If it is detected that there is a valid low-frequency signal at the target IO port, the valid low-frequency signal is used as the target low-frequency signal.
[0016] Furthermore, the step of determining whether the power level of the first power source is lower than a preset power level based on the target low-frequency signal includes:
[0017] Performing voltage detection on the first power supply based on the target low-frequency signal to obtain a current voltage;
[0018] calculating a current value of the first power supply based on the current voltage;
[0019] determining the amount of power of the first power supply based on the current voltage and the current value;
[0020] The power level of the first power source is compared with the preset power level.
[0021] Furthermore, the step of controlling the MCU to process the target low-frequency signal to generate a response instruction includes:
[0022] Based on a timer in the MCU and a first preset protocol, acquiring the target signal input into the MCU to generate a signal set;
[0023] Encoding the signal set to obtain binary transmission data;
[0024] The response instruction is generated based on the binary transmission data.
[0025] Furthermore, the step of encoding the signal set to obtain binary transmission data includes:
[0026] Identifying the period of each signal in the signal set and constructing a signal feature matrix;
[0027] Mapping the parameters in the signal feature matrix into binary symbols based on a preset coding rule;
[0028] The binary symbols are arranged and combined based on a second preset protocol to generate the binary transmission data.
[0029] Furthermore, the step of transmitting a communication signal by the low-frequency antenna based on the response instruction to establish interaction with the vehicle includes:
[0030] parsing the response instruction based on a third preset protocol to generate a signal identifier;
[0031] determining a PWM signal based on the signal identifier;
[0032] The PWM signal is subjected to oscillation processing to generate a communication signal, thereby establishing interaction with the vehicle.
[0033] Furthermore, the step of determining the PWM signal based on the signal identifier includes:
[0034] parsing the signal identifier to obtain a phase value and a count value;
[0035] The PWM signal is determined based on the phase value and the count value. In a second aspect, this embodiment provides a smart key power supply control device, comprising: an acquisition module, a judgment module, a configuration module, a generation module, and a sending module.
[0036] The acquisition module is configured to determine a target low-frequency signal based on an initial low-frequency signal received from a vehicle;
[0037] The judging module is configured to judge whether the power level of the first power source is lower than a preset power level based on the target low-frequency signal;
[0038] The configuration module is configured to, if the power level is lower than a preset level, supply power to the MCU from the second power source so that the MCU enters a working mode;
[0039] The generating module is used to control the MCU to process the target low-frequency signal to generate a response instruction;
[0040] The sending module is used to transmit a communication signal through the low-frequency antenna based on the response instruction to establish interaction with the vehicle.
[0041] In a third aspect, this embodiment provides a computer device, which includes a memory and a processor, wherein a computer program is stored on the processor, and when the processor executes the computer program, the smart key power supply control method according to any one of claims 1 to 7 is implemented.
[0042] In a fourth aspect, this embodiment provides a storage medium storing a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the smart key power supply control method according to any one of claims 1 to 7 can be implemented.
[0043] Compared with the prior art, the beneficial effects of the present invention are: determining a target low-frequency signal from an initial low-frequency signal received by the smart key, and judging whether the power of the first power supply is lower than a preset power supply based on the target low-frequency signal; if it is detected that the power of the first power supply is lower than the preset power supply, the second power supply supplies power to the MCU to put the MCU into working mode, so that the smart key can still interact with the vehicle when the first power supply is lower than the preset power supply, so that the vehicle can start normally, thereby improving the user experience.
[0044] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following preferred embodiments are specifically cited and described in detail as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A schematic diagram of a flow chart of a smart key power supply control method provided in an embodiment of the present invention;
[0046] Figure 2 A schematic diagram of a flow chart for executing step S1 in the smart key power supply control method provided by an embodiment of the present invention;
[0047] Figure 3 A schematic diagram of a flow chart for executing step S2 in the smart key power supply control method provided by an embodiment of the present invention;
[0048] Figure 4 A schematic diagram of a flow chart for executing step S3 in the smart key power supply control method provided by an embodiment of the present invention;
[0049] Figure 5 A schematic diagram of a flow chart for executing step S32 in the smart key power supply control method provided by an embodiment of the present invention;
[0050] Figure 6 A schematic diagram of a flow chart for executing step S5 in the smart key power supply control method provided by an embodiment of the present invention;
[0051] Figure 7 A schematic diagram of a flow chart for executing step S52 in the smart key power supply control method provided by an embodiment of the present invention;
[0052] Figure 8 A schematic block diagram of a smart key power supply control device provided by an embodiment of the present invention;
[0053] Figure 9 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0054] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0055] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0056] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the present invention. As used in the specification and appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0057] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0058] See also Figure 1 In the specific embodiment shown, the present invention discloses a smart key power supply control method, comprising the following steps:
[0059] Step S1, determining a target low-frequency signal based on an initial low-frequency signal received from a vehicle;
[0060] It is understandable that in a parking lot or underground garage, other vehicles and electronic devices (such as access control and Bluetooth devices) may generate low-frequency signals in the same frequency band. When a user carries a key and approaches multiple cars, he or she may receive low-frequency signals emitted by multiple cars at the same time, and needs to filter out the valid signal of the corresponding vehicle.
[0061] Through the above steps, the effective low-frequency signal of the target vehicle is extracted from multiple initial signals to ensure the accuracy of subsequent power judgment and command interaction, and avoid vehicle start-up failure or erroneous operation due to signal misjudgment.
[0062] Step S2, determining whether the power level of the first power source is lower than a preset power level based on the target low-frequency signal;
[0063] It can be understood that when the smart key determines the target low-frequency signal, the built-in power detection circuit is activated, and the voltage, current and other parameters of the first power supply are collected in real time to calculate the current power; the preset power is a threshold, which is usually the minimum power required for the smart key to complete a complete operation (such as unlocking and starting the vehicle). The power detection circuit compares the collected power data with the preset value to determine whether it is lower than the value, and thus determines whether it is necessary to switch the power supply to ensure the normal use of the smart key.
[0064] Through the above steps, the real-time power supply capacity of the first power supply is dynamically monitored rather than the static voltage, so that the second power supply is triggered before the power of the first power supply is about to be exhausted, so that the smart key and the vehicle can interact normally, thereby avoiding the phenomenon of "sudden key failure".
[0065] Step S3: If the power level is lower than the preset power level, the second power supply supplies power to the MCU to put the MCU into a working mode;
[0066] It can be understood that a power management module is provided inside the smart key to monitor the power level of the first power supply in real time and compare it with a preset value. When the power level of the first power supply is lower than the preset value, the power management module switches the power supply line from the first power supply to the second power supply, so that the second power supply supplies power to the MCU, and the MCU is switched from a low-power sleep mode to an operating mode.
[0067] Specifically, the first power supply is usually a conventional button battery, and the second power supply is a tantalum capacitor, which can provide sufficient power in a short time to ensure that when the first power supply is insufficient, the second power supply supplies power to the MCU to put it into working state and complete the interaction between the smart key and the vehicle.
[0068] Through the above steps, when the first power supply is insufficient, the second power supply is promptly supplied to the MCU, so that the MCU enters the working state, avoiding the failure of the smart key due to power problems and improving the operation stability of the smart key.
[0069] Step S4, controlling the MCU to process the target low-frequency signal to generate a response instruction;
[0070] It is understandable that the MCU has a built-in signal processing module. When the target low-frequency signal is received and confirmed by the low-frequency antenna of the smart key, the signal will be converted into an electrical signal format suitable for MCU processing and input into the MCU. The MCU decodes, parses and performs other operations on the target low-frequency signal according to the preset communication protocol and algorithm, and extracts the vehicle identity or operation request contained in the signal; the MCU internally stores an instruction set and corresponding logical rules for communicating with the vehicle. Based on the analysis results of the information in the target low-frequency signal, the MCU determines what kind of response instruction should be generated according to the preset logic. For example, if it is a start request signal sent by the vehicle, the MCU will match and verify the vehicle identity information in the signal with its own stored information. After the verification is passed, the corresponding start response instruction is generated.
[0071] Through the above steps, the MCU can accurately generate corresponding response instructions according to different target low-frequency signals, so that the smart key can correctly respond to various requests from the vehicle.
[0072] Step S5: Based on the response instruction, the low-frequency antenna transmits a communication signal to establish interaction with the vehicle.
[0073] It is understandable that the response command generated by the MCU is usually in the form of a digital signal, which needs to be converted into an analog signal suitable for transmission by the low-frequency antenna through modulation and coding. After receiving the modulated and encoded response command signal, the low-frequency antenna uses its own electromagnetic induction principle to convert the electrical signal into a low-frequency electromagnetic wave signal and transmit it outward. When the user approaches the vehicle with the smart key, the target low-frequency signal sent by the vehicle is received and processed by the smart key. The MCU generates a start response command, and the low-frequency antenna converts this command into a low-frequency communication signal and transmits it. After the vehicle receives the signal, it decodes and recognizes the start command and then starts the vehicle.
[0074] Through the above steps, the processed response instructions are accurately sent to the vehicle, and a communication interaction channel between the two parties is established, ensuring that the vehicle can receive the feedback information from the smart key in a timely manner and make corresponding operations, realizing convenient control of the vehicle by the smart key.
[0075] Through steps S1 to S5, a target low-frequency signal is determined from the initial low-frequency signal received by the smart key, and a power judgment is made based on the target low-frequency signal to determine whether the power of the first power supply is lower than the preset power. If it is detected that the power of the first power supply is lower than the preset power, the second power supply supplies power to the MCU to put the MCU into working mode, so that the smart key can still interact with the vehicle when the first power supply is lower than the preset power, so that the vehicle can start normally, thereby improving the user experience.
[0076] In one embodiment, see Figure 2 The step of determining the target low-frequency signal from the initial low-frequency signal received from the vehicle comprises:
[0077] Step S11, after receiving the initial low-frequency signal, the smart key transmits the initial low-frequency signal to the MCU to enable the MCU to enter a wake-up mode;
[0078] Understandably, to conserve power during daily use, smart keys are typically in a low-power state. By waking up the MCU via the vehicle's initial low-frequency signal, the smart key can be placed in a dormant state when not in use, activating only upon detecting the vehicle's initial low-frequency signal. This reduces the smart key's energy consumption, extends battery life, and ensures that the smart key receives and communicates with the vehicle's initial low-frequency signal when the user approaches.
[0079] Through the above steps, the MCU is in low-power mode when not in use and wakes up only when it receives the initial low-frequency signal, reducing the energy consumption of the smart key and extending the service life of the smart key battery.
[0080] Step S12, controlling the MCU to detect the IO port based on a preset detection rule;
[0081] It's understood that the MCU's IO port is connected to the smart key's low-frequency antenna receiving circuit to receive preliminarily processed low-frequency signals. The MCU reads the IO port's electrical level or digital signal value and samples and analyzes the signal based on pre-set detection rules. For example, within a specific time interval, the MCU checks whether the IO port receives a signal input that meets frequency and pulse width requirements and whether the signal strength reaches a set threshold. If the detected signal meets all pre-set conditions, it is determined to be a valid low-frequency signal.
[0082] Through the above steps, the detection of the IO port can distinguish between valid low-frequency signals and interference signals, improve the smart key's recognition accuracy of the target low-frequency signal, reduce misjudgment caused by signal interference or noise, and enhance the communication stability between the smart key and the vehicle.
[0083] Step S13: If it is detected that there is a valid low-frequency signal at the target IO port, the valid low-frequency signal is used as the target low-frequency signal.
[0084] It can be understood that when a user approaches a vehicle with a smart key, the initial low-frequency signal emitted by the vehicle is received by the smart key. The MCU detects the target IO port according to the preset detection rules to confirm the validity of the signal. If a valid low-frequency signal is detected, the MCU determines it as the target low-frequency signal, processes it, and interacts with the vehicle.
[0085] Through the above steps, IO port detection based on preset detection rules can prevent interference and attacks from malicious signals. Only valid low-frequency signals that meet specific characteristics can pass detection and trigger subsequent operations, enhancing the security of the smart key.
[0086] Through steps S11 to S13, the MCU wake-up mechanism and IO port detection based on preset detection rules enable the smart key to respond promptly and accurately when communication with the vehicle is needed, while maintaining a low power consumption state at other times, avoiding the MCU being in high power consumption mode for a long time and improving the service life of the smart key.
[0087] In one embodiment, see Figure 3 The step of determining whether the power level of the first power source is lower than a preset power level based on the target low-frequency signal includes:
[0088] Step S21, performing voltage detection on the first power supply based on the target low-frequency signal to obtain a current voltage;
[0089] It is understandable that when a user approaches a vehicle with the smart key, the vehicle transmits a target low-frequency signal. After receiving the signal, the smart key triggers the voltage detection circuit inside the smart key to detect the voltage of the first power supply and obtain the current voltage value.
[0090] By following these steps, you can ensure that the smart key has sufficient power to send the vehicle start signal, avoid smart key function failure due to insufficient power, and improve the operating stability of the smart key.
[0091] Step S22, calculating the current value of the first power supply based on the current voltage;
[0092] As you can understand, based on Ohm's law, once the internal resistance of the first power source is known and the current value is measured, the current value can be derived. When a user enters the vehicle with the smart key and attempts to start the vehicle, the smart key receives the target low-frequency signal and detects the current voltage of the first power source. After calculating the current value, the MCU, combined with the current voltage and current values, determines whether the first power source has sufficient charge to start the vehicle. If so, the vehicle starts successfully. If not, it switches to the second power source to ensure a smooth start.
[0093] Through the above steps, by calculating the current value and combining it with the current voltage, the power status of the first power supply can be accurately obtained, avoiding misjudgment caused by relying solely on voltage detection.
[0094] Step S23, determining the amount of power of the first power supply based on the current voltage and the current value;
[0095] It will be appreciated that in this embodiment, the capacity of the first power source is determined using the ampere-hour integration method, which integrates the charge and discharge current of the first power source and estimates the remaining capacity based on the rated capacity of the battery. In the smart key, the MCU monitors the current value in real time and records the cumulative change in current. It also corrects the current integration result based on the current voltage value to determine the actual capacity of the first power source.
[0096] Through the above steps, the power level of the first power supply is determined based on the real-time monitored voltage and current values. When the power level of the first power supply is insufficient, the second power supply is used to power the MCU to keep the smart key running stably, thereby improving the user experience.
[0097] Step S24: comparing the power level of the first power source with the preset power level.
[0098] It is understood that by comparing the power level of the first power source with the preset power level, it is possible to accurately determine whether the current power level meets the normal operation requirements of the smart key. The preset power level serves as a threshold, determined based on the minimum power required for the smart key to complete a complete operation (such as unlocking, starting the vehicle, etc.). By comparing the power level of the first power source with the preset power level, the smart key will only proceed to subsequent operations when the power level of the first power source is sufficient. Otherwise, the second power source will be switched to power the MCU, ensuring stable operation of the smart key.
[0099] Through the above steps, the current power level of the first power source is compared with the preset power level, and the state of the first power source is accurately determined, thereby avoiding erroneous operations caused by inaccurate power estimation.
[0100] Through steps S21 to S24, the target low-frequency signal is triggered and detected, and whether the power is sufficient when the vehicle and the smart key communicate, so as to avoid the phenomenon of smart key failure caused by power problem, thereby improving the operation stability of the smart key. In one embodiment, please refer to Figure 4 , the step of controlling the MCU to process the target low-frequency signal to generate a response instruction includes:
[0101] Step S31, based on a timer in the MCU and a first preset protocol, acquiring the target signal input into the MCU to generate a signal set;
[0102] It is understood that the timer in the MCU is a hardware module capable of generating precise time intervals, generating interrupt signals within specific intervals to trigger signal acquisition. In the smart key, the timer periodically initiates signal acquisition based on the signal transmission rate or frame interval specified in the first preset protocol, ensuring that the frequency of signal acquisition matches the transmission pattern of the target signal. When the timer triggers signal acquisition, the MCU reads the analog or digital value of the target low-frequency signal through its input pins. The collected signal samples are stored in the MCU's memory in the order of acquisition time, forming an ordered signal set. Each signal sample contains the amplitude or other characteristic information of the target signal at a specific moment. The first preset protocol defines the format and characteristics of the target signal, such as the frequency range, modulation method, and frame header and footer identifiers. Based on these protocol specifications, the MCU performs preliminary screening and processing of the collected signals, eliminating interfering signals that do not comply with the protocol and retaining valid target signals, thereby generating a qualified signal set.
[0103] Through the above steps, the timing of signal acquisition is accurately controlled based on the timer, and the valid signal is screened in combination with the first preset protocol, thereby improving the accuracy of signal acquisition.
[0104] Step S32, encoding the signal set to obtain binary transmission data;
[0105] It can be understood that the signal set is an analog signal or unprocessed raw data. Each signal sample in the signal set is converted into a binary bit according to the selected encoding method. For example, in Manchester encoding, there is a level jump in the middle of each binary bit, where a low-to-high level represents 0 and a high-to-low level represents 1. In NRZ encoding, a high level directly represents 1 and a low level represents 0. In this way, the analog signal or raw data is converted into a digital signal.
[0106] Through the above steps, the signal set is encoded into binary transmission data to conform to the standard communication protocol and data format, thereby enhancing the versatility of the interaction between the smart key and the vehicle.
[0107] Step S33: Generate the response instruction based on the binary transmission data.
[0108] It can be understood that based on the vehicle's communication protocol, the encoded binary transmission data is assembled according to a pre-set instruction format, and the format of the response instruction is the start bit, address bit, data bit, check bit and stop bit arranged in sequence, and the binary data indicating the start of the vehicle is placed in the data bit of the instruction.
[0109] Through the above steps, the binary transmission data is organized into an instruction format that complies with the vehicle communication protocol, ensuring that the communication signal sent by the smart key can be recognized and received by the vehicle.
[0110] Through steps S31 to S33, the target low-frequency signal is systematically collected, encoded and converted to reduce signal interference and bit error rate, improve the accuracy of signal processing, and the generated response instruction complies with the first preset protocol, so that the signal sent by the smart key can be accurately received and parsed by the vehicle, ensuring that the smart key and the vehicle can communicate normally.
[0111] In one embodiment, see Figure 5 , the step of encoding the signal set to obtain binary transmission data comprises:
[0112] Step S321, identifying the period of each signal in the signal set and constructing a signal feature matrix;
[0113] It can be understood that the period of a signal is one of its basic characteristics, which can reflect the frequency and repetition pattern of the signal. First, the waveform repetition pattern of the signal set on the time axis is detected to determine the period, and then the period of each signal is used as a characteristic parameter to construct a signal feature matrix.
[0114] Through the above steps, the signal period is identified and the feature matrix is constructed to extract the key features of the signal, reduce data redundancy, and improve signal processing efficiency.
[0115] Step S322: Mapping the parameters in the signal feature matrix into binary symbols based on a preset coding rule;
[0116] It can be understood that the preset coding rule can be a one-to-one mapping method to ensure that different signal features can be consistently converted into corresponding binary code element signals; therefore, the parameters in the signal feature matrix are regarded as multidimensional vectors, and are mapped to a predefined code book through vector quantization method, and each code book vector corresponds to a binary code element.
[0117] By mapping the parameters in the signal feature matrix into binary code elements through the above steps, the digital representation of the signal can be realized, and the efficiency and accuracy of signal processing can be improved.
[0118] Step S323: Arrange and combine the binary symbols based on a second preset protocol to generate the binary transmission data.
[0119] It is understandable that different vehicle manufacturers usually have their own specific communication protocols. Arranging and combining binary code elements based on the second preset protocol can ensure that the generated binary transmission data meets the vehicle's communication protocol requirements and realizes a variety of different control functions and instruction types.
[0120] Through the above steps, the binary code elements are arranged and combined to generate a variety of different command frames. Not only does the generated binary transmission data meet the vehicle's communication protocol requirements, but it can also realize a variety of different control functions and command types, thereby improving the functional diversity of the smart key.
[0121] Through steps S321 to S322, the periodic identification and feature matrix construction of the signal set can accurately extract the core features of the signal, reduce data redundancy, improve coding efficiency, and enable the smart key to quickly and accurately generate response instructions, thereby enhancing the user experience.
[0122] In one embodiment, see Figure 6 The step of transmitting a communication signal by the low-frequency antenna based on the response instruction to establish interaction with the vehicle includes:
[0123] Step S51, parsing the response instruction based on a third preset protocol to generate a signal identifier;
[0124] It is understood that a response instruction typically consists of a series of binary data, including a preamble, address code, data code, and check code. Based on the third preset protocol, the process of parsing the response instruction includes: first, extracting the data bits to be transmitted from the response instruction; then, determining a mapping frequency to map each data bit to a corresponding frequency value. Based on the mapped frequency value, a signal identifier is generated to indicate the frequency change corresponding to each data bit.
[0125] By converting the digital signal into a signal identifier through the above steps, the stability of signal transmission can be improved and the communication failure between the smart key and the vehicle due to signal quality problems can be reduced.
[0126] Step S52, determining a PWM signal based on the signal identifier;
[0127] It's understood that a PWM signal represents information by adjusting the duty cycle of its pulses. In a smart key, the frequency and duty cycle of the PWM signal can be used to control the transmission signal from the low-frequency antenna. The signal identifier generated based on the third preset protocol contains the frequency variation information corresponding to each data bit. This frequency variation information is converted into a corresponding PWM signal using a mapping function.
[0128] Through the above steps, the signal identifier is converted into a PWM signal to generate a stable communication signal that meets the low-frequency communication requirements.
[0129] Step S53: performing oscillation processing on the PWM signal to generate a communication signal, and establishing interaction with the vehicle.
[0130] It is understandable that although the PWM signal can carry modulation information, it needs to be converted into an analog signal suitable for low-frequency antenna transmission. Through oscillation processing, the PWM signal can be converted into a stable and continuous low-frequency communication signal, ensuring that the frequency and amplitude of the signal meet the requirements of the vehicle receiving system.
[0131] Through the above steps, the power and stability of the signal are enhanced, the transmission distance and anti-interference ability of the signal are improved, and the interaction between the smart key and the vehicle can be ensured even at a certain distance or in the presence of slight interference.
[0132] Through steps S51 to S53, based on the third preset protocol analysis and PWM signal oscillation processing, the smart key can quickly and accurately establish communication with the vehicle, realize keyless starting of the vehicle, and enhance the user experience.
[0133] In one embodiment, see Figure 7 The step of determining the PWM signal based on the signal identifier includes:
[0134] Step S521, analyzing the signal identifier to obtain a phase value and a count value;
[0135] As you can understand, the phase value indicates the starting position or phase offset of the signal and is commonly used for synchronization and modulation and demodulation. By analyzing the phase information in the signal identifier, the initial phase of the signal can be determined, ensuring the consistency of the generated PWM signal in time and phase. The count value represents the duration or number of cycles of the signal and is used to determine the length and number of repetitions of the signal.
[0136] Through the above steps, the phase value and count value in the signal identifier are parsed as the basis for generating a PWM signal that meets the requirements of the communication protocol, thereby improving the quality of the PWM signal.
[0137] Step S522: determining the PWM signal based on the phase value and the count value.
[0138] It can be understood that the phase value can be used to adjust the starting position of the PWM signal, and the count value can be used to determine the duration and repetition period of the PWM signal, ensuring that the generated PWM signal can accurately reflect the characteristics of the original signal; by adjusting the phase value and count value, PWM signals with different frequencies, duty cycles and durations can be generated to adapt to different communication protocols.
[0139] Through the above steps, based on the count value in the signal identifier, the duration and repetition period of the signal can be determined, ensuring that the generated PWM signal meets the requirements of the communication protocol in terms of time, improving the quality of the PWM signal, and ensuring that the smart key can interact with most vehicles, thereby improving the compatibility of the smart key.
[0140] Through step S521 to step S522, the phase value and the count value in the signal identifier are analyzed to generate a PWM signal that meets the requirements of the preset communication protocol, thereby ensuring the accuracy of signal conversion.
[0141] See also Figure 8 The present invention also discloses a smart key power supply control device, including: an acquisition module 10, a judgment module 20, a configuration module 30, a generation module 40 and a sending module 50.
[0142] The acquisition module 10 is configured to determine a target low-frequency signal based on an initial low-frequency signal received from a vehicle;
[0143] The judging module 20 is configured to judge whether the power level of the first power source is lower than a preset power level based on the target low-frequency signal;
[0144] The configuration module 30 is configured to supply power to the MCU from a second power source if the power level is lower than a preset level, so that the MCU enters a working mode;
[0145] The generating module 40 is configured to control the MCU to process the target low-frequency signal to generate a response instruction;
[0146] The sending module 50 is configured to transmit a communication signal via a low-frequency antenna based on the response instruction to establish interaction with the vehicle.
[0147] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned smart key power supply control device and each unit can refer to the corresponding description in the above-mentioned method embodiment. For the convenience and simplicity of description, it will not be repeated here.
[0148] The above can be implemented in the form of a computer program. The computer program can be used in Figure 8 Runs on the computer device shown.
[0149] See also Figure 9 , Figure 9 This is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 can be a terminal or a server. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, personal digital assistant, wearable device, or other electronic device with communication capabilities. The server can be a standalone server or a server cluster consisting of multiple servers.
[0150] See also Figure 9 The computer device 500 includes a processor 502 , a memory, and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .
[0151] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions that, when executed, cause the processor 502 to execute a smart key power supply control method, including: determining a target low-frequency signal based on an initial low-frequency signal received from a vehicle; determining whether the power level of a first power source is lower than a preset power level based on the target low-frequency signal; if the power level is lower than the preset power level, supplying power to an MCU from a second power source to put the MCU into an operating mode; controlling the MCU to process the target low-frequency signal to generate a response instruction; and transmitting a communication signal from a low-frequency antenna based on the response instruction to establish interaction with the vehicle.
[0152] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.
[0153] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503 . When the computer program 5032 is executed by the processor 502 , the processor 502 can execute a smart key power supply control method.
[0154] The network interface 505 is used to communicate with other devices through the network. Figure 9The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0155] The processor 502 is configured to execute a computer program 5032 stored in the memory to implement the following steps:
[0156] Step S1, determining a target low-frequency signal based on an initial low-frequency signal received from a vehicle;
[0157] Step S2, determining whether the power level of the first power source is lower than a preset power level based on the target low-frequency signal;
[0158] Step S3: If the power level is lower than the preset power level, the second power supply supplies power to the MCU to put the MCU into a working mode;
[0159] Step S4, controlling the MCU to process the target low-frequency signal to generate a response instruction;
[0160] Step S5: Based on the response instruction, the low-frequency antenna transmits a communication signal to establish interaction with the vehicle.
[0161] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0162] Those skilled in the art will appreciate that all or part of the steps in the method of the above-described embodiment can be implemented by instructing the relevant hardware through a computer program. The computer program includes program instructions, which can be stored in a storage medium that is computer-readable. The program instructions are executed by at least one processor in the computer system to implement the steps in the method of the above-described embodiment.
[0163] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the above-mentioned vehicle information interaction method is implemented. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the above-mentioned method is implemented. The program instructions include the following steps:
[0164] Step S1, determining a target low-frequency signal based on an initial low-frequency signal received from a vehicle;
[0165] Step S2, determining whether the power level of the first power source is lower than a preset power level based on the target low-frequency signal;
[0166] Step S3: If the power level is lower than the preset power level, the second power supply supplies power to the MCU to put the MCU into a working mode;
[0167] Step S4, controlling the MCU to process the target low-frequency signal to generate a response instruction;
[0168] Step S5: Based on the response instruction, the low-frequency antenna transmits a communication signal to establish interaction with the vehicle.
[0169] The storage medium may be any computer-readable storage medium that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk.
[0170] Those skilled in the art will 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 above description has generally described the composition and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can 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 the present invention.
[0171] In the several embodiments provided herein, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the various units is merely a logical functional division, and actual implementation may employ other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not implemented.
[0172] The steps in the methods of the embodiments of the present invention may be adjusted in order, combined, or deleted as needed. The units in the devices of the embodiments of the present invention may be combined, divided, or deleted as needed. Furthermore, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit.
[0173] If this integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the existing technology, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, terminal, or network device, etc.) to execute all or part of the steps of the method described in various embodiments of the present invention.
[0174] The above embodiments are preferred implementation schemes of the present invention. In addition, the present invention can also be implemented in other ways. Any obvious replacement without departing from the concept of the present technical solution is within the scope of protection of the present invention.
Claims
1. A smart key power supply control method, characterized in that: The following steps are involved: determining a target low-frequency signal based on an initial low-frequency signal received from a vehicle; determining whether the power level of the first power source is lower than a preset power level based on the target low-frequency signal; If the power level is lower than a preset level, the second power supply supplies power to the MCU to put the MCU into a working mode; Controlling the MCU to process the target low-frequency signal to generate a response instruction; Based on the response instruction, the low-frequency antenna transmits a communication signal to establish interaction with the vehicle.
2. The smart key power supply control method according to claim 1, characterized in that: The step of determining a target low-frequency signal from an initial low-frequency signal received by the smart key comprises: After receiving the initial low-frequency signal, the smart key transmits the initial low-frequency signal to the MCU to enable the MCU to enter a wake-up mode; Controlling the MCU to detect the IO port based on preset detection rules; If it is detected that there is a valid low-frequency signal at the target IO port, the valid low-frequency signal is used as the target low-frequency signal.
3. The smart key power supply control method according to claim 1, characterized in that: The step of determining whether the power level of the first power source is lower than a preset power level based on the target low-frequency signal includes: Performing voltage detection on the first power supply based on the target low-frequency signal to obtain a current voltage; calculating a current value of the first power supply based on the current voltage; determining the amount of power of the first power supply based on the current voltage and the current value; The power level of the first power source is compared with the preset power level.
4. The smart key power supply control method according to claim 1, characterized in that: The step of controlling the MCU to process the target low-frequency signal to generate a response instruction includes: Based on a timer in the MCU and a first preset protocol, acquiring the target signal input into the MCU to generate a signal set; Encoding the signal set to obtain binary transmission data; The response instruction is generated based on the binary transmission data.
5. The smart key power supply control method according to claim 4, characterized in that: The step of encoding the signal set to obtain binary transmission data comprises: Identifying the period of each signal in the signal set and constructing a signal feature matrix; Mapping the parameters in the signal feature matrix into binary symbols based on a preset coding rule; The binary symbols are arranged and combined based on a second preset protocol to generate the binary transmission data.
6. The smart key power supply control method according to claim 1, characterized in that: The step of transmitting a communication signal by the low-frequency antenna based on the response instruction to establish interaction with the vehicle includes: parsing the response instruction based on a third preset protocol to generate a signal identifier; determining a PWM signal based on the signal identifier; The PWM signal is subjected to oscillation processing to generate a communication signal, thereby establishing interaction with the vehicle.
7. The smart key power supply control method according to claim 6, characterized in that: The step of determining the PWM signal based on the signal identifier includes: parsing the signal identifier to obtain a phase value and a count value; The PWM signal is determined based on the phase value and the count value.
8. Intelligent key power supply control device, characterized in that: include: Acquisition module, judgment module, configuration module, generation module and sending module. The acquisition module is configured to determine a target low-frequency signal based on an initial low-frequency signal received from a vehicle; The judging module is configured to judge whether the power level of the first power source is lower than a preset power level based on the target low-frequency signal; The configuration module is configured to, if the power level is lower than a preset level, supply power to the MCU from the second power source so that the MCU enters a working mode; The generating module is used to control the MCU to process the target low-frequency signal to generate a response instruction; The sending module is used to transmit a communication signal through the low-frequency antenna based on the response instruction to establish interaction with the vehicle.
9. A computer device, characterized in that: The computer device includes a memory and a processor, a computer program is stored on the processor, and when the processor executes the computer program, the smart key power supply control method according to any one of claims 1 to 7 is implemented.
10. A storage medium, characterized in that: The storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a processor, the smart key power supply control method according to any one of claims 1 to 7 can be implemented.