CN109507985B - Input channel testing method and device of vehicle control unit - Google Patents

Input channel testing method and device of vehicle control unit Download PDF

Info

Publication number
CN109507985B
CN109507985B CN201811294121.6A CN201811294121A CN109507985B CN 109507985 B CN109507985 B CN 109507985B CN 201811294121 A CN201811294121 A CN 201811294121A CN 109507985 B CN109507985 B CN 109507985B
Authority
CN
China
Prior art keywords
control unit
module
message
input channel
vehicle control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811294121.6A
Other languages
Chinese (zh)
Other versions
CN109507985A (en
Inventor
陆群
孙乃振
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CH Auto Technology Co Ltd
Original Assignee
CH Auto Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CH Auto Technology Co Ltd filed Critical CH Auto Technology Co Ltd
Priority to CN201811294121.6A priority Critical patent/CN109507985B/en
Publication of CN109507985A publication Critical patent/CN109507985A/en
Application granted granted Critical
Publication of CN109507985B publication Critical patent/CN109507985B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Electric Propulsion And Braking For Vehicles (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention discloses a method and a device for testing an input channel of a vehicle control unit. The test method comprises the following steps: defining a global variable corresponding to an input channel of the vehicle control unit; enabling a signal generator to send a level signal to an acquisition module of the vehicle controller through the input channel, and enabling the acquisition module of the vehicle controller to assign the received level signal to the global variable; enabling a CAN packaging module of the vehicle control unit to read the value of the global variable, packaging the value into a Controller Area Network (CAN) message, and sending the CAN message; and enabling a CAN tool outside the vehicle control unit to receive the CAN message, analyzing the CAN message to obtain the value, and determining the functionality of the input channel based on the comparison result of the value and the level signal. The invention can test the input channel without a professional debugging tool, thereby saving the cost and improving the test efficiency.

Description

Input channel testing method and device of vehicle control unit
Technical Field
The invention relates to the technical field of automobiles, in particular to a method and a device for testing an input channel of a vehicle control unit.
Background
The shortage of energy, the petroleum crisis and the environmental pollution are getting more and more severe, which brings great influence to the life of people and is directly related to the sustainable development of national economy and society. New energy technologies are actively developed in all countries of the world. An electric vehicle is considered as an important approach to solve energy crisis and environmental deterioration as a new energy vehicle with reduced oil consumption, low pollution and low noise. The hybrid electric vehicle has the advantages of both a pure electric vehicle and a traditional internal combustion engine vehicle, effectively improves fuel economy and reduces emission on the premise of meeting the requirements of vehicle dynamic property and driving range, and is considered to be one of the effective paths of energy conservation and emission reduction at present.
A Vehicle Control Unit (VCU) is a core electronic control unit for realizing a vehicle control decision, and is generally only equipped for new energy vehicles. The vehicle control unit judges the driving intention of a driver by acquiring signals of an accelerator pedal, a gear, a brake pedal and the like; the vehicle state (vehicle speed, temperature and the like) information is monitored, and after the information is judged and processed by the vehicle controller, the vehicle running state control instruction is sent to the power system and the power battery system, and meanwhile, the working mode of the vehicle-mounted accessory power system is controlled; the vehicle control unit has the functions of vehicle system fault diagnosis protection and storage.
Currently, a dedicated debugging tool is required for debugging (debug) the test of the hard-wire input channel of the whole vehicle controller, and whether the signal collected by the controller is correct or not is observed through the debugging tool. Without a special debugging tool, there is no effective method for testing the input channel.
Disclosure of Invention
The invention aims to provide an input channel testing method and device of a vehicle control unit.
The technical scheme of the embodiment of the invention is as follows:
an input channel testing method of a vehicle control unit comprises the following steps:
defining a global variable corresponding to an input channel of the vehicle control unit;
enabling a signal generator to send a level signal to an acquisition module of the vehicle controller through the input channel, and enabling the acquisition module of the vehicle controller to assign the received level signal to the global variable;
enabling a CAN packaging module of the vehicle control unit to read the value of the global variable, packaging the value into a Controller Area Network (CAN) message, and sending the CAN message;
and enabling a CAN tool outside the vehicle control unit to receive the CAN message, analyzing the CAN message to obtain the value, and determining the functionality of the input channel based on the comparison result of the value and the level signal.
In one embodiment, the number of input channels is N, wherein the global variables defining the input channels corresponding to the vehicle control unit are: n global variables are defined which respectively correspond to N input channels, wherein N is a positive integer of at least 2.
In one embodiment, the enabling signal generator sends a level signal to an acquisition module of the vehicle control unit via an input channel, and enabling the acquisition module of the vehicle control unit to assign the level signal to the global variable includes: and the enabling signal generator respectively sends respective level signals to the acquisition module of the vehicle controller through the N input channels, so that the acquisition module of the vehicle controller respectively assigns the respective level signals to respective global variables of the respective input channels.
In one embodiment, the enabling of the value of the global variable by the CAN encapsulation module of the vehicle control unit, encapsulating the value into a CAN message, and sending the CAN message includes: enabling a CAN packaging module of the vehicle control unit to read the values of the N global variables, uniformly packaging the values of the N global variables into a CAN message, and sending the CAN message;
the analyzing the CAN message to obtain the value and determining the functionality of the input channel based on the comparison result of the value and the level signal comprises: analyzing the CAN message to obtain the values of the N global variables, and determining the functionality of each input channel based on the comparison result of each global variable value and each level signal.
In one embodiment, the enabling of the value of the global variable by the CAN encapsulation module of the vehicle control unit, encapsulating the value into a CAN message, and sending the CAN message includes: enabling a CAN packaging module of the whole vehicle controller to read the values of the N global variables, respectively packaging the values of the N global variables into N CAN messages, and sending the N CAN messages;
the analyzing the CAN message to obtain the value and determining the functionality of the input channel based on the comparison result of the value and the level signal comprises: and analyzing the N CAN messages to respectively obtain the values of the respective global variables, and determining the functionality of the respective input channels based on the comparison result of the values of the respective global variables and the respective level signals.
An input channel testing device of a vehicle control unit comprises:
the variable definition module is used for defining a global variable corresponding to an input channel of the whole vehicle controller;
the assignment module is used for enabling the signal generator to send a level signal to the acquisition module of the vehicle controller through the input channel, and enabling the acquisition module of the vehicle controller to assign the received level signal to the global variable;
the sending module is used for enabling a CAN packaging module of the vehicle control unit to read the value of the global variable, packaging the value into a Controller Area Network (CAN) message and sending the CAN message;
and the determining module is used for enabling a CAN tool outside the vehicle controller to receive the CAN message, analyzing the CAN message to obtain the value, and determining the functionality of the input channel based on the comparison result of the value and the level signal.
In one embodiment, the number of input channels is N, and the variable definition module is configured to define N global variables respectively corresponding to the N input channels, where N is a positive integer of at least 2.
In one embodiment, the assignment module is configured to enable the signal generator to send respective level signals to the acquisition module of the vehicle controller via the N input channels, and enable the acquisition module of the vehicle controller to assign the respective level signals to respective global variables of the respective input channels.
In one embodiment, the sending module is configured to enable a CAN encapsulation module of the vehicle control unit to read values of the N global variables, encapsulate the values of the N global variables into a CAN message uniformly, and send the CAN message;
and the determining module is used for analyzing the CAN message to obtain the values of the N global variables and determining the functionality of each input channel based on the comparison result of each global variable value and each level signal.
In one embodiment, the sending module is configured to enable a CAN encapsulation module of the vehicle controller to read values of the N global variables, encapsulate the values of the N global variables into N CAN messages respectively, and send the N CAN messages;
and the determining module is used for analyzing the N CAN messages to respectively obtain the values of the respective global variables, and determining the functionality of the respective input channel based on the comparison result of the values of the respective global variables and the respective level signals.
From the above technical solutions, in an embodiment of the present invention, a test method includes: defining a global variable corresponding to an input channel of the vehicle control unit; enabling a signal generator to send a level signal to an acquisition module of the vehicle controller through the input channel, and enabling the acquisition module of the vehicle controller to assign the received level signal to the global variable; enabling a CAN packaging module of the vehicle control unit to read the value of the global variable, packaging the value into a Controller Area Network (CAN) message, and sending the CAN message; and enabling a CAN tool outside the vehicle control unit to receive the CAN message, analyzing the CAN message to obtain the value, and determining the functionality of the input channel based on the comparison result of the value and the level signal. Therefore, the invention can test the input channel without a professional debugging tool, thereby saving the cost and improving the efficiency.
In addition, the embodiment of the invention realizes synchronous assignment between the acquisition module and the CAN packaging module of the whole vehicle controller by defining the global variable, and improves the testing efficiency.
Drawings
The following drawings are only schematic illustrations and explanations of the present invention, and do not limit the scope of the present invention.
Fig. 1 is a flowchart of an input channel testing method of a vehicle control unit of an electric vehicle according to the present invention.
Fig. 2 is a schematic diagram of an input channel testing process of a vehicle control unit of an electric vehicle according to the present invention.
Fig. 3 is a schematic diagram of uniformly encapsulating values of N global variables into a CAN message according to the present invention.
Fig. 4 is a schematic diagram of values of N global variables respectively encapsulated to N CAN messages according to the present invention.
Fig. 5 is a structural diagram of an input channel testing apparatus of a vehicle control unit of an electric vehicle according to the present invention.
Detailed Description
In order to more clearly understand the technical features, objects, and effects of the present invention, embodiments of the present invention will now be described with reference to the accompanying drawings, in which like reference numerals refer to like parts throughout.
For simplicity and clarity of description, the invention will be described below by describing several representative embodiments. Numerous details of the embodiments are set forth to provide an understanding of the principles of the invention. It will be apparent, however, that the invention may be practiced without these specific details. Some embodiments are not described in detail, but rather are merely provided as frameworks, in order to avoid unnecessarily obscuring aspects of the invention. Hereinafter, "including" means "including but not limited to", "according to … …" means "at least according to … …, but not limited to … … only". In view of the language convention of chinese, the following description, when it does not specifically state the number of a component, means that the component may be one or more, or may be understood as at least one.
Fig. 1 is a flowchart of an input channel testing method of a vehicle control unit of an electric vehicle according to the present invention.
As shown in fig. 1, the method includes:
step 101: global variables corresponding to input channels of the vehicle control unit are defined. Here, the input channel is a hard-wired input channel of the vehicle control unit.
Step 102: the enabling signal generator sends a level signal to the acquisition module of the vehicle controller through the input channel, and the acquisition module of the vehicle controller enables the received level signal to be assigned to the global variable.
Step 103: and enabling a CAN packaging module of the vehicle controller to read the value of the global variable, packaging the value into a Controller Area Network (CAN) message, and sending the CAN message.
Step 104: and enabling a CAN tool outside the vehicle control unit to receive the CAN message, analyzing the CAN message to obtain the value, and determining the functionality of the input channel based on the comparison result of the value and the level signal.
For example, assuming that the level signal sent by the signal generator is a high level signal (e.g., 5V), the high level value (5) is obtained through the analysis of the CAN tool, and the level signal sent by the signal generator is a low level signal (e.g., 0V), the low level value (0) is obtained through the analysis of the CAN tool, which proves that the input channel CAN be normally used.
For another example, assuming that the level signal sent by the signal generator is a high level signal (e.g., 5V), a low level value (e.g., 0) is obtained through the analysis of the CAN tool, or the level signal sent by the signal generator is a low level signal (e.g., 0V), a high level value (e.g., 5) is obtained through the analysis of the CAN tool, which may prove that the input channel may not be used normally.
Moreover, based on the definition of the global variable, the CAN packaging module CAN quickly acquire the level signal received by the acquisition module, and the level signal CAN be quickly transmitted between the acquisition module and the CAN packaging module.
In one embodiment, the number of input channels is N, wherein the global variables defining the input channels corresponding to the vehicle control unit are: n global variables are defined which respectively correspond to N input channels, wherein N is a positive integer of at least 2.
In one embodiment, the enabling signal generator sends a level signal to an acquisition module of the vehicle control unit via an input channel, and enabling the acquisition module of the vehicle control unit to assign the level signal to the global variable includes: and the enabling signal generator respectively sends respective level signals to the acquisition module of the vehicle controller through the N input channels, so that the acquisition module of the vehicle controller respectively assigns the respective level signals to respective global variables of the respective input channels.
In one embodiment, enabling the CAN encapsulation module of the vehicle controller to read the value of the global variable, encapsulating the value into a CAN message, and sending the CAN message includes: enabling a CAN packaging module of the vehicle control unit to read the values of the N global variables, uniformly packaging the values of the N global variables into a CAN message, and sending the CAN message; the analyzing the CAN message to obtain the value and determining the functionality of the input channel based on the comparison result of the value and the level signal comprises: analyzing the CAN message to obtain the values of the N global variables, and determining the functionality of each input channel based on the comparison result of each global variable value and each level signal.
The CAN message may be implemented as a standard frame (CAN2.0a) or an extended frame (CAN2.0 b).
Fig. 3 is a schematic diagram of uniformly encapsulating values of N global variables into a CAN message according to the present invention.
As CAN be seen from fig. 3, the values of the N global variables are uniformly encapsulated in the CAN message. Preferably, the values of the N global variables have respective identifiers in the CAN message. For example, the value of the first global variable corresponding to the first input channel is associated with a setting identifier T1 in the CAN message; and the value of the second global variable corresponding to the second input channel is associated with the value of the Nth global variable corresponding to the Nth input channel of the identifier T2 … in the CAN message, and the identifier TN is associated in the CAN message. Then, the CAN tool outside the vehicle control unit CAN identify the input channel corresponding to the value of the global variable based on the read identifier. For example, after the vehicle control unit reads T1, a field between T1 and the subsequently read T2 may be identified as a value of a first global variable corresponding to a first input channel; when the vehicle control unit reads T2, the field between T2 and the subsequently read T3 may be identified as the value of the second global variable corresponding to the 2 nd input channel, and so on.
In one embodiment, enabling the CAN encapsulation module of the vehicle controller to read the value of the global variable, encapsulating the value into a CAN message, and sending the CAN message includes: enabling a CAN packaging module of the whole vehicle controller to read the values of the N global variables, respectively packaging the values of the N global variables into N CAN messages, and sending the N CAN messages; the analyzing the CAN message to obtain the value and determining the functionality of the input channel based on the comparison result of the value and the level signal comprises: and analyzing the N CAN messages to respectively obtain the values of the respective global variables, and determining the functionality of the respective input channels based on the comparison result of the values of the respective global variables and the respective level signals.
Fig. 4 is a schematic diagram of values of N global variables respectively encapsulated to N CAN messages according to the present invention.
Fig. 4 illustrates an exemplary structure of a CAN message, which only stores the value of a global variable. Preferably, the value of the global variable has an identification in the CAN message. For example, the value of a first global variable corresponding to a first input channel is associated with a setting identifier T1 in a first CAN message; and the value of the second global variable corresponding to the second input channel is associated with the value of the nth global variable corresponding to the nth input channel of the identifier T2 … in the second CAN message, and the identifier TN is associated with the nth CAN message.
Then, the CAN tool outside the vehicle control unit CAN identify the input channel corresponding to the value of the global variable based on the read identifier. For example, after the vehicle controller reads a first CAN message, the value of the global variable in the load field of the first CAN message CAN be identified as the value of a first global variable corresponding to the first input channel by identifying T1 in the first CAN message; after the vehicle controller reads the second CAN message, the value of the global variable in the load field of the second CAN message CAN be identified as the value of the second global variable corresponding to the second input channel by identifying T2 in the second CAN message, and so on.
Fig. 2 is a schematic diagram of an input channel testing process of a vehicle control unit of an electric vehicle according to the present invention.
As shown in fig. 2, in the integrated compiling environment of the vehicle controller, a global variable is defined, and the global variable may be used by a CAN package module in the vehicle controller and an acquisition module in the vehicle controller. And in the integrated compiling environment, generating a binary file after compiling, and writing the binary file into the vehicle control unit in a flashing manner. The vehicle control unit is connected with a power supply, a CAN tool and a signal generator.
For example, in an integrated compiling environment, a global variable Test _1 is defined, the Test _1 corresponds to the input channel 1, the active signal generator sends a level signal to the input channel 1, and the acquisition module receives the level signal and assigns a value to the Test _ 1. Since Test _1 is a global variable, Test _1 in the CAN encapsulation module also gets an assignment accordingly. In the CAN encapsulation module, the value of Test _1 corresponds to the first 4 bits of the 1 st byte of 0x700 of the CAN message, and 0x700 is sent to the CAN bus. If the signal generator sends a high-level signal (5V) in a simulation way, the CAN tool analyzes the high-level signal to obtain a high-level value (5); the signal generator simulates and sends a low level signal (0V), and a low level value (0) is obtained through the analysis of a CAN tool, so that the input channel 1 CAN be proved to be normally used. Similarly, N global variables may be defined, corresponding to N input channels, and corresponding to the test packets, respectively. Therefore, whether the input channel CAN be normally used or not CAN be judged only by observing the message by using the CAN tool.
Fig. 5 is a structural diagram of an input channel testing apparatus of a vehicle control unit of an electric vehicle according to the present invention.
As shown in fig. 5, the input channel testing apparatus of the vehicle control unit includes:
a variable definition module 501, configured to define a global variable corresponding to an input channel of a vehicle controller;
the assignment module 502 is configured to enable the signal generator to send a level signal to the acquisition module of the vehicle controller via the input channel, and enable the acquisition module of the vehicle controller to assign the received level signal to the global variable;
a sending module 503, configured to enable a CAN encapsulation module of the vehicle controller to read a value of the global variable, encapsulate the value into a controller area network CAN message, and send the CAN message;
a determining module 504, configured to enable a CAN tool outside the vehicle controller to receive the CAN packet, analyze the CAN packet to obtain the value, and determine functionality of the input channel based on a comparison result between the value and the level signal.
In one embodiment, the number of input channels is N; a variable defining module 501, configured to define N global variables respectively corresponding to N input channels, where N is a positive integer at least equal to 2.
In one embodiment, the assigning module 502 is configured to enable the signal generator to send respective level signals to the acquisition module of the vehicle controller via the N input channels, and enable the acquisition module of the vehicle controller to assign the respective level signals to respective global variables of the respective input channels.
In one embodiment, the sending module 503 is configured to enable a CAN encapsulation module of the vehicle control unit to read values of the N global variables, uniformly encapsulate the values of the N global variables into a CAN message, and send the CAN message;
a determining module 504, configured to analyze the CAN packet to obtain values of the N global variables, and determine functionality of each input channel based on a comparison result between the value of each global variable and each level signal.
In an embodiment, the sending module 503 is configured to enable a CAN encapsulation module of the vehicle controller to read values of the N global variables, encapsulate the values of the N global variables into N CAN messages respectively, and send the N CAN messages; a determining module 504, configured to analyze the N CAN messages to obtain respective values of the global variables, and determine functionality of respective input channels based on a comparison result between the respective values of the global variables and respective level signals.
It should be noted that not all steps and modules in the above flows and structures are necessary, and some steps or modules may be omitted according to actual needs. The execution order of the steps is not fixed and can be adjusted as required. The division of each module is only for convenience of describing adopted functional division, and in actual implementation, one module may be divided into multiple modules, and the functions of multiple modules may also be implemented by the same module, and these modules may be located in the same device or in different devices.
The hardware modules in the various embodiments may be implemented mechanically or electronically. For example, a hardware module may include a specially designed permanent circuit or logic device (e.g., a special purpose processor such as an FPGA or ASIC) for performing specific operations. A hardware module may also include programmable logic devices or circuits (e.g., including a general-purpose processor or other programmable processor) that are temporarily configured by software to perform certain operations. The implementation of the hardware module in a mechanical manner, or in a dedicated permanent circuit, or in a temporarily configured circuit (e.g., configured by software), may be determined based on cost and time considerations.
The present invention also provides a machine-readable storage medium storing instructions for causing a machine to perform a method as described herein. Specifically, a system or an apparatus equipped with a storage medium on which a software program code that realizes the functions of any of the embodiments described above is stored may be provided, and a computer (or a CPU or MPU) of the system or the apparatus is caused to read out and execute the program code stored in the storage medium. Further, part or all of the actual operations may be performed by an operating system or the like operating on the computer by instructions based on the program code. The functions of any of the above-described embodiments may also be implemented by writing the program code read out from the storage medium to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion unit connected to the computer, and then causing a CPU or the like mounted on the expansion board or the expansion unit to perform part or all of the actual operations based on the instructions of the program code.
Examples of the storage medium for supplying the program code include floppy disks, hard disks, magneto-optical disks, optical disks (e.g., CD-ROMs, CD-R, CD-RWs, DVD-ROMs, DVD-RAMs, DVD-RWs, DVD + RWs), magnetic tapes, nonvolatile memory cards, and ROMs. Alternatively, the program code may be downloaded from a server computer or the cloud by a communication network.
It should be noted that not all steps and modules in the above flows and system structure diagrams are necessary, and some steps or modules may be omitted according to actual needs. The execution order of the steps is not fixed and can be adjusted as required. The system structure described in the above embodiments may be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by a plurality of physical entities, or some components in a plurality of independent devices may be implemented together.
While the invention has been shown and described in detail in the drawings and in the preferred embodiments, it is not intended to limit the invention to the disclosed embodiments, and it will be apparent to those skilled in the art that many more embodiments of the invention are possible in combination with the various embodiments described above and are within the scope of the invention.
The invention can be applied to various types of new energy automobiles, such as pure electric automobiles, hybrid electric automobiles, fuel cell automobiles and the like.
The above-listed detailed description is only a specific description of a possible embodiment of the present invention and is not intended to limit the scope of the present invention, and equivalent embodiments or modifications such as combinations, divisions or repetitions of the features without departing from the technical spirit of the present invention are included in the scope of the present invention.

Claims (10)

1. An input channel testing method of a vehicle control unit is characterized by comprising the following steps:
in an integrated compiling environment of the vehicle controller, defining a global variable corresponding to an input channel of the vehicle controller, wherein the global variable CAN be used by a CAN packaging module of the vehicle controller and an acquisition module of the vehicle controller;
enabling a signal generator to send a level signal to an acquisition module of the vehicle controller through the input channel, and enabling the acquisition module of the vehicle controller to assign the received level signal to the global variable;
enabling a CAN packaging module of the vehicle control unit to read the value of the global variable, packaging the value into a Controller Area Network (CAN) message, and sending the CAN message;
and enabling a CAN tool outside the vehicle control unit to receive the CAN message, analyzing the CAN message to obtain the value, and determining the functionality of the input channel based on the comparison result of the value and the level signal.
2. The input channel testing method of the vehicle control unit according to claim 1, wherein the number of the input channels is N, and wherein the defining the global variables corresponding to the input channels of the vehicle control unit is: n global variables are defined which respectively correspond to N input channels, wherein N is a positive integer of at least 2.
3. The input channel testing method of the vehicle control unit according to claim 2,
the enabling signal generator sends a level signal to an acquisition module of the vehicle control unit through an input channel, and enabling the acquisition module of the vehicle control unit to assign the level signal to a global variable comprises the following steps: and the enabling signal generator respectively sends respective level signals to the acquisition module of the vehicle controller through the N input channels, so that the acquisition module of the vehicle controller respectively assigns the respective level signals to respective global variables of the respective input channels.
4. The input channel testing method of the vehicle control unit according to claim 3,
the enabling of the CAN encapsulation module of the vehicle control unit reads the value of the global variable, encapsulates the value into a CAN message, and sends the CAN message, wherein the enabling of the CAN encapsulation module of the vehicle control unit comprises the following steps: enabling a CAN packaging module of the vehicle control unit to read the values of the N global variables, uniformly packaging the values of the N global variables into a CAN message, and sending the CAN message;
the analyzing the CAN message to obtain the value and determining the functionality of the input channel based on the comparison result of the value and the level signal comprises: analyzing the CAN message to obtain the values of the N global variables, and determining the functionality of each input channel based on the comparison result of each global variable value and each level signal.
5. The input channel testing method of the vehicle control unit according to claim 3,
the enabling of the CAN encapsulation module of the vehicle control unit reads the value of the global variable, encapsulates the value into a CAN message, and sends the CAN message, wherein the enabling of the CAN encapsulation module of the vehicle control unit comprises the following steps: enabling a CAN packaging module of the whole vehicle controller to read the values of the N global variables, respectively packaging the values of the N global variables into N CAN messages, and sending the N CAN messages;
the analyzing the CAN message to obtain the value and determining the functionality of the input channel based on the comparison result of the value and the level signal comprises: and analyzing the N CAN messages to respectively obtain the values of the respective global variables, and determining the functionality of the respective input channels based on the comparison result of the values of the respective global variables and the respective level signals.
6. An input channel testing device of a vehicle control unit is characterized by comprising:
the system comprises a variable definition module, a global variable control module and a data processing module, wherein the variable definition module is used for defining a global variable corresponding to an input channel of the vehicle control unit in an integrated compiling environment of the vehicle control unit, and the global variable CAN be used by a CAN packaging module of the vehicle control unit and an acquisition module of the vehicle control unit;
the assignment module is used for enabling the signal generator to send a level signal to the acquisition module of the vehicle controller through the input channel, and enabling the acquisition module of the vehicle controller to assign the received level signal to the global variable;
the sending module is used for enabling a CAN packaging module of the vehicle control unit to read the value of the global variable, packaging the value into a Controller Area Network (CAN) message and sending the CAN message;
and the determining module is used for enabling a CAN tool outside the vehicle controller to receive the CAN message, analyzing the CAN message to obtain the value, and determining the functionality of the input channel based on the comparison result of the value and the level signal.
7. The input channel testing device of the vehicle control unit according to claim 6, wherein the number of the input channels is N; and the variable definition module is used for defining N global variables respectively corresponding to the N input channels, wherein N is a positive integer of at least 2.
8. The input channel testing device of the vehicle control unit according to claim 7,
and the assignment module is used for enabling the signal generator to respectively send respective level signals to the acquisition module of the vehicle controller through the N input channels, and enabling the acquisition module of the vehicle controller to respectively assign the respective level signals to respective global variables of the respective input channels.
9. The input channel testing device of the vehicle control unit according to claim 8,
the sending module is used for enabling a CAN packaging module of the vehicle controller to read the values of the N global variables, uniformly packaging the values of the N global variables into a CAN message and sending the CAN message;
and the determining module is used for analyzing the CAN message to obtain the values of the N global variables and determining the functionality of each input channel based on the comparison result of each global variable value and each level signal.
10. The input channel testing device of the vehicle control unit according to claim 8,
the sending module is used for enabling a CAN packaging module of the vehicle controller to read the values of the N global variables, packaging the values of the N global variables into N CAN messages respectively, and sending the N CAN messages;
and the determining module is used for analyzing the N CAN messages to respectively obtain the values of the respective global variables, and determining the functionality of the respective input channel based on the comparison result of the values of the respective global variables and the respective level signals.
CN201811294121.6A 2018-11-01 2018-11-01 Input channel testing method and device of vehicle control unit Active CN109507985B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811294121.6A CN109507985B (en) 2018-11-01 2018-11-01 Input channel testing method and device of vehicle control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811294121.6A CN109507985B (en) 2018-11-01 2018-11-01 Input channel testing method and device of vehicle control unit

Publications (2)

Publication Number Publication Date
CN109507985A CN109507985A (en) 2019-03-22
CN109507985B true CN109507985B (en) 2020-08-25

Family

ID=65747375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811294121.6A Active CN109507985B (en) 2018-11-01 2018-11-01 Input channel testing method and device of vehicle control unit

Country Status (1)

Country Link
CN (1) CN109507985B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5608627A (en) * 1993-09-17 1997-03-04 Aerospatiale Societe Nationale Industrielle Device for supervising the propulsion system of an aircraft
CN202624123U (en) * 2012-04-14 2012-12-26 浙江永源汽车有限公司 Controller for integral pure electric vehicle
CN104836713A (en) * 2014-09-02 2015-08-12 北汽福田汽车股份有限公司 Measurement and calibration method for vehicle electronic controller, device and system
CN205375101U (en) * 2016-01-29 2016-07-06 武汉理工通宇新源动力有限公司 A vehicle control unit for hybrid vehicle

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6107770A (en) * 1998-01-27 2000-08-22 Lockheed Martin Corporation Control system for counter-oscillating masses
KR20110073966A (en) * 2009-12-24 2011-06-30 주식회사 하이닉스반도체 Semiconductor memory apparatus
CN104111169A (en) * 2014-07-17 2014-10-22 盛瑞传动股份有限公司 Complete automatic calibration testing method, system and device of automatic transmission
CN105515902B (en) * 2015-11-27 2019-06-04 北京新能源汽车股份有限公司 The test method and system of entire car controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5608627A (en) * 1993-09-17 1997-03-04 Aerospatiale Societe Nationale Industrielle Device for supervising the propulsion system of an aircraft
CN202624123U (en) * 2012-04-14 2012-12-26 浙江永源汽车有限公司 Controller for integral pure electric vehicle
CN104836713A (en) * 2014-09-02 2015-08-12 北汽福田汽车股份有限公司 Measurement and calibration method for vehicle electronic controller, device and system
CN205375101U (en) * 2016-01-29 2016-07-06 武汉理工通宇新源动力有限公司 A vehicle control unit for hybrid vehicle

Also Published As

Publication number Publication date
CN109507985A (en) 2019-03-22

Similar Documents

Publication Publication Date Title
CN107135210B (en) Automobile simulation communication protocol analyzer and analysis method thereof
CN110816308B (en) Method and device for controlling starting of range extender and range-extended electric vehicle
CN110233768B (en) UDS-based CAN bus test system and CAN bus test method
CN110927573B (en) Hybrid power engine debugging method, device, equipment and storage medium
CN108241357B (en) Test environment model generation method and device, computer equipment and storage medium
KR20160089318A (en) Controller for an electric motor, and a method thereof
Rama et al. Route-optimized energy management of connected and automated multi-mode plug-in hybrid electric vehicle using dynamic programming
CN105905050B (en) A kind of entire car controller, the method and system for configuring control subsystem
CN205015162U (en) Electric automobile carries testing system in whole car simulation area
CN111983990A (en) Automatic testing platform for basic software
CN109379232A (en) A kind of Controller Area Network BUS closing fault treating method and apparatus
Rama et al. Computationally efficient reduced-order powertrain model of a multi-mode plug-in hybrid electric vehicle for connected and automated vehicles
CN109507985B (en) Input channel testing method and device of vehicle control unit
CN102338861B (en) Method and system for evaluating performance of power supply system of automobile
CN110162007A (en) A kind of detection system and detection method of vehicle trouble
CN109491363B (en) Method and device for testing output channel of vehicle control unit
CN108733937B (en) Electromagnetic noise simulation method of claw-pole generator under stator winding turn-to-turn short circuit
CN111708661A (en) Pressure testing system and method suitable for central gateway
CN102087526B (en) Method and device for detecting memory of hybrid vehicle controller
Nair et al. High dynamic HIL model for complete software testing solution of Hev/Ev
KR20190126629A (en) Dual battery hils system and method of driving the same
CN113776707A (en) Vehicle power testing method, system and computer readable medium
Choi et al. Model based design and real-time simulation of the electric bike using RT-LAB and Simulink
Vora et al. Survey on Designing of Electric Vehicle Instrument Cluster
CN201867645U (en) Signal acquisition circuit for hybrid power complete-vehicle controller

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant