A method, apparatus, device and medium for processing a vehicle component
By acquiring power and interface detection information through the CAN bus and using relays to control the sensor power supply and CAN interface status, the high time and labor costs of traditional detection methods are solved, enabling timely detection and handling of sensor power supply and CAN communication faults, thus improving vehicle safety and reliability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NANQI XIANCE (NANJING) HIGH TECH CO LTD
- Filing Date
- 2023-06-06
- Publication Date
- 2026-05-29
AI Technical Summary
Traditional fault detection methods require manual inspection of sensor power supplies and CAN communication one by one, resulting in high time and labor costs, and untimely fault handling, which affects vehicle safety and reliability.
Power fault information and interface detection information are obtained through the CAN bus, and the power supply of sensors and the status of the CAN interface are controlled by relays to achieve automatic detection and timely handling.
It enables timely detection and handling of sensor power supply and CAN communication faults, saving time and manpower costs and improving vehicle safety and reliability.
Smart Images

Figure CN116668263B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle technology, and in particular to a method, apparatus, device, and medium for processing vehicle components. Background Technology
[0002] With the continuous development of autonomous driving technology, the safety of vehicle electronic systems has gradually become a focus of attention. Sensor power supplies and the CAN bus are two important components of automotive electronic control systems. Failures in sensor power supplies and CAN communication can lead to performance degradation, fault code alarms, and other problems. Therefore, fault diagnosis and protection of sensor power supplies and CAN communication are urgent technical issues that need to be addressed.
[0003] Traditional fault detection usually requires staff to check whether the sensor power supply and CAN communication are normal one by one, which takes a lot of time and manpower. Moreover, it is usually only detected after the fault occurs, which leads to the problem of untimely fault handling and affects the safety and reliability of the vehicle. Summary of the Invention
[0004] This invention provides a method, apparatus, device, and medium for processing vehicle components, so as to realize timely detection of sensor power supply and CAN communication faults, and to take timely action when faults occur.
[0005] According to one aspect of the present invention, a method for processing a vehicle component is provided, executed by a control terminal, the control terminal including a detection device for detecting a CAN interface in the vehicle, the control terminal being connected to the vehicle's CAN bus, the control terminal controlling the operating state of a power supply to be detected via a relay, and the control terminal controlling the communication state of the CAN interface via a relay, the method comprising:
[0006] The power fault information of the power supply under test is obtained through the CAN bus, and the interface detection information of the target CAN interface is obtained through the detection device.
[0007] Based on the matching result between the interface detection information and the preset fault information, the interface fault information of the target CAN interface is determined;
[0008] Based on the power failure information and the interface failure information, the target relay and its corresponding target operating state are determined, and the operating state of the target relay is switched to the target operating state.
[0009] According to another aspect of the present invention, a method for processing vehicle components is provided, executed by a client, the method comprising:
[0010] The system receives power failure information and interface failure information sent by the control terminal; the power failure information is obtained by the control terminal through the CAN bus; the interface failure information is determined by the control terminal based on the matching result of interface detection information and preset failure information.
[0011] The target relay and its corresponding target operating state are determined based on the power failure information and the interface failure information.
[0012] The target relay and its corresponding target operating state are sent to the control terminal so that the control terminal can control the operating state of the target relay according to the target operating state.
[0013] According to one aspect of the present invention, a processing apparatus for a vehicle component is provided. The apparatus is disposed at a control terminal, the control terminal including a detection device for detecting a CAN interface in the vehicle. The control terminal is connected to the vehicle's CAN bus. The control terminal controls the operating state of a power supply to be detected via a relay, and controls the communication state of the CAN interface via a relay. The apparatus includes:
[0014] The information acquisition module is used to acquire power failure information of the power supply under test through the CAN bus, and to acquire interface detection information of the target CAN interface through the detection device.
[0015] The interface fault information determination module is used to determine the interface fault information of the target CAN interface based on the matching result of the interface detection information and the preset fault information.
[0016] The target relay control module is used to determine the target relay and its corresponding target operating state based on the power failure information and the interface failure information, and to switch the operating state of the target relay to the target operating state.
[0017] According to another aspect of the present invention, a processing apparatus for vehicle components is provided, the apparatus being configured at a client, the apparatus comprising:
[0018] The fault information receiving module is used to receive power fault information and interface fault information sent by the control terminal; the power fault information is obtained by the control terminal through the CAN bus; the interface fault information is determined by the control terminal based on the matching result of interface detection information and preset fault information.
[0019] The target relay determination module is used to determine the target relay and the target operating state corresponding to the target relay based on the power failure information and the interface failure information.
[0020] The information sending module is used to send the target relay and its corresponding target operating status to the control terminal, so that the control terminal can control the operating status of the target relay according to the target operating status.
[0021] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0022] At least one processor; and
[0023] A memory communicatively connected to the at least one processor; wherein,
[0024] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to execute a vehicle component processing method executed by a control terminal in any embodiment of the present invention, or to execute a vehicle component processing method executed by a client in any embodiment of the present invention.
[0025] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a processor to execute, implement, either the processing method of a vehicle component executed by a control terminal in any embodiment of the present invention, or the processing method of a vehicle component executed by a client in any embodiment of the present invention.
[0026] The technical solution of this application embodiment includes: executed by a control terminal, the control terminal including a detection device for detecting the CAN interface in a vehicle, the control terminal being connected to the vehicle's CAN bus, the control terminal controlling the operating state of the power supply under test via a relay, and the control terminal controlling the communication state of the CAN interface via a relay. The method includes: acquiring power fault information of the power supply under test via the CAN bus, and acquiring interface detection information of the target CAN interface via the detection device; determining interface fault information of the target CAN interface based on the matching result of the interface detection information and preset fault information; determining a target relay and its corresponding target operating state based on the power fault information and the interface fault information, and switching the operating state of the target relay to the target operating state. This technical solution can detect sensor power supply and CAN communication faults in a timely manner and take timely action when faults occur.
[0027] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0028] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0029] Figure 1 This is a flowchart of a method for processing vehicle components according to Embodiment 1 of this application;
[0030] Figure 2 This is a flowchart of a method for processing vehicle components according to Embodiment 2 of this application;
[0031] Figure 3 This is a flowchart of a method for processing vehicle components according to Embodiment 3 of this application;
[0032] Figure 4 This is a schematic diagram of a client-side display device for a method of processing vehicle components according to Embodiment 3 of this application;
[0033] Figure 5 This is a schematic diagram of a vehicle component processing device according to Embodiment 4 of this application;
[0034] Figure 6 This is a schematic diagram of a vehicle component processing device according to Embodiment 5 of this application;
[0035] Figure 7 This is a schematic diagram of the structure of an electronic device that implements a method for processing vehicle components according to an embodiment of this application. Detailed Implementation
[0036] To enable those skilled in the art to better understand the present invention, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0037] It should be noted that the terms "first," "second," "target," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0038] Example 1
[0039] Figure 1 The flowchart of a processing method for a vehicle component is provided in Embodiment 1 of this application. This embodiment of the application can be applied to the situation of fault detection of sensor power supply and CAN communication in a vehicle. The method can be executed by a processing device of the vehicle component, which can be implemented in hardware and / or software. The processing device of the vehicle component can be configured in a control terminal, which is an electronic device with data processing capabilities.
[0040] In this embodiment of the application, the control terminal includes a detection device for detecting the CAN interface in the vehicle. The control terminal is connected to the CAN bus of the vehicle. The control terminal controls the working state of the power supply to be tested through a relay. The control terminal also controls the communication state of the CAN interface through a relay.
[0041] Specifically, the control terminal can be installed in the vehicle. The control terminal includes a detection device connected to the CAN interface. It should be noted that the CAN interface can be the CANH and CANL ports of a CAN node. The CAN node is the connection point between the CAN bus and various electronic systems. Therefore, the connection of the detection device to the CAN interface can also be understood as the connection of the detection device to the CAN node. The detection device is used to detect the CAN interface and obtain interface detection information. The detection device can detect the voltage and / or current information of the CAN interface, and thus the interface detection information can be voltage, current, and other information.
[0042] Furthermore, the control terminal is connected to the vehicle's CAN bus. This control terminal can receive various signals from other devices on the CAN bus, such as fault signals from system A and alarm signals from device B. The control terminal is also connected to the power supply under test via a relay, allowing it to control the power supply's operating state. Additionally, the control terminal is connected to the CAN interface via a relay, enabling it to control the communication status of the CAN interface.
[0043] like Figure 1 As shown, the processing methods for vehicle components include:
[0044] S110: Obtain power fault information of the power supply to be tested through the CAN bus, and obtain interface detection information of the target CAN interface through the detection device.
[0045] The power supply under test can be a sensor power supply in the vehicle that powers the sensors. There can be one or more power supplies under test, which can power devices such as ultrasonic radar, millimeter-wave radar, lidar, and integrated navigation systems. If the power supply under test experiences abnormal voltage or temperature, it will send a power fault information to the CAN bus. The control unit can then obtain this information via the CAN bus. The power fault information can include temperature, voltage, or other values exceeding safe limits. Interface detection information can be the voltage and / or current information obtained by the detection equipment when testing the target CAN interface.
[0046] Specifically, in one feasible solution, power fault information of the power supply under test is acquired in real time via the CAN bus, and the detection equipment is controlled in real time to detect the target CAN interface and read the detected interface detection information. In another feasible solution, power fault information of the power supply under test is acquired via the CAN bus at a preset time, and the detection equipment is controlled to detect the target CAN interface and read the detected interface detection information. In yet another feasible solution, if a switch control has been triggered (this switch control can control the operation and shutdown of the processing device of the vehicle component), power fault information of the power supply under test is acquired via the CAN bus, and the detection equipment is controlled to detect the target CAN interface and read the detected interface detection information.
[0047] S120, Based on the matching result between the interface detection information and the preset fault information, determine the interface fault information of the target CAN interface.
[0048] The preset fault information can reflect the fault location, fault type, and corresponding detection data range of the CAN interface. For example, for a CANH short circuit fault, the corresponding detection data range could be that the CANH port current is greater than the short circuit threshold. Obviously, there are multiple fault locations and fault types, such as CANL short circuit and CANL open circuit, and each fault has a corresponding detection data range.
[0049] Specifically, after obtaining the interface detection information, the detection data range corresponding to the interface detection information is determined in the preset fault information, and then the fault location and fault type corresponding to the interface detection information are determined. Based on the fault location and fault type, the interface fault information of the target CAN interface is generated.
[0050] S130, based on the power failure information and the interface failure information, determine the target relay and the target operating state corresponding to the target relay, and switch the operating state of the target relay to the target operating state.
[0051] Specifically, in one feasible solution, after determining the power supply fault information and interface fault information, the faulty power supply number is extracted from the power supply fault information, and the relay matching the power supply number is determined as the target relay. Similarly, the fault location and fault type are extracted from the interface fault information, such as a short circuit in the CANH port, and the relay connected to the CANH port at the target interface is determined as the target relay. Furthermore, the target operating state can be an open state, that is, each target relay is switched to an open state to protect the circuit components.
[0052] The technical solution of this application embodiment includes: executed by a control terminal, the control terminal including a detection device for detecting the CAN interface in a vehicle, the control terminal being connected to the vehicle's CAN bus, the control terminal controlling the operating state of the power supply under test via a relay, and the control terminal controlling the communication state of the CAN interface via a relay. The method includes: acquiring power fault information of the power supply under test via the CAN bus, and acquiring interface detection information of the target CAN interface via the detection device; determining interface fault information of the target CAN interface based on the matching result of the interface detection information and preset fault information; determining a target relay and its corresponding target operating state based on the power fault information and the interface fault information, and switching the operating state of the target relay to the target operating state. This technical solution can detect sensor power supply and CAN communication faults in a timely manner and take timely action when faults occur.
[0053] Example 2
[0054] Figure 2This is a flowchart of a processing method for a vehicle component provided in Embodiment 2 of this application. The method is executed by a control terminal, which includes a detection device for detecting the CAN interface in the vehicle. The control terminal is connected to the CAN bus of the vehicle. The control terminal controls the working state of the power supply to be detected through a relay, and controls the communication state of the CAN interface through a relay. This embodiment of the application is an optimization based on the above embodiment.
[0055] like Figure 2 As shown, the method in this embodiment of the application specifically includes the following steps:
[0056] S210: Obtain power failure information of the power supply to be tested through the CAN bus, and obtain interface detection information of the target CAN interface through the detection device.
[0057] In this embodiment of the application, optionally, the interface detection information includes the voltage and / or current information of the CANH port, and the voltage and / or current information of the CANL port.
[0058] Specifically, the detection device is connected to the CANH and CANL ports of the CAN interface, and can detect the voltage and / or current information of the CANH port, as well as the voltage and / or current information of the CANL port. It should be noted that the detection device can be connected to multiple CAN interfaces; this embodiment uses a single CAN interface as an example for explanation.
[0059] In this embodiment, the detection device can be any device capable of detecting voltage and current. When no corresponding interface detection is required, the detection device can be separated from the CAN interface. When voltage and / or current detection is required, the detection device can perform voltage and / or current detection sequentially through the device's built-in program.
[0060] S220, determine the target detection data range matched by the interface detection information, and determine the target fault location corresponding to the target detection data range as the interface fault information of the target CAN interface.
[0061] In this embodiment of the application, optionally, the preset fault information includes the fault location and the detection data range corresponding to the fault location.
[0062] The fault location can reflect multiple preset fault occurrence locations, such as the CANH port and / or CANL port. The detection data range is different for different fault occurrence locations. That is, each fault location has a corresponding detection data range, which can be the range of voltage and / or current.
[0063] Specifically, after obtaining the interface detection information, the voltage and / or current data of the CANH port and the voltage and / or current information of the CANL port are extracted from the interface detection information to determine the target detection data range corresponding to the interface detection information, and then the target fault location corresponding to the target detection data range is determined as the interface fault information of the target CAN interface.
[0064] This solution is configured in such a way that the location of the fault in the target CAN interface can be quickly determined (e.g., the fault occurs in the CANH port, the fault occurs in the CANL port, or both ports are faulty), and the corresponding components in the vehicle can be quickly protected through subsequent steps.
[0065] S230, the power failure information and the interface failure information are sent to the client.
[0066] In this embodiment of the application, the power failure information and the interface failure information are sent to the client, so that the client can determine the target relay and the target working state corresponding to the target relay based on the power failure information and the interface failure information.
[0067] Specifically, the power failure information and the interface failure information are sent to the server, which then forwards them to the client. This configuration allows the server to receive the relevant information, and the server can perform encryption and decryption operations on the transmitted power failure information and interface failure information to protect data security. For example, in this embodiment, the control terminal communicates with the client or server using 4G, 5G, or other communication methods.
[0068] S240 receives the target relay and the target operating state corresponding to the target relay sent by the client, and switches the operating state of the target relay to the target operating state.
[0069] Specifically, after receiving the target relay and its corresponding target operating state from the client, the operating state of the target relay is switched to the target operating state, provided that the safety conditions are met. The safety conditions refer to conditions that will not affect the safety of the vehicle and its occupants. In a specific example, the vehicle being in Park (P) can be considered a safety condition.
[0070] The technical solution of this application embodiment, by sending the power failure information and the interface failure information to the client, enables the client to determine the target relay and the target working state corresponding to the target relay according to the actual situation. Furthermore, by sending the power failure information and the interface failure information to the client, the client personnel can remotely monitor the above failure information without having to go to the vicinity of the vehicle, saving a lot of time and manpower costs, and achieving the effect of cost reduction and efficiency improvement.
[0071] Example 3
[0072] Figure 3 The flowchart of a processing method for a vehicle component is provided in Embodiment 3 of this application. This embodiment of the application can be applied to the situation of fault detection of sensor power supply and CAN communication in a vehicle. The method can be executed by a processing device of the vehicle component, which can be implemented in hardware and / or software. The processing device of the vehicle component can be configured in a client, which is an electronic device with data processing capabilities.
[0073] like Figure 3 As shown, the processing method for this vehicle component includes:
[0074] S310, receive power failure information and interface failure information sent by the control terminal; the power failure information is obtained by the control terminal through the CAN bus; the interface failure information is determined by the control terminal based on the matching result of interface detection information and preset failure information.
[0075] Specifically, if a fault information request is detected from the control terminal, the request is accepted, and the power fault information and interface fault information sent by the control terminal are received.
[0076] S320, determine the target relay and the target operating state corresponding to the target relay based on the power failure information and the interface failure information.
[0077] Specifically, upon receiving power failure information and interface failure information, in one feasible solution, the relay corresponding to the failure location is identified as the target relay based on the failure location reflected in the power failure information and the interface failure information, and the target relay's operating state is determined to be in the off state. In another feasible solution, the target relay's number and target operating state, input by the operator, can be obtained.
[0078] In this embodiment of the application, optionally, determining the target relay and the target operating state corresponding to the target relay based on the power failure information and the interface failure information includes steps A1-A3:
[0079] Step A1: Based on the power failure information, determine the faulty power supply and identify the relay corresponding to the faulty power supply as the first target relay.
[0080] Step A2: Extract the target fault location from the interface fault information and determine the relay corresponding to the target fault location as the second target relay.
[0081] Step A3: Determine the target operating state of the first target relay and the second target relay as the off state.
[0082] The target relay includes the first target relay and the second target relay.
[0083] Specifically, since the power failure information is sent to the CAN bus by the power supply under test, it has an identifier for the power supply under test. Based on this identifier, the faulty power supply can be identified, and the relay corresponding to the faulty power supply can be designated as the first target relay. Further, the fault location is extracted from the interface fault information, and this extracted fault location is used as the target fault location. The relay corresponding to the target fault location is then designated as the second target relay.
[0084] It should be noted that steps A1 and A2 can be executed simultaneously or sequentially. The execution order is not limited in this application embodiment.
[0085] Furthermore, the first target relay and the second target relay are identified as target relays, and the target operating state corresponding to the target relays is determined to be the off state.
[0086] In this embodiment of the application, optionally, determining the target relay and the target operating state corresponding to the target relay based on the power failure information and the interface failure information includes steps B1-B3:
[0087] Step B1: Display the interface fault information and the power fault information on the display device.
[0088] Step B2: Obtain the trigger information of the relay control and the trigger information of the working status control corresponding to the relay control.
[0089] Step B3: Determine the target relay based on the trigger information of the relay control, and determine the target working state corresponding to the target relay based on the trigger information of the working state control corresponding to the relay control.
[0090] Specifically, such as Figure 4As shown, the interface fault information and the power supply fault information are displayed on the display device. For example, the displayed information may be: CANH short circuit to ground, CANL normal, power supply voltage abnormal, power supply temperature normal. Then, the trigger information of the relay controls and the trigger information of the corresponding operating status controls are obtained, namely, the trigger information of the on / off control of the relay corresponding to CANH, the trigger information of the on / off control of the relay corresponding to CANL, and the trigger information of the on / off control of the relay corresponding to the faulty power supply.
[0091] Furthermore, based on the triggering information of the relay control, the target relay is determined, and based on the triggering information of the working state control corresponding to the relay control, the target working state corresponding to the target relay is determined. For example, taking a faulty power supply as an example, if the shut-off control of the relay corresponding to the faulty power supply has been triggered, then the target working state of the target relay corresponding to the faulty power supply is determined to be the off state.
[0092] S330 sends the target relay and its corresponding target operating state to the control terminal, so that the control terminal can control the operating state of the target relay according to the target operating state.
[0093] The technical solution of this application embodiment includes: receiving power failure information and interface failure information sent by a control terminal; the power failure information is obtained by the control terminal through a CAN bus; the interface failure information is determined by the control terminal based on the matching result of interface detection information and preset failure information; determining a target relay and its corresponding target operating state based on the power failure information and the interface failure information; and sending the target relay and its corresponding target operating state to the control terminal so that the control terminal controls the operating state of the target relay according to the target operating state. This technical solution allows the client to remotely obtain power failure information and interface failure information, eliminating the need for on-site inspections and saving significant time and manpower costs, thus achieving cost reduction and efficiency improvement.
[0094] Example 4
[0095] Figure 5 This is a schematic diagram of a vehicle component processing device provided in Embodiment 4 of this application. This device can execute the vehicle component processing method executed by the control terminal provided in any embodiment of the present invention, and possesses the corresponding functional modules and beneficial effects of the method. For example... Figure 5 As shown, the device is configured at the control terminal, which includes a detection device for detecting the CAN interface in the vehicle. The control terminal is connected to the vehicle's CAN bus. The control terminal controls the operating state of the power supply under test via relays, and controls the communication state of the CAN interface via relays. The device includes:
[0096] The information acquisition module 410 is used to acquire power failure information of the power supply to be tested through the CAN bus, and to acquire interface detection information of the target CAN interface through the detection device.
[0097] The interface fault information determination module 420 is used to determine the interface fault information of the target CAN interface based on the matching result of the interface detection information and the preset fault information.
[0098] The target relay control module 430 is used to determine the target relay and the target working state corresponding to the target relay based on the power failure information and the interface failure information, and to switch the working state of the target relay to the target working state.
[0099] Optionally, the preset fault information includes the fault location and the detection data range corresponding to the fault location;
[0100] Interface fault information determination module 420 includes:
[0101] The interface fault information determination unit is used to determine the target detection data range matched by the interface detection information, and to determine the target fault location corresponding to the target detection data range as the interface fault information of the target CAN interface.
[0102] Optionally, the target relay control module 430 includes:
[0103] A fault information sending unit is used to send the power fault information and the interface fault information to the client, so that the client can determine the target relay and the target operating state corresponding to the target relay based on the power fault information and the interface fault information.
[0104] The target relay information receiving unit is used to receive the target relay and the target working status corresponding to the target relay sent by the client.
[0105] Optionally, the interface detection information includes voltage and / or current information of the CANH port, and voltage and / or current information of the CANL port.
[0106] The vehicle component processing apparatus provided in this application embodiment can execute a vehicle component processing method executed by a control terminal provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0107] Example 5
[0108] Figure 6This is a schematic diagram of a vehicle component processing device provided in Embodiment 5 of this application. This device can execute the vehicle component processing method executed by the client according to any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method execution. For example... Figure 6 As shown, the device is configured on the client side, and the device includes:
[0109] The fault information receiving module 510 is used to receive power fault information and interface fault information sent by the control terminal; the power fault information is obtained by the control terminal through the CAN bus; the interface fault information is determined by the control terminal based on the matching result of interface detection information and preset fault information.
[0110] The target relay determination module 520 is used to determine the target relay and the target working state corresponding to the target relay based on the power failure information and the interface failure information.
[0111] The information sending module 530 is used to send the target relay and the target working state corresponding to the target relay to the control terminal, so that the control terminal can control the working state of the target relay according to the target working state.
[0112] Optionally, the target relay determination module 520 includes:
[0113] The fault power supply determination unit is used to determine the fault power supply based on the power supply fault information, and to determine the relay corresponding to the fault power supply as the first target relay.
[0114] The target fault location determination unit is used to extract the target fault location from the interface fault information and determine the relay corresponding to the target fault location as the second target relay;
[0115] The target operating state determination unit is used to determine the target operating state corresponding to the first target relay and the second target relay as the off state;
[0116] The target relay includes the first target relay and the second target relay.
[0117] Optionally, the target relay determination module 520 includes:
[0118] An information display unit is used to display the interface fault information and the power fault information on a display device;
[0119] The trigger information acquisition unit is used to acquire the trigger information of the relay control and the trigger information of the working status control corresponding to the relay control;
[0120] The target relay determination unit is used to determine the target relay based on the trigger information of the relay control, and to determine the target working state corresponding to the target relay based on the trigger information of the working state control corresponding to the relay control.
[0121] The vehicle component processing apparatus provided in this application embodiment can execute a vehicle component processing method executed by a client according to any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0122] Example 6
[0123] Figure 7 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0124] like Figure 7 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0125] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0126] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the processing methods for vehicle components.
[0127] In some embodiments, the vehicle component processing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the vehicle component processing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the vehicle component processing method by any other suitable means (e.g., by means of firmware).
[0128] Various embodiments 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-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0129] Computer programs used to implement 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, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0130] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0131] To provide interaction with a user, the systems and techniques described herein can 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 pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0132] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0133] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0134] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0135] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for processing vehicle components, characterized in that, The method is executed by a control terminal, which includes a detection device for detecting the CAN interface in a vehicle. The control terminal is connected to the vehicle's CAN bus. The control terminal controls the operating state of the power supply under test via a relay, and controls the communication state of the CAN interface via a relay. The method includes: The power fault information of the power supply under test is obtained through the CAN bus, and the interface detection information of the target CAN interface is obtained through the detection device. Based on the matching result between the interface detection information and the preset fault information, the interface fault information of the target CAN interface is determined; Based on the power failure information and the interface failure information, determine the target relay and the target working state corresponding to the target relay, and switch the working state of the target relay to the target working state. Specifically, determining the target relay and its corresponding target operating state based on the power failure information and the interface failure information includes: The power failure information and the interface failure information are sent to the client so that the client can determine the target relay and the target operating state corresponding to the target relay based on the power failure information and the interface failure information. Receive the target relay and the target working status corresponding to the target relay sent by the client; Sending the power failure information and the interface failure information to the client includes: The power failure information and the interface failure information are sent to the server, which then encrypts the power failure information and the interface failure information before sending it to the client.
2. The method according to claim 1, characterized in that, The preset fault information includes the fault location and the detection data range corresponding to the fault location; Based on the matching result between the interface detection information and the preset fault information, the interface fault information of the target CAN interface is determined, including: Determine the target detection data range that matches the interface detection information, and determine the target fault location corresponding to the target detection data range as the interface fault information of the target CAN interface.
3. The method according to claim 1, characterized in that, The interface detection information includes the voltage and / or current information of the CANH port, and the voltage and / or current information of the CANL port.
4. A method for processing vehicle components, characterized in that, The method, executed by the client, includes: The system receives power failure information of the power supply under test and interface failure information of the target CAN interface from a control terminal. The control terminal includes a detection device for detecting the CAN interface in the vehicle. The control terminal is connected to the vehicle's CAN bus. The control terminal controls the operating state of the power supply under test and the communication state of the CAN interface via relays. The power failure information is obtained by the control terminal through the CAN bus. The interface failure information is determined by the control terminal based on the matching result between the interface detection information and preset failure information. The interface detection information is obtained by the control terminal's detection device from the target CAN interface. The target relay and its corresponding target operating state are determined based on the power failure information and the interface failure information. The target relay and its corresponding target operating state are sent to the control terminal so that the control terminal can control the operating state of the target relay according to the target operating state. The power failure information and interface failure information sent by the receiving control terminal include: The system receives encrypted power failure information and interface failure information from the server; the power failure information and interface failure information from the server are sent by the control terminal.
5. The method according to claim 4, characterized in that, Determining the target relay and its corresponding target operating state based on the power failure information and the interface failure information includes: Based on the power failure information, the faulty power supply is identified, and the relay corresponding to the faulty power supply is identified as the first target relay. Extract the target fault location from the interface fault information, and determine the relay corresponding to the target fault location as the second target relay; The target operating states corresponding to the first target relay and the second target relay are determined to be in the off state; The target relay includes the first target relay and the second target relay.
6. The method according to claim 4, characterized in that, Determining the target relay and its corresponding target operating state based on the power failure information and the interface failure information includes: Display the interface fault information and the power fault information on the display device; Get the trigger information of the relay control, as well as the trigger information of the corresponding working status control; Based on the trigger information of the relay control, the target relay is determined, and based on the trigger information of the working state control corresponding to the relay control, the target working state corresponding to the target relay is determined.
7. A processing apparatus for vehicle components, characterized in that, The device is configured on a control terminal, which includes a detection device for detecting the CAN interface in a vehicle. The control terminal is connected to the vehicle's CAN bus. The control terminal controls the operating state of the power supply to be tested via a relay, and controls the communication state of the CAN interface via a relay. The device includes: The information acquisition module is used to acquire power failure information of the power supply under test through the CAN bus, and to acquire interface detection information of the target CAN interface through the detection device. The interface fault information determination module is used to determine the interface fault information of the target CAN interface based on the matching result of the interface detection information and the preset fault information. The target relay control module is used to determine the target relay and its corresponding target operating state based on the power failure information and the interface failure information, and to switch the operating state of the target relay to the target operating state. The target relay control module includes: A fault information sending unit is used to send the power fault information and the interface fault information to the client, so that the client can determine the target relay and the target operating state corresponding to the target relay based on the power fault information and the interface fault information. The target relay information receiving unit is used to receive the target relay and the target working status corresponding to the target relay sent by the client. Sending the power failure information and the interface failure information to the client includes: The power failure information and the interface failure information are sent to the server, which then encrypts the power failure information and the interface failure information before sending it to the client.
8. A processing apparatus for vehicle parts, characterized in that, The device is configured on a client, and the device includes: The fault information receiving module is used to receive power fault information of the power supply under test and interface fault information of the target CAN interface sent by the control terminal. The control terminal includes a detection device for detecting the CAN interface in the vehicle. The control terminal is connected to the vehicle's CAN bus. The control terminal controls the operating state of the power supply under test through relays and controls the communication state of the CAN interface through relays. The power fault information is obtained by the control terminal through the CAN bus. The interface fault information is determined by the control terminal based on the matching result of the interface detection information and preset fault information. The interface detection information is obtained by the detection device of the control terminal from the target CAN interface. The target relay determination module is used to determine the target relay and the target operating state corresponding to the target relay based on the power failure information and the interface failure information. The information sending module is used to send the target relay and its corresponding target operating status to the control terminal, so that the control terminal can control the operating status of the target relay according to the target operating status. The power failure information and interface failure information sent by the receiving control terminal include: The system receives encrypted power failure information and interface failure information from the server; the power failure information and interface failure information from the server are sent by the control terminal.
9. An electronic device, characterized in that, The electronic device includes: 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, which is executed by the at least one processor to enable the at least one processor to perform the processing method of the vehicle component executed by the control terminal according to any one of claims 1-3, or to perform the processing method of the vehicle component executed by the client according to any one of claims 4-6.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the processing method of the vehicle component executed by the control terminal as described in any one of claims 1-3, or implement the processing method of the vehicle component executed by the client as described in any one of claims 4-6.