Vehicle detection method and related device
By obtaining and analyzing the ECU management messages from the CAN bus network in the vehicle gateway and T-BOX, determining whether the vehicle is dormant, the problem of low manual detection efficiency is solved, and efficient status detection and alarm feedback are achieved.
Patent Information
- Application Number
- CN202410824190.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-11-26
Smart Images

Figure CN119024806A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a vehicle detection method and related devices. Background Art
[0002] Under normal circumstances, after the vehicle is powered off, each ECU of the vehicle will stop working and enter a dormant state. However, if an ECU fails, the entire vehicle may not be able to enter a dormant state, which may further cause problems with the power supply of the entire vehicle.
[0003] In order to solve the problem of vehicle power supply caused by the vehicle not being in sleep mode, the related technology generally analyzes and troubleshoots the messages of each ECU of the vehicle manually and determines the location of the faulty ECU. However, due to the large number of messages, manual troubleshooting may take a long time, and there may be problems of false detection and missed detection when manually analyzing the messages. In other words, manual analysis and troubleshooting of messages will result in low detection efficiency. Summary of the invention
[0004] Based on the above problems, the present application provides a vehicle detection method and related devices to solve the problem of low detection efficiency of manual detection.
[0005] The embodiments of the present application disclose the following technical solutions:
[0006] In a first aspect, an embodiment of the present application provides a vehicle detection method, which is applied to a vehicle gateway and includes:
[0007] After the target vehicle is powered off, the management messages corresponding to the multiple microcontroller ECUs of the target vehicle are obtained from the CAN bus network;
[0008] Determine the status message of the ECU corresponding to each of the management messages; the status message indicates whether the corresponding ECU is in a dormant state or a non-dormant state;
[0009] The plurality of status messages are sent to the CAN bus network, so that the telematics control unit T-BOX receives the plurality of status messages through the CAN bus network, and determines whether the target vehicle is dormant according to the plurality of status messages.
[0010] Optionally, when the target vehicle is a vehicle with an open system for automotive electronics OSEK direct network management, the determining of the status messages of the ECUs corresponding to the respective management messages includes:
[0011] Each of the management messages is parsed to obtain a parsing result corresponding to each of the management messages; if the parsing result indicates a first preset value, the status message indicates that the corresponding ECU is in a sleep state; if the parsing result indicates a second preset value, the status message indicates that the corresponding ECU is in a non-sleep state.
[0012] Optionally, when the target vehicle is a vehicle with an automotive electronics open system OSEK indirect network management, or when the target vehicle is a vehicle with an automotive open system architecture AUTOSAR, the determining of the status messages of the respective corresponding ECUs based on the respective management messages includes:
[0013] Monitor whether each of the management messages is stopped; if the management message is stopped, the status message indicates that the corresponding ECU is in a dormant state; if the management message is not stopped, the status message indicates that the corresponding ECU is not in a dormant state.
[0014] Optionally, before sending the plurality of status messages to the CAN bus network, the method further includes:
[0015] A standard CAN message is obtained based on the plurality of status messages; each flag bit in the standard CAN message is used to indicate the status of the corresponding ECU;
[0016] The sending of the plurality of status messages to the CAN bus network comprises:
[0017] The standard CAN message is sent to the CAN bus network.
[0018] In a second aspect, an embodiment of the present application provides a vehicle detection method, which is applied to a telematics control unit T-BOX of a vehicle, comprising:
[0019] After the target vehicle is powered off, a status message corresponding to each of the multiple microcontroller ECUs of the target vehicle is obtained from the CAN bus network; the status message indicates whether the corresponding ECU is in a dormant state or a non-dormant state; each status message is obtained based on a management message sent by each ECU to the CAN bus network;
[0020] Based on the multiple status messages, it is determined whether each ECU is in a dormant state after a preset time; if there is an ECU that is not in a dormant state after the preset time, an alarm message is sent; the preset time is the maximum time range for the target vehicle to enter dormancy.
[0021] Optionally, judging whether each ECU is in a dormant state after a preset time based on the plurality of status messages includes:
[0022] Determine whether a target status message is received after a preset time; the target status message is based on a target management message sent by a target ECU to the CAN bus network after a preset time; the target ECU is an ECU among the plurality of ECUs that still sends a target management message after a preset time;
[0023] If the target status message is received, the target ECU corresponding to the target status message is in a non-sleep state;
[0024] If the target status message is not received, each of the ECUs is in a sleep state.
[0025] Optionally, if there is an ECU in a non-sleep state after a preset time, sending an alarm message includes:
[0026] If there is an ECU that is not in a sleep state after a preset time, key information of the ECU that is not in a sleep state is obtained, and the key information is reported in the form of an alarm message.
[0027] In a third aspect, an embodiment of the present application provides a vehicle detection method, which is applied to a backend cloud system of a vehicle, including:
[0028] Receiving warning information sent by a telematics control unit T-BOX, and storing the warning information in a database; the warning information is key information of an ECU in a non-sleeping state in a target vehicle; the ECU in a non-sleeping state is determined by a plurality of status messages; the status message indicates that the corresponding ECU is in a sleeping state or a non-sleeping state; each status message is obtained based on a management message sent by each ECU to the CAN bus network; a plurality of the status messages are sent by a gateway to the T-BOX through the CAN bus network;
[0029] The warning information is fed back to the application client corresponding to the target vehicle, or the warning information is filtered out in the database according to the unique identifier corresponding to the target vehicle.
[0030] In a fourth aspect, an embodiment of the present application provides a vehicle detection device, which is applied to a vehicle gateway, including:
[0031] A first acquisition module is used to acquire management messages corresponding to each of the multiple microcontroller ECUs of the target vehicle from the CAN bus network after the target vehicle is powered off;
[0032] A determination module, configured to determine a status message of the ECU corresponding to each of the management messages based on each of the management messages; the status message indicates whether the corresponding ECU is in a dormant state or a non-dormant state;
[0033] The first detection module is used to send the multiple status messages to the CAN bus network, so that the telematics control unit T-BOX receives the multiple status messages through the CAN bus network, and determines whether the target vehicle is dormant based on the multiple status messages.
[0034] In a fifth aspect, an embodiment of the present application provides a vehicle detection device, which is applied to a telematics control unit T-BOX of a vehicle, including:
[0035] A second acquisition module is used to acquire, after the target vehicle is powered off, status messages corresponding to each of the multiple microcontroller ECUs of the target vehicle from the CAN bus network; the status messages indicate whether the corresponding ECU is in a dormant state or a non-dormant state; each status message is obtained based on a management message sent by each ECU to the CAN bus network;
[0036] The second detection module is used to determine whether each ECU is in a sleep state after a preset time based on the multiple status messages; if there is an ECU that is not in a sleep state after the preset time, an alarm message is sent.
[0037] In a sixth aspect, an embodiment of the present application provides a vehicle detection device, which is applied to a backend cloud system of a vehicle, including:
[0038] A receiving module, used for receiving warning information sent by a telematics control unit T-BOX, and storing the warning information in a database; the warning information is key information of an ECU in a non-sleeping state in a target vehicle; the ECU in a non-sleeping state is determined by a plurality of status messages; the status message indicates whether the corresponding ECU is in a sleeping state or a non-sleeping state; each status message is obtained based on a management message sent by each ECU to the CAN bus network; a plurality of the status messages are sent by a gateway to the T-BOX through the CAN bus network;
[0039] The warning module is used to feed back the warning information to the application client corresponding to the target vehicle, or to filter out the warning information in the database through the unique identifier corresponding to the target vehicle.
[0040] In the seventh aspect, an embodiment of the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the vehicle detection method as described in the first aspect, or implements the vehicle detection method as described in the second aspect, or implements the vehicle detection method as described in the third aspect.
[0041] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium. When the instructions are executed on a terminal device, the terminal device executes the vehicle detection method as described in the first aspect, or executes the vehicle detection method as described in the second aspect, or implements the vehicle detection method as described in the third aspect.
[0042] Compared with the prior art, this application has the following beneficial effects:
[0043] The vehicle detection method provided in the embodiment of the present application obtains the management messages corresponding to each of the multiple microcontroller ECUs of the target vehicle from the CAN bus network after the target vehicle is powered off, and then determines the status message indicating that the corresponding ECU is in a dormant state or a non-dormant state based on each management message, and then sends the multiple status messages to the CAN bus network, so that the telematics control unit T-BOX receives multiple status messages through the CAN bus network, and determines whether the target vehicle is dormant based on the multiple status messages. Among them, the embodiment of the present application obtains the management messages of each ECU in the CAN network through the network, and determines the status of each ECU based on the management message, so as to realize the status detection of each ECU of the target vehicle and improve the detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0045] Figure 1 A schematic diagram of a vehicle detection method provided in an embodiment of the present application;
[0046] Figure 2 A schematic diagram of a vehicle gateway performing a detection process provided in an embodiment of the present application;
[0047] Figure 3 A schematic diagram of a flow chart of another vehicle detection method provided in an embodiment of the present application;
[0048] Figure 4 A flow chart of another vehicle detection method provided in an embodiment of the present application;
[0049] Figure 5 A schematic diagram of the interaction between a T-BOX and a backend provided in an embodiment of the present application;
[0050] Figure 6A schematic diagram of a background execution detection process provided in an embodiment of the present application;
[0051] Figure 7 A schematic diagram of the overall process of a vehicle detection method provided in an embodiment of the present application;
[0052] Figure 8 A schematic diagram of the structure of a vehicle detection device provided in an embodiment of the present application;
[0053] Fig. 9 A schematic diagram of the structure of another vehicle detection device provided in an embodiment of the present application;
[0054] Fig.10 A schematic diagram of the structure of another vehicle detection device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] As described above, in the research on vehicle management, it was found that under normal circumstances, after the vehicle is powered off, the various ECUs of the vehicle will stop working and enter a dormant state. However, if an ECU fails, it may cause the entire vehicle to not go into sleep mode, which may further cause problems with the power supply of the entire vehicle.
[0056] In order to solve the problem of power supply to the whole vehicle caused by the whole vehicle not being in sleep mode, the relevant technology generally analyzes and troubleshoots the messages of each ECU of the vehicle manually and determines the location of the faulty ECU. However, due to the large number of messages, manual troubleshooting may take a long time, and there may be problems of false detection and missed detection when manually analyzing the messages.
[0057] Specifically, manually analyzing a large number of management messages to ultimately locate the problem requires analysts to have strong professional knowledge. People with different abilities may require different amounts of analysis time, which results in a longer manual process of troubleshooting ECU failures. In addition, there is a greater probability of errors in manual analysis of problems. Due to the large volume of messages and the long time required for observation, key information is easily missed, leading to analysis errors, and very high requirements are placed on analysts.
[0058] In order to solve the problem of low efficiency of manual troubleshooting, in related technologies, T-BOX can also detect the status of management messages of each ECU in the CAN bus to determine whether the vehicle is dormant. If it is not dormant, all CAN messages of the vehicle are packaged and uploaded to the background, and then manually analyzed to find out which ECU has the problem. Since the processing and analysis of the management messages of each ECU are all in T-BOX, the performance requirements of T-BOX are relatively high. However, T-BOX itself is a product with relatively complex functions, and processing and analysis through T-BOX may affect the performance of T-BOX.
[0059] That is, manually analyzing and troubleshooting messages will result in low detection efficiency, but processing and analyzing the management messages of each ECU through T-BOX may affect the performance of T-BOX and further affect the detection efficiency.
[0060] In order to solve the above problems, an embodiment of the present application provides a vehicle detection method, which is applied to a vehicle gateway. The method includes: after the target vehicle is powered off, obtaining management messages corresponding to multiple microcontroller ECUs of the target vehicle from the CAN bus network, and then determining a status message indicating that the corresponding ECU is in a sleep state or a non-sleep state based on each management message, and then sending multiple status messages to the CAN bus network, so that the remote information processing control unit T-BOX receives multiple status messages through the CAN bus network, and determines whether the target vehicle is in sleep state based on the multiple status messages.
[0061] In this way, the embodiment of the present application obtains the management message of each ECU in the CAN network through the network, and determines the status of each ECU based on the management message, thereby realizing the status detection of each ECU of the target vehicle and improving the detection efficiency.
[0062] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0063] The relevant data collection and processing in this application should be strictly in accordance with the requirements of relevant national laws and regulations when applied in examples, obtain the informed consent or separate consent of the subject of personal information, and carry out subsequent data use and processing within the scope of authorization of laws and regulations and the subject of personal information.
[0064] See also Figure 1 , which is a flow chart of a vehicle detection method provided in an embodiment of the present application, combined with Figure 1 As shown, the vehicle detection method provided in the embodiment of the present application may include:
[0065] S101: After the target vehicle is powered off, management messages corresponding to each of the multiple microcontroller ECUs of the target vehicle are obtained from the CAN bus network.
[0066] The target vehicle refers to the vehicle to be detected. The management message (also known as the network management message) is used to indicate the key information of the corresponding ECU.
[0067] The vehicle gateway is mainly used to forward and transmit data between different networks to solve data bandwidth and security issues. Specifically, the vehicle gateway is responsible for protocol conversion between different bus types, participates in the network management of each network segment, and routes signals and messages according to actual needs to control the routing timing. The target vehicle power-off can be understood as the target vehicle is turned off and the main power is turned off.
[0068] CAN bus network (Controller Area Network) is a serial bus communication protocol used for data communication. CAN bus network is used to exchange information between various electronic control units ECU on the vehicle to form an automotive electronic control network.
[0069] It should be understood that in the embodiment of the present application, the management message of each ECU will be sent to the CAN bus network, and the vehicle gateway will obtain the management message of each ECU from the CAN bus network. In some possible implementations, when the target vehicle is powered off, the vehicle gateway will obtain the management message of each ECU of the target vehicle in real time and execute the following steps S102 and S103.
[0070] S102: Determine the status message of the ECU corresponding to each of the management messages.
[0071] The status message indicates whether the corresponding ECU is in a sleep state or a non-sleep state.
[0072] It should be understood that in the embodiments of the present application, by analyzing the management messages of each ECU, the status message of each ECU, that is, the status of each ECU, can be determined, so that the status message of each ECU can be further sent to the CAN bus network to realize the detection of the status of each ECU, which is different from the manual analysis in the prior art and improves the detection efficiency.
[0073] In some possible implementations, when the target vehicle is a vehicle with direct network management of the automotive electronics open system OSEK, step S102 may include: parsing each of the management messages to obtain a parsing result corresponding to each of the management messages; if the parsing result indicates a first preset value, the status message indicates that the corresponding ECU is in a sleep state; if the parsing result indicates a second preset value, the status message indicates that the corresponding ECU is in a non-sleep state.
[0074] OSEK (Open System for Automotive Electronics) is an open embedded operating system standard designed to meet the needs of automotive electronic systems. OSEK defines a set of operating system specifications, including operating system, communication, network management and implementation language.
[0075] It should be understood that, due to the vehicle model with OSEK direct network management, the vehicle gateway can directly obtain the management message of each ECU in the target vehicle, so it can parse the management message corresponding to each ECU and determine whether each ECU is in a dormant state based on the parsing result. Exemplarily, when the ECU in the target vehicle meets the dormant state, SleepInd=1 in the network management message sent; when the vehicle gateway detects the management message "SleepInd=1" sent by the ECU, the vehicle gateway can determine that the ECU meets the dormant condition and obtain the status message of the ECU indicating that it is in a dormant state; conversely, when SleepInd=0, the vehicle gateway believes that the ECU does not meet the dormant condition, that is, the status message indicates that the ECU is not in a dormant state.
[0076] In some other possible implementations, when the target vehicle is a vehicle with an automotive electronics open system OSEK indirect network management, step S102 may include: monitoring whether each of the management messages is stopped; if the management message is stopped, the status message indicates that the corresponding ECU is in a sleep state; if the management message is not stopped, the status message indicates that the corresponding ECU is not in a sleep state.
[0077] When the target vehicle is a model managed by OSEK indirect network, the vehicle gateway can detect all messages on the CAN bus network. The vehicle gateway detects the management messages of each ECU in the CAN bus network. When the regular message (that is, the management message) of a certain ECU stops, the vehicle gateway can determine that the ECU meets the sleep condition, and the status message indicates that the ECU is in the sleep state; if the regular message of the ECU is not stopped, the ECU does not meet the sleep condition, that is, the status message indicates that the ECU is not in the sleep state.
[0078] Similarly, when the target vehicle is a vehicle with AUTOSAR, the vehicle gateway can detect all messages on the CAN bus network. When the regular message (i.e., management message) of a certain ECU stops, the vehicle gateway can determine that the ECU meets the sleep condition, and the status message indicates that the ECU is in the sleep state; if the regular message of the ECU is not stopped, the ECU does not meet the sleep condition, that is, the status message indicates that the ECU is not in the sleep state.
[0079] It should be noted that the vehicle gateway can determine whether the ECU meets the sleep conditions based on the new status of the management message or the management message sent by the ECU, and store the status of the ECU in the protocol stack. If the ECU status changes, the protocol stack will be updated.
[0080] S103: Sending the plurality of status messages to the CAN bus network, so that the telematics control unit T-BOX receives the plurality of status messages through the CAN bus network, and determines whether the target vehicle is dormant according to the plurality of status messages.
[0081] T-BOX (Telematics Box) refers to a device in the vehicle. T-BOX is an important part of the Internet of Vehicles system. The main function of T-BOX is to realize the interconnection and communication between the vehicle and the background system or mobile phone APP to realize the display and control of vehicle information.
[0082] It should be understood that in the embodiment of the present application, the status of each ECU in the target vehicle (i.e., the status message) is determined by the vehicle gateway, and then the status message corresponding to each ECU is sent to the CAN bus network. Then, the T-BOX can obtain the status message corresponding to each ECU from the CAN bus network, and further determine the status of each ECU without the need for the T-BOX to perform a large amount of processing and analysis, thereby improving the stability and reliability of the T-BOX.
[0083] In some possible implementations, before executing step S103, the method may further include: obtaining a standard CAN message based on the plurality of status messages, wherein each flag bit in the standard CAN message is used to indicate the status of the corresponding ECU, and further, sending the standard CAN message to the CAN bus network.
[0084] It should be understood that in order to facilitate the analysis of the status messages of each ECU, the vehicle gateway can convert the status messages of each ECU into standard CAN messages, and then send the standard CAN messages to the CAN bus network. The status of each ECU occupies one bit in the standard CAN message. One standard CAN message can represent the status of 64 ECUs for T-BOX monitoring and judgment, which is convenient for subsequent T-BOX analysis and saves resources.
[0085] It should be understood that the combination Figure 2As shown, in the embodiment of the present application, when the target vehicle is powered off, the vehicle gateway will obtain the management message sent by each ECU from the CAN bus network, and then send the status message of each ECU determined based on the management message to the CAN bus network, and the status message indicates whether the corresponding ECU is in a dormant state or not in a dormant state. In this way, the status detection of each ECU of the target vehicle can be realized, and the detection efficiency can be improved.
[0086] Based on the vehicle detection method provided in the above embodiment, see Figure 3 , which is a flow chart of another vehicle detection method provided in an embodiment of the present application, combined with Figure 3 As shown, the vehicle detection method provided in the embodiment of the present application is applied to the telematics control unit T-BOX of the vehicle and may include:
[0087] S301: After the target vehicle is powered off, status messages corresponding to multiple microcontroller ECUs of the target vehicle are obtained from the CAN bus network.
[0088] The status message indicates whether the corresponding ECU is in a sleep state or a non-sleep state; each status message is obtained based on a management message sent by each ECU to the CAN bus network.
[0089] It should be understood that when the target vehicle is powered off, the vehicle gateway will obtain the management message sent by each ECU from the CAN bus network, and then send the status message of each ECU determined based on the management message to the CAN bus network. After the target vehicle is powered off, T-BOX will start the monitoring function, which is used to obtain the status message in the CAN bus network.
[0090] S302: judging whether each ECU is in a sleep state after a preset time based on the plurality of status messages; and sending an alarm message if there is an ECU that is not in a sleep state after the preset time.
[0091] The preset time refers to the maximum time of the customized vehicle sleep strategy. If there are still ECUs that have not entered the sleep state after the preset time, an alarm message needs to be sent to the background to detect ECU faults.
[0092] In a possible implementation, step S302 may include:
[0093] Step 1: Determine whether a target status message is received after a preset time.
[0094] The target status message is based on a target management message sent by the target ECU to the CAN bus network after a preset time; the target ECU is an ECU among the multiple ECUs that still sends a target management message after the preset time.
[0095] That is, the ECU that has not entered the sleep state will still send a message after the preset time. At this time, it can be determined whether the target state message is received after the preset time to determine whether there is an ECU that has not entered the sleep state.
[0096] Step 2: If the target status message is received, the target ECU corresponding to the target status message is in a non-sleep state.
[0097] It should be understood that, under normal circumstances, the latest time for the ECU to send a management message does not exceed the preset time. If a target status message is still received after the preset time, it is considered that the ECU corresponding to the target status message is not in a sleep state.
[0098] Step 3: If the target status message is not received, each ECU is in a dormant state.
[0099] In a possible implementation, if there is an ECU that is not in a sleep state after a preset time, key information of the ECU that is not in a sleep state is obtained, and the key information is reported in the form of an alarm message. That is, if the ECU is still not in a sleep state after the preset time, it can be considered that the ECU has a fault, and it is necessary to obtain the key information of the ECU (such as the VIN code of the target vehicle and the identification of the ECU), and report the key information to the background, so that the background can locate and handle the cause of the fault.
[0100] Based on the vehicle detection method provided in the above embodiment, the present application embodiment also provides another vehicle detection method applied to T-BOX, combined with Figure 4 As shown, the method may include:
[0101] S401: T-BOX works normally, and determines whether the target vehicle is turned off and locked. If so, execute step S402.
[0102] It should be noted that when the T-BOX is working normally and the target vehicle is not powered off, the T-BOX will not start the monitoring function. If the target vehicle is not completely turned off and locked, the T-BOX will still work normally.
[0103] S402: T-BOX starts the monitoring function and obtains the status message about each ECU sent by the vehicle gateway.
[0104] S403: T-BOX determines whether the status message is stopped. If so, the monitoring function is terminated; if not, step S404 is executed.
[0105] It should be understood that when the status message stops being sent, it can be considered that the various ECUs of the target vehicle are in a dormant state, and the vehicle gateway also enters a dormant state. At this time, the monitoring function can be terminated and the entire vehicle enters a dormant state.
[0106] S404: Determine the shutdown time of the target vehicle, and judge whether the shutdown time is greater than the vehicle sleep time.
[0107] S405: If yes, the T-BOX determines that the ECU in the status message sent by the vehicle gateway is not in sleep mode.
[0108] It should be noted that if the engine shutdown time is not greater than the vehicle sleep time, the T-BOX needs to continue monitoring, that is, re-execute step S402.
[0109] S406: Report the alarm data message to the background.
[0110] The background refers to the cloud system related to the target vehicle, such as the vehicle cloud system, APP, etc., which is not specifically limited here.
[0111] Further, based on the vehicle detection method provided in the above embodiment, combined with Figure 5 As shown, T-BOX can upload the alarm data message to the background, and the background will confirm receipt of the alarm data message sent by T-BOX.
[0112] In some possible implementations, the backend and T-BOX will define a set of communication protocols for uploading and parsing ECU non-sleep data formats, and define the alarm data message format reported by T-BOX. In one possible implementation, the alarm data message can be composed of a message header and message elements.
[0113] The parameters in the message header mainly include the vehicle chassis VIN code, APPLICATIONID and alarm time. The vehicle chassis VIN code is the VIN code defined when the real vehicle is offline. APPLICATIONID is used to determine the type of communication message. For example, APPLICATIONID=1 can be defined to indicate the ECU is not in sleep mode alarm data message upload message ID. The alarm time is the time when T-BOX reports the ECU is not in sleep mode alarm.
[0114] The parameters in the message element mainly include the number of IDs of non-sleeping ECUs and the ID of the ECU, where the ID of the ECU is the code corresponding to the ECU on the vehicle defined by the OEM, generally consisting of one byte.
[0115] After the background receives the alarm data message reported by T-BOX (such as the message with APPLICATIONID=1), the background will form a data record with the vehicle chassis VIN code, time parameters, and the number of ECU IDs and ECU IDs in the message element in the message header of the alarm data message, and return a confirmation message to T-BOX.
[0116] After receiving the alarm data message in the background, combined with Figure 6 As shown, the background can perform the following operations:
[0117] Step 1: Normal communication between the background and T-BOX.
[0118] Step 2: The background receives the CAN bus message data (ie, the alarm data message) reported by the T-BOX, writes the received CAN bus message data into the database, and executes step 3 or step 4.
[0119] Step 3: Feedback the warning information indicated by the CAN bus message data to the APP terminal bound to the target vehicle to remind the customer to conduct troubleshooting and repairs.
[0120] Step 4: The front end of the background opens the function options of screening and exporting data, and can screen and export records in the database through search conditions such as the VIN code and APP ID of the target vehicle.
[0121] Step 5: Maintenance personnel can use the exported records (such as Excel tables) to view the ECU information that causes the vehicle to not sleep, and then troubleshoot the specified ECU.
[0122] Based on the vehicle detection method provided in the above embodiments, see Figure 7 , which is a schematic diagram of the overall process of a vehicle detection method provided in an embodiment of the present application.
[0123] Combination Figure 7 As shown, the vehicle detection method provided in the embodiment of the present application may include:
[0124] After the target vehicle is turned off and locked (the vehicle is powered off), the vehicle gateway monitors the sleep status of each ECU of the target vehicle based on the CAN bus network, and feeds back the sleep status of each ECU on the CAN bus network where the T-BOX is located through status messages, which is convenient for T-BOX monitoring.
[0125] After the target vehicle is turned off and locked (the vehicle is powered off), T-BOX starts monitoring the status message sent by the vehicle gateway and starts timing. When the timing reaches the vehicle sleep time and the status message has not stopped, T-BOX reports the alarm information to the background and feeds back the information of the ECU that has not reached the sleep state in the status message to the background.
[0126] After receiving the alarm information reported by T-BOX, the backend saves it in the database and reports the alarm data message to the APP. Among them, maintenance personnel can view the non-sleeping ECUs through the content of the alarm information in the APP or the alarm data message in the backend, and perform fault inspection on the non-sleeping ECUs.
[0127] Based on the vehicle detection method provided in the above embodiment, the present application embodiment also provides a vehicle detection device, see Figure 8 , which is a schematic diagram of the structure of a vehicle detection device provided in an embodiment of the present application, combined with Figure 8 As shown, the vehicle detection device 800 provided in the embodiment of the present application is applied to a vehicle gateway and may include:
[0128] The first acquisition module 801 is used to obtain the management messages corresponding to the multiple microcontroller ECUs of the target vehicle from the CAN bus network after the target vehicle is powered off.
[0129] The determination module 802 is used to determine the status message of the corresponding ECU based on each of the management messages; the status message indicates whether the corresponding ECU is in a sleep state or a non-sleep state.
[0130] The first detection module 803 is used to send the multiple status messages to the CAN bus network, so that the telematics control unit T-BOX receives the multiple status messages through the CAN bus network, and determines whether the target vehicle is dormant based on the multiple status messages.
[0131] As an example, when the target vehicle is a vehicle with an open system OSEK direct network management, the determination module 802 is specifically used to:
[0132] Each of the management messages is parsed to obtain a parsing result corresponding to each of the management messages; if the parsing result indicates a first preset value, the status message indicates that the corresponding ECU is in a sleep state; if the parsing result indicates a second preset value, the status message indicates that the corresponding ECU is in a non-sleep state.
[0133] As an example, when the target vehicle is a vehicle with an automotive electronic open system OSEK indirect network management, or when the target vehicle is a vehicle with an automotive open system architecture AUTOSAR, the determination module 802 is specifically used to:
[0134] Monitor whether each of the management messages is stopped; if the management message is stopped, the status message indicates that the corresponding ECU is in a dormant state; if the management message is not stopped, the status message indicates that the corresponding ECU is not in a dormant state.
[0135] As an example, before the first detection module 803, the following is further included:
[0136] A standardization module, used for obtaining a standard CAN message based on the plurality of status messages; each flag bit in the standard CAN message is used for indicating the status of the corresponding ECU;
[0137] The first detection module 803 is used to send the standard CAN message to the CAN bus network.
[0138] The vehicle detection device provided in the embodiment of the present application has the same beneficial effects as the vehicle detection method provided in the above embodiment, so they are not described in detail.
[0139] Based on the vehicle detection method provided in the above embodiment, the present application also provides another vehicle detection device, see Fig. 9 , which is a schematic diagram of the structure of another vehicle detection device provided in an embodiment of the present application, combined with Fig. 9 As shown, the vehicle detection device 900 provided in the embodiment of the present application is applied to the telematics control unit T-BOX of the vehicle, and may include:
[0140] The second acquisition module 901 is used to obtain the status messages corresponding to the multiple microcontroller ECUs of the target vehicle from the CAN bus network after the target vehicle is powered off; the status messages indicate whether the corresponding ECU is in a dormant state or a non-dormant state; each status message is obtained based on the management message sent by each ECU to the CAN bus network.
[0141] The second detection module 902 is used to determine whether each ECU is in a sleep state after a preset time based on the multiple status messages; if there is an ECU that is not in a sleep state after the preset time, send an alarm message.
[0142] As an example, the second detection module 902 is specifically used for: if there is an ECU that is not in a sleep state after a preset time, obtaining key information of the ECU that is not in a sleep state, and reporting the key information in the form of alarm information.
[0143] The vehicle detection device provided in the embodiment of the present application has the same beneficial effects as the vehicle detection method provided in the above embodiment, so they are not described in detail.
[0144] Based on the vehicle detection method provided in the above embodiment, the present application embodiment also provides a vehicle detection device, see Fig.10 , which is a structural schematic diagram of another vehicle detection device provided in an embodiment of the present application, combined with Fig.10 As shown, the vehicle detection device 1000 provided in the embodiment of the present application is applied to a vehicle gateway and may include:
[0145] The receiving module 1001 is used to receive the warning information sent by the telematics control unit T-BOX and store the warning information in a database; the warning information is the key information of the ECU in the target vehicle that is not in the sleep state; the ECU in the non-sleep state is determined by multiple status messages; the status message indicates that the corresponding ECU is in the sleep state or the non-sleep state; each status message is obtained based on the management message sent by each ECU to the CAN bus network; multiple status messages are sent to the T-BOX by the gateway through the CAN bus network;
[0146] The warning module 1002 is used to feed back the warning information to the application client corresponding to the target vehicle, or to filter out the warning information in the database according to the unique identifier corresponding to the target vehicle.
[0147] The vehicle detection device provided in the embodiment of the present application has the same beneficial effects as the vehicle detection method provided in the above embodiment, so they are not described in detail.
[0148] The embodiments of the present application also provide corresponding devices and computer storage media for implementing the solutions provided by the embodiments of the present application.
[0149] The device includes a memory and a processor, the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the device executes the vehicle detection method described in any embodiment of the present application.
[0150] The computer storage medium stores codes, and when the codes are executed, a device executing the codes implements the vehicle detection method described in any embodiment of the present application.
[0151] It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and equipment embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments. The device and equipment embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components indicated as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. A person of ordinary skill in the art can understand and implement it without paying creative labor.
[0152] The "first" and "second" in the names such as "first" and "second" (if any) mentioned in the embodiments of the present application are only used as name identifiers and do not represent the first or second in order.
[0153] Through the description of the above implementation methods, it can be known that those skilled in the art can clearly understand that all or part of the steps in the above-mentioned embodiment method can be implemented by means of software plus a general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a storage medium, such as a read-only memory (ROM) / RAM, a magnetic disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network communication device such as a router) to execute the methods described in each embodiment of the present application or some parts of the embodiments.
[0154] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A vehicle detection method, characterized in that: The method is applied to a vehicle gateway, comprising: After the target vehicle is powered off, the management messages corresponding to the multiple microcontroller ECUs of the target vehicle are obtained from the CAN bus network; Determine the status message of the ECU corresponding to each of the management messages; the status message indicates whether the corresponding ECU is in a dormant state or a non-dormant state; The plurality of status messages are sent to the CAN bus network, so that the telematics control unit T-BOX receives the plurality of status messages through the CAN bus network, and determines whether the target vehicle is dormant according to the plurality of status messages.
2. The method according to claim 1, characterized in that: When the target vehicle is a vehicle with direct network management of the automotive electronics open system OSEK, the state message of the ECU corresponding to each other is determined based on each of the management messages, including: Each of the management messages is parsed to obtain a parsing result corresponding to each of the management messages; if the parsing result indicates a first preset value, the status message indicates that the corresponding ECU is in a sleep state; if the parsing result indicates a second preset value, the status message indicates that the corresponding ECU is in a non-sleep state.
3. The method according to claim 1, characterized in that When the target vehicle is a vehicle with an automotive electronic open system OSEK indirect network management, or when the target vehicle is a vehicle with an automotive open system architecture AUTOSAR, the determining of the status messages of the respective corresponding ECUs based on the respective management messages includes: Monitor whether each of the management messages is stopped; if the management message is stopped, the status message indicates that the corresponding ECU is in a dormant state; if the management message is not stopped, the status message indicates that the corresponding ECU is not in a dormant state.
4. The method according to claim 1, characterized in that: Before sending the plurality of status messages to the CAN bus network, the method further comprises: A standard CAN message is obtained based on the plurality of status messages; each flag bit in the standard CAN message is used to indicate the status of the corresponding ECU; The sending of the plurality of status messages to the CAN bus network comprises: The standard CAN message is sent to the CAN bus network.
5. A vehicle detection method, characterized in that: The method is applied to a telematics control unit T-BOX of a vehicle, comprising: After the target vehicle is powered off, a status message corresponding to each of the multiple microcontroller ECUs of the target vehicle is obtained from the CAN bus network; the status message indicates whether the corresponding ECU is in a dormant state or a non-dormant state; each status message is obtained based on a management message sent by each ECU to the CAN bus network; Based on the multiple status messages, it is determined whether each ECU is in a dormant state after a preset time; if there is an ECU that is not in a dormant state after the preset time, an alarm data message is sent; the preset time is the maximum time range for the target vehicle to enter dormancy.
6. The method according to claim 5, characterized in that The determining whether each ECU is in a dormant state after a preset time based on the plurality of status messages includes: Determine whether a target status message is received after a preset time; the target status message is based on a target management message sent by a target ECU to the CAN bus network after a preset time; the target ECU is an ECU among the plurality of ECUs that still sends a target management message after a preset time; If the target status message is received, the target ECU corresponding to the target status message is in a non-sleep state; If the target status message is not received, each of the ECUs is in a sleep state.
7. The method according to claim 5, characterized in that If the ECU is not in sleep state after the preset time, sending an alarm message includes: If there is an ECU that is not in a sleep state after a preset time, key information of the ECU that is not in a sleep state is obtained, and the key information is reported in the form of an alarm message.
8. A vehicle detection method, characterized in that: The method is applied to a backend cloud system of a vehicle, and includes: Receiving warning information sent by a telematics control unit T-BOX, and storing the warning information in a database; the warning information is key information of an ECU in a non-sleeping state in a target vehicle; the ECU in a non-sleeping state is determined by a plurality of status messages; the status message indicates that the corresponding ECU is in a sleeping state or a non-sleeping state; each status message is obtained based on a management message sent by each ECU to the CAN bus network; a plurality of the status messages are sent by a gateway to the T-BOX through the CAN bus network; The warning information is fed back to the application client corresponding to the target vehicle, or the warning information is filtered out in the database according to the unique identifier corresponding to the target vehicle.
9. A vehicle detection device, characterized in that: The device is applied to a vehicle gateway, and includes: A first acquisition module is used to acquire management messages corresponding to each of the multiple microcontroller ECUs of the target vehicle from the CAN bus network after the target vehicle is powered off; A determination module, configured to determine a status message of the ECU corresponding to each of the management messages based on each of the management messages; the status message indicates whether the corresponding ECU is in a dormant state or a non-dormant state; The first detection module is used to send the multiple status messages to the CAN bus network, so that the telematics control unit T-BOX receives the multiple status messages through the CAN bus network, and determines whether the target vehicle is dormant based on the multiple status messages.
10. A vehicle detection device, characterized in that: The device is applied to a telematics control unit T-BOX of a vehicle, and comprises: A second acquisition module is used to acquire, after the target vehicle is powered off, status messages corresponding to each of the multiple microcontroller ECUs of the target vehicle from the CAN bus network; the status messages indicate whether the corresponding ECU is in a dormant state or a non-dormant state; each status message is obtained based on a management message sent by each ECU to the CAN bus network; The second detection module is used to determine whether each ECU is in a sleep state after a preset time based on the multiple status messages; if there is an ECU that is not in a sleep state after the preset time, an alarm message is sent.
Citation Information
Cited By
Message test method and system based on automobile bus, storage medium and automobile
CN121098768A
