Vehicle-mounted network signal preprocessing method and device, electronic equipment and storage medium

By deploying a signal preprocessing module at the controller application layer, receiving and preprocessing the on-board network signals and diagnostic information, and decoupling the communication fault diagnosis module, the problem of insufficient signal processing efficiency and universality of the on-board network is solved, and more efficient signals are achieved Processing and function adaptation.

CN119065290APending Publication Date: 2024-12-03AVITA NEW ENERGY VEHICLE TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411174739.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The existing on-board network signal preprocessing module is limited by the communication fault diagnosis fault code module, which cannot meet the software components to implement increasingly intelligent functional algorithms, resulting in insufficient efficiency and universality of on-board network signal processing.

Method used

By deploying a signal preprocessing module at the controller application layer, receiving on-board network signals and diagnostic information from the underlying controller, performing unified preprocessing, decoupling signal preprocessing and communication fault diagnosis fault code modules, improving signal processing flexibility and Universality.

Benefits of technology

It realizes the flexibility and versatility of signal processing in on-board networks, provides signal values ​​and signal validity, and supports a wider range of functional algorithm adaptation of downstream software components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065290A_ABST
    Figure CN119065290A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle-mounted network signal preprocessing method and device, electronic equipment and a storage medium. The vehicle-mounted network signal preprocessing method is executed by a signal preprocessing module deployed in a controller application layer. The method comprises the following steps: receiving a vehicle-mounted network signal from a controller bottom layer and diagnosis information of the vehicle-mounted network signal; pre-processing the vehicle-mounted network signal according to the diagnosis information so as to determine a signal value and signal validity of the processed vehicle-mounted network signal; wherein the signal value is used for indicating the function service provided by the downstream software component; the signal validity is used to instruct the downstream software component to determine whether to provide the functional service indicated by the signal value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and relates to but is not limited to a vehicle network signal preprocessing method, device, electronic device and storage medium. Background Art

[0002] At present, before the vehicle network signal is input into the application layer to support the implementation of functional algorithms by various software components in the application layer, it is necessary to pre-process the vehicle network signal.

[0003] In the related art, a solution is adopted in which the vehicle network signal preprocessing module is associated with the storage interface of the communication fault diagnostic trouble code (DTC) module, so that the vehicle network signal preprocessing module receives diagnostic information, thereby realizing the preprocessing of the vehicle network signal. However, in this solution, the vehicle network signal preprocessing module is subject to the processing of the vehicle network signal by the communication fault diagnostic trouble code module, so that the vehicle network signal processed by the vehicle network signal preprocessing module can no longer meet the requirements of the software component to realize the increasingly intelligent functional algorithm. Summary of the invention

[0004] The present application provides a vehicle network signal preprocessing method, device, electronic device and storage medium, which uniformly preprocess the vehicle network signal by using diagnostic information associated with the vehicle network signal, thereby decoupling the vehicle network signal preprocessing from the communication fault diagnosis fault code module, and improving the flexibility and versatility of vehicle network signal processing.

[0005] The technical solution of this application is implemented as follows:

[0006] In a first aspect, the present application provides a method for preprocessing a vehicle network signal, which is executed by a signal preprocessing module deployed at the application layer of a controller, and the method includes: receiving a vehicle network signal from the bottom layer of the controller and diagnostic information of the vehicle network signal; preprocessing the vehicle network signal according to the diagnostic information to determine the signal value and signal validity of the processed vehicle network signal; wherein the signal value is used to indicate the functional service provided by the downstream software component; and the signal validity is used to indicate the downstream software component to determine whether to provide the functional service indicated by the signal value.

[0007] In the second aspect, the present application provides a vehicle network signal preprocessing device, which includes: a receiving module for receiving the vehicle network signal from the bottom layer of the controller and the diagnostic information of the vehicle network signal; a preprocessing module for preprocessing the vehicle network signal according to the diagnostic information to determine the signal value and signal validity of the processed vehicle network signal, wherein the signal value is used to indicate the functional service provided by the downstream software component; the signal validity is used to indicate the downstream software component to determine whether to provide the functional service indicated by the signal value.

[0008] In a third aspect, the present application also provides an electronic device, comprising a memory and one or more processors, wherein the memory stores a computer program, and when the computer program is executed by the electronic device, the vehicle network signal preprocessing method provided in the first aspect above is implemented.

[0009] In a fourth aspect, the present application also provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned vehicle network signal preprocessing method is implemented.

[0010] In a fifth aspect, the present application also provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the above-mentioned vehicle network signal preprocessing method.

[0011] Compared with the prior art, the technical solution provided by the embodiment of the present application has the following beneficial effects:

[0012] In the embodiment of the present application, the vehicle network signal preprocessing device can perform uniform preprocessing on the vehicle network signal according to the diagnostic information by receiving the vehicle network signal from the bottom layer of the controller and the diagnostic information of the vehicle network signal to obtain the processed vehicle network signal. Compared with the solution in the related art that the vehicle network signal preprocessing module is subject to the communication fault diagnosis fault code module, the vehicle network signal preprocessing can be decoupled from the communication fault diagnosis fault code module, thereby improving the flexibility and versatility of vehicle network signal processing.

[0013] In addition, the processed vehicle network signal provides both signal value and signal validity. The signal value can indicate the functional service provided by the downstream software component, and the signal validity can indicate whether the downstream software component should provide the functional service indicated by the signal value, so that the downstream software component can perform more functional algorithm adaptation. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 A schematic diagram of a vehicle network signal preprocessing architecture provided in the related art;

[0015] Figure 2A schematic diagram of a vehicle network signal preprocessing architecture provided in an embodiment of the present application;

[0016] Figure 3 A schematic diagram of a first optional flow chart of a vehicle network signal preprocessing method provided in an embodiment of the present application;

[0017] Figure 4 A second optional flow chart of the vehicle network signal preprocessing method provided in the embodiment of the present application;

[0018] Figure 5 A third optional flow chart of the vehicle network signal preprocessing method provided in the embodiment of the present application;

[0019] Figure 6 A fourth optional flow chart of the vehicle network signal preprocessing method provided in the embodiment of the present application;

[0020] Figure 7 A fifth optional flow chart of the vehicle network signal preprocessing method provided in the embodiment of the present application;

[0021] Figure 8 A sixth optional flow chart of the vehicle network signal preprocessing method provided in the embodiment of the present application;

[0022] Fig. 9 A seventh optional flow chart of the vehicle network signal preprocessing method provided in the embodiment of the present application;

[0023] Fig.10 An eighth optional flow chart of the vehicle network signal preprocessing method provided in the embodiment of the present application;

[0024] Fig.11 A schematic diagram of the structure of a vehicle network signal preprocessing device provided in an embodiment of the present application;

[0025] Fig.12 A hardware entity schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.

[0027] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0028] In the following description, the terms "first\second\third" are used only as examples to distinguish different objects, and do not represent a specific order for the objects, nor do they have a limitation on the order of precedence. It is understandable that "first\second\third" can be interchanged with a specific order or order of precedence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0030] The current in-vehicle networks include controller area network (CAN), local interconnect network (LIN), Ethernet, etc. Each of the above-mentioned in-vehicle networks can be set up with its corresponding interconnection network framework, for example, a seven-layer framework can be formed with reference to the OSI reference model, and the seven-layer frameworks are the physical layer, data link layer, network layer, transport layer, session layer, presentation layer and application layer.

