Vehicle switch fault diagnosis method and system, electronic equipment and storage medium
By detecting the equivalent resistance value of the vehicle's switching circuit and comparing it with a preset resistance range, the problem of misjudgment by limit/proximity switches in complex electrical environments is solved, improving the reliability and safety of intelligent vehicle control and optimizing the user experience.
Patent Information
- Application Number
- CN202511320493.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-16
- Publication Date
- 2025-12-05
AI Technical Summary
Existing vehicle limit/proximity switches are prone to misjudgment in complex electrical environments, resulting in insufficient reliability and safety of intelligent vehicle control and affecting user experience.
By detecting the equivalent resistance value of the vehicle switch circuit and comparing it with the preset resistance range, fault diagnosis results are generated, including normal triggering state, non-triggering state, wiring harness open circuit fault, wiring harness short circuit fault and switch internal fault. Resistor configuration optimization is used to distinguish different states.
It significantly improves the accuracy and reliability of vehicle switch fault diagnosis, ensures the precise execution of key functions, and optimizes the user experience.
Smart Images

Figure CN121069173A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of switch fault diagnosis, and in particular to a vehicle switch fault diagnosis method and system, an electronic device, and a storage medium. BACKGROUND
[0002] With the acceleration of the evolution of vehicles towards automation and intelligence, vehicles are no longer just driven and operated by people, but have become intelligent mobile terminals that integrate perception, decision-making, and execution. In this transition, various sensors, like the "nerve endings" of vehicles, bear core functions such as environmental perception, state monitoring, and operation feedback, and their number and importance are increasing day by day. Among them, limit switches (used to detect the limit state of component position, such as door closure, joint in place, etc.) and proximity switches (used to perceive the approach of objects, such as the retraction of the grain discharge cylinder, etc.) as basic sensing devices are widely distributed in vehicle body control, chassis system, intelligent cockpit, etc. scene, and are the key link to ensure the precise execution of vehicle functions.
[0003] However, the mainstream limit / proximity switch on current vehicles is still mainly traditional normally open or normally closed mechanical switches. The working logic of this type of switch is simple and direct: it remains open (normally open) or connected (normally closed) in normal state, and when the trigger condition is met (such as the component moving to the limit position, the object approaching), the state is switched to connected or open, and the signal is transmitted to the controller through the change of loop level. However, this design exposes significant reliability and fault diagnosis shortfalls in complex vehicle electrical environments.
[0004] Specifically, when the system is abnormal, the controller often falls into a "judgment dilemma": ① If the wiring harness loop is open due to aging, wear and tear, or short-circuited due to water ingress or damaged insulation, the actual state of the switch will be completely disconnected from the signal received by the controller. For example, when the wiring harness of a normally open switch is accidentally short-circuited, the controller will misjudge that the switch has been triggered; when the wiring harness of a normally closed switch is open, the signal will simulate that the switch has been disconnected, and at this time the controller cannot distinguish between normal operation of the switch and line fault. ② If a short-circuit fault occurs inside the switch (such as contact sticking, internal line breakdown), regardless of whether the external trigger condition is met, the switch will continuously output a fixed signal, and the controller can only receive a single state, and cannot identify that the "switch itself has failed".
[0005] In the face of these problems, existing solutions often rely on indirect logic algorithms for remediation: for example, through multiple switch signal cross verification (such as simultaneously detecting a vehicle door lock switch and a door control lamp switch to determine the vehicle door status), or combining vehicle operating conditions (such as vehicle speed, gear position) for logic filtering (such as determining that the vehicle door is suddenly "open" as a fault while driving). However, this method has obvious limitations: on the one hand, the algorithm design needs to cover a large number of extreme scenarios, and the logic is complicated and prone to omissions, increasing the computational load of the controller; on the other hand, indirect determination relies on multiple signals to work together, and if the associated signals fail at the same time, it can still cause misoperation (such as misjudging that the vehicle door is closed and starting the vehicle, causing safety risks) or functional failure (such as misjudging that the switch is faulty and disabling the seat adjustment function).
[0006] This situation is in sharp contrast to the high requirements of vehicle intelligence - intelligent driving, automatic parking and other functions have strict requirements for the real-time and accuracy of sensing signals, and any signal distortion caused by switch failure can trigger a chain reaction; at the same time, users' expectations for vehicle reliability continue to improve, and functional failure caused by switch misjudgment (such as the electric tailgate failing to automatically close) will directly affect the user experience. Therefore, the shortcoming of traditional limit / proximity switch fault diagnosis has become a potential bottleneck restricting the intelligent upgrade of vehicles, and its reliability and fault self-diagnosis capability need to be improved through technological innovation.
[0007] Therefore, there is an urgent need to provide a technical solution to solve the above problems. SUMMARY
[0008] To solve the above technical problems, the present application provides a vehicle switch fault diagnosis method, system, electronic device and storage medium.
[0009] In a first aspect, the present application provides a vehicle switch fault diagnosis method, and the technical scheme of the method is as follows: detecting the equivalent resistance value of a vehicle switch circuit; wherein at least one resistor is configured in the vehicle switch circuit, and the connection mode and number of the resistor are determined according to the type of the vehicle switch; comparing the equivalent resistance value with a plurality of preset resistance value ranges corresponding to the type of the vehicle switch to generate a fault diagnosis result; wherein the plurality of preset resistance value ranges include resistance value ranges corresponding to normal trigger state, normal non-trigger state, wire harness open circuit fault, wire harness short circuit fault and switch internal fault, respectively.
[0010] The vehicle switch fault diagnosis method of the present application has the following beneficial effects: The method of the present application can solve the misjudgment problem of vehicle switches in complex vehicle electrical environment, significantly improve the accuracy of vehicle switch fault diagnosis, effectively enhance the reliability and safety of vehicle intelligent control, ensure the accurate execution of key functions, and optimize the user experience.
[0011] On the basis of the above scheme, the vehicle switch fault diagnosis method of the application can be further improved as follows.
[0012] In an alternative way, when the vehicle switch type is a mechanical contact switch, two resistors are arranged in series or parallel in the vehicle switch circuit; when the vehicle switch type is a non-mechanical contact switch, one resistor is arranged in parallel in the vehicle switch circuit.
[0013] The beneficial effect of the above-mentioned alternative way is that the line harness fault and switch state are accurately distinguished by further optimizing the resistance configuration for mechanical contact switches and non-mechanical contact switches, thereby improving the adaptability and accuracy of fault diagnosis.
[0014] In an alternative way, the plurality of preset resistance value ranges include a first resistance value range to a fifth resistance value range; wherein the first resistance value range to the fifth resistance value range are respectively set according to the vehicle switch type, the resistance values of the first resistance value range to the fifth resistance value range are mutually exclusive, and the maximum resistance values of each resistance value range are sequentially increased; the step of comparing the equivalent resistance value with the plurality of preset resistance value ranges corresponding to the vehicle switch type to generate a fault diagnosis result includes: If the equivalent resistance value is in the first resistance value range, it is determined that the vehicle switch has a line harness short circuit fault; If the equivalent resistance value is in the second resistance value range, it is determined that the vehicle switch is in a normal trigger state; If the equivalent resistance value is in the third resistance value range, it is determined that the vehicle switch is in a normal non-trigger state; If the equivalent resistance value is in the fourth resistance value range, it is determined that the vehicle switch has an internal switch fault; If the equivalent resistance value is in the fifth resistance value range, it is determined that the vehicle switch has a line harness open circuit fault.
[0015] The beneficial effect of the above-mentioned alternative way is that the reliability of vehicle switch fault diagnosis is enhanced by further dividing the mutually exclusive and increasing resistance value ranges, thereby ensuring accurate determination of the switch state in a complex electrical environment.
[0016] In an alternative way, the at least one resistor is integrated in the vehicle switch or arranged on the line harness outside the vehicle switch.
[0017] The beneficial effect of the above-mentioned alternative way is that the adaptability and deployment flexibility of the vehicle switch fault diagnosis method are improved by further designing a flexible resistance arrangement, thereby facilitating the needs of different vehicle scenarios.
[0018] In a second aspect, the present application provides a vehicle switch fault diagnosis system, and the technical scheme of the system is as follows: Comprise: detection module and diagnosis module; The detection module is configured to detect the equivalent resistance value of the vehicle switch circuit; wherein at least one resistance is configured in the vehicle switch circuit, and the connection mode and the number of the resistance are determined according to the type of the vehicle switch; The diagnosis module is configured to compare the equivalent resistance value with a plurality of preset resistance value ranges corresponding to the type of the vehicle switch, and generate a fault diagnosis result; wherein the plurality of preset resistance value ranges include resistance value ranges corresponding to normal trigger state, normal non-trigger state, wire harness open circuit fault, wire harness short circuit fault and switch internal fault respectively.
[0019] The vehicle switch fault diagnosis system of the present application has the following beneficial effects: The system of the present application can solve the misjudgment problem of vehicle switches in complex vehicle electrical environment, significantly improve the accuracy of vehicle switch fault diagnosis, effectively enhance the reliability and safety of vehicle intelligent control, ensure the accurate execution of key functions, and optimize the user experience.
[0020] On the basis of the above-mentioned scheme, the vehicle switch fault diagnosis system of the present application can be further improved as follows.
[0021] In an optional manner, when the type of the vehicle switch is a mechanical contact switch, two resistances are arranged in series or in parallel in the vehicle switch circuit; when the type of the vehicle switch is a non-mechanical contact switch, one resistance is arranged in parallel in the vehicle switch circuit.
[0022] The beneficial effects of the above-mentioned optional manner are: further optimizing the resistance configuration for mechanical contact switches and non-mechanical contact switches, accurately distinguishing between wire harness faults and switch states, and improving the adaptability and accuracy of fault diagnosis.
[0023] In an optional manner, the plurality of preset resistance value ranges include: a first resistance value range to a fifth resistance value range; wherein the first resistance value range to the fifth resistance value range are respectively set according to the type of the vehicle switch, the resistance values of the first resistance value range to the fifth resistance value range do not overlap, and the maximum resistance values of the respective resistance value ranges increase in turn; and the diagnosis module is specifically configured to: If the equivalent resistance value is in the first resistance value range, it is determined that the vehicle switch has a wire harness short circuit fault; If the equivalent resistance value is in the second resistance value range, it is determined that the vehicle switch has a normal trigger state; If the equivalent resistance value is in the third resistance value range, it is determined that the vehicle switch is in a normal non-trigger state; If the equivalent resistance value is in a fourth resistance range, it is determined that the vehicle switch is in an internal fault of the switch. If the equivalent resistance value is in a fifth resistance range, it is determined that the vehicle switch has a wire harness open circuit fault.
[0024] The beneficial effect of the above optional mode is that further division of the resistance ranges that are not overlapped and increasing enhances the reliability of the vehicle switch fault diagnosis, and ensures accurate determination of the switch state in a complex electrical environment.
[0025] In an optional mode, the at least one resistor is integrated in the vehicle switch or arranged on the wire harness outside the vehicle switch.
[0026] The beneficial effect of the above optional mode is that further through flexible resistance arrangement design, the adaptability and deployment flexibility of the vehicle switch fault diagnosis mode are improved, which facilitates meeting the needs of different vehicle scenarios.
[0027] In a third aspect, a technical solution of an electronic device of the present application is as follows: The processor executes the program to realize the steps of the vehicle switch fault diagnosis method of the present application.
[0028] In a fourth aspect, a technical solution of a computer readable storage medium provided by the present application is as follows: The computer readable storage medium stores instructions, and when the computer readable storage medium reads the instructions, the computer readable storage medium executes the steps of the vehicle switch fault diagnosis method of the present application.
[0029] The above description is only a summary of the technical solutions of the present application, in order to more clearly understand the technical means of the present application, the specific embodiments of the present application can be implemented according to the content of the specification, and in order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the following specific embodiments of the present application are described. BRIEF DESCRIPTION OF DRAWINGS
[0030] The drawings are only used to show the embodiments and are not considered as limitations of the present application. Moreover, the same reference signs are used to represent the same parts throughout the drawings. In the drawings: Figure 1 A flowchart of an embodiment of a vehicle switch fault diagnosis method of the present application; Figure 2 One of the schematic diagrams of the vehicle switch circuit; Figure 3 The second schematic diagram of the vehicle switch circuit; Figure 4A structural schematic diagram of an embodiment of a vehicle switch fault diagnosis system of the present application; Figure 5 A structural schematic diagram of an embodiment of an electronic device of the present application. DETAILED DESCRIPTION
[0031] Exemplary embodiments of the present application will be described in greater detail below with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the drawings, it is understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein.
[0032] Figure 1 A flowchart of an embodiment of a vehicle switch fault diagnosis method provided by the present application is shown, which can be executed by an electronic device such as a terminal device or a server. The terminal device can be any fixed or mobile terminal such as a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. The server can be a single server or a server cluster composed of multiple servers. Any electronic device can implement the vehicle switch fault diagnosis method by calling computer-readable instructions stored in the memory through the processor. As shown in the figure, the method includes the following steps: Figure 1 S1, detecting an equivalent resistance value of a vehicle switch circuit; wherein at least one resistance is configured in the vehicle switch circuit, and the connection mode and number of the resistance are determined according to the type of the vehicle switch.
[0033] The vehicle switch refers to a sensing device for detecting the mechanical position or the proximity state of an object in the vehicle, including a limit switch and a proximity switch; for example, a limit switch installed at the vehicle door for detecting whether the vehicle door is completely closed. The vehicle switch circuit refers to an electrical path containing the vehicle switch, its connection harness, and the configured resistance; for example, a current path composed of the vehicle door limit switch, its connection wire, the control unit interface, and the configured resistance. The equivalent resistance value refers to the overall resistance value measured in the vehicle switch circuit, which is determined by the switch state, the configured resistance, and the line condition in the circuit; for example, the resistance value calculated by detecting the voltage and current at both ends of the vehicle door limit switch circuit. The resistance refers to an electronic component specially set in the circuit to construct distinguishable resistance characteristics; for example, one or two precision resistors specially configured for the vehicle door limit switch circuit. The type of the vehicle switch refers to the category of the switch according to its working principle, mainly including mechanical contact type switches and non-mechanical contact type switches; for example, the vehicle door limit switch belongs to a mechanical contact type switch.
[0034] Specifically, by controlling a constant current excitation signal applied to the vehicle switch loop and synchronously measuring the voltage value across the loop, the equivalent resistance value is obtained by calculating the ratio of the voltage value to the constant current value according to Ohm's law.
[0035] S2, compare the equivalent resistance value with a plurality of preset resistance value ranges corresponding to the vehicle switch type to generate a fault diagnosis result; wherein the plurality of preset resistance value ranges include resistance value ranges corresponding to a normal trigger state, a normal non-trigger state, a wire harness open circuit fault, a wire harness short circuit fault and a switch internal fault, respectively.
[0036] The plurality of preset resistance value ranges refer to resistance value intervals corresponding to different states and fault types one by one, which are set in advance according to the switch type and resistance configuration; for example, five non-overlapping resistance value ranges set for the vehicle door limit switch. The fault diagnosis result refers to the conclusion of the switch state or fault type determined by comparing the equivalent resistance value with the preset range; for example, diagnosing that the vehicle door limit switch has a wire harness open circuit fault. The normal trigger state refers to the state when the switch is normally activated by an external mechanical component or target object; for example, the state of the limit switch being pressed and turned on when the door is closed. The normal non-trigger state refers to the state when the switch is not activated in the normal state; for example, the state of the limit switch not being pressed and being in the off state when the door is open. The wire harness open circuit fault refers to the electrical disconnection of the vehicle switch loop due to wire breakage, connector loosening, etc.; for example, the breakage of the wire harness from the vehicle door limit switch to the control unit. The wire harness short circuit fault refers to the accidental connection of the power supply and ground wire due to insulation damage of the wire in the vehicle switch loop; for example, the short circuit of the signal wire and the power supply wire of the vehicle door limit switch due to wear. The switch internal fault refers to the failure of the switch itself due to internal component damage; for example, the continuous conduction caused by the internal contact adhesion of the vehicle door limit switch.
[0037] The technical solution of the embodiment can solve the misjudgment problem of vehicle switches in complex vehicle electrical environment, significantly improve the accuracy of vehicle switch fault diagnosis, effectively enhance the reliability and safety of vehicle intelligent control, ensure accurate execution of key functions, and optimize user experience.
[0038] In an alternative way, when the vehicle switch type is a mechanical contact switch, two resistors are connected in series or parallel in the vehicle switch loop; when the vehicle switch type is a non-mechanical contact switch, one resistor is connected in parallel in the vehicle switch loop.
[0039] Among them, the mechanical contact switch refers to a switch that realizes signal output through physical contact on-off; for example, a normally open limit switch triggered by the mechanical pressing action of the vehicle door. The non-mechanical contact switch refers to a switch that senses the target through non-contact methods such as photoelectricity and Hall effect and outputs signals; for example, a Hall proximity switch used to detect the position of the vehicle door.
[0040] As shown in Figure 2 , by adding two parallel resistors in the circuit where the mechanical contact switch is located, the detection logic is changed from "high-low level judgment" to "resistance judgment", thereby effectively improving the stability and anti-interference ability of signal detection. Specifically, when the switch is in different states (on or off), the connection relationship of the two resistors in the circuit will change, resulting in a significant difference in the equivalent resistance value of the entire vehicle switch circuit. By detecting the change in the equivalent resistance value, the current state of the vehicle switch can be accurately judged.
[0041] As shown in Figure 3 , by adding a series resistor in the circuit where the non-mechanical contact switch is located, the detection logic is upgraded from "high-low level judgment" to "resistance characteristic identification", thereby accurately distinguishing between normal state and failure. Specifically, the core functional components of the non-mechanical contact switch (such as photoelectric receiving tube, Hall element) will exhibit different resistance characteristics under different states: no target (such as shielding object, magnetic object), the element is in a high resistance state, at this time the equivalent resistance value of the circuit is close to the resistance value of the parallel resistor; when there is a target, the element is in a low resistance state, and the equivalent resistance of the circuit is the parallel value of the element low resistance and the parallel resistor (significantly lower than a single parallel resistor). By detecting these two distinctly different resistance characteristics, it can be accurately judged whether the vehicle switch detects a target.
[0042] In the above optional mode, further through the resistance configuration optimization for mechanical contact switches and non-mechanical contact switches, the line bundle failure and switch state are accurately distinguished, and the adaptability and accuracy of fault diagnosis are improved.
[0043] In an optional mode, the plurality of preset resistance value ranges include: a first resistance value range to a fifth resistance value range; wherein the first resistance value range to the fifth resistance value range are respectively set according to the vehicle switch type, the resistance values of the first resistance value range to the fifth resistance value range do not overlap, and the maximum resistance value of each resistance value range increases in turn; comparing the equivalent resistance value with the plurality of preset resistance value ranges corresponding to the vehicle switch type generates a fault diagnosis result, including: If the equivalent resistance value is in the first resistance value range, it is determined that the vehicle switch has a line bundle short circuit failure.
[0044] The first resistance range refers to a preset resistance interval corresponding to the line harness short circuit fault, and the resistance value is the smallest; for example, a range with a resistance value less than 10 ohms corresponds to a short circuit state of the door limit switch circuit.
[0045] If the equivalent resistance value is in the second resistance range, it is determined that the vehicle switch is in a normal triggering state.
[0046] The second resistance range refers to a preset resistance interval corresponding to a normal triggering state; for example, a range with a resistance value between 200 ohms and 500 ohms corresponds to a normal compression state of the door limit switch.
[0047] If the equivalent resistance value is in the third resistance range, it is determined that the vehicle switch is in a normal non-triggering state.
[0048] The third resistance range refers to a preset resistance interval corresponding to a normal non-triggering state; for example, a range with a resistance value between 10 kilohms and 20 kilohms corresponds to a normal disconnection state of the door limit switch.
[0049] If the equivalent resistance value is in the fourth resistance range, it is determined that the vehicle switch has an internal switch fault.
[0050] The fourth resistance range refers to a preset resistance interval corresponding to an internal switch fault, which has an abnormal value and is different from the normal state; for example, a range much higher than the normal non-triggering resistance value indicates that the door limit switch is internally damaged.
[0051] If the equivalent resistance value is in the fifth resistance range, it is determined that the vehicle switch has a line harness open circuit fault.
[0052] The fifth resistance range refers to a preset resistance interval corresponding to a line harness open circuit fault, and the resistance value is the largest; for example, a range with a resistance value greater than 100 kilohms corresponds to an open circuit state of the door limit switch circuit.
[0053] In the above optional mode, further division by mutually non-overlapping and increasing resistance ranges enhances the reliability of vehicle switch fault diagnosis and ensures accurate determination of the switch state in a complex electrical environment.
[0054] In an optional mode, the at least one resistor is integrated inside the vehicle switch or arranged on a line harness outside the vehicle switch.
[0055] The most significant advantage of integrating the resistance inside the switch is cost control. The integrated design of the switch and the resistance can reduce the number of components on the external wiring harness, thereby reducing the complexity of material procurement and assembly. In addition, internal integration can avoid poor contact or damage to the resistance caused by external environment (such as vibration, humidity, mechanical impact), thereby indirectly improving the reliability of the entire switch and reducing the maintenance cost.
[0056] The resistance arranged on the wiring harness near the switch will obviously increase the cost. Additional wiring harness processing, resistance fixing structure and separate assembly process will all increase the overall production cost. More importantly, the wiring harness environment is usually more complex and susceptible to vibration, temperature change, electromagnetic radiation and other factors. The connection point of the resistance and the wiring harness may change due to oxidation, looseness and other problems, thereby affecting the accuracy of resistance detection and reducing the reliability. This arrangement is more suitable for temporary modification or special scenarios, rather than the optimal choice for large-scale production.
[0057] In the above optional mode, the adaptability and deployment flexibility of the vehicle switch fault diagnosis mode are improved by further designing a flexible resistance arrangement, so as to facilitate the needs of different vehicle scenarios.
[0058] Figure 4 An embodiment of a vehicle switch fault diagnosis system 200 provided by the present application is shown in the structural schematic diagram. As shown in the figure, Figure 4 The system 200 includes a detection module 210 and a diagnosis module 220. The detection module 210 is configured to detect the equivalent resistance value of the vehicle switch circuit; wherein the vehicle switch circuit is configured with at least one resistance, and the connection mode and number of the resistance are determined according to the type of the vehicle switch; The diagnosis module 220 is configured to compare the equivalent resistance value with a plurality of preset resistance value ranges corresponding to the type of the vehicle switch, and generate a fault diagnosis result; wherein the plurality of preset resistance value ranges include resistance value ranges corresponding to normal trigger state, normal non-trigger state, wiring harness open circuit fault, wiring harness short circuit fault and switch internal fault, respectively.
[0059] In an optional mode, when the type of the vehicle switch is a mechanical contact switch, two resistances are arranged in series or parallel in the vehicle switch circuit; when the type of the vehicle switch is a non-mechanical contact switch, one resistance is arranged in parallel in the vehicle switch circuit.
[0060] In an alternative manner, the plurality of preset resistance value ranges include: a first resistance value range to a fifth resistance value range; wherein the first resistance value range to the fifth resistance value range are respectively set according to the vehicle switch type, the resistance values of the first resistance value range to the fifth resistance value range are mutually exclusive, and the maximum resistance value of each resistance value range is sequentially increased; and the diagnostic module 220 is specifically configured to: if the equivalent resistance value is in the first resistance value range, it is determined that the vehicle switch has a wire harness short circuit fault; if the equivalent resistance value is in the second resistance value range, it is determined that the vehicle switch has a normal trigger state; if the equivalent resistance value is in the third resistance value range, it is determined that the vehicle switch is in a normal untriggered state; if the equivalent resistance value is in the fourth resistance value range, it is determined that the vehicle switch has an internal switch fault; if the equivalent resistance value is in the fifth resistance value range, it is determined that the vehicle switch has a wire harness open circuit fault.
[0061] In an alternative manner, the at least one resistor is integrated in the vehicle switch or arranged on a wire harness outside the vehicle switch.
[0062] It should be noted that the beneficial effects of the vehicle switch fault diagnosis system 200 provided by the above embodiments are the same as those of the vehicle switch fault diagnosis method described above, and will not be repeated here. In addition, when the system provided by the above embodiments implements its functions, only the division of the above functional modules is exemplified, and in actual application, the above functions can be completed by different functional modules according to needs, i.e., the system is divided into different functional modules according to actual conditions to complete all or part of the above described functions. In addition, the system and method embodiments provided by the above embodiments belong to the same concept, and the specific implementation process is described in the method embodiments, which will not be repeated here.
[0063] Among them, the vehicle switch fault diagnosis system 200 of the application can be a computer program (including program code) running in a computer device, for example, the vehicle switch fault diagnosis system 200 of the application is an application software, which can be used to execute the corresponding steps in the vehicle switch fault diagnosis method of the application.
[0064] In some embodiments, the vehicle switch fault diagnosis system 200 of the present application can be implemented in a combination of software and hardware. For example, the vehicle switch fault diagnosis system 200 of the present application can be a hardware decoding processor programmed to perform the vehicle switch fault diagnosis method of the present application. For example, the hardware decoding processor can be one or more of an application specific integrated circuit (ASIC), a DSP, a programmable logic device (PLD), a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), or other electronic elements.
[0065] The modules described in the embodiments of the present application can be implemented in the form of software or hardware. In some cases, the names of the modules do not limit the modules themselves.
[0066] An electronic device according to an embodiment of the present application includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, any of the vehicle switch fault diagnosis methods described above is implemented. That is, an electronic device according to an embodiment of the present application can include, but is not limited to, a processor and a memory, the memory being configured to store a computer program, and the processor being configured to execute the vehicle switch fault diagnosis method according to any of the embodiments of the present application by calling the computer program.
[0067] In an optional embodiment, an electronic device is provided, as shown in Figure 5 As shown in Figure 5 The electronic device 4000 shown in the optional embodiment includes a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, through a bus 4002. Optionally, the electronic device 4000 can also include a transceiver 4004, which can be used for data interaction, such as data transmission and / or data reception, between the electronic device and other electronic devices. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not limit the embodiments of the present application.
[0068] The processor 4001 can be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It can implement or execute various exemplary logical blocks, modules and circuits described in connection with the present disclosure. The processor 4001 can also be a combination of computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0069] The bus 4002 can include a path for transmitting information between the above-mentioned components. The bus 4002 can be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 4002 can be divided into an address bus, a data bus, a control bus, etc. For convenience of representation, Figure 5 Only one bus 4002 is represented by a thick line in the middle, but it does not mean that there is only one bus or only one type of bus.
[0070] The memory 4003 can be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, an optical disk storage (including a compact disk, a laser disk, an optical disk, a digital versatile disk, a Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but not limited to this.
[0071] The memory 4003 is configured to store application code (computer program) for implementing the solutions of the present application, and the processor 4001 is configured to control the execution. The processor 4001 is configured to execute the application code stored in the memory 4003 to implement the content shown in the foregoing method embodiments.
[0072] The electronic device can also be a terminal device, and the terminal device can be any terminal device that can install an application and access a webpage through the application, including at least one of a smartphone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a smart television, and a smart vehicle device.
[0073] It should be noted that, Figure 5 The electronic device shown is only an example and should not limit the functions and use range of the embodiments of the present application.
[0074] The computer readable storage medium of the embodiment of the present application, the computer readable storage medium has a computer program stored thereon, and the computer program is executed by a processor to implement any of the above vehicle switch fault diagnosis methods.
[0075] Optionally, the computer readable storage medium can be a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0076] In the exemplary embodiments, a computer program product or computer program is also provided, which includes computer instructions stored in a computer readable storage medium. The processor of the electronic device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to enable the electronic device to perform the vehicle switch fault diagnosis method described above.
[0077] Computer program code for carrying out operations of the present application can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0078] It should be understood that the flowchart and block diagrams in the drawings illustrate the architecture, functionality, and operation of possible implementations of various embodiments of the present application. In this regard, each block in the flowchart and block diagrams can represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks can sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flowchart illustrations, and combinations thereof, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or combinations of hardware and software.
[0079] The computer readable storage medium of embodiments of the present application can be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the computer readable storage medium can include, but are not limited to, the following: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, the computer readable storage medium can be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
[0080] The computer readable storage medium described above bears one or more programs, when the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0081] The above description is merely exemplary of the application and the application principles used. It should be understood by those skilled in the art that the disclosed scope of the application is not limited to the technical solutions formed by the specific combinations of the above technical features, and should also cover other technical solutions formed by any combinations of the above technical features or equivalent features without departing from the disclosed concept. For example, the above features are replaced with the technical features disclosed in the application (but not limited to) having similar functions to form technical solutions.
[0082] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and represent a specific order or sequence. The order of use of similar objects can be interchanged under appropriate circumstances, so that the embodiments of the application described herein can be implemented in an order other than that illustrated or described.
[0083] Those skilled in the art know that the application can be implemented as a system, a method or a computer program product, so the application can be specifically implemented as follows: it can be a complete hardware, a complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, which is generally referred to as "circuit", "module" or "system" in this paper. In addition, in some embodiments, the application can also be implemented as a computer program product in one or more computer readable media, which contains computer readable program code.
[0084] Although the embodiments of the application have been shown and described above, it should be understood that the above embodiments are exemplary and cannot be understood as limiting the application, and those skilled in the art can make changes, modifications, replacements and variations to the above embodiments within the scope of the application.
Claims
1. A vehicle switch failure diagnosis method characterized by comprising: The method comprises the following steps: detecting an equivalent resistance value of a vehicle switch loop; wherein at least one resistor is arranged in the vehicle switch loop, and the connection mode and number of the resistors are determined according to the type of the vehicle switch; comparing the equivalent resistance value with a plurality of preset resistance value ranges corresponding to the type of the vehicle switch to generate a fault diagnosis result; wherein the plurality of preset resistance value ranges include resistance value ranges corresponding to a normal trigger state, a normal non-trigger state, a wire harness open circuit fault, a wire harness short circuit fault and a switch internal fault, respectively.
2. The vehicle switch failure diagnosis method according to claim 1, characterized by, When the type of the vehicle switch is a mechanical contact switch, two resistors are arranged in series or in parallel in the vehicle switch loop; when the type of the vehicle switch is a non-mechanical contact switch, one resistor is arranged in parallel in the vehicle switch loop.
3. The vehicle switch failure diagnosis method according to claim 2, characterized by, The plurality of preset resistance value ranges include a first resistance value range to a fifth resistance value range; wherein the first resistance value range to the fifth resistance value range are respectively set according to the type of the vehicle switch, the resistance values of the first resistance value range to the fifth resistance value range do not overlap with each other, and the maximum resistance values of the resistance value ranges increase in turn; the step of comparing the equivalent resistance value with the plurality of preset resistance value ranges corresponding to the type of the vehicle switch to generate a fault diagnosis result comprises: if the equivalent resistance value is in the first resistance value range, it is determined that the vehicle switch has a wire harness short circuit fault; if the equivalent resistance value is in the second resistance value range, it is determined that the vehicle switch is in a normal trigger state; if the equivalent resistance value is in the third resistance value range, it is determined that the vehicle switch is in a normal non-trigger state; if the equivalent resistance value is in the fourth resistance value range, it is determined that the vehicle switch has a switch internal fault; if the equivalent resistance value is in the fifth resistance value range, it is determined that the vehicle switch has a wire harness open circuit fault.
4. The vehicle switch failure diagnosis method according to any one of claims 1 to 3, characterized by The at least one resistor is integrated in the vehicle switch or arranged on a wire harness outside the vehicle switch.
5. A vehicle switch failure diagnosis system characterized by comprising: The method comprises the following steps: a detection module and a diagnosis module; The detection module is used for detecting an equivalent resistance value of a vehicle switch loop; wherein at least one resistor is arranged in the vehicle switch loop, and the connection mode and number of the resistors are determined according to the type of the vehicle switch; The diagnosis module is used for comparing the equivalent resistance value with a plurality of preset resistance value ranges corresponding to the type of the vehicle switch to generate a fault diagnosis result; wherein the plurality of preset resistance value ranges include resistance value ranges corresponding to a normal trigger state, a normal non-trigger state, a wire harness open circuit fault, a wire harness short circuit fault and a switch internal fault, respectively.
6. The vehicle switch failure diagnosis system according to claim 5, characterized by When the type of the vehicle switch is a mechanical contact switch, two resistors are arranged in series or in parallel in the vehicle switch loop; when the type of the vehicle switch is a non-mechanical contact switch, one resistor is arranged in parallel in the vehicle switch loop.
7. The vehicle switch failure diagnosis system according to claim 6, characterized by The plurality of preset resistance value ranges include a first resistance value range to a fifth resistance value range; wherein the first resistance value range to the fifth resistance value range are respectively set according to the type of the vehicle switch, the resistance values of the first resistance value range to the fifth resistance value range do not overlap with each other, and the maximum resistance values of the resistance value ranges increase in turn; the diagnosis module is specifically used for: If the equivalent resistance value is in a first resistance range, it is determined that the vehicle switch has a wire harness short circuit fault; If the equivalent resistance value is in a second resistance range, it is determined that the vehicle switch is in a normal triggering state; If the equivalent resistance value is in a third resistance range, it is determined that the vehicle switch is in a normal non-triggering state; If the equivalent resistance value is in a fourth resistance range, it is determined that the vehicle switch has an internal switch fault; If the equivalent resistance value is in a fifth resistance range, it is determined that the vehicle switch has a wire harness open circuit fault.
8. The vehicle switch failure diagnosis system according to any one of claims 5 to 7, characterized by The at least one resistor is integrated in the vehicle switch or arranged on a wire harness outside the vehicle switch.
9. An electronic device, comprising: The electronic device includes a processor coupled with a memory, and the memory stores at least one computer program, which is loaded and executed by the processor to enable the electronic device to implement the vehicle switch fault diagnosis method of any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores at least one computer program, which is loaded and executed by the processor to enable the computer readable storage medium to implement the vehicle switch fault diagnosis method of any one of claims 1 to 4.