A switch state recognition method, system, device and medium, a vehicle
Patent Information
- Application Number
- CN202410064026.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-16
- Publication Date
- 2026-10-13
- Estimated Expiration
- 2044-01-16
AI Technical Summary
[0003]车辆中电子电器开关状态往往关联着相应控制器的休眠唤醒状态跳转,而控制器在休眠时,无法实时采集外部电子电器的开关状态,而开关状态采集识别不准确会导致控制器的逻辑功能无法触发或者误触发,进一步导致控制器的误唤醒或无法休眠,不仅影响整车静态功耗,也会极大地影响整车功能表现
[0027]如上所述,本发明提供一种开关状态识别方法、系统、装置及介质、一种车辆,具有以下有益效果:首先获取控制器在休眠前目标器件的开关电平信号,然后对开关电平信号进行第一防抖处理,并对完成第一防抖处理后的开关电平信号进行第一分类识别;再将第一分类识别后的开关电平信号存储至预先或实时确定的目标存储区域,并在控制器休眠唤醒后,基于目标存储区域中存储的开关电平信号识别出目标器件的开关状态。其中,开关电平信号用于表征目标器件的开关状态,目标器件与控制器位于同一车辆中。由此可知,本发明通过对开关电平信号进行存储,可以在控制器休眠/唤醒状态下,能够让控制器基于存储的开关电平信号来准确识别车辆器件的开关状态,并且根据开关电平信号实施对应的控制逻辑功能,从而解决了目前控制器在休眠/唤醒状态下采集不同开关电平信号时误识别开关状态跳变从而误触发功能的问题。此外,本发明在控制器唤醒后,通过将功能控制延迟一段时间,即等待滤波完成后在进行功能控制,也可以消除误识别跳变的问题。并且,本发明控制器在休眠时还能识别到用户的开关请求操作,提高控制逻辑的智能化,提升功能控制效率。同时,也避免了控制器在休眠唤醒过程出现功能控制误触发行为,从而形成更加有效且准确的功能闭环。
Smart Images