[0031] Figure 1 The figure is a schematic diagram of a vehicle network signal preprocessing architecture provided in the related art. Figure 1 As shown, the vehicle network (taking the CAN network as an example) may include: a bottom layer 11 and an application layer 12 .

[0032] In one embodiment, the bottom layer 11 may include a six-layer framework in which the seven-layer framework is located below the application layer 12 .

[0033] In one embodiment, an operating system, such as a diagnostic system, may be run on the controller (such as an on-board controller). The diagnostic system may obtain data through the bottom layer 11. In this way, the bottom layer 11 may include: a diagnostic communication management module 111, a diagnostic service management module 112, and a communication management module 113. Among them, the diagnostic communication management module 111 is used to diagnose whether a network segment failure occurs in the network segment where the on-board network signal is located; the diagnostic service management module 112 is used to diagnose whether a message failure occurs in the message where the on-board network signal is located; and the communication management module 113 is used to report the on-board network signal to the application layer 12.

[0034] In one embodiment, the network segment failure includes a bus off error.

[0035] In one embodiment, the message failure includes an E2E (end to end) error in the message, and the E2E error includes a CRC (cyclic redundancy check) error, a frame loss failure, or a counter error.

[0036] In one embodiment, the controller may be any controller having relevant processing capabilities. Exemplarily, the controller may be a vehicle body controller.

[0037] In one embodiment, the diagnostic communication management module 111 in the bottom layer 11 can report to the communication fault diagnostic fault code module 121 of the application layer 12 that an error has occurred in the network segment where the vehicle network signal is located. The diagnostic service management module 112 in the bottom layer 11 can report to the communication fault diagnostic fault code module 121 of the application layer 12 that an error has occurred in the message where the vehicle network signal is located. The communication management module 113 in the bottom layer 11 can report the vehicle network signal to the vehicle network signal preprocessing module 122 of the application layer 12. The communication fault diagnostic fault code module 121 of the application layer 12 can output the network segment error fault code status and the message error fault code status to the vehicle network signal preprocessing module 122. It can be seen that the signal processing efficiency of the vehicle network signal preprocessing module 122 is limited by the output efficiency of the communication fault diagnostic fault code module 121.

[0038] In one embodiment, the communication fault diagnosis fault code module 121 outputs a network segment error fault code state according to the state of the vehicle's on-board network signal, and the network segment error fault code state is used to indicate whether the network segment fault diagnosed by the diagnostic communication management module 111 is real; the communication fault diagnosis fault code module 121 outputs a message error fault code state according to the state of the vehicle's on-board network signal, and the message error fault code state is used to indicate whether the message fault diagnosed by the diagnostic service management module 112 is real. It can be seen that the diversity of the signals received by the on-board network signal preprocessing module 122 is also limited by the signal processing process of the communication fault diagnosis fault code module 121.

[0039] In summary, the vehicle network signal preprocessing module in the related technology is subject to the processing of the vehicle network signal by the communication fault diagnosis fault code module, so that the vehicle network signal processed by the vehicle network signal preprocessing module can no longer meet the software components to implement increasingly intelligent functional algorithms.

[0040] In order to solve the above technical problems, an embodiment of the present application provides a vehicle network signal preprocessing architecture. Figure 2 A schematic diagram of a vehicle network signal preprocessing architecture provided in an embodiment of the present application, see Figure 2As shown, the vehicle network signal preprocessing device 211 deployed in the application layer 12 of the controller can be associated with the output interfaces of the diagnostic communication management module 111 and the diagnostic service management module 112 in the bottom layer 11, so as to receive the network segment error reported by the diagnostic communication management module 111 and the message error reported by the diagnostic service management module 112. In this way, the signal preprocessing process can be completely decoupled from the communication fault diagnosis fault code module 121, thereby improving the efficiency and universality of signal preprocessing.

[0041] In one embodiment, the vehicle network signal preprocessing device 211 may be Figure 1 The vehicle network signal preprocessing module 122 is shown.

[0042] Combination Figure 2 The vehicle network signal preprocessing architecture shown in the embodiment of the present application also provides a vehicle network signal preprocessing method. The vehicle network signal preprocessing method can be executed by the vehicle network signal preprocessing device mentioned above, and the vehicle network signal preprocessing device can be a module deployed in the application layer of the controller. Figure 3 A schematic diagram of a first optional flow chart of the vehicle network signal preprocessing method provided in the embodiment of the present application. Figure 3 As shown, the vehicle network signal preprocessing method may include:

[0043] Step S301: receiving an in-vehicle network signal and diagnostic information of the in-vehicle network signal from the bottom layer of the controller.

[0044] It is understandable that the vehicle network signal preprocessing device can obtain the vehicle network signal reported by the bottom layer and the diagnostic information of the vehicle network signal by associating with the interface of the processing module in the bottom layer.

[0045] In one embodiment, the vehicle network signal is a signal transmitted between various electronic nodes (ECUs) of the vehicle using the vehicle network.

[0046] In one example, the vehicle network signal may be a remote high voltage hold request signal.

[0047] In one example, the vehicle network signal may be a signal representing a battery state of charge.

[0048] In one embodiment, the diagnostic information is obtained after the module at the bottom layer of the controller diagnoses the vehicle network signal. Here, the module at the bottom layer of the controller can diagnose the vehicle network signal, the communication state of the vehicle network signal, or the effective state of the vehicle network signal, which is not limited in the embodiment of the present application.

[0049] Step S302: pre-processing the vehicle network signal according to the diagnostic information to determine the signal value and signal validity of the processed vehicle network signal.

[0050] It can be understood that the vehicle network signal preprocessing device can preprocess the vehicle network signal according to the diagnostic information obtained in step S301 to determine the signal value and signal validity of the processed vehicle network signal.

[0051] The signal value is used to indicate the functional service provided by the downstream software component. The signal validity is used by the downstream software component to determine whether to provide the functional service indicated by the signal value.

[0052] In one embodiment, the vehicle network signal preprocessing device may determine the signal value and signal validity of the processed vehicle network signal according to the indication of the diagnostic information.

[0053] In one embodiment, the signal validity may be represented in the form of a numerical value, that is, the signal validity of the processed in-vehicle network signal may be indicated by a state value.

[0054] For example, when the diagnostic information indicates that the vehicle network signal is valid, the status value of the signal validity of the processed vehicle network signal is determined to be 1. When the downstream software component learns that the status value is 1, it can determine that the signal validity of the processed vehicle network signal is valid.

[0055] In one embodiment, determining the signal value and signal validity of the processed in-vehicle network signal may be obtaining a signal capable of representing the signal value and a signal capable of representing the signal validity.

[0056] In one embodiment, determining the signal value and signal validity of the processed in-vehicle network signal may be obtaining a modulated signal that can simultaneously represent the signal value and the signal validity.

[0057] In some embodiments, after obtaining the signal value and signal validity of the processed vehicle network signal through step S302, the vehicle network signal preprocessing device can generate a processed vehicle network signal and output the signal value and signal validity of the processed vehicle network signal to the downstream software component.

[0058] In one embodiment, the downstream software component refers to a functional software (SWC) downstream of the vehicle network signal preprocessing device disposed at the application layer.

[0059] It is understandable that the downstream software component can receive the processed vehicle network signal to determine the functional service provided based on the signal value of the vehicle network signal, and determine whether to provide the functional service indicated by the signal value based on the signal validity.

[0060] In one embodiment, the downstream software component obtains the signal value of the processed vehicle network signal, uses the signal value to calculate the functional algorithm, and then provides the service.

