Vehicle switch type fault detection method and device
By acquiring and analyzing the vehicle switch configuration, outputting operation signals and monitoring status switching, the problem of insufficient coverage of vehicle switch-type fault detection is solved, and fast and accurate fault identification and positioning is achieved, which improves maintenance efficiency and user satisfaction.
Patent Information
- Application Number
- CN202411393950.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2025-01-10
AI Technical Summary
In the prior art, vehicle switch fault detection coverage is incomplete, resulting in invisible faults with low factory and after-sales maintenance efficiency, and it is impossible to quickly identify and locate switch faults.
By obtaining the switch configuration of the vehicle, outputting the switch operation signal, switching the switch state twice, and obtaining the actual state, determining whether the switch is abnormal, and effectively detecting and positioning the vehicle switch-like faults.
It improves the detection accuracy and positioning efficiency of vehicle switch faults, reduces maintenance time, and improves user satisfaction.
Smart Images

Figure CN119291485A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automobile detection, and in particular to a method and device for detecting switch faults of a vehicle. Background Art
[0002] As market competition in the commercial vehicle industry becomes increasingly fierce, customers have higher and higher requirements for vehicle factory reliability and after-sales maintenance efficiency. The current coverage of vehicle switch fault detection in the industry is incomplete. There are situations where switch faults cannot be identified, resulting in hidden faults leaving the factory. At the same time, there is no effective means to quickly identify and locate switch faults during after-sales maintenance, resulting in long vehicle maintenance time, which causes user complaints. Summary of the invention
[0003] The present invention provides a method and device for detecting switch faults of a vehicle, so as to realize effective detection and positioning of switch faults of the vehicle.
[0004] According to one aspect of the present invention, a method for detecting switch faults of a vehicle is provided, wherein the vehicle comprises a plurality of switches, and the method for detecting switch faults comprises:
[0005] obtaining a switch configuration of the vehicle;
[0006] According to the switch configuration, a switch operation signal is outputted to switch the switch state of at least part of the switches of the vehicle twice; at the same time, the actual state of the switch of the switch state switching is obtained;
[0007] According to the actual status of each of the switches, it is determined whether each switch of the vehicle is abnormal.
[0008] Optionally, if there is no abnormal switch, the output switch detection is completed and all normal display data is displayed.
[0009] Optionally, if there is an abnormal switch, the display data of the abnormal switch is output.
[0010] Optionally, obtaining a switch configuration of the vehicle includes:
[0011] Obtain the model of the vehicle;
[0012] According to the model of the vehicle, a switch configuration of the vehicle is obtained.
[0013] Optionally, the vehicle is provided with a switch controller corresponding to each of the switches;
[0014] Obtaining the switch configuration of the vehicle, including:
[0015] Obtaining configuration information of the switch controller of the vehicle;
[0016] The switch configuration of the vehicle is obtained according to the configuration information of the switch controller.
[0017] Optionally, if the acquisition of the switch configuration of the vehicle fails, a switch configuration acquisition failure signal is output, and troubleshooting suggestion display data is displayed, and the step of acquiring the switch configuration of the vehicle is returned.
[0018] Optionally, the switch operation signal includes a switch operation prompt signal;
[0019] Outputting a switch operation signal according to the switch configuration to switch the switch state of at least part of the switches of the vehicle twice comprises:
[0020] According to the switch configuration, the switch operation prompt signal is output to prompt the staff to operate the switch so that the switch state of at least part of the switches is switched twice.
[0021] Optionally, the switch operation signal includes a switch operation control signal;
[0022] Outputting a switch operation signal according to the switch configuration to switch the switch state of at least part of the switches of the vehicle twice comprises:
[0023] According to the switch configuration, the switch operation control signal is output to control the switch state of the switch, so that the switch state of at least part of the switches is switched twice.
[0024] Optionally, the vehicle comprises a vehicle control unit;
[0025] Before obtaining the switch configuration of the vehicle, the method further includes:
[0026] Detecting whether the vehicle control unit is abnormal;
[0027] If the vehicle control unit is normal, obtaining the switch configuration of the vehicle;
[0028] If the vehicle control unit is abnormal, a vehicle control unit abnormality signal is output, and the process returns to the step of detecting whether the vehicle control unit is abnormal.
[0029] Optionally, before obtaining the switch configuration of the vehicle, the method further includes:
[0030] Acquire a switch detection signal, and determine whether the switch detection signal is a full detection signal; wherein the switch detection signal includes the full detection signal and the non-full detection signal;
[0031] If the full detection signal is obtained, a switch operation signal is output according to the switch configuration to switch the switch state of at least part of the switches of the vehicle twice, including:
[0032] According to the switch configuration, outputting a switch operation signal so that the switch states of all the switches of the vehicle are switched twice;
[0033] If the incomplete detection signal is obtained, a switch operation signal is output according to the switch configuration to switch the switch state of at least part of the switches of the vehicle twice, including:
[0034] According to the switch configuration, obtaining information of the switch to be detected;
[0035] A switch operation signal is outputted to switch the switch state of the switch to be detected twice.
[0036] Optionally, if the detection result of the switch is abnormal, recording the information of the abnormal switch;
[0037] receiving information of the abnormal switch, and outputting an abnormal switch operation signal according to the information of the abnormal switch, so that the switch state of the abnormal switch is switched twice; at the same time, obtaining the actual state of the abnormal switch;
[0038] According to the actual state of the abnormal switch, determining whether the abnormal switch is still abnormal after re-testing;
[0039] If the abnormal switch is still abnormal after re-testing, the switch that was abnormal in the initial test result is determined to be an abnormal switch;
[0040] If the abnormal switch is normal after re-detection, the switch that is abnormal in the initial detection result is determined to be a normal switch.
[0041] Optionally, receiving the information of the abnormal switch and outputting an abnormal switch operation signal so as to switch the switch state of the abnormal switch twice includes:
[0042] Get the re-detection signal;
[0043] According to the re-detection signal, information about the abnormal switch is received, and an abnormal switch operation signal is output to switch the switch state of the abnormal switch twice.
[0044] According to another aspect of the present invention, there is provided a switch fault detection device for a vehicle, comprising:
[0045] An acquisition module, used to acquire the switch configuration of the vehicle;
[0046] A monitoring module, configured to output a switch operation signal according to the switch configuration, so that the switch state of at least part of the switches of the vehicle is switched twice; and at the same time, obtain the actual state of the switch when the switch state is switched;
[0047] The judging module judges whether each switch of the vehicle is abnormal according to the actual state of each switch.
[0048] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:
[0049] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the vehicle switch fault detection method described in any embodiment of the present invention.
[0050] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the vehicle switch fault detection method described in any embodiment of the present invention when executed.
[0051] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the vehicle switch fault detection method according to any embodiment of the present invention is implemented.
[0052] The technical solution of the present invention can obtain the switch configuration of the vehicle and output the switch operation signal according to the switch configuration, so as to obtain the switch information of the vehicle and test the switches, and at the same time obtain the actual state of the switch whose switch state is switched, so as to monitor whether the actual state of the switch changes with the switching of the switch state when the switch state is switched. In addition, the switch state is switched twice to ensure that when the switch is normal, the actual state of the switch can be either the on state or the off state, so as to avoid the actual state of the switch being in a certain state when the switch is abnormal, which affects the detection result. The above technical solution can realize the effective detection and positioning of the switch faults of the vehicle.
[0053] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0055] Figure 1 This is a flow chart of a vehicle switch fault detection method provided by Embodiment 1 of the present invention;
[0056] Figure 2 is a flow chart of a vehicle switch fault detection method provided by Embodiment 2 of the present invention;
[0057] Figure 3 is a flow chart of a vehicle switch fault detection method provided by Embodiment 3 of the present invention;
[0058] Figure 4 It is a structural schematic diagram of a switch fault detection device for a vehicle provided by a fourth embodiment of the present invention;
[0059] Figure 5 A schematic diagram of the structure of an electronic device that can be used to implement an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0060] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0061] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatus.
[0062] Embodiment 1
[0063] Figure 1This is a flow chart of a vehicle switch fault detection method provided by the first embodiment of the present invention. This embodiment can be applied to the vehicle offline detection scenario after the vehicle is manufactured, the vehicle functional test scenario, the after-sales maintenance detection scenario when the vehicle fails, etc. The method can be executed by the vehicle switch fault detection device, which can be implemented in the form of hardware and / or software. The switch fault device can be configured in diagnostic equipment, diagnostic modules of vehicle intelligent services, mobile computers, mobile phones and other electronic devices. Figure 1 As shown, the method includes:
[0064] S110: Obtain switch configuration of the vehicle.
[0065] The switch configuration of the vehicle refers to the configuration related to the switch of the vehicle, such as the control of the start switch, the switch control of the engine, the switch control of the cruise, the switch control of the brake, the switch control of the air conditioner, the switch control of the light, the switch control of the window, the switch control of the seat heating, etc. It should be noted that for different vehicles, some functions may be different, that is, the switch configuration of different vehicles may be different, and not all vehicles include the above configuration.
[0066] S120. Output a switch operation signal according to the switch configuration to switch the switch state of at least part of the switches of the vehicle twice; meanwhile, obtain the actual state of the switch whose switch state is switched.
[0067] The switch state of the switch refers to the control instruction state of the switch. For example, when the switch state is on, the corresponding key state or control signal state is "on", and when the switch state is off, the corresponding key state or control signal state is "off". The actual state of the switch refers to the state in which the switch is actually on or actually off. The actual state of the switch may not correspond to the switch state. For example, when the switch is abnormal, when the switch state is on, the switch may actually be off, and when the switch state is off, the switch may actually be on.
[0068] Exemplarily, the switch fault detection device can determine the switch to be detected and the related configuration according to the switch configuration, and then output the switch operation signal to prompt the staff to operate the switch to be detected, or the switch fault detection device can also automatically control the switch to be detected in a wired / wireless manner, so that the switch state of the switch is switched from the original state (which can be "on" state or "off" state) once, and then switched to the original state again; at the same time, the switch fault detection device can judge the actual state of the switch according to the high / low level of the switch port. For the low-side switch, one side of the switch port is grounded. If the switch port on the other side is at a low level, it is judged that the low-side switch is actually in the on state. If the switch port on the other side is at a high level, it is judged that the low-side switch is actually in the off state; for the high-side switch, one side of the switch port is connected to the power supply signal. If the switch port on the other side is at a high level, it is judged that the high-side switch is actually in the on state. If the switch port on the other side is at a low level, it is judged that the high-side switch is actually in the off state. It should be noted that, in addition to low-side switches and high-side switches, the embodiments of the present invention can also detect other types of switches, and are not limited to judging the actual state of the switch by high / low levels, and the embodiments of the present invention will not be described one by one.
[0069] S130: Determine whether the switches of the vehicle are normal according to the actual status of the switches. If the detection results of the switches are all normal, execute S140; if the detection results of the switches are abnormal, execute S150.
[0070] Specifically, if the switch fault detection device detects that the actual state of the switch has switched twice and returned to the initial actual state, the detection result of the switch is judged to be normal; if the switch fault detection device does not detect the actual state switching or detects that the actual state changes once, the detection result of the switch is judged to be abnormal.
[0071] S140, the output switch detection is completed, and all normal display data.
[0072] Exemplarily, based on the displayed data, an electronic device equipped with a switch fault detection device may display “switch detection completed, all normal”, and the detection process ends.
[0073] S150: Output display data of abnormal switch.
[0074] For example, if the switch detection result is abnormal, it means that there is an abnormal switch. According to the displayed data, the electronic device equipped with the switch fault detection device can display "The following switch detection abnormalities exist, please check the switch fault", and display the abnormal switch configuration information and its location information. At the same time, it can also display the maintenance method for the abnormal switch. For example, the maintenance method can be "1. Check whether the switch is short-circuited; 2. Check whether the switch is open-circuited; 3. Check whether the switch wiring is correct; 4. Check whether the vehicle configuration is consistent with the electronic control data; etc.". If the staff wants to confirm whether the switch fault has been resolved after the maintenance is completed, they can re-execute the switch fault detection method and return to S110.
[0075] In the first embodiment of the present invention, by obtaining the switch configuration of the vehicle and outputting the switch operation signal according to the switch configuration, the switch information of the vehicle can be obtained, and the switches can be tested and operated. At the same time, the actual state of the switch whose switch state is switched can be obtained, and it can be monitored whether the actual state of the switch changes with the switching of the switch state when the switch state is switched. In addition, the switch state is switched twice to ensure that when the switch is normal, the actual state of the switch can be either the on state or the off state, so as to avoid the actual state of the switch being in a certain state when the switch is abnormal, which affects the detection result. The above technical solution can be used to effectively detect and locate the switch faults of the vehicle.
[0076] In an optional embodiment, the switch fault detection device may first obtain the model of the vehicle, and then obtain the switch configuration of the vehicle according to the model of the vehicle. For example, the switch fault detection device may automatically obtain the vehicle identification code (VIN) code by connecting the vehicle to the Internet, or the switch fault detection device may obtain the VIN code of the vehicle by manual input by a staff member; then, the model of the vehicle may be determined by the VIN code, and thus the switch configuration of the vehicle may be quickly determined according to the model of the vehicle, which is beneficial to the rapid detection of the vehicle, especially the rapid detection of switch faults.
[0077] In another optional embodiment, the vehicle is provided with a switch controller corresponding to each switch, and the configuration information of the switch controller of the vehicle can be obtained first, and then the switch configuration of the vehicle can be obtained according to the configuration information of the switch controller. For example, the switch fault detection device can obtain the configuration information of the switch controller in turn through the patrol function, and then obtain the switch configuration of the vehicle according to the configuration information of the switch controller. In this way, the detection method can be adapted to vehicles of different models and different manufacturers, and even vehicles of unknown models can detect switch faults, which is conducive to improving adaptability and application scope.
[0078] In another optional embodiment, if the switch configuration of the vehicle fails to be acquired, a switch configuration acquisition failure signal is output, and troubleshooting suggestion display data is displayed, and the step of acquiring the switch configuration of the vehicle is returned to be executed.
[0079] Exemplarily, if the switch fault detection device fails to successfully obtain the switch configuration of the vehicle, it can output a switch configuration acquisition failure signal, stop the next step of the switch fault detection method, and at the same time, output troubleshooting suggestion display data, so that the electronic device equipped with the switch fault detection device can display the information of switch configuration acquisition failure and troubleshooting suggestions. For example, the troubleshooting suggestion can be "1. Please confirm whether the electronic device used for switch fault detection has been properly connected to the wireless network; 2. Please confirm whether the wiring harness connection of the electronic device used for switch fault detection is normal; 3. Please confirm whether the communication function of the vehicle is normal; etc." Then, return to S110 until the switch configuration of the vehicle is successfully obtained, and then execute S120.
[0080] In another optional embodiment, the switch operation signal includes a switch operation prompt signal; according to the switch configuration, the switch operation signal is output to switch the switch state of at least some of the switches of the vehicle twice, including: according to the switch configuration, the switch operation prompt signal is output to prompt the staff to operate the switch so that the switch state of at least some of the switches is switched twice.
[0081] Exemplarily, when the staff operates the switch to be detected, the switch fault detection device can output a switch operation prompt signal, and the electronic device equipped with the switch fault detection device can display a prompt message "Please operate the vehicle switches in sequence, switch from the original state once, and switch to the original state again." At the same time, the switches 1, 2, 3, ... that need to be operated can also be displayed. After the staff completes the operation of all the switches to be detected, the staff can select "Operation Completed" through a touch button or a physical button. After outputting the switch operation prompt signal and before receiving the "Operation Completed" command signal, the switch fault detection device can monitor the actual state of the switch in real time, and then execute S130 after receiving the "Operation Completed" command signal.
[0082] In another optional embodiment, the switch operation signal includes a switch operation control signal; according to the switch configuration, the switch operation signal is output to switch the switch state of at least part of the switches of the vehicle twice, including: according to the switch configuration, the switch operation control signal is output to control the switch state of the switch to switch the switch state of at least part of the switches twice. Exemplarily, when the switch to be detected is automatically controlled by wired / wireless means, the switch fault detection device can directly output the switch operation control signal, and monitor the actual state of the switch while outputting the switch operation control signal.
[0083] It is understandable that when the staff operates the switch to be inspected, the switch fault detection device can detect whether the mechanical control-related functions of each switch are normal; when the switch to be inspected is automatically controlled by wired / wireless means, the switch fault detection device can detect whether the intelligent control and / or remote control-related functions of each switch are normal. When the intelligent control and / or remote control-related functions of each switch are abnormal, in addition to the above-mentioned maintenance methods, it is also possible to check whether the vehicle has been normally connected to the wireless network and whether the vehicle's communication function is normal.
[0084] Based on the above implementation, before outputting the switch operation signal according to the switch configuration, the method further includes: acquiring a detection type signal, wherein the detection type signal includes a mechanical function detection signal and a control function detection signal.
[0085] Exemplarily, before the switch fault detection device obtains the detection type signal, it can first output the detection type selection signal, so that the electronic device equipped with the switch fault detection device displays the corresponding switch detection interface, which can be used for the staff to select the mechanical function detection or the control function detection, for example, the required detection type can be selected through a touch button or a physical button. The staff can select the type to be detected according to the detection requirements. If the mechanical function of the switch needs to be detected, the corresponding instructions can be input, for example, the type to be detected can be selected through a touch button or a physical button, so that the switch fault detection device can obtain the mechanical function detection instruction signal. When the switch fault detection device outputs the switch operation signal, it can output a switch operation prompt signal to prompt the staff to operate the switch to be detected, so as to facilitate the detection of the mechanical function of the switch; if the control function of the switch needs to be detected, the corresponding instructions can be input, for example, the type to be detected can be selected through a touch button or a physical button, so that the switch fault detection device can obtain the control function detection instruction signal. When the switch fault detection device outputs the switch operation signal, it can output a switch operation control signal, and automatically control the switch to be detected in a wired / wireless manner, so as to facilitate the detection of the control function of the switch.
[0086] In another optional embodiment, the vehicle includes a vehicle control unit; before obtaining the switch configuration of the vehicle, it also includes: detecting whether the vehicle control unit is abnormal; when the vehicle control unit is normal, obtaining the switch configuration of the vehicle; when the vehicle control unit is abnormal, outputting an ECU control unit abnormal signal, and returning to execute the step of detecting whether the vehicle control unit is abnormal.
[0087] The vehicle control unit includes but is not limited to the Electronic Control Unit (ECU), the Vehicle Control Unit (VCU), the Microcontroller Unit (MCU), etc. The vehicle control unit can monitor various input data (such as braking, shifting and other action instructions) and various operating states (acceleration, slipping, fuel consumption, etc.), and calculate the information sent by various sensors according to the pre-designed program. After processing, all parameters are sent to the relevant actuators to perform various predetermined control functions. Among them, the vehicle control unit can realize the monitoring of functions related to switches and the control of switches.
[0088] Exemplarily, before obtaining the switch configuration of the vehicle, the vehicle control unit is first tested to ensure that the vehicle control unit functions normally when the switch is tested, especially the monitoring function and control function related to the switch are normal. If there is a system fault in the vehicle control unit, the switch fault detection device can output a vehicle control unit abnormality signal to prompt the staff to repair the vehicle control unit. The staff can repair the fault according to the maintenance instructions. After confirming that the fault has been repaired, the switch fault detection device returns to the step of detecting whether the vehicle control unit is abnormal, until the staff repairs the fault of the vehicle control unit and ensures that the vehicle control unit functions normally, and then executes the next step to obtain the switch configuration of the vehicle; if the fault is not repaired, it does not return to the step of detecting whether the vehicle control unit is abnormal or does not execute the next step to obtain the switch configuration of the vehicle, and continues to determine whether the fault has been repaired until the fault has been repaired, and enters the next step to obtain the switch configuration of the vehicle. In this way, it is conducive to detecting the fault of the switch and avoiding the influence of the switch fault detection due to the fault of the vehicle control unit.
[0089] On the basis of the above implementation mode, before testing the vehicle control unit, a vehicle switch detection signal can be output first, so that the electronic device equipped with a switch fault detection device displays a corresponding switch detection interface. For example, the following prompt can be displayed: "Please confirm that the vehicle is currently in the ON position." After the staff puts the ignition switch in the ON position according to the prompt, the staff can select "Confirmed" through the touch button or physical button, and then the switch fault detection device can detect the vehicle control unit after receiving the "Confirmed" command signal.
[0090] Embodiment 2
[0091] Figure 2 FIG. 1 is a flow chart of a vehicle switch fault detection method provided by Embodiment 2 of the present invention. Compared with the above-mentioned embodiments, this embodiment can selectively detect faults of switches. Figure 2 As shown, the method includes:
[0092] S210: Obtain a switch detection signal.
[0093] S220, determine whether the switch detection signal is a full detection signal. If yes, execute S230; if no, execute S250.
[0094] The switch detection signal includes a full detection signal and a partial detection signal. In practical applications, the full detection signal can be a high level signal, and the partial detection signal can be a low level signal; or the full detection signal can be a low level signal, and the partial detection signal can be a high level signal.
[0095] S230: Obtain the switch configuration of the vehicle.
[0096] S240: Output a switch operation signal according to the switch configuration to switch the switch states of all switches of the vehicle twice; meanwhile, obtain the actual states of the switches whose switch states are switched.
[0097] S250: Obtain switch configuration of the vehicle.
[0098] S260: Obtain information of switches that need to be detected according to switch configuration.
[0099] S270, output a switch operation signal to switch the switch state of the switch to be detected twice; at the same time, obtain the actual state of the switch whose switch state is switched.
[0100] S280: Determine whether the switches are normal according to the actual states of the switches. If the detection results of the switches are all normal, execute S290.
[0101] S290, the output switch detection is completed, and all normal display data.
[0102] Exemplarily, before the switch fault detection device obtains the switch detection signal, it can first output a detection mode selection signal, so that the electronic device equipped with the switch fault detection device displays the corresponding switch detection interface, which can allow the staff to select the full detection mode or the non-full detection mode, for example, the required detection mode can be selected through a touch button or a physical button. In the vehicle production line off-line scenario or the pre-delivery test scenario, the staff can select the full detection mode to test all switches of the vehicle; in the vehicle after-sales maintenance scenario or the vehicle partial function test scenario, the staff can select the non-full detection mode to selectively test some switches of the vehicle.
[0103] For example, when selectively testing some switches of a vehicle, the switch fault detection device can output display data of the switch configuration of the vehicle after obtaining the switch configuration of the vehicle, so that an electronic device equipped with the switch fault detection device can display the switch configuration information of the vehicle, as well as a prompt message of "Please select the switch to be tested". The staff can select the switch to be tested by using a touch button or a physical button, and then the switch fault detection device can obtain the information of the switch to be tested, and in the subsequent steps, the switch state of the switch to be tested is switched twice, so as to determine whether each switch whose switch state is switched is abnormal.
[0104] In an optional embodiment, after obtaining the information of the switch to be detected according to the switch configuration, and before outputting the switch operation signal to switch the switch state of the switch to be detected twice, it also includes: detecting whether the function related to the switch to be detected in the vehicle control unit is abnormal; when the function related to the switch to be detected in the vehicle control unit is normal, outputting the switch operation signal to switch the switch state of the switch to be detected twice; when the function related to the switch to be detected in the vehicle control unit is abnormal, outputting the vehicle control unit abnormality signal, and returning to execute the step of detecting whether the function related to the switch to be detected in the vehicle control unit is abnormal.
[0105] For example, after obtaining the switch configuration of the vehicle, the signal of the switch to be detected is obtained first, and then the vehicle control unit is detected to ensure that when the switch is detected, the functions related to the switch to be detected in the vehicle control unit are normal. In this way, when the functions unrelated to the switch to be detected in the vehicle control unit are abnormal, the switch fault detection can still be performed, which is conducive to the detection of the switch fault and avoids the influence of the switch fault detection due to the vehicle control unit fault.
[0106] The second embodiment of the present invention, by acquiring the switch detection signal before acquiring the switch configuration of the vehicle, can select different detection modes according to different application scenarios, thereby realizing the detection of switch faults after the vehicle is offline, ensuring that there are no invisible switch faults, and ensuring that the vehicle is put into storage with zero switch faults; at the same time, it can assist after-sales maintenance personnel to quickly identify and locate switch faults, provide accurate maintenance to improve the efficiency of after-sales service maintenance, and improve customer satisfaction.
[0107] Embodiment 3
[0108] Figure 3 1 is a flow chart of a vehicle switch fault detection method provided by the third embodiment of the present invention. Compared with the above embodiments, this embodiment can improve the accuracy of the detection result. Figure 3 As shown, the method includes:
[0109] S310: Obtain switch configuration of the vehicle.
[0110] S320. Output a switch operation prompt signal according to the switch configuration to prompt the staff to operate the switch so that the switch states of at least some switches are switched twice; meanwhile, obtain the actual states of the switches whose switch states are switched.
[0111] S330: Determine whether the switches of the vehicle are normal according to the actual status of the switches. If the detection results of the switches are all normal, execute S340; if the detection results of any switches are abnormal, execute S350.
[0112] S340, the output switch detection is completed, and all normal display data.
[0113] S350: Record information of abnormal switches.
[0114] S360, obtaining information of the abnormal switch, and outputting an abnormal switch operation signal according to the information of the abnormal switch to prompt the staff to operate the abnormal switch so that the switch state of the abnormal switch is switched twice.
[0115] S370: According to the actual state of the abnormal switch, determine whether the abnormal switch is still abnormal after re-testing. If so, execute S380; if not, execute S390.
[0116] S380: Determine that the switch for which the initial detection result is abnormal is an abnormal switch.
[0117] S390, determining that the switch for which the initial detection result is abnormal is a normal switch.
[0118] For example, when the staff operates the switches that need to be tested, if there are many switches that need to be operated, the staff may miss a switch, resulting in the missed switch being detected as abnormal when judging whether the switches of the vehicle are abnormal based on the actual status of each switch. Therefore, when the first detection result of the switch is abnormal, the information of the switch is recorded, and then after all the switches that need to be tested are detected, the abnormal switch operation signal is output, and the electronic device equipped with the switch type fault detection device can display the prompt message "Please operate the following switches in sequence, switch from the original state once, and switch to the original state again." At the same time, the switches that need to be operated and have abnormal first detection results can also be displayed, and all switches that need to be tested are no longer displayed, so as to re-test the switches that have abnormal first detection results. The switches that have abnormal results in both detections are abnormal switches, and the switches that have abnormal results in the first detection and normal results in the second detection are normal switches, so as to avoid false detection due to missed operations.
[0119] Optionally, receiving information about an abnormal switch and outputting an abnormal switch operation signal to switch the switch state of the abnormal switch twice includes: obtaining a re-detection signal; obtaining information about the abnormal switch based on the re-detection signal, and outputting an abnormal switch operation signal to switch the switch state of the abnormal switch twice.
[0120] Exemplarily, when the first detection result of a switch is abnormal, the information of the switch is recorded, and then after all switches that need to be detected are detected, the switch fault detection device can output a first detection completion signal, and the electronic device equipped with the switch fault detection device can display a prompt message "The following switches are detected to be abnormal, please choose to end the detection or re-detect", and display the information of the abnormal switch at the same time. If the staff selects "End of detection", the switch fault detection device will not receive a re-detection signal, that is, the switch whose first detection result is abnormal will not be re-detected, for example, it is suitable for situations where there are fewer switches to be detected, or the staff believes that there are no omissions; if the staff selects "Re-detection", the switch fault detection device will receive a re-detection signal, and can re-detect the switch whose first detection result is abnormal to verify the first detection result.
[0121] In the third embodiment of the present invention, by re-testing the switch with an abnormal detection result, the switch with an abnormal detection result for the first time can be verified. The switch with abnormal detection results twice is an abnormal switch, and the switch with an abnormal detection result for the first time and a normal detection result for the second time is a normal switch, thereby avoiding false detection due to missed operation.
[0122] Embodiment 4
[0123] Figure 4 Schematic diagram of the structure of a switch fault detection device for a vehicle provided by the fourth embodiment of the present invention. Figure 4 As shown, the device comprises:
[0124] An acquisition module 410 is used to acquire a switch configuration of a vehicle;
[0125] The monitoring module 420 is used to output a switch operation signal according to the switch configuration, so that the switch state of at least part of the switches of the vehicle is switched twice; at the same time, the actual state of the switch whose switch state is switched is obtained;
[0126] The judgment module 430 judges whether the switches of the vehicle are abnormal according to the actual status of the switches.
[0127] Optionally, the judgment module 430 is further configured to output switch detection completion and all normal display data when there is no abnormal switch, and to output display data of the abnormal switch when there is an abnormal switch.
[0128] Optionally, the acquisition module 410 includes:
[0129] A first acquisition unit, used to acquire a vehicle model;
[0130] The second acquisition unit is used to acquire the switch configuration of the vehicle according to the model of the vehicle.
[0131] Optionally, the vehicle is provided with a switch controller corresponding to each switch; the acquisition module 410 includes:
[0132] A third acquisition unit, used to acquire configuration information of a switch controller of the vehicle;
[0133] The fourth acquisition unit is used to acquire the switch configuration of the vehicle according to the configuration information of the switch controller.
[0134] Optionally, the acquisition module 410 is further used to output a switch configuration acquisition failure signal when the switch configuration of the vehicle fails to be acquired, and to display troubleshooting suggestion data, and return to execute the step of acquiring the switch configuration of the vehicle.
[0135] Optionally, the switch operation signal includes a switch operation prompt signal; the monitoring module 420 can be used to output a switch operation prompt signal according to the switch configuration to prompt the staff to operate the switch so that the switch state of at least part of the switches is switched twice.
[0136] Optionally, the switch operation signal includes a switch operation control signal; the monitoring module 420 can be used to output the switch operation control signal according to the switch configuration to control the switch state of the switch so that the switch state of at least part of the switches is switched twice.
[0137] Optionally, the device further comprises:
[0138] The control unit detection module is used to detect whether the vehicle control unit is abnormal; when the vehicle control unit is normal, obtain the switch configuration of the vehicle; when the vehicle control unit is abnormal, output a vehicle control unit abnormality signal and return to execute the step of detecting whether the vehicle control unit is abnormal.
[0139] Optionally, the device further comprises:
[0140] The detection mode selection module is used to obtain a switch detection signal and determine whether the switch detection signal is a full detection signal; wherein the switch detection signal includes a full detection signal and a non-full detection signal.
[0141] When the detection mode selection module obtains a full detection signal, the monitoring module 420 can output a switch operation signal according to the switch configuration to switch the switch status of all switches of the vehicle twice; when the detection mode selection module obtains a non-full detection signal, the monitoring module 420 can obtain information of the switches that need to be detected according to the switch configuration; and output a switch operation signal to switch the switch status of the switches that need to be detected twice.
[0142] Optionally, the judgment module 430 is further configured to record the abnormal switch when the switch is abnormal; the device further includes:
[0143] The second monitoring module is used to obtain the information of the abnormal switch and output an abnormal switch operation signal according to the information of the abnormal switch, so that the switch state of the abnormal switch is switched twice; at the same time, the actual state of the abnormal switch is obtained;
[0144] The re-judgment module is used to judge whether the abnormal switch is still abnormal after re-detection according to the actual state of the abnormal switch, and when the abnormal switch is still abnormal after re-detection, determine that the switch with an abnormal initial detection result is an abnormal switch; when the abnormal switch is normal after re-detection, determine that the switch with an abnormal initial detection result is a normal switch.
[0145] Optionally, the re-monitoring module includes:
[0146] A re-acquisition unit, used for acquiring a re-detection signal;
[0147] The re-operation unit is used to obtain the information of the abnormal switch according to the re-detection signal and output the abnormal switch operation signal so as to switch the switch state of the abnormal switch twice.
[0148] The vehicle switch fault detection device provided in the embodiment of the present invention can execute the vehicle switch fault detection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0149] Embodiment 5
[0150] Figure 5A schematic diagram of an electronic device that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as diagnostic equipment, laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0151] In some embodiments, the electronic device 10 includes a display screen, wherein the display screen is a touch screen and / or the electronic device 10 includes physical buttons. The display screen of the electronic device 10 can display the main structure and switch configuration of the vehicle. In addition, the display screen can also display the vehicle detection process and other contents.
[0152] In some embodiments, the electronic device 10 can be connected to the vehicle via wired or wireless means. When connected via wired means, it can be connected via an OBD interface and a CAN line; when connected wirelessly, it can be connected via Bluetooth or a wired network.
[0153] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0154] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0155] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a switch fault detection method for a vehicle.
[0156] In some embodiments, the switch type fault detection method for a vehicle may be implemented as a computer program, which is tangibly contained in a computer readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the switch type fault detection method for a vehicle described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the switch type fault detection method for a vehicle in any other appropriate manner (e.g., by means of firmware).
[0157] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0158] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0159] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0160] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0161] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0162] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0163] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0164] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for detecting switch faults of a vehicle, wherein the vehicle comprises a plurality of switches, characterized in that: include: obtaining a switch configuration of the vehicle; According to the switch configuration, a switch operation signal is outputted to switch the switch state of at least part of the switches of the vehicle twice; at the same time, the actual state of the switch of the switch state switching is obtained; According to the actual status of each of the switches, it is determined whether each switch of the vehicle is abnormal.
2. The vehicle switch fault detection method according to claim 1, characterized in that: If there is no abnormal switch, the output switch detection is completed and all normal display data is displayed.
3. The vehicle switch fault detection method according to claim 1, characterized in that: If there is an abnormal switch, the display data of the abnormal switch is output.
4. The vehicle switch fault detection method according to claim 1, characterized in that: Obtaining the switch configuration of the vehicle, including: Obtain the model of the vehicle; According to the model of the vehicle, a switch configuration of the vehicle is obtained.
5. The vehicle switch fault detection method according to claim 1, characterized in that: The vehicle is provided with a switch controller corresponding to each of the switches; Obtaining the switch configuration of the vehicle, including: Acquiring configuration information of the switch controller of the vehicle; The switch configuration of the vehicle is obtained according to the configuration information of the switch controller.
6. The vehicle switch fault detection method according to claim 4 or 5, characterized in that: If the switch configuration of the vehicle fails to be obtained, a switch configuration acquisition failure signal is output, and troubleshooting suggestion display data is displayed, and the process returns to execute the step of obtaining the switch configuration of the vehicle.
7. The vehicle switch fault detection method according to claim 1, characterized in that: The switch operation signal includes a switch operation prompt signal; Outputting a switch operation signal according to the switch configuration to switch the switch state of at least part of the switches of the vehicle twice comprises: According to the switch configuration, the switch operation prompt signal is output to prompt the staff to operate the switch so that the switch state of at least part of the switches is switched twice.
8. The vehicle switch fault detection method according to claim 1, characterized in that: The switch operation signal includes a switch operation control signal; Outputting a switch operation signal according to the switch configuration to switch the switch state of at least part of the switches of the vehicle twice comprises: According to the switch configuration, the switch operation control signal is output to control the switch state of the switch, so that the switch state of at least part of the switches is switched twice.
9. The vehicle switch fault detection method according to claim 1, characterized in that: The vehicle comprises a vehicle control unit; Before obtaining the switch configuration of the vehicle, the method further includes: Detecting whether the vehicle control unit is abnormal; If the vehicle control unit is normal, obtaining the switch configuration of the vehicle; If the vehicle control unit is abnormal, a vehicle control unit abnormality signal is output, and the process returns to the step of detecting whether the vehicle control unit is abnormal.
10. The vehicle switch fault detection method according to claim 1, characterized in that: Before obtaining the switch configuration of the vehicle, the method further includes: Acquire a switch detection signal, and determine whether the switch detection signal is a full detection signal; wherein the switch detection signal includes the full detection signal and the non-full detection signal; If the full detection signal is obtained, a switch operation signal is output according to the switch configuration to switch the switch state of at least part of the switches of the vehicle twice, including: According to the switch configuration, outputting a switch operation signal so that the switch states of all the switches of the vehicle are switched twice; If the incomplete detection signal is obtained, a switch operation signal is output according to the switch configuration to switch the switch state of at least part of the switches of the vehicle twice, including: According to the switch configuration, obtaining information of the switch to be detected; A switch operation signal is outputted to switch the switch state of the switch to be detected twice.
11. The vehicle switch fault detection method according to claim 1, characterized in that: If the detection result of the switch is abnormal, recording the information of the abnormal switch; Acquire information of the abnormal switch, and output an abnormal switch operation signal according to the information of the abnormal switch, so that the switch state of the abnormal switch is switched twice; at the same time, acquire the actual state of the abnormal switch; According to the actual state of the abnormal switch, determining whether the abnormal switch is still abnormal after re-testing; If the abnormal switch is still abnormal after re-testing, the switch that was abnormal in the initial test result is determined to be an abnormal switch; If the abnormal switch is normal after re-detection, the switch that is abnormal in the initial detection result is determined to be a normal switch.
12. The vehicle switch fault detection method according to claim 11, characterized in that: Receiving information of the abnormal switch and outputting an abnormal switch operation signal so that the switch state of the abnormal switch is switched twice, comprising: Get the re-detection signal; According to the re-detection signal, information about the abnormal switch is received, and an abnormal switch operation signal is output to switch the switch state of the abnormal switch twice.
13. A switch fault detection device for a vehicle, characterized in that: include: An acquisition module, used to acquire the switch configuration of the vehicle; A monitoring module, configured to output a switch operation signal according to the switch configuration, so that the switch state of at least part of the switches of the vehicle is switched twice; and at the same time, obtain the actual state of the switch when the switch state is switched; The judging module judges whether each switch of the vehicle is abnormal according to the actual state of each switch.
14. An electronic device, characterized in that: The electronic device comprises: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the vehicle switch fault detection method described in any one of claims 1-12.
15. The electronic device according to claim 14, characterized in that: The electronic device also includes a display screen.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the vehicle switch fault detection method according to any one of claims 1 to 12 when executed.
17. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements the switch type fault detection method for a vehicle according to any one of claims 1 to 12.