Figure CN118004061B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle technology, and in particular to a method, system, device and medium for identifying switch status, and a vehicle. Background Technology
[0002] With the increasing level of automotive electronics, the electronic and electrical architecture of vehicles is developing towards centralization, intelligence, and electrification. The number of control units on the vehicle is gradually decreasing, while the functional integration is greatly improving, which puts forward higher requirements for the sleep and wake-up management mechanism of each controller unit.
[0003] The switching status of electronic appliances in a vehicle is often associated with the sleep / wake-up state transition of the corresponding controller. When the controller is in sleep mode, it cannot collect the switching status of external electronic appliances in real time. Inaccurate acquisition and recognition of switching status can cause the controller's logic functions to fail to be triggered or to be triggered erroneously, which can lead to the controller being woken up erroneously or unable to sleep. This not only affects the static power consumption of the entire vehicle, but also greatly affects the overall functional performance of the vehicle. Summary of the Invention
[0004] In view of the shortcomings of the prior art described above, the purpose of this invention is to provide a switch state identification method, system, device and medium, and a vehicle to solve the technical problems existing in the prior art.
[0005] To achieve the above and other related objectives, the present invention provides a switch state identification method, comprising the following steps:
[0006] The switch level signal of the target device is acquired before the controller goes into sleep mode, wherein the switch level signal is used to characterize the switch state of the target device, and the target device and the controller are located in the same vehicle;
[0007] The switch level signal is subjected to a first anti-jitter processing, and the switch level signal after the first anti-jitter processing is subjected to a first classification and identification.
[0008] The switch level signal identified in the first category is stored in a pre-determined or real-time determined target storage area. After the controller wakes up from sleep, the switch state of the target device is identified based on the switch level signal stored in the target storage area.
[0009] In one embodiment of the present invention, after the controller wakes up from sleep, the process of identifying the switching state of the target device based on the switching level signal stored in the target storage area includes:
[0010] After the controller wakes up from sleep, it performs a second anti-jitter processing on the switch level signals stored in the target storage area, and performs a second classification recognition on the switch level signals after the second anti-jitter processing, and transmits the switch level signals after the second classification recognition to the controller, so that the controller can identify the switching state of the target device according to the switch level signals after the second classification recognition.
[0011] In one embodiment of the present invention, the process of performing a first anti-jitter processing on the switch level signal includes:
[0012] The switching level signal is filtered using a pre-determined or real-time determined filtering algorithm to perform a first anti-jitter processing on the switching level signal; if the switching level signal maintains the same state within a preset time of anti-jitter filtering, the switching state of the switching level signal is considered valid, and the level signal is updated to overwrite the previously acquired level signal.
[0013] In one embodiment of the present invention, the filtering algorithm includes: a filtering algorithm determined based on a low-pass filter, a filtering algorithm determined based on a high-pass filter, and a filtering algorithm determined based on a band-pass filter.
[0014] In one embodiment of the present invention, the target storage area determined in advance or in real time includes: the non-volatile storage space of the controller.
[0015] The present invention also provides a switch state recognition system, the system comprising:
[0016] The acquisition module is used to acquire the switching level signal of the target device before the controller goes into sleep mode, wherein the switching level signal is used to characterize the switching state of the target device, and the target device and the controller are located in the same vehicle;
[0017] The filtering module is used to perform a first anti-jitter processing on the switch level signal acquired by the level acquisition module;
[0018] A switch identification module is used to perform a first classification identification on the switch level signal after the first anti-shake processing is completed;
[0019] The switch state storage module is used to store the switch level signal after the first classification identification into a target storage area that is determined in advance or in real time.
[0020] The control module is used to control the controller to trigger corresponding functional logic based on the switch level signal stored in the target storage area after the controller wakes up from sleep.
[0021] The present invention also provides a switch state identification device, comprising:
[0022] Controller;
[0023] And, a computer-readable medium storing instructions, which, when executed by the controller, cause the device to perform the switch state recognition method as described above.
[0024] The present invention also provides a computer-readable medium having instructions stored thereon, the instructions being loaded by a controller and executed as described in any of the above-described switch state recognition methods.
[0025] The present invention also provides a vehicle including a switch status recognition device as described above.
[0026] In one embodiment of the present invention, the vehicle includes at least one of the following: a fuel vehicle and a new energy vehicle.
[0027] As described above, the present invention provides a method, system, device, and medium for identifying switch states, and a vehicle, which has the following beneficial effects: First, the switch level signal of the target device is acquired before the controller goes into sleep mode. Then, the switch level signal is subjected to a first anti-jitter processing, and the switch level signal after the first anti-jitter processing is subjected to a first classification identification. Next, the switch level signal after the first classification identification is stored in a pre-determined or real-time determined target storage area. After the controller wakes up from sleep mode, the switch state of the target device is identified based on the switch level signal stored in the target storage area. The switch level signal is used to characterize the switch state of the target device, and the target device and the controller are located in the same vehicle. Therefore, by storing the switch level signal, the present invention enables the controller to accurately identify the switch state of vehicle devices based on the stored switch level signal during the controller's sleep / wake-up state, and to implement corresponding control logic functions according to the switch level signal. This solves the problem of the current controller misidentifying switch state transitions and thus erroneously triggering functions when acquiring different switch level signals during sleep / wake-up states. Furthermore, after the controller wakes up, the present invention also eliminates the problem of misidentifying transitions by delaying the function control for a period of time, i.e., waiting for filtering to complete before performing function control. Furthermore, the controller of this invention can recognize user on / off requests even during sleep mode, improving the intelligence of the control logic and enhancing the efficiency of function control. Simultaneously, it avoids erroneous function triggering during the sleep-wake process, thus forming a more effective and accurate functional closed loop. Attached Figure Description
[0028] Figure 1 This is a schematic diagram of switch state identification in an existing solution provided in one embodiment;
[0029] Figure 2 This is a schematic flowchart of a method for identifying switch states according to an embodiment of the present invention;
[0030] Figure 3 This is a schematic flowchart of a method for identifying switch states provided in another embodiment of the present invention;
[0031] Figure 4 This is a schematic diagram of the hardware structure of a switch state recognition module provided in one embodiment of the present invention;
[0032] Figure 5 This is a schematic diagram illustrating an exemplary system architecture for applying the technical solutions in one or more embodiments of the present invention;
[0033] Figure 6 This is a schematic diagram of the hardware structure of a switch state recognition device suitable for implementing one or more embodiments of the present invention. Detailed Implementation
[0034] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, unless otherwise specified, the following embodiments and features described therein can be combined with each other.
[0035] It should be noted that the illustrations provided in this embodiment are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0036] like Figure 1 As shown, Figure 1 The diagram illustrates a flowchart of a current switch state recognition scheme. First, the switch state of the electronic device before the controller goes into sleep mode is collected, denoted as switch state 1. Then, after the controller is woken up, the switch state of the corresponding electronic device is collected again, denoted as switch state 2. In a typical controller switch state acquisition model, to improve the robustness of switch state acquisition, the acquired switch states are usually debouncing. Because the debouncing process requires a certain filtering time, the controller cannot obtain the true switch state immediately upon wakeup. Therefore, the controller receives a non-true switch state (switch state 2) upon wakeup, and only receives the true switch state (switch state 1) after filtering. This discrepancy can cause the controller to detect a switch state jump, thus interpreting the external switch state as a change, falsely triggering functions or causing certain functions to malfunction, affecting the controller's performance after wakeup. In short, the current defects in switch recognition mainly fall into the following two categories:
[0037] 1. When the controller is in sleep mode, if the relevant scenario changes, such as a switch inside the vehicle being pressed, causing a change in the controller's digital port data, the controller, being in sleep mode, cannot record the real-time change. Therefore, when the controller is powered on again and woken up, it cannot recognize that the digital port status has changed, resulting in information loss. Consequently, the function cannot be triggered immediately after the controller is woken up, significantly impacting the driving experience.
[0038] 2. When the controller wakes up, before initialization is complete, the collected states of each port are generally assumed to be the default states. However, the state of the controller at the last moment before sleep is not necessarily the default state. Since the default state is obtained first after wake-up, and then the actual state is collected, state transitions may occur, leading to false triggering of functions. For example, if the hood is open before the vehicle goes into sleep mode, the controller will initially assume the hood is in the default state 0 during initialization after the vehicle wakes up. After the switch data collection is completed, it will identify the actual state of the hood switch as 1. This will cause a transition in the collected switch state, which is often associated with the controller's sleep / wake-up process. Misidentification can lead to the false wake-up of other network nodes, affecting the overall vehicle power consumption. Furthermore, for switches related to drive modules, such as the wiper return switch, if the switch state cannot be accurately identified immediately upon power-up, the wiper module may think the wiper return switch is not in the returned position, causing the wipers to rotate once. This can further affect other functions, such as the washer spray system.
[0039] Therefore, in current controller switch acquisition models, there is often a problem of lost user switch operations when the controller is in sleep mode. That is, the controller cannot recognize the changes in switch state during sleep, leading to significant user complaints. On the other hand, at the moment the controller wakes up, it is often impossible to obtain the accurate switch state immediately, which can easily lead to false triggering of functions and greatly reduce system robustness.
[0040] Therefore, in order to solve the above-mentioned defects, in an exemplary embodiment of the present invention, this embodiment provides a switch state recognition method, such as... Figure 2 As shown, Figure 2 A schematic flowchart of a switch state identification method according to an embodiment of the present invention is shown. The method includes the following steps:
[0041] S210, acquire the switching level signal of the target device before the controller goes into sleep mode, wherein the switching level signal is used to characterize the switching state of the target device, and the target device and the controller are located in the same vehicle. As an example, in this embodiment, electronic devices in the vehicle can be used as the target device, such as, but not limited to, the vehicle's windshield wiper motor, the vehicle's hood, etc.
[0042] S230, performs first anti-jitter processing on the switch level signal, and performs first classification and identification on the switch level signal after the first anti-jitter processing;
[0043] S240, the switch level signal identified after the first classification is stored in a pre-determined or real-time determined target storage area, and after the controller wakes up from sleep, the switch state of the target device is identified based on the switch level signal stored in the target storage area. As an example, in this embodiment, the pre-determined or real-time determined target storage area includes: the controller's non-volatile storage space.
[0044] According to the above description, in this embodiment, the process of identifying the switching state of the target device based on the switching level signal stored in the target storage area after the controller wakes up from sleep may include: performing a second anti-jitter processing on the switching level signal stored in the target storage area after the controller wakes up from sleep, performing a second classification recognition on the switching level signal after the second anti-jitter processing, and transmitting the second-classified switching level signal to the controller so that the controller can identify the switching state of the target device according to the second-classified switching level signal. In this embodiment, the first anti-jitter processing and the second anti-jitter processing represent anti-jitter processing at two different times, and the first classification recognition and the second classification recognition represent classification recognition at two different times. As an example, the methods of the first anti-jitter processing and the second anti-jitter processing in this embodiment can be the same or different; similarly, the methods of the first classification recognition and the second classification recognition in this embodiment can be the same or different.
[0045] According to the above description, in an exemplary embodiment, the process of performing a first anti-jitter processing on the switch level signal includes: filtering the switch level signal using a pre-determined or real-time determined filtering algorithm to perform the first anti-jitter processing on the switch level signal; if the switch level signal maintains the same state within a preset time of anti-jitter filtering, the switch state of the switch level signal is considered valid, and the level signal is updated to overwrite the previously acquired level signal. Furthermore, the process of performing a second anti-jitter processing on the switch level signal includes: filtering the switch level signal using a pre-determined or real-time determined filtering algorithm to perform the second anti-jitter processing on the switch level signal; if the switch level signal maintains the same state within a preset time of anti-jitter filtering, the switch state of the switch level signal is considered valid, and the level signal is updated to overwrite the previously acquired level signal. Specifically, the filtering algorithm in this embodiment can be set according to actual conditions. For example, the filtering algorithm in this embodiment can be a filtering algorithm determined based on a low-pass filter, a filtering algorithm determined based on a high-pass filter, or a filtering algorithm determined based on a band-pass filter. It can also be a filtering algorithm determined according to other methods or other filters.
[0046] Therefore, this embodiment, by storing the switch level signals, enables the controller to accurately identify the switching state of vehicle components based on the stored switch level signals during sleep / wake-up states. It then implements corresponding control logic functions according to the switch level signals, thus solving the problem of current controllers misidentifying switch state transitions and triggering functions when collecting different switch level signals during sleep / wake-up states. Furthermore, this embodiment eliminates the problem of misidentifying transitions by delaying function control for a period of time after the controller wakes up, i.e., waiting for filtering to complete before performing function control. Moreover, this embodiment's controller can also recognize user switch request operations during sleep, improving the intelligence of the control logic and enhancing function control efficiency. Simultaneously, it avoids erroneous function control triggering during the sleep / wake-up process, thus forming a more effective and accurate functional closed loop.
[0047] In another exemplary embodiment of the present invention, such as Figure 3 As shown, this embodiment provides a method for identifying switch state changes during controller sleep / wake-up, including the following steps:
[0048] After the controller is powered on and woken up, the switching level signal of the target device is acquired;
[0049] The acquired switch level signal is filtered using a filtering algorithm to debouncing the switch level.
[0050] The system checks whether filtering is complete. If filtering is complete, it performs a first classification and identification on the filtered switch level signal. If filtering is incomplete, it continues to filter the acquired switch level signal using the filtering algorithm.
[0051] The switch level after the first classification is identified is transmitted to the controller so that the controller can execute the corresponding functional logic and trigger the corresponding function according to the first classification result;
[0052] Determine whether the controller will enter sleep mode; if the controller will enter sleep mode, store the switch level signal identified in the first category into the controller's non-volatile memory space, which will not be lost when the controller enters sleep mode; otherwise, if the controller will not enter sleep mode for the time being, continue to collect the switch level signal of the target device and iterate through the above process again.
[0053] Determine whether the switch level signal has been successfully stored; if it has, wait for the controller to enter sleep mode; otherwise, if it has not been successfully stored, store the switch level signal identified in the first category into the controller's non-volatile memory space.
[0054] Therefore, in this embodiment, when the user wakes up the vehicle, the controller can obtain the effective switch state in the first instance through the optimized switch sampling model and implement the corresponding control function according to the switch state. Furthermore, it can also identify the user's switch request operation during sleep mode, improving the intelligence of the control logic and enhancing the efficiency of function control. At the same time, it avoids the controller from erroneously triggering function control during the sleep-wake process, thus forming a more effective and accurate functional closed loop. Therefore, this embodiment can consider storing the switch state in real time, not only before the controller goes into sleep mode; but also after the controller wakes up, the function control can be delayed for a period of time, i.e., waiting for the filtering to complete before performing function control, which can also eliminate the problem of misidentified jumps.
[0055] In summary, this invention provides a method for identifying switch states. First, it acquires the switch-level signal of the target device before the controller enters sleep mode. Then, it performs a first anti-jitter processing on the switch-level signal and a first classification identification on the anti-jitter processed switch-level signal. Next, it stores the first-classified switch-level signal in a pre-determined or real-time determined target storage area. After the controller wakes up from sleep mode, it identifies the switch state of the target device based on the switch-level signal stored in the target storage area. The switch-level signal characterizes the switch state of the target device, and the target device and controller are located in the same vehicle. Therefore, by storing the switch-level signal, this method allows the controller to accurately identify the switch state of vehicle devices based on the stored switch-level signal during sleep / wake-up states, and to implement corresponding control logic functions according to the switch-level signal. This solves the problem of misidentifying switch state transitions and thus erroneously triggering functions when the controller acquires different switch-level signals during sleep / wake-up states. Furthermore, this method also eliminates the problem of misidentifying transitions by delaying function control for a period of time after the controller wakes up, i.e., waiting for filtering to complete before performing function control. Furthermore, this method allows the controller to recognize user on / off requests even during sleep mode, enhancing the intelligence of the control logic and improving functional control efficiency. Simultaneously, it prevents erroneous functional control triggering during the sleep-wake process, thus forming a more effective and accurate functional closed loop.
[0056] like Figure 4 As shown, in another exemplary embodiment of the present invention, this embodiment also provides a switch identification system, including:
[0057] The acquisition module is used to acquire the switching level signal of the target device before the controller goes into sleep mode. The switching level signal is used to characterize the switching state of the target device. The target device and the controller are located in the same vehicle.
[0058] The filtering module is used to perform the first anti-jitter processing on the switch level signal acquired by the level acquisition module;
[0059] A switch identification module is used to perform a first classification identification on the switch level signal after the first anti-shake processing is completed;
[0060] The switch state storage module is used to store the switch level signal after the first classification identification into a target storage area that is determined in advance or in real time.
[0061] The control module is used to control the controller to trigger corresponding functional logic based on the switch level signals stored in the target storage area after the controller wakes up from sleep.
[0062] Specifically, this embodiment optimizes the switch acquisition model by adding a switch state storage module, enabling the controller to accurately identify switch state changes during sleep and wake-up. In the entire switch acquisition model, the acquisition module is responsible for acquiring external switch level signals and transmitting the acquired level states to the filtering module. The filtering module performs anti-bouncing processing on the switch levels using a filtering algorithm, and the anti-bouncing switch levels are then input to the switch identification module. The switch identification module performs a first-class identification of the filtered switch levels and transmits the identified switch states to the control module, which triggers the corresponding function according to the functional logic. Simultaneously, the switch identification module also transmits the identified switch states to the switch state storage module, which stores the switch states in the controller's non-volatile storage space. This storage will not be lost when the controller goes into sleep mode. Therefore, in this embodiment, the acquired switch states are stored before the controller goes into sleep mode, and the stored switch states are given to the filtering module after the controller is powered on and woken up, restoring the control logic to the state before sleep mode. Furthermore, to address the false state transitions caused by filtering time, this invention directly transmits the switch states from the switch state storage module to the filtering module, ensuring that the input state before filtering is the true final switch state before the controller goes into sleep mode.
[0063] In summary, this invention provides a switch state recognition system. First, it acquires the switch level signal of the target device before the controller goes into sleep mode. Then, it performs a first anti-jitter processing on the switch level signal and a first classification recognition on the anti-jitter processed switch level signal. Next, it stores the first-classified switch level signal in a pre-determined or real-time determined target storage area. After the controller wakes up from sleep mode, it identifies the switch state of the target device based on the switch level signal stored in the target storage area. The switch level signal characterizes the switch state of the target device, and the target device and controller are located in the same vehicle. Therefore, by storing the switch level signal, this system allows the controller to accurately identify the switch state of vehicle devices based on the stored switch level signal during sleep / wake-up states, and to implement corresponding control logic functions according to the switch level signal. This solves the problem of current controllers misidentifying switch state transitions and thus erroneously triggering functions when acquiring different switch level signals during sleep / wake-up states. Furthermore, after the controller wakes up, this system also eliminates the problem of misidentifying transitions by delaying the function control for a period of time, i.e., waiting for filtering to complete before performing function control. Furthermore, the system controller can recognize user on / off requests even during sleep mode, enhancing the intelligence of the control logic and improving functional control efficiency. Simultaneously, it prevents erroneous functional triggering during the sleep-wake process, thus forming a more effective and accurate functional closed loop.
[0064] It should be noted that the switch state recognition system provided in the above embodiments and the switch state recognition method provided in the above embodiments belong to the same concept. The specific way in which the switch state recognition method performs its operations has been described in detail in the above method embodiments, and will not be repeated here. In practical applications, the switch state recognition system provided in the above embodiments can be assigned to different functional modules as needed, that is, the internal structure of the system can be divided into different functional modules to complete all or part of the functions described in the above method embodiments. This is not a limitation here.
[0065] In another exemplary embodiment of the present invention, this embodiment also provides a vehicle including a switch state recognition device as described in any of the above embodiments. As an example, the vehicle in this embodiment includes, but is not limited to, fuel-powered vehicles and new energy vehicles.
[0066] It should be noted that the vehicle age recognition system provided in this embodiment and the switch state recognition system provided in the above embodiments belong to the same concept. The specific operation method of the switch state recognition system has been described in detail in the above embodiments. Therefore, for the specific implementation process and corresponding technical effects of the vehicle in this embodiment, please refer to the switch state recognition system described in the above embodiments, and it will not be repeated here. In practical applications, the vehicle provided in this embodiment can allocate the above functions to different functional modules as needed, that is, divide the internal structure of the vehicle into different functional modules to implement all or part of the functions through the switch state recognition system described in the above embodiments. This is not a limitation here.
[0067] It should be noted that the above embodiments, in collecting, storing, using, processing, transmitting, providing, disclosing, and deleting relevant data (such as switch level signals), are carried out with or with the user's consent. For example, switch level signals are obtained with the user's knowledge and consent; or are provided voluntarily by the user after reading the relevant instructions; or are actively authorized / provided / uploaded by the user when using some or all of the functions described in the above embodiments; or are obtained through other means or channels with the user's consent.
[0068] Figure 5 A schematic diagram of an exemplary system architecture that can apply the technical solutions of one or more embodiments of the present invention is shown. Figure 5 As shown, the system architecture 100 may include terminal device 110, network 120, and server 130. Terminal device 110 may include various electronic devices such as smartphones, tablets, laptops, and desktop computers. Server 130 may be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. Network 120 may be a communication medium of various connection types capable of providing a communication link between terminal device 110 and server 130, such as a wired communication link or a wireless communication link.
[0069] Depending on the implementation requirements, the system architecture in this embodiment of the invention can have any number of terminal devices, networks, and servers. For example, server 130 can be a server group composed of multiple server devices. Furthermore, the technical solutions provided in this embodiment of the invention can be applied to terminal device 110, or to server 130, or can be implemented jointly by terminal device 110 and server 130; this invention does not impose any special limitations on these applications.
[0070] In one embodiment of the present invention, the terminal device 110 or server 130 can acquire the switching level signal of the target device before the controller goes into sleep mode, then perform a first anti-jitter processing on the switching level signal, and perform a first classification identification on the switching level signal after the first anti-jitter processing; then store the switching level signal after the first classification identification in a pre-determined or real-time determined target storage area, and after the controller wakes up from sleep mode, identify the switching state of the target device based on the switching level signal stored in the target storage area. The switching level signal is used to characterize the switching state of the target device, and the target device and the controller are located in the same vehicle. By using the terminal device 110 or server 130 to execute the switching state identification method, and by storing the switching level signal, the controller can accurately identify the switching state of vehicle devices based on the stored switching level signal in the controller's sleep / wake-up state, and implement the corresponding control logic function according to the switching level signal, thereby solving the problem of the current controller misidentifying switching state transitions and thus erroneously triggering functions when acquiring different switching level signals in the sleep / wake-up state. Furthermore, after the controller wakes up, the present invention can also eliminate the problem of misidentifying transitions by delaying the function control for a period of time, i.e., waiting for filtering to complete before performing function control. Furthermore, the controller of this invention can recognize user on / off requests even during sleep mode, improving the intelligence of the control logic and enhancing the efficiency of function control. Simultaneously, it avoids erroneous function triggering during the sleep-wake process, thus forming a more effective and accurate functional closed loop.
[0071] This invention also provides a switch state identification device, which may include: one or more controllers; and one or more machine-readable media storing instructions thereon, which, when executed by the one or more controllers, cause the device to perform... Figure 2 and / or Figure 3 The aforementioned switch state recognition method. Figure 6 A schematic diagram of a switch state recognition device 1000 is shown. (See also...) Figure 6 As shown, the switch status recognition device 1000 includes: a controller 1010, a memory 1020, a power supply 1030, a display unit 1040, and an input unit 1060.
[0072] The controller 1010 is the control center of the switch state identification device 1000. It connects various components via various interfaces and lines, and executes various functions of the switch state identification device 1000 by running or executing software programs and / or data stored in the memory 1020, thereby performing overall monitoring of the switch state identification device 1000. In this embodiment of the invention, when the controller 1010 calls the computer program stored in the memory 1020, it executes, for example... Figure 2 and / or Figure 3The aforementioned switch state identification method. Optionally, the controller 1010 may include one or more processing units; preferably, the controller 1010 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. In some embodiments, the controller and memory can be implemented on a single chip; in some embodiments, they can also be implemented on separate chips.
[0073] The memory 1020 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, various applications, etc.; the data storage area may store data created based on the use of the switch state identification device 1000, etc. In addition, the memory 1020 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0074] The switch status identification device 1000 also includes a power supply 1030 (such as a battery) that supplies power to various components. The power supply can be logically connected to the controller 1010 through a power management system, thereby enabling the management of charging, discharging, and power consumption through the power management system.
[0075] The display unit 1040 can be used to display information input by the user or information provided to the user, as well as various menus of the switch state recognition device 1000. In this embodiment of the invention, it is mainly used to display the display interface of each application in the switch state recognition device 1000, as well as text, images, and other objects displayed on the display interface. The display unit 1040 may include a display panel 1050. The display panel 1050 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0076] The input unit 1060 can be used to receive information such as numbers or characters input by the user. The input unit 1060 may include a touch panel 1070 and other input devices 1080. The touch panel 1070, also known as a touch screen, can collect touch operations on or near the touch panel 1070 by the user (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel 1070).
[0077] Specifically, the touch panel 1070 can detect user touch operations and the signals generated by these operations, convert them into touch point coordinates, send them to the controller 1010, and receive and execute commands from the controller 1010. Furthermore, the touch panel 1070 can be implemented using various types of touch technologies, including resistive, capacitive, infrared, and surface acoustic wave. Other input devices 1080 can include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc.
[0078] Of course, the touch panel 1070 can cover the display panel 1050. When the touch panel 1070 detects a touch operation on or near it, it transmits the information to the controller 1010 to determine the type of touch event. Subsequently, the controller 1010 provides corresponding visual output on the display panel 1050 according to the type of touch event. Although in Figure 6 In this embodiment, the touch panel 1070 and the display panel 1050 are two independent components to realize the input and output functions of the switch state recognition device 1000. However, in some embodiments, the touch panel 1070 and the display panel 1050 can be integrated to realize the input and output functions of the switch state recognition device 1000.
[0079] The switch status recognition device 1000 may also include one or more sensors, such as a pressure sensor, a gravity acceleration sensor, a proximity light sensor, etc. Of course, depending on the specific application requirements, the switch status recognition device 1000 may also include other components such as a camera.
[0080] This invention also provides a computer-readable storage medium storing instructions that, when executed by one or more controllers, enable the aforementioned apparatus to perform the functions described in this invention. Figure 2 and / or Figure 3 The aforementioned switch state recognition method.
[0081] It will be understood by those skilled in the art that Figure 6 This is merely an example of a switch state recognition device and does not constitute a limitation on the device. The device may include more or fewer components than illustrated, or combine certain components, or use different components. For ease of description, the above parts are divided into modules (or units) according to their functions and described separately. Of course, in implementing this invention, the functions of each module (or unit) can be implemented in one or more software or hardware components.
[0082] Those skilled in the art will understand that the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention, and it should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be applied to a controller of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions, which execute via the controller of the computer or other programmable data processing device, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The functions specified in one or more boxes. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0083] It should be understood that although the terms first, second, third, etc., may be used to describe image stabilization processes in the embodiments of the present invention, these image stabilization processes should not be limited to these terms. These terms are only used to distinguish image stabilization processes from one another. For example, without departing from the scope of the embodiments of the present invention, a first image stabilization process may also be referred to as a second image stabilization process, and similarly, a second image stabilization process may also be referred to as a first image stabilization process.
[0084] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.
Claims
1. A method for identifying switch states, characterized in that, The method includes the following steps: The switch level signal of the target device is acquired before the controller goes into sleep mode, wherein the switch level signal is used to characterize the switch state of the target device, and the target device and the controller are located in the same vehicle; The switch level signal is subjected to a first anti-jitter processing, and the switch level signal after the first anti-jitter processing is subjected to a first classification and identification. The switch level signal identified in the first category is stored in a pre-determined or real-time target storage area, and the switch state of the target device is identified based on the switch level signal stored in the target storage area after the controller wakes up from sleep. After the controller wakes up from sleep, the process of identifying the switching state of the target device based on the switching level signals stored in the target storage area includes: After the controller wakes up from sleep, it performs a second anti-jitter processing on the switch level signals stored in the target storage area, and performs a second classification recognition on the switch level signals after the second anti-jitter processing, and transmits the switch level signals after the second classification recognition to the controller, so that the controller can identify the switching state of the target device according to the switch level signals after the second classification recognition.
2. The switch state identification method according to claim 1, characterized in that, The process of performing the first debouncing processing on the switch level signal includes: The switching level signal is filtered using a pre-determined or real-time determined filtering algorithm to perform a first anti-jitter processing on the switching level signal; if the switching level signal maintains the same state within a preset time of anti-jitter filtering, the switching state of the switching level signal is considered valid, and the level signal is updated to overwrite the previously acquired level signal.
3. The switch state identification method according to claim 2, characterized in that, The filtering algorithms include: a filtering algorithm determined based on a low-pass filter, a filtering algorithm determined based on a high-pass filter, and a filtering algorithm determined based on a band-pass filter.
4. The switch state identification method according to any one of claims 1 to 3, characterized in that, The target storage area determined in advance or in real time includes: the non-volatile storage space of the controller.
5. A switch status recognition system, characterized in that, The system includes: The acquisition module is used to acquire the switching level signal of the target device before the controller goes into sleep mode, wherein the switching level signal is used to characterize the switching state of the target device, and the target device and the controller are located in the same vehicle; The filtering module is used to perform a first anti-jitter processing on the switch level signal acquired by the level acquisition module; A switch identification module is used to perform a first classification identification on the switch level signal after the first anti-shake processing is completed; The switch state storage module is used to store the switch level signal after the first classification identification into a target storage area that is determined in advance or in real time. The control module is configured to, after the controller wakes up from sleep, control the controller to trigger corresponding functional logic based on the switch level signals stored in the target storage area; wherein, the process of identifying the switch state of the target device based on the switch level signals stored in the target storage area after the controller wakes up from sleep includes: after the controller wakes up from sleep, performing a second anti-jitter processing on the switch level signals stored in the target storage area, performing a second classification identification on the switch level signals after the second anti-jitter processing, and transmitting the switch level signals after the second classification identification to the controller, so that the controller identifies the switch state of the target device according to the switch level signals after the second classification identification.
6. A switch status identification device, characterized in that, include: Controller; And, a computer-readable medium storing instructions, which, when executed by the controller, cause the device to perform the switch state identification method as described in any one of claims 1 to 4.
7. A computer-readable medium, characterized in that, It stores instructions that are loaded and executed by the controller as described in any one of claims 1 to 4 for the switch state identification method.
8. A vehicle, characterized in that, The vehicle includes the switch status recognition device as described in claim 6.
9. The vehicle according to claim 8, characterized in that, The vehicles include at least one of the following: fuel-powered vehicles and new energy vehicles.
Citation Information
Patent Citations
Anti-jitter distinguishing method and device of switching value signal
CN109445423A
Vehicle-mounted camera device control method, system and equipment and storage medium
CN114143753A