[0061] In one embodiment, the downstream software component determines whether to provide a service using a substitute signal of the processed in-vehicle network signal according to whether a signal indicating the signal validity of the processed in-vehicle network signal is valid.

[0062] In the embodiment of the present application, the vehicle network signal preprocessing device can perform uniform preprocessing on the vehicle network signal according to the diagnostic information by receiving the vehicle network signal from the bottom layer of the controller and the diagnostic information of the vehicle network signal to obtain the processed vehicle network signal. Compared with the solution in the related art that the vehicle network signal preprocessing module is subject to the communication fault diagnosis fault code module, the vehicle network signal preprocessing can be decoupled from the communication fault diagnosis fault code module, thereby improving the flexibility and versatility of vehicle network signal processing.

[0063] In addition, the processed vehicle network signal provides both signal value and signal validity. The signal value can indicate the functional service provided by the downstream software component, and the signal validity can indicate whether the downstream software component should provide the functional service indicated by the signal value, so that the downstream software component can perform more functional algorithm adaptation.

[0064] In some possible implementations, Figure 4 A second optional flow chart of the vehicle network signal preprocessing method provided in the embodiment of the present application. Figure 4 As shown, step S302 can be replaced by steps S401 to S402.

[0065] Step S401: Selecting a processing strategy for preprocessing the vehicle network signal according to the diagnostic information.

[0066] It is understandable that after receiving the vehicle network signal and the diagnostic information associated with the vehicle network signal in step S301, the vehicle network signal preprocessing device can determine the processing strategy used when preprocessing the vehicle network signal according to the diagnostic information.

[0067] In one embodiment, the processing strategy includes at least: a signal value preprocessing method and a signal validity preprocessing method.

[0068] It can be understood that in order to obtain the signal value and signal validity of the processed in-vehicle network signal, the processing strategy at least includes a signal value preprocessing method and a signal validity preprocessing method.

[0069] In one embodiment, a plurality of processing strategies may be preset in the vehicle network signal preprocessing device. Among them, the signal value and signal validity indicated by different processing strategies may be different. Different processing strategies may be preset according to actual needs.

[0070] In one embodiment, the signal validity includes: valid, invalid, and fault confirmation. The preprocessing method of the signal validity may include setting the signal validity of the preprocessed vehicle network signal to at least one of valid, invalid, and fault confirmation.

[0071] In one embodiment, the signal value includes: a signal value at a previous moment, a default signal value, and an original signal value. The signal value preprocessing method may include setting the signal value of the preprocessed vehicle network signal to at least one of the signal value at a previous moment, the default signal value, and the original signal value.

[0072] In one embodiment, the signal value of the vehicle network signal at the previous moment refers to the signal value of the vehicle network signal obtained at the previous moment before the current moment. In one embodiment, the default signal value of the vehicle network signal is the default signal value for preprocessing the vehicle network signal. In one embodiment, the original signal value of the vehicle network signal is the original signal value before preprocessing the vehicle network signal.

[0073] In some embodiments, the diagnostic information includes at least whether a communication failure occurs and whether the signal is valid.

[0074] In one embodiment, when the diagnostic information includes whether a communication failure occurs, the diagnostic information may be obtained by a diagnostic system running on the bottom layer of the controller performing a fault diagnosis on the vehicle network signal; or, the diagnostic information may be obtained by a diagnostic system performing a fault diagnosis on the communication state of the vehicle network that transmits the vehicle network signal; or, the diagnostic information may be obtained by diagnosing the validity of the vehicle network signal. Alternatively, the diagnostic information may be obtained by performing a fault diagnosis on a network message that transmits the vehicle network signal.

[0075] It is understandable that when the vehicle network has a communication failure or the network status changes, the vehicle network signal will fail, which will directly affect whether the functional algorithm can meet expectations. Therefore, when preprocessing the vehicle network signal, by obtaining the diagnostic information of the vehicle network signal, it is possible to more accurately identify whether the vehicle network signal has failed, which is beneficial to the implementation of the functional algorithm of the downstream software components.

[0076] In one example, to diagnose the fault of the network transmission path of the network segment where the vehicle network signal is located, the following method can be used: Figure 1 or Figure 2The diagnostic communication management module 111 in the vehicle network signal is executed to determine whether the segment where the vehicle network signal is located has a segment fault. When the segment where the vehicle network signal is located has a fault, diagnostic information indicating that the segment fault of the vehicle network transmitting the vehicle network signal has occurred can be obtained.

[0077] In one example, the relevant information of the message containing the vehicle network signal is used to diagnose the fault. Figure 1 or Figure 2 The diagnostic service management module 112 in the vehicle network signal is used to determine whether the message in which the vehicle network signal is located has a message failure. When the message in which the vehicle network signal is located has a message failure, diagnostic information indicating that the network message transmitting the vehicle network signal has a message failure can be obtained.

[0078] In one embodiment, when the diagnostic information includes whether the signal is valid, the diagnostic information may be obtained by the controller diagnosing the vehicle network signal. The vehicle network signal preprocessing device may determine whether the vehicle network signal is valid according to the diagnostic information.

[0079] In one embodiment, the diagnostic information can be received by the vehicle network signal preprocessing module in the form of a validity identifier. The validity identifier includes: a valid identifier and an invalid identifier. Among them, the valid identifier indicates that the vehicle network signal is valid; the invalid identifier indicates that the vehicle network signal is invalid. According to the valid identifier, the vehicle network signal preprocessing device can determine that the vehicle network signal is valid. According to the invalid identifier, the vehicle network signal preprocessing device can determine that the vehicle network signal is invalid.

[0080] It can be understood that according to the validity mark, the vehicle network signal preprocessing device can determine different processing strategies, so as to make full use of the diagnostic information obtained after the controller bottom-level module diagnoses the signal during the vehicle network signal preprocessing process, thereby helping to improve the accuracy of signal preprocessing.

[0081] Step S402: Determine the signal value and validity based on the processing strategy.

[0082] It can be understood that after obtaining the processing strategy corresponding to the diagnostic information in step S401, the vehicle network signal preprocessing device can determine the signal value and signal validity of the processed vehicle network signal.

[0083] In some embodiments, the vehicle network signal preprocessing device can obtain the signal value of the processed vehicle network signal based on the preprocessing method of the signal value in the processing strategy.

[0084] In some embodiments, the vehicle network signal preprocessing device may obtain the signal validity of the processed vehicle network signal based on the signal validity preprocessing method in the processing strategy.

[0085] In the embodiment of the present application, the vehicle network signal preprocessing device can determine the processing strategy used when preprocessing the vehicle network signal based on the diagnostic information, so that the processing strategy used in the signal preprocessing process is related to the diagnostic information, and then the processed vehicle network signal obtained after the signal preprocessing is related to the diagnostic information. In this process, not only the diagnostic information is referenced during the signal preprocessing process, which greatly improves the accuracy of the signal preprocessing, but also the signal validity of the processed vehicle network signal is output, which is conducive to the downstream software components using the signal value of the processed vehicle network signal to perform functional algorithm operations and realize rapid adaptation of the functional algorithm.

[0086] In some possible implementations, Figure 5 A third optional flow chart of the vehicle network signal preprocessing method provided in the embodiment of the present application. Figure 5 As shown, step S401 can be replaced by step S501 or step S502.

