Data processing methods, devices, electronic equipment, and storage media for domain controllers
By setting up first and second communication channels in the domain controller test, monitoring the current status and controlling data reception, the problems of increased data volume and reduced accuracy in existing test methods are solved, resulting in more efficient test results and improved vehicle safety.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- KUNYI ELECTRONICS TECHNOLOGY (SHANGHAI) CO LTD
- Filing Date
- 2023-01-18
- Publication Date
- 2026-05-26
AI Technical Summary
Existing domain controller testing methods trigger power-off and restart events by analyzing operational data, which increases the amount of data and reduces the accuracy of test results, making it difficult to guarantee the safety and reliability of vehicles.
By setting up a first communication channel and a second communication channel, the current status of the domain controller is monitored. If a power-on confirmation message is not received within a preset time, the reception of test data is stopped. If a confirmation message is received within a preset time, the reception of test data continues, thus avoiding the collection of data after a power outage.
This improves the accuracy and applicability of domain controller testing, ensuring the safety and reliability of vehicles.
Smart Images

Figure CN116300795B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and more specifically to a data processing method, apparatus, electronic device, and storage medium for a domain controller. Background Technology
[0002] The rapid development of automotive electronics has led to a year-on-year increase in the number and complexity of in-vehicle electronic products. With the increasing intelligence and connectivity of automobiles, in-vehicle electronic devices are gradually being integrated onto processor hardware platforms, which constitutes the automotive "Domain Control Unit (DCU)". Based on the vehicle's functional domains, domain controllers include Vehicle Domain Controllers (VDC), Advanced Driver Controllers (ADC), and Cockpit Domain Controllers (CDC), among others.
[0003] To ensure the safety and reliability of automobiles, it is necessary to test the domain controllers within the vehicle during the vehicle development process. By testing, the performance stability of the domain controllers under various workloads can be determined, which is of great significance for vehicle research and development.
[0004] Due to the influence of the testing environment, domain controllers may experience power-down restarts. To ensure the stability of domain controllers, power-down restart tests are necessary during testing. Existing domain controller testing methods monitor the domain controller's operational data. When the operational data meets preset restart conditions, a power-down restart event is triggered to simulate a power-down restart. The success of the restart is determined by collecting data from the domain controller after the power-down and after the restart. Although this method can detect whether the domain controller can execute a power-down restart event, it increases the amount of data during testing because it relies on analyzing the domain controller's operational data to determine whether a power-down restart event should be triggered. Furthermore, it requires further analysis of the domain controller's operational data after the power-down, which increases the amount of data involved in the test and can cause erroneous frames in the operational data, thus affecting the accuracy of the test results and making it difficult to ensure the safety and reliability of the vehicle. Summary of the Invention
[0005] This invention provides a data processing method, apparatus, electronic device, and storage medium for a domain controller, to effectively respond to sudden power outages in the domain controller and improve the accuracy of test results.
[0006] On one hand, embodiments of the present invention provide a data processing method for a domain controller, the method being applied to a host computer, the host computer being communicatively connected to the domain controller via a first communication channel and a second communication channel, the method comprising:
[0007] A current status detection request is sent to the domain controller based on the first communication channel;
[0008] If the domain controller does not return a power-on confirmation message based on the current state detection request within a preset time period, then the reception of the domain controller's test data transmitted through the second communication channel will cease.
[0009] If a power-on confirmation message based on the current state detection request is received from the domain controller within a preset time period, the test data from the domain controller will continue to be received through the second communication channel.
[0010] On the other hand, embodiments of the present invention provide a data processing apparatus for a domain controller, the data processing apparatus for the domain controller comprising:
[0011] The Ethernet processing module is used to send a current status detection request to the domain controller based on the first communication channel;
[0012] The control module is configured to stop receiving test data from the domain controller transmitted through the second communication channel if it does not receive power-on confirmation information returned by the domain controller based on the current state detection request within a preset time period.
[0013] The data processing module is configured to continue receiving test data from the domain controller through the second communication channel if it receives power-on confirmation information returned by the domain controller based on the current state detection request within a preset time period.
[0014] On the other hand, embodiments of the present invention provide an electronic device, including a memory and a processor; the memory stores an application program, and the processor is used to run the application program in the memory to perform the operations in the data processing method of the domain controller described above.
[0015] On the other hand, embodiments of the present invention provide a storage medium storing a plurality of instructions adapted for loading by a processor to execute the steps in the data processing method of the domain controller described above.
[0016] This invention provides a data processing method, apparatus, electronic device, and storage medium for a domain controller, relating to the field of communication technology. By sending a current status detection request to the domain controller via a first communication channel, if a power-on confirmation message based on the current status detection request is not received from the domain controller within a preset time period, the reception of test data from the domain controller transmitted via a second communication channel is stopped. If a power-on confirmation message based on the current status detection request is received from the domain controller within the preset time period, the reception of test data from the domain controller continues via the second communication channel. By setting up a first and a second communication channel, when a power-off event is detected in the domain controller via the first communication channel, the collection of test data from the domain controller after a power-off can be avoided. This allows for effective response when the domain controller suddenly goes offline or loses power, thereby improving the applicability of the domain controller testing method and ensuring the reliability of test results during domain controller testing, thus guaranteeing the safety and reliability of the vehicle. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying 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.
[0018] Figure 1 This is a schematic diagram of the data processing system for a domain controller provided in an embodiment of the present invention;
[0019] Figure 2 This is a schematic diagram of the structure of another domain controller data processing system provided in an embodiment of the present invention;
[0020] Figure 3 This is a schematic diagram of the display interface view of the host computer provided in an embodiment of the present invention;
[0021] Figure 4 This is a flowchart illustrating the data processing method for a domain controller provided in an embodiment of the present invention;
[0022] Figure 5 This is a flowchart illustrating the domain controller power failure event detection method based on current state detection request provided in an embodiment of the present invention.
[0023] Figure 6 This is a flowchart illustrating the power-off restart method for a domain controller provided in an embodiment of the present invention;
[0024] Figure 7 This is a flowchart illustrating the method for receiving test data of a domain controller after power-on, as provided in an embodiment of the present invention.
[0025] Figure 8 This is a schematic diagram of the structure of the data processing device for the domain controller provided in an embodiment of the present invention;
[0026] Figure 9 This is a schematic diagram of the structure of the electronic device provided in an embodiment of the present invention. Detailed Implementation
[0027] The technical solutions of the embodiments of the present invention 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 are within the scope of protection of the present invention.
[0028] As described in the background section, domain controllers, during testing and application, are susceptible to power-down restarts due to the influence of the testing and application environments. To ensure the stability of domain controllers, power-down restart testing is necessary. Existing domain controller testing methods monitor the controller's operational data. When the data meets preset restart conditions, a power-down restart event is triggered to simulate a power-down restart. The success of the restart is determined by collecting data from the domain controller after the power outage and after the restart. While this method can detect whether the domain controller can execute... Power-down restart events are a concern, but current methods determine whether a power-down restart event is triggered by analyzing the domain controller's operational data to see if it meets preset restart conditions. This requires continued analysis of the domain controller's operational data after a power outage, increasing the amount of data required for testing. Furthermore, continuing to collect domain controller operational data after a power outage can lead to erroneous frames in the data, affecting the accuracy of test results and making it difficult to ensure the safety and reliability of the vehicle. Moreover, in practical applications, there are multiple triggering conditions for domain controller power-down events, and existing testing methods that actively trigger power-down restart events are insufficient to handle sudden power outages and restarts.
[0029] Based on this, embodiments of the present invention provide a data processing method, apparatus, electronic device, and storage medium for a domain controller, relating to the field of communication technology. The method involves sending a remote login request to the domain controller via a first communication channel at preset time intervals. If no confirmation is received from the domain controller within the preset time, the reception of test data transmitted via a second communication channel is stopped. If a confirmation is received from the domain controller within the preset time, the reception of test data from the domain controller continues via the second communication channel. This effectively addresses situations where the domain controller suddenly goes offline or loses power, thereby improving the applicability of the domain controller testing method. Furthermore, by setting up a first and a second communication channel, when a power failure event is detected by the first communication channel, disconnecting the second communication channel avoids collecting test data from the domain controller after the power failure, ensuring the reliability of test results during domain controller testing, and thus guaranteeing the safety and reliability of the vehicle.
[0030] like Figure 1 As shown, Figure 1 This is a schematic diagram of the data processing system for a domain controller provided in an embodiment of the present invention. The data processing system includes a domain controller, a load cell, and a host computer. The domain controller and the load cell can be placed in the same test environment, which can be an electromagnetic compatibility (EMC) test environment. The load cell is positioned between the domain controller and the host computer, providing input signals and load to the domain controller and feeding back the output signals of the domain controller during the test process to the host computer. The host computer analyzes the received output signals, determines the test results of the domain controller, and displays the received output signals and test results.
[0031] Optionally, the host computer can be an electronic device, such as a computer, industrial computer, server, etc.
[0032] In some implementations, such as Figure 1 As shown, the host computer communicates with the domain controller via a first communication channel, and the load bank communicates with the domain controller via a second communication channel. The host computer is also connected to the load bank via the second communication channel. The first communication channel is used to determine if the domain controller has experienced a power failure by sending a remote login request to the domain controller, and the second communication channel is used to receive output signals from the domain controller. Optionally, the first communication channel can be Ethernet, such as automotive Ethernet; the second communication channel can be a fieldbus, such as CAN bus or FLEXREY bus.
[0033] In some implementations, considering the practical application also requires the acquisition of images of the driving environment and the interior environment, the data processing system of the domain controller provided in this embodiment of the invention is also equipped with a video transmission network, such as... Figure 1As shown, an industrial control computer (ICC) is configured between the domain controller and the host computer. The ICC is connected to both the domain controller and the host computer via a video transmission network. The ICC receives and stores video images transmitted from the domain controller and responds to requests from the host computer by transmitting the stored video images back to the host computer. During the domain controller's testing process, the domain controller performs a streaming operation, transmitting the video images from the testing process to the ICC for storage via the video transmission network. The host computer accesses the ICC via the video transmission network to retrieve the video images from the ICC. Optionally, the video transmission network can be a wired network, wireless network, fiber optic network, telecom network, intranet, Internet, local area network (LAN), wide area network (WAN), wireless local area network (WLAN), metropolitan area network (MAN), wide area network (WAN), public switched telephone network (PSTN), Bluetooth network, ZigBee network, or near field communication (NFC) network, or any combination thereof.
[0034] In some implementations, considering the long distance between the domain controller, load bank, and host computer, and the unsuitability of communication channels such as fieldbus and vehicle Ethernet for long-distance transmission, this embodiment of the invention also includes a signal box between the load bank and the host computer to facilitate the transmission and conversion of the domain controller's output signals. This signal box is used for signal conversion and signal transmission. The conversion can be either a communication protocol conversion or a data format conversion.
[0035] like Figure 1 As shown, the signal box is connected to the domain controller via an in-vehicle Ethernet communication connection, and to the host computer via a first communication channel. During the test, the signal box converts the data output from the domain controller transmitted via the in-vehicle Ethernet, and transmits the converted data to the host computer via the first communication channel. It also receives remote login requests from the host computer via the first communication channel, converts the remote login requests, and transmits the converted remote login requests to the domain controller via the in-vehicle Ethernet network. Optionally, the first communication channel can be an Ethernet network.
[0036] like Figure 1As shown, the signal box and load box are connected via fieldbus communication, and the signal box and host computer are connected via a second communication channel. During the test, the signal box receives the output signal from the domain controller sent by the load box via the fieldbus, converts the received output signal, and transmits the converted output signal to the host computer via the second communication channel. The second communication channel can be a wired network, such as Ethernet or fiber optic, or a wireless network, such as a Wide Area Network (WAN), Wireless Local Area Network (WLAN), Bluetooth, ZigBee, or Near Field Communication (NFC) network, or any combination thereof.
[0037] Optionally, to facilitate data transmission, a switch can be installed on the second communication channel. The signal box converts the output signals of the domain controller transmitted via the fieldbus and then transmits the converted output signals to the host computer through the switch. Optionally, the industrial control computer can also communicate with the host computer through the switch.
[0038] Optional, such as Figure 2 As shown, Figure 2 This is a schematic diagram of another domain controller data processing system provided in an embodiment of the present invention. The fieldbus includes a CAN bus and a FLEXREY bus. The signal box is equipped with an Ethernet conversion unit, a CAN conversion unit, and a FLEXREY conversion unit. For example, the Ethernet conversion unit converts the vehicle Ethernet data received by the signal box and transmits the converted data to the host computer through a first communication channel; the CAN conversion unit converts the domain controller output signal received by the signal box and transmitted via the CAN bus, and transmits the converted CAN bus output signal to the host computer through a switch; the FLEXREY conversion unit converts the domain controller output signal received by the signal box and transmitted via the FLEXREY bus, and transmits the converted FLEXREY bus output signal to the host computer through a switch.
[0039] In some implementations, considering that continuing to receive the domain controller's output signal after the domain controller is powered off would cause inaccurate test results, it is necessary to stop receiving the domain controller's output signal transmitted through the second communication channel when a power failure event of the domain controller is detected through the first communication channel.
[0040] Optionally, to facilitate stopping the receiving of output signals from the domain controller, a signal processing unit can be installed in the signal box, such as... Figure 2As shown, the CAN conversion unit and the FLEXREY conversion unit are connected to the switch through the signal processing unit. When the host computer detects a power failure event in the domain controller, it sends a data stop receiving command to the data processing unit in the signal box. The data processing unit executes the data stop receiving command, stopping the operation of the CAN conversion unit and the FLEXREY conversion unit, thereby stopping the host computer from receiving the output signal of the domain controller transmitted through the second communication channel. When the host computer detects a restart event in the domain controller, it sends a data restart command to the data processing unit. The data processing unit executes the data restart command, restarting the CAN conversion unit and the FLEXREY conversion unit, and the host computer resumes receiving the output signal of the domain controller through the second communication channel.
[0041] Optionally, to facilitate stopping the reception of output signals from the domain controller, when the communication processing module on the host computer detects a power failure event in the domain controller, it stops receiving output signals from the domain controller by stopping the data processing module running on the host computer. The data processing module receives the domain controller's output signals, processes the received signals to obtain test results, and the communication processing module determines whether a power failure or power-on event has occurred in the domain controller by sending current status detection requests, query requests, and remote login requests to the domain controller. It also determines the signal value and bandwidth of the first communication channel based on the traffic flow of the first communication channel.
[0042] For example, such as Figure 2 As shown, the following example illustrates the process: the data processing module includes a CAN processing module, a FLEXREY processing module, and a video processing module; the communication processing module is an Ethernet processing module. Figure 2 As shown, the Ethernet processing module processes the received vehicle Ethernet data to obtain Ethernet test results, determines whether a power failure event has occurred in the domain controller, and determines whether a power-on event has occurred after detecting a power failure event in the domain controller. The Ethernet test results are then displayed on the host computer's screen. The FLEXREY processing module processes the output signals of the domain controller transmitted via the FLEXREY bus in the second communication channel to obtain FLEXREY signal test results, which are also displayed on the host computer's screen. The CAN processing module processes the output signals of the domain controller transmitted via the CAN bus in the second communication channel to obtain CAN signal test results, which are also displayed on the host computer's screen. The video processing module accesses the industrial control computer via the video transmission network, acquires video images from the industrial control computer, and displays the video images on the host computer's display interface.
[0043] For example, such as Figure 3 As shown, Figure 3 This is a schematic diagram of the display interface view of the host computer provided in an embodiment of the present invention. The display interface view of the host computer shown includes a module status partition, a CAN signal test result partition, a FLEXREY signal test result partition, a video image test result partition, and voltage partitions and Ethernet partitions for the domain controller. The module status partition displays the operating status of the CAN processing module, the FLEXREY processing module, and the video processing module, respectively. The CAN signal test result partition displays the operating status of the CAN processing module and the test results of the CAN signal. The FLEXREY signal test result partition displays the operating status of the FLEXREY processing module and the test results of the FLEXREY signal. The video image test result partition displays the operating status of the video processing module and a video image display button. When the host computer detects the trigger operation of the video image display button, the video image corresponding to the video image display button is displayed on the host computer's display interface view. The Ethernet partition displays the test results of the Ethernet network displayed by the domain controller.
[0044] Optionally, when the host computer detects a power failure event in the domain controller, it controls the CAN processing module, FLEXREY processing module, and video processing module in the domain controller to stop operating, so as to stop receiving the output signals of the domain controller transmitted through the second communication channel. It also uses the Ethernet processing module to detect whether the domain controller has a power-on event after the power failure event. If a power-on event is detected, it controls the CAN processing module, FLEXREY processing module, and video processing module in the domain controller to restart, so as to resume receiving the output signals of the domain controller transmitted through the second communication channel.
[0045] based on Figure 1 and Figure 2 The data processing system of the domain controller shown in the present invention provides a data processing method for the domain controller, which is applied to... Figure 1 and Figure 2 The host computer in the data processing system of the domain controller shown is, for example... Figure 4 As shown, Figure 4 This is a schematic flowchart of a data processing method for a domain controller provided in an embodiment of the present invention. The data processing method for the domain controller shown includes at least steps 210 to 230:
[0046] Step 210: Send a current status detection request to the domain controller based on the first communication channel.
[0047] The current status detection request is used to query whether a power failure event has occurred in the domain controller. The domain controller refers to the onboard controller within the vehicle, including but not limited to the vehicle control domain controller, intelligent driving domain controller, and intelligent cockpit domain controller.
[0048] In some implementations, a current status detection request can be sent to the domain controller via the first communication channel at preset intervals. However, this embodiment of the invention does not specifically limit the preset time period; it can be set according to the actual application scenario. For example, the preset time period could be 1 minute, 10 minutes, 30 minutes, etc.
[0049] In some implementations, considering that the domain controller may experience a power outage during the testing and control process due to the influence of the test environment, the host computer can periodically send remote login requests to the domain controller to facilitate timely detection of whether a power outage has occurred. If the domain controller does not experience a power outage, it responds to the remote login request, obtains the verification information in the request, verifies the information, and if the verification is successful, executes the remote login event and sends a login success confirmation message to the host computer. If the verification fails, it does not execute the remote login event and sends a login failure confirmation message to the host computer. If the domain controller experiences a power outage, it will not be able to respond to the remote login request. Therefore, the presence or absence of a power outage can be determined by checking whether the domain controller receives a confirmation message based on the remote login request.
[0050] Therefore, a current status detection request can be sent to the domain controller by sending a remote login request. The remote login request is used to request remote login to the domain controller. Optionally, the host computer can remotely log in to the domain controller via SSH technology. Optionally, the remote login request includes authentication information.
[0051] Optionally, when verifying the verification information, the verification information in the remote login request can be compared with the pre-stored baseline verification information. If the verification information matches the baseline verification information, the verification is deemed successful; if the verification information does not match the baseline verification information, the verification is deemed unsuccessful.
[0052] Optionally, considering data transmission time and signal box data conversion time, after the host computer sends a remote login request to the domain controller, it waits for a preset time. By determining whether it receives confirmation information from the domain controller based on the remote login request within the preset time, it can determine whether a power outage event has occurred in the domain controller. The preset time can be 1 second, 1 minute, 5 minutes, etc.
[0053] Step 220: If no power-on confirmation information is received from the domain controller based on the current status detection request within the preset time period, then stop receiving the test data of the domain controller transmitted through the second communication channel.
[0054] The test data includes the output signals of the domain controller, such as current, voltage, and physical values of the signals. The physical values of the signals can be the sensing parameters of the sensors in the load box, including but not limited to temperature, speed, humidity, and distance.
[0055] In some implementations, if a power-on confirmation message based on a current status detection request is not received from the domain controller within a preset time period, it indicates that a power-off event has occurred in the domain controller. To ensure the reliability of the test data and thus the accuracy of the test results, the reception of the domain controller's test data transmitted through the second communication channel is stopped.
[0056] Optionally, the host computer can stop receiving test data from the domain controller transmitted through the second communication channel by disconnecting the communication connection between the host computer and the switch.
[0057] Optionally, the host computer can stop receiving test data from the domain controller transmitted through the second communication channel by sending a data stop receiving command to the signal box, thereby disconnecting the communication connection between the signal box and the load box.
[0058] Optionally, the host computer can send a data stop receiving command to the signal box to stop the operation of the CAN conversion unit and FLEXREY conversion unit, thereby stopping the reception of test data from the domain controller transmitted through the second communication channel.
[0059] Optionally, the host computer can discard the test data of the domain controller received from the second communication channel. Optionally, the host computer can send a data stop receiving command to the signal box to stop the operation of the signal processing unit, thereby stopping the reception of test data of the domain controller transmitted through the second communication channel.
[0060] In some implementations, such as Figure 2 As shown, the host computer is equipped with a data processing module. This module receives test data from the domain controller and processes the received data to obtain test results. Data processing includes, but is not limited to, data statistics and data comparison. Data statistics include, for example, calculating maximum, minimum, and average values, signal strength, signal bandwidth, and the range of transmitted data.
[0061] Optionally, the reception of test data from the domain controller transmitted via the second communication channel can be stopped by disabling the data processing module.
[0062] Step 230: If a power-on confirmation message based on a current status detection request is received from the domain controller within a preset time period, then the test data from the domain controller will continue to be received through the second communication channel.
[0063] In some implementations, if an acknowledgment message is received from the domain controller within a preset time period, indicating that the domain controller has not experienced a power failure, the test data from the domain controller can continue to be received through the second communication channel.
[0064] Optionally, upon receiving test data from the domain controller, the test data can be processed to obtain the test results for the domain controller. For example, the received test data can be compared with pre-stored benchmark test data requirements. If the test data meets the benchmark test data requirements, the test result of the domain controller is determined to be normal; if the test data does not meet the benchmark test data requirements, the test result of the domain controller is determined to be abnormal. For instance, the difference between the maximum and minimum values of the signal in the test data can be obtained, and this difference can be compared with a preset difference threshold. If the difference is less than or equal to the preset difference threshold, the test data is determined to meet the benchmark test data requirements; if the difference is greater than the preset difference threshold, the test data is determined to not meet the benchmark test data requirements. Alternatively, the physical value of the signal in the test data can be obtained. If the physical value of the signal is 0, the test data is determined to not meet the benchmark test data requirements; if the physical value of the signal is not 0, the test data is determined to meet the benchmark test data requirements. For example, it could also involve parsing the test data to determine if valid data exists. If valid data exists, the test data is determined to meet the benchmark test data requirements; if valid data does not exist, the test data is determined to not meet the benchmark test data requirements.
[0065] Optionally, the test data can be parsed to determine whether valid data exists by detecting whether the test data contains a target field and whether the corresponding data for the target field is empty when it exists. The target field includes, but is not limited to, fields representing current data, fields representing voltage data, fields representing signal values, and fields representing the physical values of signals.
[0066] For example, taking the target field as a field representing the physical value of a signal as an example, it can be used to detect whether there is a field representing the physical value of a signal in the test data. If there is a field representing the physical value of a signal in the test data, it is determined that there is no valid data in the test data. If there is a field representing the physical value of a signal in the test data, it is determined whether the physical value of the signal corresponding to the field representing the physical value of the signal in the test data is empty. If the physical value of the signal corresponding to the field representing the physical value of the signal in the test data is empty, it is determined that there is no valid data in the test data. If the physical value of the signal corresponding to the field representing the physical value of the signal in the test data is not empty, it is determined that there is valid data in the test data.
[0067] In some implementations, considering that the test data includes multiple types of data, and for the purpose of facilitating data processing of different test data, the second communication channel includes multiple sub-channels, each of which transmits one type of test data. For example, taking the test data as including physical values of current, voltage, and signal, the second communication channel can include sub-channel A, sub-channel B, and sub-channel C. Sub-channel A transmits the current output by the domain controller, sub-channel B transmits the voltage output by the domain controller, and sub-channel C transmits the physical values output by the domain controller.
[0068] Optionally, when processing the test data, the test data of each sub-channel can be parsed to determine whether there is valid data transmitted by the sub-channel, and the signal strength and bandwidth of the sub-channel can be detected. If there is a sub-channel where the test data transmitted does not contain valid data, and / or the signal strength and bandwidth of the sub-channel do not meet the preset test data requirements of the target sub-channel, then the test result of the domain controller is determined to be abnormal. If there is valid data transmitted by each sub-channel, and the signal strength and bandwidth of each sub-channel meet the preset test data requirements, then the test result of the domain controller is determined to be normal.
[0069] In some implementations, after obtaining the test data of the domain controller, the operating status and operating data of the domain controller can be determined based on the test data. Based on the operating status and operating data, it can be determined whether the domain controller has any anomalies, and if an anomaly is found, an alarm message is output. The operating status characterizes whether the domain controller is working, and includes a working state and a paused state. For example, when valid data is present in the test data, the domain controller's operating status is determined to be working; when no valid data is present, the domain controller's operating status is determined to be paused. The operating data includes the domain controller's output signals and statistical data of the output signals, including but not limited to the maximum value, minimum value, and bandwidth of the signal.
[0070] Specifically, the data processing method for the test data includes steps a1 to a3:
[0071] Step a1: Determine the operating status and operating data of the domain controller based on the test data of the domain controller.
[0072] In some implementations, taking the second communication channel as an example, which includes multiple sub-channels and each sub-channel transmits a type of test data, the operating status of the domain controller can be obtained by detecting whether test data is transmitted in each sub-channel and whether the test data transmitted in each sub-channel contains valid data.
[0073] Optionally, for each sub-channel, if no test data is detected in the sub-channel, it is determined that the processing unit corresponding to the sub-channel in the domain controller is in a paused state. If test data is detected in the sub-channel and the test data transmitted in the sub-channel contains valid data, it is determined that the processing unit corresponding to the sub-channel in the domain controller is in a working state. If test data is detected in the sub-channel and the test data transmitted in the sub-channel does not contain valid data, it is determined that the processing unit corresponding to the sub-channel in the domain controller is in a paused state. The status of the processing unit corresponding to each sub-channel in the domain controller is counted to obtain the operating status of the domain controller.
[0074] In some implementations, taking the second communication channel as an example, which includes multiple sub-channels and each sub-channel transmits a type of test data, the output information in the test data transmitted by each sub-channel can be obtained, as well as the statistical data such as the signal value, signal value range, and bandwidth of each sub-channel can be detected, and the output signal and statistical data can be set as the operating data of the domain controller.
[0075] Optionally, for each sub-channel, the minimum and maximum signal values of that sub-channel are detected, and the difference between the maximum and minimum signal values is taken as the signal value range.
[0076] Step a2: Determine whether there is an anomaly in the domain controller based on the operating status and operating data.
[0077] In some implementations, the operational status of the domain controller can be determined by comparing the operational data with preset baseline operational data. If the domain controller is operational and the operational data matches the preset baseline operational data, the domain controller is determined to be operating normally. If the domain controller is paused and / or the operational data does not match the baseline operational data, the domain controller is determined to be abnormal.
[0078] Optionally, taking the second communication channel as an example, which includes multiple sub-channels and each sub-channel transmits a type of test data, if the processing unit corresponding to each sub-channel in the domain controller is in a working state, then the running state of the domain controller is determined to be in a working state. If there is a target processing unit in a paused state in the processing unit corresponding to each sub-channel in the domain controller, then the running state of the domain controller is determined to be in a paused state.
[0079] Optionally, if the running data is greater than or equal to the preset benchmark running data, then the running data is determined to match the preset benchmark running data; if the running data is less than the preset benchmark running data, then the running data is determined to not match the preset benchmark running data. For example, taking bandwidth as an example, if the bandwidth is greater than or equal to the preset benchmark bandwidth, then the bandwidth is determined to match the preset benchmark bandwidth; if the bandwidth is less than the preset benchmark bandwidth, then the bandwidth is determined to not match the preset benchmark bandwidth.
[0080] Optionally, if the operating data meets the preset benchmark operating data, then it is determined that the operating data matches the preset benchmark operating data; if the operating data does not meet the preset benchmark operating data, then it is determined that the operating data does not match the preset benchmark operating data. For example, taking signal value range as an example, if the signal value range meets the preset benchmark signal value range, then it is determined that the signal value range matches the preset benchmark signal value range; if the signal value range does not meet the preset benchmark signal value range, then it is determined that the signal value range does not match the preset benchmark signal value range.
[0081] Step a3: If the domain controller has an anomaly, an alarm message will be output.
[0082] The domain controller data processing method provided in this embodiment of the invention, by setting up a first communication channel and a second communication channel, can avoid collecting test data of the domain controller after a power failure when a power failure event is detected through the first communication channel. This can effectively respond when the domain controller suddenly goes offline or loses power, thereby improving the applicability of the domain controller testing method and ensuring the reliability of the test results in the domain controller testing, thus ensuring the safety and reliability of the vehicle.
[0083] In some optional implementations, using an electromagnetic interference (EMI) test environment, a preset pulse interference signal can be applied to the domain controller in step 210. After the preset pulse interference signal is applied to the domain controller, a current state detection request is sent to the domain controller via the first communication channel to determine whether a power failure event has occurred in the domain controller under the preset pulse interference signal environment. If no power failure event has occurred in the domain controller, the test data of the domain controller under the preset pulse interference signal environment is received through the second communication channel to obtain the test results of the domain controller and determine whether the performance of the domain controller is stable under the preset pulse interference signal environment. The pulse interference signal is used to interfere with the output signal of the domain controller and to interfere with the operation of the domain controller.
[0084] Optionally, a preset pulse interference signal can be sent to the domain controller via conducted interference or via radiated interference.
[0085] Optionally, a preset pulse interference signal can also be sent to the domain controller based on the first communication channel.
[0086] In some optional implementations, the test environment is an electromagnetic interference test environment. Operating parameters can be sent to the domain controller through the first communication channel so that the domain controller can run based on the operating parameters. After the domain controller runs, a current state detection request is sent to the domain controller through the first communication channel.
[0087] The operating parameters include operating status parameters and a preset pulse interference signal. The operating status parameters characterize the operating parameters of the domain controller, while the preset pulse interference signal is used to interfere with the operation of the domain controller.
[0088] Optionally, the operating parameters can be the parameters of the domain controller when the domain controller simulates a car accelerating, then decelerating, then accelerating again, then decelerating again, then accelerating again, repeating this cycle a preset number of times; optionally, the operating parameters can be the parameters of the domain controller when the simulated car is at a preset speed; the operating parameters can also be the parameters of the domain controller when the simulated car speed exceeds a preset speed or when the car is under emergency braking.
[0089] In some implementations, to ensure the data security of remote login and the reliability of test data, in this embodiment of the invention, when sending a remote login request to the domain controller in step 210, the host computer can request security verification from the domain controller. Upon successful security verification, a current status detection request is sent to the domain controller. Specifically, as shown... Figure 5 As shown, Figure 5This is a flowchart illustrating a domain controller power failure event detection method based on current state detection requests provided in an embodiment of the present invention. The method includes steps 211-212:
[0090] Step 211: Send an authentication request to the domain controller based on the first communication channel.
[0091] The authentication request is used to request security authentication from the domain controller. The authentication request includes the host computer's identifier and its corresponding public key. The host computer's identifier can be its IP address, MAC address, etc.
[0092] In some implementations, the host computer can obtain a pre-stored public key at preset time intervals, generate a verification request based on the pre-stored public key and the host computer's identifier, and send the verification request to the domain controller through the first communication channel.
[0093] In some implementations, when the domain controller receives an authentication request, it responds to the authentication request and retrieves the base public key corresponding to the host computer's identifier from a preset database based on the host computer's identifier in the authentication request. It compares the public key in the authentication request with the base public key. If the public key in the authentication request matches the base public key, it encrypts the pre-stored challenge information using the base public key to generate challenge ciphertext. The challenge ciphertext is then used as feedback information and returned to the host computer via the first communication channel.
[0094] Optionally, if the preset database does not contain a base public key corresponding to the identifier of the host computer, or if the public key in the verification request is inconsistent with the base public key, then a verification failure feedback message is returned to the host computer based on the first communication channel.
[0095] Step 212: If feedback information is received from the domain controller based on the verification request within a preset time period, then a current status detection request is sent to the domain controller through the first communication channel according to the feedback information.
[0096] In some implementations, if feedback information is received from the domain controller based on the verification request within a preset time period, it is determined whether the security verification has passed based on the feedback information. If the security verification passes, a current status detection request is sent to the domain controller through the first communication channel. If the security verification fails, a new verification request is generated and sent to the domain controller through the first communication channel.
[0097] In some implementations, when a current status detection request is sent to a domain controller by sending a remote login request to the domain controller, if feedback information is received from the domain controller based on the verification request within a preset time period, the security verification is determined based on the feedback information. If the security verification is successful, the feedback information is decrypted using a preset private key to obtain decryption challenge information. A remote login request is generated based on the decryption challenge information and sent to the domain controller via the first communication channel.
[0098] In some implementations, if no feedback information based on the verification request is received from the domain controller within a preset time period, indicating that a power failure event has occurred in the domain controller, the second communication channel with the domain controller is cut off to stop receiving test data from the domain controller.
[0099] In some optional implementations, after step 220, to ensure that the domain controller can continue testing, a power-on event is detected on the domain controller via the first communication channel. Upon detecting a power-on event, the domain controller is determined to restart, and test data from the restarted domain controller, transmitted via the second communication channel, is received again. Specifically, as... Figure 6 As shown, Figure 6 This is a flowchart illustrating a power-off restart method for a domain controller provided in an embodiment of the present invention. The power-off restart method shown includes steps 240-250:
[0100] Step 240: Send a query request to the domain controller via the first communication channel to determine whether a power-on event has occurred on the domain controller.
[0101] The query request is used to check whether the domain controller is powered on.
[0102] In some implementations, the query request can be a heartbeat query. For example, after step 220, a heartbeat packet is sent to the domain controller through the first communication channel at preset time intervals. If a response is received from the domain controller within the preset time, it indicates that the domain controller has restarted, and a power-on event is determined to have occurred. If no response is received from the domain controller based on the query request after the preset time, it indicates that the domain controller is still in a power-off state, and a power-on event is determined to have occurred.
[0103] In some implementations, the query request can be a remote login request. Every preset time interval, the host computer triggers a remote login request, sets the remote login request to an unqueried request, and sends a query request to the domain controller via the first communication channel. If the host computer receives confirmation information from the domain controller based on the query request within a preset time period, it indicates that the domain controller can perform remote login, i.e., the domain controller restarts, and it is determined that a power-on event has occurred in the domain controller. If the host computer does not receive confirmation information from the domain controller based on the query request within a preset time period, it indicates that the remote login to the domain controller has failed, i.e., the domain controller is still in a power-off state, and it is determined that a power-on event has not occurred in the domain controller.
[0104] In some implementations, if no power-on event occurs in the domain controller, a query request is sent to the domain controller via the first communication channel at preset time intervals, and the number of times the query request is sent is recorded. If the number of times the query request is sent is greater than or equal to a preset threshold, it indicates that the domain controller failed to restart after a power outage, and a prompt message is output to prompt the staff to restart, adjust, or adjust the domain controller's test environment. If the number of times the query request is sent is less than the preset threshold, a query request is sent to the domain controller via the first communication channel at preset time intervals.
[0105] Step 250: If a power-on event occurs on the domain controller, the test data of the domain controller after power-on is received based on the second communication channel.
[0106] In some implementations, the host computer can receive test data from the domain controller after power-on by re-establishing the communication connection between the host computer and the switch.
[0107] In some implementations, the host computer can send a data receiving command to the signal box to enable the signal box to establish a communication connection with the load box and receive test data from the domain controller after power-on.
[0108] In some implementations, the host computer can receive test data from the domain controller after it has been powered on by restarting the data processing module configured within the host computer.
[0109] In some implementations, considering that during domain controller testing, the domain controller can only send test data to the host computer after the host computer remotely logs in, and that after the domain controller restarts, the host computer's login record information is lost, this causes the host computer to fail to remotely log in to the domain controller because the domain controller lacks the host computer's corresponding base public key. Consequently, the host computer cannot receive the domain controller's test data. Therefore, after determining that a power-on event has occurred on the domain controller, the host computer needs to re-initiate the request to establish the first communication channel with the domain controller, sending the host computer's base public key and identification information to the domain controller to ensure successful remote login. Specifically, as follows... Figure 7 As shown, Figure 7 This is a flowchart illustrating a method for receiving test data from a domain controller after power-on, as provided in an embodiment of the present invention. The method for receiving test data from a domain controller after power-on includes steps 251 to 253:
[0110] Step 251 triggers a communication restart operation, re-initiating the request to establish the first communication channel with the domain controller.
[0111] The communication restart operation can be performed by disconnecting and then restarting the first communication channel with the domain controller; alternatively, it can be performed by shutting down the communication processing module in the host computer and then restarting it. The communication processing module can be an Ethernet processing module. This Ethernet processing module is used to determine whether the domain controller has experienced a power failure or power-on event by sending current status detection requests, query requests, and remote login requests to the domain controller, and to determine the signal value and bandwidth of the first communication channel based on the traffic flow of the first communication channel.
[0112] In some implementations, the host computer triggers a communication restart operation, generates a set of public and private keys, and generates an establishment request based on the public key and the host computer's identification information. Based on the first communication channel, it re-initiates the establishment request with the domain controller on the first communication channel. The domain controller responds by receiving the establishment request, obtains the public key in the establishment request as the base public key, associates and stores the base public key with the host computer's identification information in the establishment request, generates login record information, and returns establishment confirmation information to the host computer based on the first communication channel.
[0113] Step 252: Send a remote login request to the powered-on domain controller based on the newly established first communication channel.
[0114] In some implementations, when the host computer receives the establishment confirmation information returned by the domain controller based on the establishment request, it sends a remote login request to the restarted domain controller through the first communication channel according to steps 211-212 above.
[0115] Step 253: If a login confirmation message is received from the domain controller based on the remote login request within a preset time period, then the test data of the domain controller after power-on is received based on the second communication channel.
[0116] In some implementations, the host computer receives the test data from the restarted domain controller and processes the test data according to steps a1 to a3 to determine whether there is any abnormality in the operation of the domain controller, and outputs alarm information when there is an abnormality in the domain controller.
[0117] In some optional implementations, considering that the frequency of power outages caused by the severity of the domain controller's test environment varies, in step 210, for different test environments, if the host computer uses a fixed query frequency to query whether a power outage event has occurred in the domain controller, if the frequency is set too low, it may not be able to detect and respond to the power outage event in a timely manner, thereby reducing the reliability of the test data and thus reducing the accuracy of the test results. If the frequency is set too high, it will increase the data processing load of the host computer. Based on this, in order to detect and respond to the power outage event of the domain controller in a timely manner without increasing the data processing load of the host computer, the query frequency of the host computer can be determined based on the severity of the test environment before step 210 in this embodiment of the invention.
[0118] The severity of the test environment is used to quantify the harshness of the test environment. In some implementations, the severity of the test environment can be determined based on one or more of the following: the interference intensity of the pulse interference signal, temperature, humidity, and air pressure. The interference intensity of the pulse interference signal can be its amplitude, signal strength, etc.
[0119] Optionally, the system can collect data on the interference intensity, temperature, humidity, and air pressure of the pulse interference signal in the test environment. Based on the interference intensity, a first severity level of the test environment is determined; based on the temperature, a second severity level; based on the humidity, a third severity level; and based on the air pressure, a fourth severity level. The sum, maximum value, or average of the first, second, third, and fourth severity levels is set as the severity level of the test environment. The average value can be an arithmetic mean or a weighted average.
[0120] For example, a first severity level of the test environment can be determined based on the interference intensity of the pulse interference signal in the test environment and the preset mapping data between interference intensity and severity level; a second severity level of the test environment can be determined based on the temperature of the test environment and the preset mapping data between temperature and severity level; a third severity level of the test environment can be determined based on the humidity of the test environment and the preset mapping data between humidity and severity level; and a fourth severity level of the test environment can be determined based on the air pressure of the test environment and the preset mapping data between air pressure and severity level. The preset mapping data between interference intensity and severity level includes interference intensity ranges for various pulse interference signals and the severity level corresponding to each pulse interference signal intensity range; the preset mapping data between temperature and severity level includes various temperature ranges and the severity level corresponding to each temperature range; the preset mapping data between humidity and severity level includes various humidity ranges and the severity level corresponding to each humidity range; and the preset mapping data between air pressure and severity level includes various air pressure ranges and the severity level corresponding to each air pressure range.
[0121] Optionally, the interference intensity, temperature, humidity, and air pressure of the pulse interference signal in the test environment can be collected, and preset weights corresponding to each of the interference intensity, temperature, humidity, and air pressure can be obtained. A weighted sum of the interference intensity, temperature, humidity, and air pressure, along with their respective preset weights, can be calculated, and this weighted sum is set as the severity level of the test environment. It should be noted that this embodiment of the invention does not specifically set the preset weights corresponding to the interference intensity, temperature, humidity, and air pressure; these can be set according to the actual application scenario.
[0122] In some implementations, the host computer can obtain the target query frequency based on the severity of the test environment, and obtain the preset period duration based on the target query frequency.
[0123] Optionally, a preset mapping data between severity and frequency can be queried based on the severity of the test environment. The frequency corresponding to the severity range of the test environment within this mapping data is then determined. This frequency is set as the target query frequency, and a preset period is obtained by using the target frequency. The host computer sends a current status detection request to the domain controller at preset period intervals to determine if a power failure event has occurred. For example, the preset period can be obtained by dividing the target query frequency by 1. The preset mapping data between severity and frequency includes multiple severity ranges and the frequencies corresponding to each severity range.
[0124] Optionally, the severity of the test environment can be input into a preset frequency estimation model to estimate the query probability and obtain the target query frequency. The preset frequency estimation model can be a mathematical model, such as a linear function or exponential function; the preset probability estimation model can also be a machine learning model, such as a logistic regression model.
[0125] In some implementations, considering that the severity of the test environment is not fixed, the interference intensity of the pulse interference signal, ambient temperature, ambient humidity, and atmospheric pressure in the test environment may be adjusted during the test. This will affect the severity of the test environment. If the target query frequency determined before step 210 is still used during the test, the power failure event cannot be detected and responded to in a timely manner, or the data processing load of the host computer will increase. Therefore, in the test environment, at preset time intervals, the host computer collects the current interference intensity, current temperature, current humidity, and current air pressure of the pulse interference signal in the test environment, and determines the current interference intensity based on the current atmospheric pressure. The intensity, current temperature, current humidity, and current air pressure determine the current severity of the test environment. The historical severity of the test environment is obtained. If the difference between the historical severity and the current severity is greater than or equal to a preset difference threshold, a new target query frequency is determined based on the current severity of the test environment, and the preset cycle duration is updated based on the new target query frequency. The current severity of the test environment is then set to the new historical severity. If the difference between the historical severity and the current severity is less than the preset difference threshold, a current status detection request is sent to the domain controller according to the preset cycle duration to determine whether a power failure event has occurred in the domain controller.
[0126] The domain controller data processing method provided in this embodiment of the invention, by setting up a first communication channel and a second communication channel, can avoid collecting the domain controller's test data after the power failure by stopping the reception of the domain controller's test data transmitted through the second communication channel when a power failure event is detected through the first communication channel. This can effectively respond when the domain controller suddenly goes offline or loses power, thereby improving the applicability of the domain controller testing method and ensuring the reliability of the test results in the domain controller testing, thus ensuring the safety and reliability of the vehicle.
[0127] To better implement the domain controller data processing method provided in the embodiments of the present invention, the embodiments of the present invention provide a domain controller data processing apparatus based on the domain controller data processing method, specifically, as follows: Figure 8 As shown, Figure 8 This is a schematic diagram of the data processing device for a domain controller provided in an embodiment of the present invention. The data processing device for the domain controller shown includes:
[0128] The Ethernet processing module is used to send current status detection requests to the domain controller based on the first communication channel;
[0129] The control module is used to stop receiving test data from the domain controller transmitted through the second communication channel if it does not receive power-on confirmation information from the domain controller based on the current status detection request within a preset time period.
[0130] The data processing module is used to continue receiving test data from the domain controller through the second communication channel if it receives a power-on confirmation message from the domain controller based on the current status detection request within a preset time period.
[0131] In some implementations, the Ethernet processing module is used for:
[0132] An authentication request is sent to the domain controller via the first communication channel; the authentication request is used to request security authentication from the domain controller.
[0133] If feedback information based on the verification request is received from the domain controller within a preset time period, then a current status detection request is sent to the domain controller through the first communication channel according to the feedback information.
[0134] In some implementations, the Ethernet processing module is used for:
[0135] If no feedback information is received from the domain controller based on the verification request within the preset time period, the reception of test data from the domain controller transmitted through the second communication channel will be stopped.
[0136] In some implementations, the control module is used for:
[0137] A query request is sent to the domain controller via the first communication channel to determine whether a power-on event has occurred on the domain controller; the query request is used to check whether the domain controller is powered on.
[0138] If a power-on event occurs on the domain controller, test data from the domain controller after power-on is received via the second communication channel.
[0139] In some implementations, the control module is used for:
[0140] Trigger a communication restart operation to re-initiate the request to establish the first communication channel with the domain controller;
[0141] A remote login request is sent to the domain controller after power-on based on the newly established first communication channel;
[0142] If a login confirmation message is received from the domain controller based on the remote login request within a preset time period, the test data of the domain controller after power-on is received through the second communication channel.
[0143] In some implementations, the data processing module is used for:
[0144] Based on the test data of the domain controller, determine the operating status of the domain controller and the operating data of the domain controller;
[0145] Determine if there are any anomalies in the domain controller based on its operating status and operating data;
[0146] If the domain controller is malfunctioning, an alarm message will be output.
[0147] In some implementations, the Ethernet processing module is used for:
[0148] Operating parameters are sent to the domain controller via the first communication channel so that the domain controller can operate based on the operating parameters. The operating parameters include operating status parameters and a preset pulse interference signal. The operating status parameters are used to characterize the operating parameters of the domain controller, and the preset pulse interference signal is used to interfere with the operation of the domain controller.
[0149] A current status detection request is sent to the domain controller via the first communication channel.
[0150] The domain controller data processing device provided in this embodiment of the invention, by setting up a first communication channel and a second communication channel, can avoid collecting test data of the domain controller after power failure by cutting off the second communication channel when a power failure event is detected by the first communication channel. In this way, it can effectively respond when the domain controller suddenly goes offline or loses power, thereby improving the applicability of the domain controller test method and ensuring the reliability of the test results in the domain controller test, thus ensuring the safety and reliability of the vehicle.
[0151] This invention also provides an electronic device, such as... Figure 9 As shown, it illustrates a structural schematic diagram of the electronic device involved in an embodiment of the present invention, specifically:
[0152] The electronic device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will understand that... Figure 9 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0153] The processor 401 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 402, and by calling data stored in the memory 402, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 401.
[0154] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0155] The electronic device also includes a power supply 403 that supplies power to the various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 403 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0156] The electronic device may also include an input unit 404, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0157] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 401 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 402 according to the following instructions, and the processor 401 runs the applications stored in the memory 402 to realize various functions, as follows:
[0158] A current status detection request is sent to the domain controller via the first communication channel;
[0159] If a power-on confirmation message based on a current status detection request is not received from the domain controller within a preset time period, the reception of test data from the domain controller transmitted through the second communication channel will be stopped.
[0160] If a power-on confirmation message based on a current status detection request is received from the domain controller within a preset time period, the test data from the domain controller will continue to be received through the second communication channel.
[0161] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0162] To this end, embodiments of the present invention provide a storage medium storing a plurality of instructions that can be loaded by a processor to execute steps in any of the data processing methods for a domain controller provided in embodiments of the present invention. For example, the instructions can execute the following steps:
[0163] A current status detection request is sent to the domain controller via the first communication channel;
[0164] If a power-on confirmation message based on a current status detection request is not received from the domain controller within a preset time period, the reception of test data from the domain controller transmitted through the second communication channel will be stopped.
[0165] If a power-on confirmation message based on a current status detection request is received from the domain controller within a preset time period, the test data from the domain controller will continue to be received through the second communication channel.
[0166] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0167] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0168] Since the instructions stored in the storage medium can execute the steps in any of the domain controller data processing methods provided in the embodiments of the present invention, the beneficial effects that any of the domain controller data processing methods provided in the embodiments of the present invention can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.
[0169] The data processing method, apparatus, electronic device, and storage medium for a domain controller provided by the embodiments of the present invention have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A data processing method for a domain controller, the method being applied to a host computer, characterized in that, The domain controller's data processing system includes the domain controller, load bank, signal bank, and host computer. A load bank is installed between the domain controller and the host computer, and a signal bank is installed between the load bank and the host computer. The signal bank is connected to the domain controller via vehicle Ethernet communication, and the signal bank is connected to the load bank via fieldbus communication. The fieldbus includes CAN bus and FLEXREY bus. The signal box includes an Ethernet conversion unit, a CAN conversion unit, a FLEXREY conversion unit, and a signal processing unit. The Ethernet conversion unit is used to convert the vehicle Ethernet data received by the signal box and transmit the converted data to the host computer through the first communication channel. The CAN conversion unit and the FLEXREY conversion unit are respectively connected to the switch through the signal processing unit, and the switch is connected to the host computer through the second communication channel. The host computer includes a data processing module and a communication processing module. The data processing module includes a CAN processing module and a FLEXREY processing module, and the communication processing module is an Ethernet processing module. The Ethernet processing module is used to process the received vehicle Ethernet data, obtain the Ethernet test results, determine whether the domain controller has experienced a power failure event, and determine whether the domain controller has experienced a power-on event after detecting a power failure event. The first communication channel is used by the host computer to send a remote login request to the domain controller. By determining whether the domain controller has received confirmation information based on the remote login request, it is determined whether the domain controller has experienced a power failure event. The second communication channel is used to receive test data from the domain controller. When the host computer detects a power failure event in the domain controller, it stops the operation of the CAN conversion unit and the FLEXREY conversion unit, thereby stopping the host computer from receiving test data from the domain controller transmitted through the second communication channel; when the host computer detects a restart event in the domain controller, it restarts the CAN conversion unit and the FLEXREY conversion unit, and the host computer resumes receiving test data from the domain controller through the second communication channel. The method includes: A current status detection request is sent to the domain controller via the first communication channel; a current status detection request is also sent to the domain controller via a remote login request; the current status detection request is used to query whether a power outage event has occurred in the domain controller. If the domain controller does not return a power-on confirmation message based on the current state detection request within a preset time period, then the reception of the domain controller's test data transmitted through the second communication channel will cease. If a power-on confirmation message based on the current state detection request is received from the domain controller within a preset time period, the test data from the domain controller will continue to be received through the second communication channel.
2. The data processing method for a domain controller as described in claim 1, characterized in that, Sending a current status detection request to the domain controller based on the first communication channel includes: An authentication request is sent to the domain controller via the first communication channel; the authentication request is used to request security authentication from the domain controller. If feedback information is received from the domain controller based on the verification request within a preset time period, then a current status detection request is sent to the domain controller through the first communication channel according to the feedback information.
3. The data processing method for a domain controller as described in claim 2, characterized in that, After sending the authentication request to the domain controller based on the first communication channel, the method further includes: If no feedback information is received from the domain controller based on the verification request within a preset time period, the reception of test data from the domain controller transmitted through the second communication channel will cease.
4. The data processing method for a domain controller as described in claim 1, characterized in that, After ceasing to receive test data from the domain controller transmitted via the second communication channel, the method includes: A query request is sent to the domain controller via the first communication channel to determine whether the domain controller has experienced a power-on event; the query request is used to query whether the domain controller is powered on. If a power-on event occurs in the domain controller, test data of the domain controller after power-on is received via the second communication channel.
5. The data processing method for a domain controller as described in claim 4, characterized in that, The method of receiving test data from the domain controller after power-on based on the second communication channel includes: Trigger a communication restart operation to re-initiate the request to establish the first communication channel with the domain controller; A remote login request is sent to the domain controller after power-on based on the newly established first communication channel; If a login confirmation message is received from the domain controller based on the remote login request within the preset time period, then the test data of the domain controller after power-on is received based on the second communication channel.
6. The data processing method for a domain controller as described in claim 1, characterized in that, After continuing to receive test data from the domain controller through the second communication channel, the method includes: Based on the test data of the domain controller, determine the operating status of the domain controller and the operating data of the domain controller; Determine whether the domain controller is abnormal based on the operating status and the operating data; If the domain controller malfunctions, an alarm message will be output.
7. The data processing method for a domain controller as described in any one of claims 1 to 6, characterized in that, Sending a current status detection request to the domain controller based on the first communication channel includes: Operating parameters are sent to the domain controller via the first communication channel so that the domain controller operates based on the operating parameters; the operating parameters include operating status parameters and a preset pulse interference signal, the operating status parameters are used to characterize the operating parameters of the domain controller, and the preset pulse interference signal is used to interfere with the operation of the domain controller; A current status detection request is sent to the domain controller based on the first communication channel.
8. A data processing device for a domain controller, which is installed in a host computer, characterized in that, The domain controller's data processing system includes the domain controller, load bank, signal bank, and host computer. A load bank is installed between the domain controller and the host computer, and a signal bank is installed between the load bank and the host computer. The signal bank is connected to the domain controller via vehicle Ethernet communication, and the signal bank is connected to the load bank via fieldbus communication. The fieldbus includes CAN bus and FLEXREY bus. The signal box includes an Ethernet conversion unit, a CAN conversion unit, a FLEXREY conversion unit, and a signal processing unit. The Ethernet conversion unit is used to convert the vehicle Ethernet data received by the signal box and transmit the converted data to the host computer through the first communication channel. The CAN conversion unit and the FLEXREY conversion unit are respectively connected to the switch through the signal processing unit, and the switch is connected to the host computer through the second communication channel. The host computer includes a data processing module and a communication processing module. The data processing module includes a CAN processing module and a FLEXREY processing module, and the communication processing module is an Ethernet processing module. The Ethernet processing module is used to process the received vehicle Ethernet data, obtain the Ethernet test results, determine whether the domain controller has experienced a power failure event, and determine whether the domain controller has experienced a power-on event after detecting a power failure event. The first communication channel is used by the host computer to send a remote login request to the domain controller. By determining whether the domain controller has received confirmation information based on the remote login request, it is determined whether the domain controller has experienced a power failure event. The second communication channel is used to receive test data from the domain controller. When the host computer detects a power failure event in the domain controller, it stops the operation of the CAN conversion unit and the FLEXREY conversion unit, thereby stopping the host computer from receiving test data from the domain controller transmitted through the second communication channel; when the host computer detects a restart event in the domain controller, it restarts the CAN conversion unit and the FLEXREY conversion unit, and the host computer resumes receiving test data from the domain controller through the second communication channel. The data processing device of the domain controller includes: The Ethernet processing module is used to send a current status detection request to the domain controller based on the first communication channel; and to send a current status detection request to the domain controller by sending a remote login request; the current status monitoring request is used to query whether a power outage event has occurred in the domain controller. The control module is configured to stop receiving test data from the domain controller transmitted through the second communication channel if it does not receive power-on confirmation information returned by the domain controller based on the current state detection request within a preset time period. The data processing module is configured to continue receiving test data from the domain controller through the second communication channel if it receives power-on confirmation information returned by the domain controller based on the current state detection request within a preset time period.
9. An electronic device, characterized in that, It includes a memory and a processor; the memory stores an application program, and the processor runs the application program within the memory to perform the operations in the data processing method for a domain controller according to any one of claims 1 to 7.
10. A storage medium, characterized in that, The storage medium stores a plurality of instructions adapted for loading by a processor to execute the steps of the data processing method for a domain controller according to any one of claims 1 to 7.