[0087] Step S501: when the diagnostic information indicates that a communication failure occurs in the vehicle network signal and the communication failure does not exceed a calibrated time, select a first processing strategy to pre-process the vehicle network signal.

[0088] It is understandable that the vehicle network signal preprocessing device can preliminarily determine that the vehicle network signal is insufficient in validity when determining that the diagnostic information indicates that the vehicle network signal has a communication failure. Subsequently, the vehicle network signal preprocessing device can determine whether the communication failure exceeds the calibration time, and when the communication failure does not exceed the calibration time, select the first processing strategy to preprocess the vehicle network signal.

[0089] In one embodiment, the communication failure of the vehicle network signal includes a network segment failure and a message failure.

[0090] It is understandable that both a network segment failure and a message failure can indicate that the network communication state of the vehicle network has failed. By obtaining the first processing strategy when the network communication state fails and the communication failure does not exceed the calibration time, a universal signal preprocessing solution can be formulated for the impact of the network communication failure on the signal.

[0091] In one embodiment, the preprocessing method of the signal value in the first processing strategy includes: setting the signal value to the signal value at the previous moment, and the signal validity preprocessing method includes: setting the signal validity to fault confirmation.

[0092] It is understandable that the vehicle network signal preprocessing device can use the first processing strategy to preprocess the vehicle network signal when determining that the communication fault does not exceed the calibration time. According to the preprocessing method of the signal value in the first processing strategy, it can be determined that the signal value of the processed vehicle network signal is the signal value of the vehicle network signal at the previous moment. According to the preprocessing method of the signal validity in the first processing strategy, it can be determined that the signal validity of the processed vehicle network signal is in fault confirmation.

[0093] Exemplarily, taking the remote high-voltage hold request signal as an example, when the diagnostic information indicates that the on-board network signal is in a communication fault, if the duration (duration) of the communication fault is less than the calibrated time, the signal validity is determined to be in fault confirmation, and the output remote high-voltage hold request signal has the signal value of the remote high-voltage hold request signal at the previous moment.

[0094] In some embodiments, the vehicle network signal preprocessing device determines the duration of the communication failure based on the time information indicated by the diagnostic information.

[0095] In some embodiments, the vehicle network signal preprocessing device determines the duration of the fault state based on the duration of receiving the vehicle network signal.

[0096] In some embodiments, the calibration time can be set according to actual needs, and the embodiments of the present application do not make specific limitations on this.

[0097] It should be noted that when a specific fault occurs in the network communication state, such as a bus shutdown error in the network, the vehicle network signal cannot be received. At this time, the vehicle network signal preprocessing device can also obtain a preset signal value, and randomly obtain a processed vehicle network signal according to the preset signal value and processing strategy.

[0098] Step S502: When the diagnostic information indicates that a communication failure occurs in the vehicle network signal and the communication failure exceeds a calibrated time, a second processing strategy is selected to pre-process the vehicle network signal.

[0099] It is understandable that the vehicle network signal preprocessing device can preliminarily determine that the vehicle network signal is insufficient in validity when determining that the diagnostic information indicates that the vehicle network signal has communicated. Subsequently, the vehicle network signal preprocessing device can determine whether the communication failure exceeds the calibration time, and when the communication failure exceeds the calibration time, select the second processing strategy to preprocess the vehicle network signal.

[0100] In one embodiment, the preprocessing method of the signal value in the second processing strategy includes: setting the signal value to the signal value of the previous moment or the default signal value, and the signal validity preprocessing method includes: setting the signal validity to invalid.

[0101] It can be understood that the signal validity of the vehicle network signal processed by the second processing strategy is invalid, thereby prompting downstream software components to use the processed vehicle network signal with caution.

[0102] It is understandable that the vehicle network signal preprocessing device can use the second processing strategy to preprocess the vehicle network signal when determining that the communication failure exceeds the calibration time. According to the preprocessing method of the signal value in the second processing strategy, it can be determined that the signal value of the processed vehicle network signal is the signal value of the vehicle network signal at the previous moment or the default signal value of the vehicle network signal. According to the signal validity indicated by the second processing strategy, it can be determined that the signal validity of the processed vehicle network signal is invalid.

[0103] It is understandable that the vehicle network signal preprocessing device can obtain the duration of the vehicle network signal communication failure, and determine different processing strategies based on the relationship between the duration and the calibration time. When the vehicle network signal preprocessing device preprocesses the vehicle network signal, different processing strategies can increase the reliability of the preprocessed vehicle network signal.

[0104] In an embodiment of the present application, the vehicle network signal preprocessing device can determine a processing strategy for preprocessing the vehicle network signal according to the communication fault indicated by the diagnostic information and the duration of the communication fault, thereby forming a universal preprocessing logic.

[0105] In some possible implementations, Figure 6 A fourth optional flow chart of the vehicle network signal preprocessing method provided in the embodiment of the present application. Figure 6 As shown, step S401 can be replaced by step S601.

[0106] Step S601: when the diagnostic information indicates that the vehicle network signal is invalid, select a second processing strategy to pre-process the vehicle network signal.

[0107] It can be understood that when determining that the diagnostic information indicates that the vehicle network signal is invalid, the vehicle network signal preprocessing device can determine that the vehicle network signal is invalid, and then choose to use the second processing strategy to preprocess the vehicle network signal.

[0108] It is understandable that when the diagnostic information indicates that the vehicle network signal is invalid, obtaining the second processing strategy can make full use of the diagnosis of the vehicle network signal by the controller bottom module to develop a universal signal preprocessing solution.

[0109] In one embodiment, the diagnostic information may be sent to the vehicle network signal preprocessing device in the form of a validity mark. The vehicle network signal preprocessing device determines whether the diagnostic information indication signal is valid or invalid by determining whether the validity mark is a valid mark or an invalid mark.

[0110] In one embodiment, when the validity flag is an invalid flag, the diagnostic information indication signal is invalid.

[0111] In one embodiment, the preprocessing method of the signal value in the second processing strategy includes: setting the signal value to the signal value of the previous moment or a default signal, and the signal validity preprocessing method includes: setting the signal validity to invalid.

[0112] It is understandable that the vehicle network signal preprocessing device can use the second processing strategy to preprocess the vehicle network signal when determining that the vehicle network signal is invalid. According to the preprocessing method of the signal value in the second processing strategy, it can be determined that the signal value of the processed vehicle network signal is the signal value of the vehicle network signal at the previous moment or the default signal value. According to the preprocessing method of the signal validity in the second processing strategy, it can be determined that the signal validity of the processed vehicle network signal is invalid.

[0113] In one embodiment, when the diagnostic information indicates that there is no communication failure in the vehicle network signal and the signal is invalid, the second processing strategy can also be selected to pre-process the vehicle network signal, thereby reducing the judgment of communication failure and improving the efficiency of the vehicle network signal pre-processing device in signal pre-processing.

[0114] In some embodiments, step S601 may be executed simultaneously with step S501 and step S502, which is not limited in the embodiments of the present application.

[0115] In an embodiment of the present application, the vehicle network signal preprocessing device can determine a processing strategy for preprocessing the vehicle network signal according to whether the signal indicated by the diagnostic information is valid, thereby forming a universal preprocessing logic.

[0116] In some possible implementations, Figure 7 A fifth optional flow chart of the vehicle network signal preprocessing method provided in the embodiment of the present application. Figure 7 As shown, step S401 can be replaced by step S701 and step S702.

[0117] Step S701: when the diagnostic information indicates that the vehicle network signal has no communication failure and the signal is valid, the original signal value of the vehicle network signal is obtained.

[0118] It can be understood that the vehicle network signal preprocessing device can obtain the original signal value of the vehicle network signal when determining that the diagnostic information indicates that the vehicle network signal has no communication failure and the signal is valid.

[0119] In some embodiments, the raw signal value indicates that a downstream software component provides a service.

[0120] In some embodiments, when the original signal value exceeds a preset range, it is impossible to instruct the downstream software component to provide a service.

[0121] It can be understood that when the vehicle network signal communication is normal and the diagnostic information indicates that the signal is valid, the processing strategy can be determined based on the original signal value of the vehicle network signal, so that the vehicle network signal can be confirmed and analyzed and a universal signal preprocessing solution can be developed.

[0122] Step S702: When the original signal value exceeds a preset range, a second processing strategy is selected to pre-process the vehicle network signal.

[0123] It can be understood that when the vehicle network signal preprocessing device determines that the diagnostic information indicates that there is no communication failure in the vehicle network signal and the signal is valid, if it is determined that the original signal value of the vehicle network signal exceeds a preset range, it can be determined that the vehicle network signal is invalid, and then the second processing strategy is selected to preprocess the vehicle network signal.

[0124] In one embodiment, the CAN database file may be a database file that defines communication information between all electronic nodes. When the original signal value of the vehicle network signal exceeds a reasonable range defined by the CAN database file, it may be considered that the original signal value of the vehicle network signal exceeds a preset range.

[0125] In some embodiments, when the parameter value of the vehicle network signal exceeds a preset range, a second processing strategy may be selected to pre-process the vehicle network signal.

[0126] In one embodiment, the parameter value of the vehicle network signal refers to a measurement value of the signal characteristic of the vehicle network signal, which is usually obtained by measurement or calculation and can be a number or an expression. It is understandable that in the embodiment of the present application, the parameter value of each vehicle network signal can be obtained in order to obtain the corresponding processing strategy.

[0127] In some embodiments, the parameter value of the vehicle network signal is a value used to characterize the signal characteristics of the vehicle network signal. The signal characteristics of the vehicle network signal include: amplitude, frequency, phase, delay, etc.

[0128] In one embodiment, the preset range can be selected according to actual needs, and the embodiment of the present application does not make any specific limitation on this.

[0129] In one embodiment, the preprocessing method of the signal value in the second processing strategy includes: setting the signal value to the signal value of the previous moment or the default signal value, and the signal validity preprocessing method includes: setting the signal validity to invalid.

[0130] It can be understood that the vehicle network signal preprocessing device can further select a corresponding processing strategy based on the original signal value of the vehicle network signal when it is determined that there is no communication failure in the vehicle network signal and the signal is valid. When the original signal value exceeds the preset range, the vehicle network signal is preprocessed using the second processing strategy. According to the preprocessing method of the signal value in the second processing strategy, it can be determined that the signal value of the processed vehicle network signal is the signal value of the vehicle network signal at the previous moment or the default signal value. According to the preprocessing method of the signal validity in the second processing strategy, it can be determined that the signal validity of the processed vehicle network signal is invalid.

[0131] In one embodiment, when the vehicle network signal preprocessing device determines that the original signal value of the vehicle network signal exceeds a preset range, it may also select a second processing strategy to preprocess the vehicle network signal, thereby reducing the judgment of communication failures and signal validity and improving the efficiency of the vehicle network signal preprocessing device in signal preprocessing.

[0132] In some embodiments, step S701 and step S702 may be performed simultaneously with step S501, step S502, and step S601, which is not limited in this embodiment of the present application.

[0133] In an embodiment of the present application, the vehicle network signal preprocessing device can determine a processing strategy for preprocessing the vehicle network signal when the original signal value of the vehicle network signal exceeds a preset range, thereby forming a universal preprocessing logic.

[0134] In some possible implementations, Figure 8 A sixth optional flow chart of the vehicle network signal preprocessing method provided in the embodiment of the present application. Figure 8 As shown, step S702 can be replaced by step S801.

[0135] Step S801: When the original signal value does not exceed a preset range, a third processing strategy is selected to pre-process the vehicle network signal.

[0136] It can be understood that when the vehicle network signal preprocessing device determines that the diagnostic information indicates that there is no communication failure in the vehicle network signal and the signal is valid, if it is determined that the original signal value of the vehicle network signal does not exceed the preset range, it can be determined that the vehicle network signal is valid, and then the third processing strategy can be selected to preprocess the vehicle network signal.

[0137] In one embodiment, the preprocessing method of the signal value in the third processing strategy includes: setting the signal value to the original signal value, and the signal validity preprocessing method includes: setting the signal validity to valid.

[0138] It can be understood that the vehicle network signal preprocessing device can further select a corresponding processing strategy based on the original signal value of the vehicle network signal when it is determined that there is no communication failure in the vehicle network signal and the signal is valid. When the original signal value does not exceed the preset range, that is, when the original signal value characterizing the vehicle network signal exceeds the defined reasonable range, the vehicle network signal is preprocessed using the third processing strategy. According to the preprocessing method of the signal value in the third processing strategy, it can be determined that the signal value of the processed vehicle network signal is the original signal value. According to the preprocessing method of the signal validity in the third processing strategy, it can be determined that the signal validity of the processed vehicle network signal is valid.

[0139] In an embodiment of the present application, the vehicle network signal preprocessing device can determine a processing strategy for preprocessing the vehicle network signal when the original signal value of the vehicle network signal does not exceed a preset range, thereby forming a universal preprocessing logic.

[0140] In some possible implementations, setting the signal value to the signal value at the last moment or the default signal value includes: selecting to set the signal value to the signal value at the last moment or the default signal value according to the importance of the vehicle network signal.

[0141] It is understandable that the vehicle network signal preprocessing device can choose to set the signal value of the processed vehicle network signal to the signal value of the previous moment or the default signal value according to the importance of the vehicle network signal.

[0142] In some embodiments, the importance of the vehicle network signal is related to the importance of the component that sends the vehicle network signal.

[0143] In some embodiments, the importance of the in-vehicle network signal is related to the importance of the service corresponding to the in-vehicle network signal.

[0144] For example, taking the remote high voltage hold request signal as an example, when the diagnostic information of the remote high voltage hold request signal indicates that a communication fault has occurred and the fault state is less than the calibration time, the signal validity is determined to be in fault confirmation, and the default value of the remote high voltage hold request signal is output, such as 0x0, that is, the remote high voltage hold request is no request, so that the controller can lower the high voltage. However, if the signal value of the previous moment of the remote high voltage hold request signal is output, the controller will be unable to lower the high voltage.

[0145] In some possible implementations, Fig. 9 A seventh optional flow chart of the vehicle network signal preprocessing method provided in the embodiment of the present application. Fig. 9 As shown, the method further includes step S901 to step S902.

[0146] Step S901: When it is determined that the controller is in the first working state, a simulated vehicle network signal is obtained from the controller.

[0147] It is understandable that the vehicle network signal preprocessing device may also obtain the simulated vehicle network signal from the controller when determining that the controller is in the first working state.

[0148] In one embodiment, the first working state includes an initialization state and / or a state in which message information is prohibited from being sent. It is understandable that the vehicle network signal preprocessing device can determine whether the controller running the diagnostic system is in the first working state when determining that the controller is in the initialization state and / or a state in which message information is prohibited from being sent.

[0149] In one embodiment, the initialization state includes controller power-on initialization, controller restart initialization, etc.

[0150] In one embodiment, the state of prohibiting sending message information includes a state of prohibiting sending message information of a communication control service.

[0151] In one embodiment, the communication control service may be a communication control service (0x28) of a universal diagnostics system (UDS), which is a service in which a client requests a server to open or close a function of sending and receiving certain types of message information or multiple types of message information.

[0152] In one embodiment, the communication control service has no control over the diagnostic information, and the service acts on the application message and the network management message. The communication control service can prohibit the sending of the application message and the network management message.

[0153] In one embodiment, when the communication control service is flashing the program such as over the air (OTA), in order to reduce the bus load, the communication message of the controller will be turned off. If the sending of a certain type or a certain network segment of messages is prohibited, the network signal will not be received normally.

[0154] In one embodiment, the vehicle network signal preprocessing device may receive detection information and determine whether the controller is in the first working state based on the detection information.

[0155] In one embodiment, the simulated vehicle network signal from the controller may be a signal preset by the controller.

[0156] Step S902: Select the fourth processing strategy to pre-process the simulated vehicle network signal to determine the signal value and signal validity of the processed vehicle network signal.

[0157] It is understandable that when the vehicle network signal preprocessing device determines that the controller is in the first working state, the signal preprocessing can be performed based on the simulated vehicle network signal to determine the signal value and signal validity of the processed vehicle network signal. The vehicle network signal preprocessing device can use the fourth processing strategy to preprocess the vehicle network signal. Among them, according to the preprocessing method of the signal value in the fourth processing strategy, it can be determined that the signal value of the processed vehicle network signal is the default signal value. According to the preprocessing method of the signal validity in the fourth processing strategy, it can be determined that the signal validity of the processed vehicle network signal is valid.

[0158] For example, taking the remote high-voltage maintenance request signal as an example, when the diagnostic information indicates that no communication failure has occurred and the signal is valid, the original signal value of the remote high-voltage maintenance request signal does not exceed the preset range, then the signal validity of the processed remote high-voltage maintenance request signal is determined to be valid, and the signal value is the original value of the remote high-voltage maintenance request signal.

[0159] In some embodiments, steps S901 to S902 may be performed before steps S301 to S302, which is not limited in this embodiment of the present application.

[0160] In an embodiment of the present application, the vehicle network signal preprocessing device can formulate a universal signal preprocessing solution based on the influence of the controller state on the signal and the influence of the communication state on the signal during program flashing, thereby improving the standardization of the processing flow of the vehicle network signal preprocessing.

[0161] The following is a specific example to illustrate the vehicle network signal preprocessing method provided in the embodiment of the present application. Fig.10This is a schematic diagram of an eighth optional flow chart of the vehicle network signal preprocessing method provided in the embodiment of the present application. Fig.10 As shown, the vehicle network signal preprocessing method:

[0162] Step S1001, the vehicle network signal preprocessing device periodically receives the vehicle network signal, and then executes step S1002.

[0163] In one embodiment, the vehicle network signal may be a vehicle network signal whose signal value is an original value (SigValue=RawValue) and whose validity flag indicates that the signal validity is valid (SigSts=Valid).

[0164] Step S1002, the vehicle network signal preprocessing device determines whether the controller is in an initialization state, and if so, executes step S1003; if not, executes step S1004.

[0165] Step S1003, the vehicle network signal preprocessing device obtains the processed vehicle network signal corresponding to the case where the controller is in the initialization state.

[0166] It can be understood that when the controller is in the initialization state, the vehicle network signal preprocessing device can obtain the vehicle network signal in the controller, and use the fourth processing strategy to perform signal preprocessing on the vehicle network signal in the controller to obtain the processed vehicle network signal.

[0167] In one embodiment, the processed in-vehicle network signal may be an in-vehicle network signal whose signal value is a default value (SigValue=defaultValue) and whose signal validity is valid (SigSts=Valid).

[0168] Step S1004, the vehicle network signal preprocessing device determines whether the controller is in a communication closed state, and if so, executes step S1005; if not, executes step S1006.

[0169] It is understandable that when the controller is in a state where sending message information of the communication control service is prohibited, it may be in a communication closed state.

[0170] Step S1005 , the vehicle network signal preprocessing device obtains the processed vehicle network signal corresponding to the state where the controller is in a state where sending message information of the communication control service is prohibited.

[0171] It can be understood that when the controller is in a state where sending message information of the communication control service is prohibited, the vehicle network signal preprocessing device can obtain the vehicle network signal in the controller, and use the fourth processing strategy to perform signal preprocessing on the vehicle network signal in the controller to obtain the processed vehicle network signal.

[0172] In one embodiment, the processed in-vehicle network signal may be an in-vehicle network signal whose signal value is a default value (SigValue=defaultValue) and whose signal validity is valid (SigSts=Valid).

[0173] Step S1006, the vehicle network signal preprocessing device obtains whether a communication failure occurs in the controller based on the diagnostic information, and if so, executes step S1007; if not, executes step S1010.

[0174] It can be understood that the communication failure indicated by the diagnostic information includes at least a network segment failure and a message failure.

[0175] Step S1007, the vehicle network signal preprocessing device obtains the duration of the communication failure, and then determines whether the duration exceeds the calibration time. If it does not exceed the calibration time, execute step S1008; if it exceeds the calibration time, execute step S1009.

[0176] Step S1008: the vehicle network signal preprocessing device performs signal preprocessing on the vehicle network signal according to the first processing strategy to obtain the processed vehicle network signal when the duration of the communication failure does not exceed the calibration time.

[0177] It is understandable that when a communication failure occurs in the controller and the duration of the communication failure does not exceed the calibrated time, the vehicle network signal preprocessing device can preprocess the vehicle network signal according to the first processing strategy to obtain a processed vehicle network signal.

[0178] In one embodiment, the processed vehicle network signal may be a vehicle network signal whose signal value is the value at the last moment (SigValue=lastValue) and whose signal validity is a vehicle network signal in the process of fault confirmation (SigSts=Pending).

[0179] Step S1009: the vehicle network signal preprocessing device preprocesses the vehicle network signal according to the second processing strategy to obtain a processed vehicle network signal corresponding to the case where the duration of the communication failure exceeds the calibration time.

[0180] It is understandable that when a communication failure occurs in the controller and the failure duration exceeds the calibrated time, the vehicle network signal preprocessing device can preprocess the vehicle network signal according to the second processing strategy to obtain a processed vehicle network signal.

[0181] In one embodiment, the processed vehicle network signal may be a vehicle network signal whose signal value is a previous value or a default value (SigValue=lastValue or SigValue=defaultValue) and whose signal validity is invalid (SigSts=Invalid).

[0182] Step S1010, when no communication failure occurs, the vehicle network signal preprocessing device determines whether the signal is valid according to the diagnostic information. In one embodiment, the vehicle network signal preprocessing device determines whether the validity indicator carried by the vehicle network signal indicates that the signal validity is invalid, and if so, executes step S711; if not, executes step S712.

[0183] Step S1011 , when determining that the validity identification indication signal is invalid, the vehicle network signal preprocessing device obtains the corresponding processed vehicle network signal according to the second processing strategy.

[0184] It can be understood that when the validity identification indication signal of the vehicle network signal is invalid, the vehicle network signal preprocessing device can preprocess the vehicle network signal according to the second processing strategy of the vehicle network signal to obtain a processed vehicle network signal.

[0185] In one embodiment, the processed vehicle network signal may be a vehicle network signal whose signal value is a previous value or a default value (SigValue=lastValue or SigValue=defaultValue) and whose signal validity is invalid (SigSts=Invalid).

[0186] Step S1012, when the vehicle network signal preprocessing device has no communication failure and the signal is valid, determine whether the original signal value of the vehicle network signal exceeds a preset range, if so, execute step S1013; if not, execute step S1014.

[0187] Step S1013, the vehicle network signal preprocessing device obtains a processed vehicle network signal corresponding to a case where the original signal value of the vehicle network signal exceeds a preset range according to the second processing strategy.

[0188] It can be understood that when the original signal value of the vehicle network signal exceeds the preset range, the vehicle network signal preprocessing device can preprocess the vehicle network signal according to the second processing strategy to obtain a processed vehicle network signal.

[0189] In one embodiment, the processed vehicle network signal may be a vehicle network signal whose signal value is a previous value or a default value (SigValue=lastValue or SigValue=defaultValue) and whose signal validity is invalid (SigSts=Invalid).

[0190] Step S1014: When the vehicle network signal does not satisfy all the above-mentioned output processed vehicle network signals, the vehicle network signal preprocessing device obtains a processed vehicle network signal according to a second processing strategy.

[0191] It can be understood that when there is no communication failure in the vehicle network signal and the signal is valid, the original signal value of the vehicle network signal does not exceed the preset range, and the vehicle network signal preprocessing device can preprocess the vehicle network signal according to the second processing strategy to obtain the processed vehicle network signal.

[0192] In one embodiment, the processed vehicle network signal may be a vehicle network signal whose signal value is an original value (SigValue=RawValue) and whose signal validity is valid (SigSts=Valid).

[0193] In the embodiment of the present application, a universal signal preprocessing scheme can be formulated for the influence of the controller state on the signal, the influence of the communication state on the signal during program flashing, the influence of the network communication state on the signal, the influence of the signal parameter value on the signal, and the influence of the validity mark on the signal, so as to improve the standardization of the processing flow of the vehicle network signal preprocessing. In addition, the processed vehicle network signal provides both the signal value and the signal validity, wherein the signal validity provides three states: valid, fault confirmation, and invalid, so that the downstream software components can perform detailed post-processing according to the signal validity, thereby improving the reuse of the software code.

[0194] Below, in combination with one or more of the above embodiments, taking the battery state of charge (SOC) signal as an example, the process of using the vehicle network signal preprocessed by the vehicle network signal preprocessing method provided in the embodiment of the present application in the downstream software component is explained.

[0195] In one embodiment, in the instrument display management, considering that the battery SOC signal has a slow rate of change, and due to the battery system key messages, there will be other fault post-processing to ensure system safety. Therefore, when the downstream software component function is implemented, if the signal validity of the vehicle network signal is in the communication fault confirmation, the signal value can use the signal value (lastValue) of the vehicle network signal obtained at the last moment; when the signal validity of the vehicle network signal is a fault, the signal value continues to use the signal value (lastValue) of the vehicle network signal obtained at the last moment.

[0196] In one embodiment, in energy management, because the battery SOC signal involves the power management limit of the entire vehicle, the safety level requirement is high. Therefore, when the downstream software component function is implemented and processed, if the signal validity of the vehicle network signal is a fault, a substitute signal is obtained and the signal value of the substitute signal is used.

[0197] An embodiment of the present application provides a vehicle network signal preprocessing device, which is consistent with the above-mentioned vehicle network signal preprocessing device 211 and is deployed at the application layer of the controller. Fig.11 A schematic diagram of the structure of a vehicle network signal preprocessing device provided in an embodiment of the present application is shown in FIG. Fig.11 As shown, the vehicle network signal preprocessing device 1100 includes: a receiving module 1101, which is used to receive the vehicle network signal from the bottom layer of the controller and the diagnostic information of the vehicle network signal; a preprocessing module 1102, which is used to preprocess the vehicle network signal according to the diagnostic information to determine the signal value and signal validity of the processed vehicle network signal, wherein the signal value is used to indicate the functional service provided by the downstream software component; the signal validity is used to indicate the downstream software component to determine whether to provide the functional service indicated by the signal value.

[0198] In some embodiments, the preprocessing module 1102 is also used to select a processing strategy to be used when preprocessing the vehicle network signal based on the diagnostic information; the processing strategy includes at least: a preprocessing method for the signal value and a preprocessing method for the signal validity; the diagnostic information includes at least: whether a communication failure occurs and whether the signal is valid; based on the processing strategy, the signal value and the signal validity are determined.

[0199] In some embodiments, the processing strategy includes a first processing strategy and a second processing strategy. The preprocessing module 1102 is also used to select the first processing strategy to preprocess the vehicle network signal when the diagnostic information indicates that a communication failure has occurred in the vehicle network signal and the communication failure does not exceed the calibration time. The preprocessing method of the signal value in the first processing strategy includes: setting the signal value to the signal value at the previous moment, and the signal validity preprocessing method includes: setting the signal validity to fault confirmation; or, when the diagnostic information indicates that a communication failure has occurred in the vehicle network signal and the communication failure exceeds the calibration time, select the second processing strategy to preprocess the vehicle network signal; the preprocessing method of the signal value in the second processing strategy includes: setting the signal value to the signal value at the previous moment or the default signal value, and the signal validity preprocessing method includes: setting the signal validity to invalid.

[0200] In some embodiments, the processing strategy includes a second processing strategy, and the preprocessing module 1102 is also used to select the second processing strategy to preprocess the vehicle network signal when the diagnostic information indicates that the vehicle network signal is invalid. The preprocessing method of the signal value in the second processing strategy includes: setting the signal value to the signal value at the previous moment or the default signal value, and the signal validity preprocessing method includes: setting the signal validity to invalid.

[0201] In some embodiments, the processing strategy includes a second processing strategy, and the preprocessing module 1102 is also used to obtain the original signal value of the vehicle network signal when the diagnostic information indicates that the vehicle network signal has no communication failure and the signal is valid; when the original signal value exceeds a preset range, the second processing strategy is selected to preprocess the vehicle network signal, and the preprocessing method of the signal value in the second processing strategy includes: setting the signal value to the signal value of the previous moment or the default signal value, and the signal validity preprocessing method includes: setting the signal validity to invalid.

[0202] In some embodiments, the processing strategy includes a third processing strategy, the pre-processing module 1102 is also used to

[0203] When the original signal value does not exceed the preset range, the third processing strategy is selected to preprocess the vehicle network signal. The preprocessing method of the signal value in the third processing strategy includes: setting the signal value to the original signal value, and the signal validity preprocessing method includes: setting the signal validity to valid.

[0204] In some embodiments, the preprocessing module 1102 is further used to obtain a simulated vehicle network signal from the controller when it is determined that the controller is in a first working state; wherein the first working state includes an initialization state and / or a state in which message information is prohibited from being sent;

[0205] Select the fourth processing strategy to preprocess the simulated vehicle network signal to determine the signal value and signal validity of the processed vehicle network signal. The preprocessing method of the signal value in the fourth processing strategy includes: setting the signal value to a default signal value, and the signal validity preprocessing method includes: setting the signal validity to valid.

[0206] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. In some embodiments, the functions or modules included in the device provided in the embodiment of the present application can be used to execute the method described in the above method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0207] It should be noted that in the embodiment of the present application, if the above-mentioned vehicle skylight adjustment method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The software product is stored in a storage medium, including a number of instructions to enable an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific hardware, software or firmware, or any combination of hardware, software, and firmware.

[0208] An embodiment of the present application provides an electronic device, comprising the above-mentioned vehicle network signal preprocessing device. Fig.12 A hardware entity diagram of an electronic device provided in an embodiment of the present application, such as Fig.12 As shown, the hardware entity of the electronic device 1200 includes: an in-vehicle network signal preprocessing device 1100, the in-vehicle network signal preprocessing device 1100 includes a processor 1201 and a memory 1202, wherein the memory 1202 stores a computer program that can be run on the processor 1201, and the processor 1201 implements the steps in the method of any of the above embodiments when executing the program.

[0209] The memory 1202 stores computer programs that can be run on the processor. The memory 1202 is configured to store instructions and applications executable by the processor 1201. It can also cache data to be processed or processed by the processor 1201 and various modules in the electronic device 1200 (for example, image data, audio data, voice communication data, and video communication data). This can be implemented through flash memory (FLASH) or random access memory.

[0210] When the processor 1201 executes the program, the steps of any of the above-mentioned vehicle network signal preprocessing methods are implemented. The processor 1201 generally controls the overall operation of the electronic device 1200.

[0211] In one embodiment, the electronic device 1200 may be a device deployed in a vehicle, such as a vehicle-mounted device.

[0212] An embodiment of the present application provides a computer storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps of the vehicle network signal preprocessing method of any of the above embodiments.

[0213] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0214] The processor may be at least one of an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller, and a microprocessor. It is understandable that the electronic device that implements the function of the processor may also be other, and the embodiments of the present application are not specifically limited.

[0215] The above-mentioned computer storage medium / memory can be a read-only memory, a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM) and the like; it can also be various terminals including one or any combination of the above-mentioned memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc.

[0216] An embodiment of the present application provides a computer program, including a computer-readable code. When the computer-readable code is run in an electronic device, a processor in the electronic device executes some or all of the steps for implementing the above method.

[0217] The embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is read and executed by a computer, some or all of the steps in the above method are implemented. The computer program product can be implemented specifically by hardware, software or a combination thereof. In some embodiments, the computer program product is specifically embodied as a computer storage medium, and in other embodiments, the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc.

[0218] It should be noted here that the description of the various embodiments above tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. The description of the above device, storage medium, computer program and computer program product embodiments is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the embodiments of the device, storage medium, computer program and computer program product of this application, please refer to the description of the method embodiment of this application for understanding.

[0219] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which 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 network signal preprocessing method, which is executed by a signal preprocessing module deployed in the application layer of a controller, is characterized in that: The method comprises: Receiving an in-vehicle network signal from the bottom layer of the controller and diagnostic information of the in-vehicle network signal; Preprocessing the vehicle network signal according to the diagnostic information to determine the signal value and signal validity of the processed vehicle network signal; The signal value is used to indicate the functional service provided by the downstream software component; and the signal validity is used to instruct the downstream software component to determine whether to provide the functional service indicated by the signal value.

2. The method according to claim 1, characterized in that The preprocessing of the vehicle network signal according to the diagnostic information to determine the signal value and signal validity of the processed vehicle network signal includes: According to the diagnostic information, a processing strategy used when preprocessing the vehicle network signal is selected; the processing strategy at least includes: a preprocessing method for signal value and a preprocessing method for signal validity; the diagnostic information at least includes: whether a communication failure occurs and whether the signal is valid; Based on the processing strategy, the signal value and signal validity are determined.

3. The method according to claim 2, characterized in that The processing strategy includes a first processing strategy and a second processing strategy, and the processing strategy used when preprocessing the vehicle network signal is selected according to the diagnostic information includes: When the diagnostic information indicates that a communication failure occurs in the vehicle network signal and the communication failure does not exceed a calibrated time, a first processing strategy is selected to pre-process the vehicle network signal, wherein the pre-processing method of the signal value in the first processing strategy includes: setting the signal value to the signal value at the previous moment, and the signal validity pre-processing method includes: setting the signal validity to fault confirmation; or When the diagnostic information indicates that a communication failure occurs in the vehicle network signal and the communication failure exceeds a calibrated time, a second processing strategy is selected to pre-process the vehicle network signal; the pre-processing method of the signal value in the second processing strategy includes: setting the signal value to the signal value at the previous moment or the default signal value, and the signal validity pre-processing method includes: setting the signal validity to invalid.

4. The method according to claim 2, characterized in that: The processing strategy includes a second processing strategy, wherein the processing strategy used when preprocessing the vehicle network signal is selected according to the diagnostic information includes: When the diagnostic information indicates that the vehicle network signal is invalid, a second processing strategy is selected to preprocess the vehicle network signal. The preprocessing method of the signal value in the second processing strategy includes: setting the signal value to the signal value of the previous moment or the default signal value, and the signal validity preprocessing method includes: setting the signal validity to invalid.

5. The method according to claim 2, characterized in that: The processing strategy includes a second processing strategy, wherein the processing strategy used when preprocessing the vehicle network signal is selected according to the diagnostic information includes: When the diagnostic information indicates that the vehicle network signal has no communication failure and the signal is valid, obtaining an original signal value of the vehicle network signal; When the original signal value exceeds a preset range, a second processing strategy is selected to preprocess the vehicle network signal. The preprocessing method of the signal value in the second processing strategy includes: setting the signal value to the signal value of the previous moment or the default signal value, and the signal validity preprocessing method includes: setting the signal validity to invalid.

6. The method according to claim 5, characterized in that The processing strategy includes a third processing strategy, wherein the processing strategy used when preprocessing the vehicle network signal is selected according to the diagnostic information further includes: When the original signal value does not exceed a preset range, a third processing strategy is selected to preprocess the vehicle network signal. The preprocessing method of the signal value in the third processing strategy includes: setting the signal value to the original signal value, and the signal validity preprocessing method includes: setting the signal validity to valid.

7. The method according to claim 1, characterized in that Before receiving the vehicle network signal from the bottom layer of the controller, the method further includes: When it is determined that the controller is in a first working state, obtaining a simulated vehicle network signal from the controller; wherein the first working state includes an initialization state and / or a state in which message information is prohibited from being sent; A fourth processing strategy is selected to preprocess the simulated vehicle network signal to determine the signal value and signal validity of the processed vehicle network signal. The preprocessing method of the signal value in the fourth processing strategy includes: setting the signal value to a default signal value, and the signal validity preprocessing method includes: setting the signal validity to valid.

8. A vehicle network signal preprocessing device, used to execute the vehicle network signal preprocessing method according to any one of claims 1 to 7, characterized in that: The network signal preprocessing device comprises: A receiving module, used for receiving an in-vehicle network signal from the bottom layer of the controller and diagnostic information of the in-vehicle network signal; A preprocessing module is used to preprocess the vehicle network signal according to the diagnostic information to determine the signal value and signal validity of the processed vehicle network signal, wherein the signal value is used to indicate the functional service provided by the downstream software component; and the signal validity is used to instruct the downstream software component to determine whether to provide the functional service indicated by the signal value.

9. An electronic device, characterized in that: The electronic device includes a memory and one or more processors, and a computer program is stored in the memory. When the computer program is executed by the electronic device, the vehicle network signal preprocessing method as described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The readable storage medium stores executable instructions, wherein the executable instructions, when executed by a processor, implement the method according to any one of claims 1 to 7.