CN112413109B - Whole vehicle reverse analysis working method based on CAN bus network signal - Google Patents
Whole vehicle reverse analysis working method based on CAN bus network signal Download PDFInfo
- Publication number
- CN112413109B CN112413109B CN202011299383.9A CN202011299383A CN112413109B CN 112413109 B CN112413109 B CN 112413109B CN 202011299383 A CN202011299383 A CN 202011299383A CN 112413109 B CN112413109 B CN 112413109B
- Authority
- CN
- China
- Prior art keywords
- gear
- speed
- rotating speed
- input shaft
- signal
- 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
Links
Images
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F16—ENGINEERING ELEMENTS AND UNITS; GENERAL MEASURES FOR PRODUCING AND MAINTAINING EFFECTIVE FUNCTIONING OF MACHINES OR INSTALLATIONS; THERMAL INSULATION IN GENERAL
- F16H—GEARING
- F16H61/00—Control functions within control units of change-speed- or reversing-gearings for conveying rotary motion ; Control of exclusively fluid gearing, friction gearing, gearings with endless flexible members or other particular types of gearing
- F16H61/02—Control functions within control units of change-speed- or reversing-gearings for conveying rotary motion ; Control of exclusively fluid gearing, friction gearing, gearings with endless flexible members or other particular types of gearing characterised by the signals used
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F16—ENGINEERING ELEMENTS AND UNITS; GENERAL MEASURES FOR PRODUCING AND MAINTAINING EFFECTIVE FUNCTIONING OF MACHINES OR INSTALLATIONS; THERMAL INSULATION IN GENERAL
- F16H—GEARING
- F16H63/00—Control outputs from the control unit to change-speed- or reversing-gearings for conveying rotary motion or to other devices than the final output mechanism
- F16H63/40—Control outputs from the control unit to change-speed- or reversing-gearings for conveying rotary motion or to other devices than the final output mechanism comprising signals other than signals for actuating the final output mechanisms
- F16H63/50—Signals to an engine or motor
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01M—TESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
- G01M17/00—Testing of vehicles
- G01M17/007—Wheeled or endless-tracked vehicles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2218/00—Aspects of pattern recognition specially adapted for signal processing
- G06F2218/12—Classification; Matching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40215—Controller Area Network CAN
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Mechanical Engineering (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Control Of Transmission Device (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种解析方法,尤其涉及一种基于CAN总线网络信号的整车反向解析工作方法。The invention relates to an analysis method, in particular to a reverse analysis working method of a vehicle based on a CAN bus network signal.
背景技术Background technique
测试机通常都是从整车上拆解得到的,然后通过发动机台架测试获得期望的各种性能数据。然而随着现代汽车技术的进步,发动机控制系统与整车其余相关系统通过信号交互逐渐成为一个整体,发动机运行工况不同程度地受到整车其余相关系统运行状态的影响。比如挂空挡时发动机的最高转速可能会受到限制,而当传动系统出现故障时发动机扭矩也可能会受到限制。为了让标杆机在性能台架上正常运转,进而测得准确的性能数据,首先,发动机与整车各系统之间的正常信号交互是必需的;其次,某些会对发动机性能有影响的信号也必须是合适的值。因此,整车信号解析及模拟技术研究就成为标杆机性能对标需要首先攻克的难题。并且随着汽车与发动机电控系统的复杂度越来越高,特别是混合动力车型发动机对标需求的出现,整车信号解析及模拟的难度也越来越高,因此,研究并建立一套行之有效的整车信号解析及模拟技术也越发重要。The test machine is usually disassembled from the whole vehicle, and then the expected performance data is obtained through the engine bench test. However, with the advancement of modern automotive technology, the engine control system and other related systems of the vehicle have gradually become a whole through signal interaction, and the operating conditions of the engine are affected by the operating status of the rest of the vehicle's related systems to varying degrees. For example, the engine's top speed may be limited when in neutral, and engine torque may be limited when the drivetrain fails. In order to make the benchmarking machine run normally on the performance bench, and then measure accurate performance data, firstly, the normal signal interaction between the engine and the various systems of the vehicle is necessary; secondly, some signals that will affect the performance of the engine are required. Must also be a suitable value. Therefore, the research on vehicle signal analysis and simulation technology has become a difficult problem that needs to be overcome first in the performance benchmarking of benchmarking machines. And with the increasing complexity of automobile and engine electronic control systems, especially the emergence of hybrid vehicle engine benchmarking requirements, the difficulty of vehicle signal analysis and simulation is becoming more and more difficult. Therefore, research and establish a set of Effective vehicle signal analysis and simulation technology is also becoming more and more important.
综上所述,为建立发动机正向开发能力,需要开展大量先进发动机的测试评价和积累工作,而整车信号反向解析及模拟技术研究就是开展发动机正向开发能力建设需要完成的第一个任务。To sum up, in order to establish the engine forward development capability, it is necessary to carry out a large number of advanced engine test evaluation and accumulation work, and the reverse analysis and simulation technology research of the vehicle signal is the first thing that needs to be completed in the development of the engine forward development capability building. Task.
发明内容SUMMARY OF THE INVENTION
本发明旨在至少解决现有技术中存在的技术问题,特别创新地提出了一种基于CAN总线网络信号的整车反向解析工作方法。The present invention aims to at least solve the technical problems existing in the prior art, and particularly innovatively proposes a working method for reverse analysis of a vehicle based on the CAN bus network signal.
为了实现本发明的上述目的,本发明提供了一种基于CAN总线网络信号的整车反向解析工作方法,包括如下步骤:In order to achieve the above-mentioned purpose of the present invention, the present invention provides a vehicle reverse analysis working method based on CAN bus network signal, comprising the following steps:
S1,获取变矩器的状态信号,该信号位于0x39A的byte7字节的高两位,0表示发动机与变速箱输入轴断开,1表示发动机与变速箱输入结合。S1, get the status signal of the torque converter, the signal is located in the upper two bits of the byte7 byte of 0x39A, 0 means the engine is disconnected from the gearbox input shaft, 1 means the engine is combined with the gearbox input.
S2,获取变速箱输入轴转速信号,该信号位于0x1AF的byte3-4字节,当变矩器状态为1时,发动机转速与变速箱输入轴转速接近一致;当变矩器状态为0时,发动机转速与输入轴转速有较大差距;S2, obtain the speed signal of the input shaft of the gearbox, which is located in bytes 3-4 of 0x1AF. When the torque converter state is 1, the engine speed and the gearbox input shaft speed are close to the same; when the torque converter state is 0, There is a large gap between the engine speed and the input shaft speed;
S3,获取变速箱输出轴转速信号,该信号位于0x1AF的byte5-6字节,AT的6档速比分别为:1档为4.459,2档为2.508,3档为1.555,4档为1.142,5档为0.851,6档为0.672。在变矩器为结合状态时,输入轴转速/输出轴转速=相应档位的传动比;S3, obtain the speed signal of the output shaft of the gearbox, which is located in bytes 5-6 of 0x1AF, the 6-speed ratio of AT is: 1st gear is 4.459, 2nd gear is 2.508, 3rd gear is 1.555, 4th gear is 1.142, 5th gear is 0.851 and 6th gear is 0.672. When the torque converter is in the combined state, the speed of the input shaft/the speed of the output shaft = the transmission ratio of the corresponding gear;
S4,获取轮速信号,轮速信号包括前后左右共四个,都位于0x254报文上,四个信号在直线行驶时数值一致;S4, obtain the wheel speed signal, the wheel speed signal includes a total of four, front, rear, left and right, all of which are located in the 0x254 message, and the four signals have the same value when driving in a straight line;
S5,获取车速信号,该信号位于0x1A1的byte2-3字节,它的变化趋势与轮速信号一致。S5, obtain the vehicle speed signal, the signal is located in bytes 2-3 of 0x1A1, and its change trend is consistent with the wheel speed signal.
S6,为保证CAN总线上数据的可靠性,数据帧都会包含相应的校验信息;通过解析车辆数据帧获取同一帧中包括两种不同算法的校验字节,一种是从0逐步加1直到14的周期循环的校验,反馈接收方是否出现了丢帧;另一种是CRC8校验算法,该算法保证了数据帧其余字节数据的可靠性。获取数据帧0x1AF的所有字节,校验字节1为4bits的数据,校验字节2为8bits的数据;S6, in order to ensure the reliability of the data on the CAN bus, the data frame will contain the corresponding verification information; by parsing the vehicle data frame to obtain the verification bytes including two different algorithms in the same frame, one is to gradually increase from 0 to 1 Until the periodic check of 14, it is fed back whether the receiver has lost frames; the other is the CRC8 check algorithm, which ensures the reliability of the remaining bytes of the data frame. Get all bytes of data frame 0x1AF, check byte 1 is 4bits data, check byte 2 is 8bits data;
当信号模拟时需要修改CAN总线上的相关参数值,修改之后就需要重新计算校验值,因此将CRC8算法解析出来;When the signal is simulated, the relevant parameter values on the CAN bus need to be modified. After the modification, the check value needs to be recalculated, so the CRC8 algorithm is parsed out;
优选的,还包括:Preferably, it also includes:
在0-57s之间,当档位信号1将车速模拟为140km/h,档位信号2保持为D2/M2档0xC6的信号,档位信号3保持为D2/M2档0xC6的信号,档位信号4保持为M档0xF2的信号,在58s-111s之间,当档位信号1将车速模拟为0km/h,档位信号2保持为R档0xC2的信号,档位信号3保持为R档0x0的信号,档位信号4为0xF1,在112s-278s之间,当档位信号1将车速模拟为140km/h,档位信号2在112s-130s保持为D1/M1档0xC5的信号,在131s-176s保持为D2/M2档0xC6的信号,在177s-205s保持为D3/M3档0xC7的信号,在206s-218s保持为D4/M4档0x08的信号,在219s-230s保持为D5/M5档0xC9的信号,在231s-232s保持为D4/M4档0x08的信号,在233s-238s保持为D3/M3档0xC7的信号,在239s-270s保持为D2/M2档0xC6的信号,档位信号3在112s-130s保持为D1/M1档0xC5的信号,在131s-176s保持为D2/M2档0xC6的信号,在177s-205s保持为D3/M3档0xC7的信号,在206s-218s保持为D4/M4档0x08的信号,在219s-230s保持为D5/M5档0xC9的信号,在231s-232s保持为D4/M4档0x08的信号,在233s-238s保持为D3/M3档0xC7的信号,在239s-270s保持为D2/M2档0xC6的信号,档位信号4为0xF1。Between 0-57s, when the gear signal 1 simulates the vehicle speed as 140km/h, the gear signal 2 keeps the signal of D2/M2 gear 0xC6, the
优选的,还包括:Preferably, it also includes:
在239s-270s保持为D2/M2档0xC6的信号,档位信号3在112s-130s保持为D1/M1档0xC5的信号,在131s-176s保持为D2/M2档0xC6的信号,在177s-205s保持为D3/M3档0xC7的信号,在206s-218s保持为D4/M4档0x08的信号,在219s-230s保持为D5/M5档0xC9的信号,在231s-232s保持为D4/M4档0x08的信号,在233s-238s保持为D3/M3档0xC7的信号,在239s-270s保持为D2/M2档0xC6的信号,档位信号4为0xF1。During 239s-270s, it remains as the signal of D2/M2 gear 0xC6, and during 112s-130s,
优选的,还包括:Preferably, it also includes:
在58-59s之间,当变矩器状态从1变为0再变为1时,发动机转速从1100r/min增加到1800r/min,变速箱输入轴转速从800r/min到2000r/min;在104-106s之间,当变矩器状态从1变为0再变为1时,发动机转速从1300r/min增加到1600r/min,变速箱输入轴转速从1200r/min增加到1500r/min;在107-109s之间,当变矩器状态从1变为0再变为1时,发动机转速从1300r/min增加到1750r/min,变速箱输入轴转速从1250r/min增加到1600r/min;在108-110s之间,当变矩器状态从1变为0再变为1时,发动机转速从1250r/min增加到1600r/min,变速箱输入轴转速从1200r/min增加到1500r/min;在110-112s之间,当变矩器状态从1变为0再变为1时,发动机转速从1200r/min增加到1850r/min,变速箱输入轴转速从1100r/min增加到1600r/min。Between 58-59s, when the torque converter state changes from 1 to 0 and then to 1, the engine speed increases from 1100r/min to 1800r/min, and the gearbox input shaft speed changes from 800r/min to 2000r/min; Between 104-106s, when the torque converter state changes from 1 to 0 and then to 1, the engine speed increases from 1300r/min to 1600r/min, and the gearbox input shaft speed increases from 1200r/min to 1500r/min; Between 107-109s, when the torque converter state changes from 1 to 0 and then to 1, the engine speed increases from 1300r/min to 1750r/min, and the gearbox input shaft speed increases from 1250r/min to 1600r/min; Between 108-110s, when the torque converter state changes from 1 to 0 and then to 1, the engine speed increases from 1250r/min to 1600r/min, and the gearbox input shaft speed increases from 1200r/min to 1500r/min; Between 110-112s, when the torque converter state changes from 1 to 0 and then to 1, the engine speed increases from 1200r/min to 1850r/min, and the gearbox input shaft speed increases from 1100r/min to 1600r/min.
优选的,还包括:Preferably, it also includes:
在186-188s之间,当变矩器状态从1变为0再变为1时,发动机转速从1200r/min增加到1600r/min,变速箱输入轴转速从1400r/min增加到1600r/min;在191-193s之间,当变矩器状态从1变为0再变为1时,发动机转速从1100r/min增加到1800r/min,变速箱输入轴转速从1100r/min增加到1600r/min;在231-238s之间,当变矩器状态反复从1变为0再变为1时,发动机转速反复从1300r/min增加到1700r/min,变速箱输入轴转速反复从1200r/min增加到1600r/min。Between 186-188s, when the torque converter state changes from 1 to 0 to 1 again, the engine speed increases from 1200r/min to 1600r/min, and the gearbox input shaft speed increases from 1400r/min to 1600r/min; Between 191-193s, when the torque converter state changes from 1 to 0 and then to 1, the engine speed increases from 1100r/min to 1800r/min, and the gearbox input shaft speed increases from 1100r/min to 1600r/min; Between 231-238s, when the torque converter state repeatedly changed from 1 to 0 and then changed to 1, the engine speed repeatedly increased from 1300r/min to 1700r/min, and the gearbox input shaft speed repeatedly increased from 1200r/min to 1600r /min.
优选的,还包括:Preferably, it also includes:
在304-306s之间,当变矩器状态从1变为0再变为1时,发动机转速从1100r/min增加到1800r/min,变速箱输入轴转速从1100r/min增加到1700r/min;在348-350s之间,当变矩器状态从1变为0再变为1时,发动机转速从1100r/min增加到1800r/min,变速箱输入轴转速从1100r/min增加到1600r/min;在38-398s之间,当变矩器状态反复从1变为0再变为1时,发动机转速从1100r/min增加到1700r/min,变速箱输入轴转速从1250r/min增加到1650r/min。Between 304-306s, when the torque converter state changes from 1 to 0 and then to 1, the engine speed increases from 1100r/min to 1800r/min, and the gearbox input shaft speed increases from 1100r/min to 1700r/min; Between 348-350s, when the torque converter state changes from 1 to 0 and then to 1, the engine speed increases from 1100r/min to 1800r/min, and the gearbox input shaft speed increases from 1100r/min to 1600r/min; Between 38-398s, when the torque converter state repeatedly changes from 1 to 0 and then to 1, the engine speed increases from 1100r/min to 1700r/min, and the gearbox input shaft speed increases from 1250r/min to 1650r/min .
优选的,还包括:Preferably, it also includes:
在10s-28s时,档位为M1档,输入轴转速从800r/min增加到1800r/min,输出轴转速从0r/min增加到400r/min;在28s-34s时,档位为M2档,输入轴转速从1200r/min增加到2000r/min,输出轴转速从400r/min增加到800r/min;在34s-56s时,档位为M3档,输入轴转速为1100r/min-1500r/min,输出轴转速为100r/min-800r/min;在36s-74s时,档位为M2档,输入轴转速为800r/min-2000r/min,输出轴转速为0r/min-800r/min;在76s-84s时,档位为M3档,输入轴转速为1250r/min-1950r/min,输出轴转速为800r/min-1200r/min;在84s-91s时,档位为M4档,输入轴转速为1350r/min-1800r/min,输出轴转速为1200r/min-1600r/min。At 10s-28s, the gear is M1, the input shaft speed is increased from 800r/min to 1800r/min, and the output shaft speed is increased from 0r/min to 400r/min; at 28s-34s, the gear is M2, The input shaft speed is increased from 1200r/min to 2000r/min, and the output shaft speed is increased from 400r/min to 800r/min; at 34s-56s, the gear is M3, the input shaft speed is 1100r/min-1500r/min, The output shaft speed is 100r/min-800r/min; at 36s-74s, the gear is M2, the input shaft speed is 800r/min-2000r/min, and the output shaft speed is 0r/min-800r/min; at 76s -84s, the gear is M3, the input shaft speed is 1250r/min-1950r/min, and the output shaft is 800r/min-1200r/min; at 84s-91s, the gear is M4, and the input shaft speed is 1350r/min-1800r/min, output shaft speed is 1200r/min-1600r/min.
优选的,还包括:Preferably, it also includes:
在91s-101s时,档位为M5档,输入轴转速为1350r/min-1800r/min,输出轴转速为1600r/min-2150r/min;在101s-103s时,档位为M6档,输入轴转速为1200r/min-1800r/min,输出轴转速为2000r/min-2150r/min;在103s-106s时,档位为M5档,输入轴转速为1200r/min-1600r/min,输出轴转速为1600r/min-2000r/min;在106s-110s时,档位为M4档,输入轴转速为1200r/min-1700r/min,输出轴转速为1200r/min-1600r/min;在110s-112s时,档位为M3档,输入轴转速为1150r/min-1600r/min,输出轴转速为800r/min-1200r/min;在112s-148s时,档位为M2档,输入轴转速为800r/min-2000r/min,输出轴转速为100r/min-800r/min;在148s-175s时,档位为M3档,输入轴转速为1250r/min-1950r/min,输出轴转速为800r/min-1200r/min;在175s-187s时,档位为M4档,输入轴转速为1200r/min-1600r/min,输出轴转速为1200r/min-1400r/min;在187s-190s时,档位为M3档,输入轴转速为1200r/min-1600r/min,输出轴转速为800r/min-1200r/min;在190s-202s时,档位为M2档,输入轴转速为1000r/min-2000r/min,输出轴转速为200r/min-800r/min。From 91s to 101s, the gear is M5, the input shaft speed is 1350r/min-1800r/min, and the output shaft speed is 1600r/min-2150r/min; from 101s to 103s, the gear is M6, and the input shaft The speed is 1200r/min-1800r/min, the output shaft speed is 2000r/min-2150r/min; in 103s-106s, the gear is M5, the input shaft speed is 1200r/min-1600r/min, and the output shaft speed is 1600r/min-2000r/min; at 106s-110s, the gear is M4, the input shaft speed is 1200r/min-1700r/min, and the output shaft speed is 1200r/min-1600r/min; at 110s-112s, The gear is M3, the speed of the input shaft is 1150r/min-1600r/min, and the speed of the output shaft is 800r/min-1200r/min; at 112s-148s, the gear is M2, and the speed of the input shaft is 800r/min- 2000r/min, the output shaft speed is 100r/min-800r/min; at 148s-175s, the gear is M3, the input shaft speed is 1250r/min-1950r/min, and the output shaft speed is 800r/min-1200r/ min; at 175s-187s, the gear is M4, the input shaft speed is 1200r/min-1600r/min, and the output shaft speed is 1200r/min-1400r/min; at 187s-190s, the gear is M3, The input shaft speed is 1200r/min-1600r/min, the output shaft speed is 800r/min-1200r/min; in 190s-202s, the gear is M2, the input shaft speed is 1000r/min-2000r/min, the output shaft The rotating speed is 200r/min-800r/min.
优选的,还包括:Preferably, it also includes:
在202s-209s时,档位为M3档,输入轴转速为1200r/min-2000r/min,输出轴转速为800r/min-1200r/min;在209s-220s时,档位为M4档,输入轴转速为1400r/min-2400r/min,输出轴转速为1200r/min-2000r/min;在220s-226s时,档位为M5档,输入轴转速为1800r/min-2200r/min,输出轴转速为2000r/min-2600r/min;在226s-230s时,档位为M6档,输入轴转速为1200r/min-2200r/min,输出轴转速为2100r/min-2600r/min;在230s-232s时,档位为M5档,输入轴转速为1200r/min-1600r/min,输出轴转速为1800r/min-2100r/min;在232s-234s时,档位为M4档,输入轴转速为1200r/min-1600r/min,输出轴转速为1300r/min-1800r/min;在234s-236s时,档位为M3档,输入轴转速为1200r/min-1600r/min,输出轴转速为1000r/min-1300r/min;在236s-300s时,档位为M2档,输入轴转速为800r/min-2000r/min,输出轴转速为100r/min-1000r/min;在300s-306s时,档位为M3档,输入轴转速为1180r/min-2000r/min,输出轴转速为850r/min-950r/min;在306s-326s时,档位为M2档,输入轴转速为1100-2000,输出轴转速为200r/min-800r/min;在326s-348s时,档位为M3档,输入轴转速为1100-1800,输出轴转速为800r/min-1100r/min;在348s-358s时,档位为M2档,输入轴转速为1100r/min-1800r/min,输出轴转速为200r/min-800r/min;在358s-366s时,档位为M3档,输入轴转速为1200r/min-2000r/min,输出轴转速为800r/min-1200r/min。In 202s-209s, the gear is M3, the input shaft speed is 1200r/min-2000r/min, and the output shaft is 800r/min-1200r/min; in 209s-220s, the gear is M4, and the input shaft The speed is 1400r/min-2400r/min, the output shaft speed is 1200r/min-2000r/min; in 220s-226s, the gear is M5, the input shaft speed is 1800r/min-2200r/min, and the output shaft speed is 2000r/min-2600r/min; at 226s-230s, the gear is M6, the input shaft speed is 1200r/min-2200r/min, and the output shaft speed is 2100r/min-2600r/min; at 230s-232s, The gear is M5, the input shaft speed is 1200r/min-1600r/min, and the output shaft speed is 1800r/min-2100r/min; at 232s-234s, the gear is M4, and the input shaft speed is 1200r/min- 1600r/min, the output shaft speed is 1300r/min-1800r/min; at 234s-236s, the gear is M3, the input shaft speed is 1200r/min-1600r/min, and the output shaft speed is 1000r/min-1300r/ min; at 236s-300s, the gear is M2, the input shaft speed is 800r/min-2000r/min, and the output shaft speed is 100r/min-1000r/min; at 300s-306s, the gear is M3, The speed of input shaft is 1180r/min-2000r/min, and the speed of output shaft is 850r/min-950r/min; in 306s-326s, the gear is M2, the speed of input shaft is 1100-2000, and the speed of output shaft is 200r/ min-800r/min; at 326s-348s, the gear is M3, the input shaft speed is 1100-1800, and the output shaft speed is 800r/min-1100r/min; at 348s-358s, the gear is M2, The input shaft speed is 1100r/min-1800r/min, the output shaft speed is 200r/min-800r/min; at 358s-366s, the gear is M3, the input shaft speed is 1200r/min-2000r/min, the output shaft The rotating speed is 800r/min-1200r/min.
优选的,还包括:Preferably, it also includes:
在366s-378s时,档位为M4档,输入轴转速为1400r/min-3000r/min,输出轴转速为1200r/min-2500r/min;在378s-382s时,档位为M5档,输入轴转速为2200r/min-3000r/min,输出轴转速为2500r/min-3000r/min;在382s-388s时,档位为M6档,输入轴转速为1200r/min-2400r/min,输出轴转速为2000r/min-2500r/min;在388s-390s时,档位为M5档,输入轴转速为1200r/min-1800r/min,输出轴转速为1600r/min-2000r/min;在390s-392s时,档位为M4档,输入轴转速为1200r/min-1800r/min,输出轴转速为1200r/min-1600r/min;在392s-396s时,档位为M3档,输入轴转速为1200r/min-1800r/min,输出轴转速为700r/min-1200r/min;在396s-468s时,档位为M2档,输入轴转速为800r/min-2000r/min,输出轴转速为50r/min-750r/min;在468s-476s时,档位为M3档,输入轴转速为1000r/min-2000r/min,输出轴转速为750r/min-900r/min;在476s-498s时,档位为M2档,输入轴转速为700r/min-2000r/min,输出轴转速为0r/min-900r/min。From 366s to 378s, the gear is M4, the input shaft speed is 1400r/min-3000r/min, and the output shaft speed is 1200r/min-2500r/min; from 378s to 382s, the gear is M5, and the input shaft The speed is 2200r/min-3000r/min, the output shaft speed is 2500r/min-3000r/min; in 382s-388s, the gear is M6, the input shaft speed is 1200r/min-2400r/min, and the output shaft speed is 2000r/min-2500r/min; at 388s-390s, the gear is M5, the input shaft speed is 1200r/min-1800r/min, and the output shaft speed is 1600r/min-2000r/min; at 390s-392s, The gear is M4, the speed of the input shaft is 1200r/min-1800r/min, and the speed of the output shaft is 1200r/min-1600r/min; at 392s-396s, the gear is M3, and the speed of the input shaft is 1200r/min- 1800r/min, the output shaft speed is 700r/min-1200r/min; at 396s-468s, the gear is M2, the input shaft speed is 800r/min-2000r/min, and the output shaft speed is 50r/min-750r/ min; at 468s-476s, the gear is M3, the input shaft speed is 1000r/min-2000r/min, and the output shaft speed is 750r/min-900r/min; at 476s-498s, the gear is M2, The input shaft speed is 700r/min-2000r/min, and the output shaft speed is 0r/min-900r/min.
综上所述,由于采用了上述技术方案,本发明的有益效果是:实现了先进发动机性能对标工作中的整车信号解析过程。To sum up, due to the adoption of the above technical solutions, the present invention has the beneficial effects of realizing the whole-vehicle signal analysis process in the benchmarking work of advanced engine performance.
本专利的反向解析方法,能有效的应用于后续的整车模拟中。而由此得到的模拟信号不仅更准确,而且更易被整车系统认可,为电控系统越来越复杂的先进车型的对标工作提供了一套行之有效的方案,有效地提升了我们在先进发动机测试评价领域的市场竞争力。The reverse analysis method of this patent can be effectively applied to the subsequent vehicle simulation. The analog signal obtained from this is not only more accurate, but also more easily recognized by the vehicle system, providing a set of effective solutions for the benchmarking work of advanced models with increasingly complex electronic control systems, effectively improving our Market competitiveness in the field of advanced engine testing and evaluation.
本发明的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the present invention will be set forth, in part, from the following description, and in part will be apparent from the following description, or may be learned by practice of the invention.
附图说明Description of drawings
本发明的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:
图1是本发明网络拓扑结构图;Fig. 1 is the network topology structure diagram of the present invention;
图2是本发明档位信号图;Fig. 2 is the gear position signal diagram of the present invention;
图3是本发明变速箱输入轴转速图;Fig. 3 is the speed diagram of the gearbox input shaft of the present invention;
图4是本发明变速箱输入轴转速与输出轴转速关系图;4 is a diagram showing the relationship between the speed of the input shaft of the gearbox of the present invention and the speed of the output shaft;
图5是本发明轮速信号图;Fig. 5 is the wheel speed signal diagram of the present invention;
图6是本发明车速信号图;Fig. 6 is the vehicle speed signal diagram of the present invention;
图7是本发明数据帧校验字节图;Fig. 7 is a data frame check byte diagram of the present invention;
图8是本发明CRC8算法流程图;Fig. 8 is the flow chart of CRC8 algorithm of the present invention;
图9是本发明网关示意图;Fig. 9 is the gateway schematic diagram of the present invention;
图10是本发明网关程序流程图。Figure 10 is a flow chart of the gateway program of the present invention.
具体实施方式Detailed ways
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。The following describes in detail the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary, only used to explain the present invention, and should not be construed as a limitation of the present invention.
为了完成发动机对标工作,需要让发动机在测试台架上正常运转。发动机从整车上拆解下来后,整车的车轮、变速箱等部分不能正常运转,在这种情况下,ECU出于防盗和安全方面的考虑,发动机通常不能正常运行,可能会出现限速或者限扭的情况。此时就需要对影响发动机正常运行的信号(如车速和变速箱的信号)进行模拟,以使发动机在台架上正常运转。In order to complete the engine benchmarking work, it is necessary to make the engine run normally on the test bench. After the engine is disassembled from the vehicle, the wheels, gearbox and other parts of the vehicle cannot operate normally. In this case, the ECU usually does not operate normally for theft prevention and safety reasons, and there may be a speed limit. or torque limit. At this time, it is necessary to simulate the signals that affect the normal operation of the engine (such as the signal of the vehicle speed and the gearbox), so that the engine can run normally on the bench.
通常使用信号发生器等设备模拟车轮转速等信号,其缺点是模拟信号不能及时响应发动机实际运行工况变化。随着汽车电控系统越来越复杂,这种方法的缺陷也越发明显,已不能满足对标车型的信号模拟需求。Usually, equipment such as a signal generator is used to simulate signals such as wheel speed. The disadvantage is that the simulated signal cannot respond to the actual operating conditions of the engine in time. As the automotive electronic control system becomes more and more complex, the defects of this method become more and more obvious, and it can no longer meet the signal simulation requirements of the standard model.
本案所使用的方法考虑了CAN总线上的信号对发动机运行的影响,先对整车CAN总线信号进行解析,然后采用网关的方式,将整车端对发动机运行有影响的关键信号过滤修改后再发给ECU,以确保发动机的正常运行。模拟信号基于CAN总线数据解析的结果,由微控制器按设计的策略自动计算并输出,与发动机实际运行工况相匹配,能够对发动机工况的变化做出及时的响应。The method used in this case considers the influence of the signals on the CAN bus on the engine operation, first analyzes the CAN bus signal of the whole vehicle, and then uses the gateway method to filter and modify the key signals that affect the engine operation at the vehicle end. Sent to the ECU to ensure the normal operation of the engine. Based on the results of CAN bus data analysis, the analog signal is automatically calculated and output by the microcontroller according to the designed strategy, which matches the actual operating conditions of the engine and can respond in time to changes in engine operating conditions.
基于CAN总线的数据模拟技术在实施上主要包括三个方面的工作内容,一是CAN总线数据解析工作,二是信号模拟工作,三是部分执行器的驱动控制工作。The implementation of data simulation technology based on CAN bus mainly includes three aspects of work, one is CAN bus data analysis work, the other is signal simulation work, and the third is the drive control work of some actuators.
CAN总线数据解析工作大致分为以下几个方面:The CAN bus data analysis work is roughly divided into the following aspects:
1)CAN总线网络拓扑结构解析;1) Analysis of CAN bus network topology;
2)报文与节点对应关系解析,明确变速箱控制单元、发动机控制单元和ABS/ESP控制单元等各自发出了哪些报文;2) Analysis of the correspondence between messages and nodes, to clarify which messages are sent by the transmission control unit, the engine control unit, and the ABS/ESP control unit;
3)关键控制信号解析,包括车速、档位、发动机转速和负荷等,明确哪些报文对发动机运行有影响,对这些报文进行重点解析。3) Analysis of key control signals, including vehicle speed, gear, engine speed and load, etc., to clarify which messages have an impact on engine operation, and focus on analyzing these messages.
整车信号模拟工作分为两个方面的内容,一是CAN总线信号模拟,二是机车分离后影响发动机正常运行的其他信号模拟。总线信号模拟采用在网络节点间加入网关的形式,基于前期数据解析的结果,对影响发动机运行的关键信号由信号模拟系统给出合适的模拟值发到网络上,对其他非关键信号则直接转发。The whole vehicle signal simulation work is divided into two aspects, one is CAN bus signal simulation, and the other is other signal simulation that affects the normal operation of the engine after the locomotive is separated. The bus signal simulation adopts the form of adding gateways between network nodes. Based on the results of previous data analysis, the signal simulation system gives appropriate analog values for the key signals affecting the engine operation and sends them to the network, and directly forwards other non-critical signals. .
对于CAN总线信号以外的其他信号的模拟,大致分为三个步骤:For the simulation of signals other than CAN bus signals, it is roughly divided into three steps:
1)对信号特征进行测试解析,包括轮速、车速、变速箱输入轴和输出轴转速等信号;1) Test and analyze the signal characteristics, including wheel speed, vehicle speed, gearbox input shaft and output shaft speed and other signals;
2)基于CAN总线数据解析结果,由CAN总线上的相关信号按照设计的算法,有整车模拟器的MCU计算出待模拟信号的数值;2) Based on the CAN bus data analysis result, the MCU of the vehicle simulator calculates the value of the signal to be simulated from the relevant signals on the CAN bus according to the designed algorithm;
3)由信号模拟系统硬件电路输出模拟信号,调整硬件电气参数,保证模拟信号特征与原始信号特征基本相同。3) The analog signal is output by the hardware circuit of the signal simulation system, and the electrical parameters of the hardware are adjusted to ensure that the characteristics of the analog signal are basically the same as those of the original signal.
为了完成发动机性能对标测试任务,通常还需要对标杆机的节气门、调压阀等执行器进行独立控制,信号模拟系统为此特别设计了相应的驱动控制功能。In order to complete the engine performance benchmarking test task, it is usually necessary to independently control the throttle valve, pressure regulating valve and other actuators of the benchmarking machine. The signal simulation system has specially designed corresponding drive control functions for this purpose.
下面结合附图和实施例对本发明进一步说明(以宝马MINI为例):The present invention is further described below in conjunction with the accompanying drawings and embodiments (taking BMW MINI as an example):
1.概述1 Overview
在进行发动机对标试验时,为了保证发动机在台架上正常运转,需要在试验时模拟整车其他模块的信号,如变速箱的输入输出轴信号和轮速传感器信号等。因此在前期需要对整车的重要信号进行解析,并在台架试验时根据一定的策略模拟相关信号,配合完成台架试验。During the engine benchmarking test, in order to ensure the normal operation of the engine on the bench, it is necessary to simulate the signals of other modules of the vehicle during the test, such as the input and output shaft signals of the gearbox and the wheel speed sensor signals. Therefore, it is necessary to analyze the important signals of the whole vehicle in the early stage, and simulate the relevant signals according to a certain strategy during the bench test, and cooperate to complete the bench test.
2.CAN网络信号解析2. CAN network signal analysis
2.1信号解析内容2.1 Signal Analysis Content
(1)确定宝马MINI整车CAN网络拓扑结构;(1) Determine the CAN network topology of the BMW MINI vehicle;
(2)分析各报文和网络节点的对应关系、发送周期等基本属性;(2) Analyze the basic attributes such as the correspondence between each message and the network node, and the sending period;
(3)解析整车的关键CAN信号及控制逻辑;(3) Analyze the key CAN signals and control logic of the vehicle;
2.2使用设备2.2 Using the device
CANoe硬件和软件、笔记本电脑、宝马诊断仪、DB9、万用表CANoe hardware and software, laptops, BMW diagnostics, DB9, multimeters
2.3术语与缩写2.3 Terms and abbreviations
DME:发动机控制器DME: Engine Controller
EGS:变速箱控制器EGS: Transmission Controller
DSC:动态稳定控制系统DSC: Dynamic Stability Control System
ZGM:中央网关ZGM: Central Gateway
KOMBI:仪表板KOMBI: Dashboard
2.4解析结果与仿真分析2.4 Analytical Results and Simulation Analysis
2.4.1网络拓扑结构:如图1所示,整车有两路动力CAN,PT-CAN和PT-CAN2。PT-CAN用于整车通讯,PT-CAN2主要是DME和EGS之间的通讯,通讯速率为500kb/s。DSC通过flexray与ZGM进行通讯,ZGM将flexray的数据帧转换为CAN数据帧后通过PT-CAN与DME进行通讯。2.4.1 Network topology: As shown in Figure 1, the vehicle has two power CANs, PT-CAN and PT-CAN2. PT-CAN is used for vehicle communication, PT-CAN2 is mainly for communication between DME and EGS, and the communication rate is 500kb/s. DSC communicates with ZGM through flexray, ZGM converts flexray data frame into CAN data frame and communicates with DME through PT-CAN.
2.4.2CAN总线报文及属性2.4.2 CAN bus messages and attributes
车辆正常上电且无故障状态下,PT-CAN上共有122帧报文,PT-CAN2上有25帧报文,如表1所示When the vehicle is powered on normally and there is no fault, there are 122 frames of messages on PT-CAN and 25 frames of messages on PT-CAN2, as shown in Table 1.
表1 CAN总线报文Table 1 CAN bus message
2.4.3关键信号及控制策略解析2.4.3 Analysis of key signals and control strategies
由于在发动机台架试验时变速箱没有工作,为了让发动机正常运转需要模拟变速箱的相关信号,考虑到mini的变速箱为AT,则需要模拟变速箱输入轴和输出轴信号。同时还需要模拟车速及档位等信号,因此在CAN总线上对以上信号进行解析,结果如表2所示Since the gearbox did not work during the engine bench test, in order to make the engine run normally, it is necessary to simulate the relevant signals of the gearbox. Considering that the mini gearbox is AT, the input shaft and output shaft signals of the gearbox need to be simulated. At the same time, it is also necessary to simulate signals such as vehicle speed and gear position. Therefore, the above signals are analyzed on the CAN bus, and the results are shown in Table 2.
表2关键信号解析结果Table 2 Analysis results of key signals
2.4.3.1档位信号12.4.3.1 Gear Signal 1
该信号位于0x3FD的byte2字节,表示手柄位置,定义如下:This signal is located in the byte2 byte of 0x3FD, indicating the handle position, which is defined as follows:
P档:0x20 R档:0x40 N档:0x60 D档:0x80 S档:0x81 M档:0x82P file: 0x20 R file: 0x40 N file: 0x60 D file: 0x80 S file: 0x81 M file: 0x82
2.4.3.2档位信号22.4.3.2 Gear Signal 2
该信号位于0x1AC的byte2字节,D档和M档在对应的档位数值一致,具体定义如下:The signal is located in the byte2 byte of 0x1AC, and the values of the D and M files are the same in the corresponding gears. The specific definitions are as follows:
P档:0xC3 N档:0xC1 R档:0xC2P file: 0xC3 N file: 0xC1 R file: 0xC2
D1/M1档:0xC5 D2/M2档:0xC6 D3/M3档:0xC7D1/M1 file: 0xC5 D2/M2 file: 0xC6 D3/M3 file: 0xC7
D4/M4档:0xC8 D5/M5档:0xC9 D6/M6档:0xCAD4/M4 file: 0xC8 D5/M5 file: 0xC9 D6/M6 file: 0xCA
2.4.3.3档位信号32.4.3.3
该信号位于0x39A的byte3字节,手动挡和自动挡复用相同的数值,具体定义如下:This signal is located in the byte3 byte of 0x39A. The manual gear and the automatic gear multiplex the same value. The specific definitions are as follows:
N档:0x01 R档:0x02 P档:0x03N file: 0x01 R file: 0x02 P file: 0x03
D1/M1档:0x05 D2/M2档:0x06 D3/M3档:0x07D1/M1 file: 0x05 D2/M2 file: 0x06 D3/M3 file: 0x07
D4/M4档:0x08 D5/M5档:0x09 D6/M6档:0x0AD4/M4 file: 0x08 D5/M5 file: 0x09 D6/M6 file: 0x0A
2.4.3.4档位信号42.4.3.4
M档:0xF2 P档、R档、N档、D档:0xF1M file: 0xF2 P file, R file, N file, D file: 0xF1
实车采集的档位信号如图2所示。The gear signal collected by the real vehicle is shown in Figure 2.
2.4.3.5变矩器状态2.4.3.5 Torque Converter Status
该信号位于0x39A的byte7字节的高两位,0表示发动机与变速箱输入轴断开,1表示发动机与变速箱输入结合。This signal is located in the upper two bits of the byte7 byte of 0x39A, 0 means the engine is disconnected from the gearbox input shaft, and 1 means the engine is combined with the gearbox input.
2.4.3.6变速箱输入轴转速2.4.3.6 Gearbox input shaft speed
该信号位于0x1AF的byte3-4字节,CANoe解析出来的结果如图3所示。当变矩器状态为1时,发动机转速与变速箱输入轴转速接近一致;当变矩器状态为0时,发动机转速与输入轴转速有较大差距。The signal is located in byte 3-4 of 0x1AF, and the result parsed by CANoe is shown in Figure 3. When the torque converter state is 1, the engine speed and the transmission input shaft speed are close to the same; when the torque converter state is 0, the engine speed and the input shaft speed have a large gap.
在0-57s之间,当档位信号1将车速模拟为140km/h,档位信号2保持为D2/M2档0xC6的信号,档位信号3保持为D2/M2档0xC6的信号,档位信号4保持为M档0xF2的信号,在58s-111s之间,当档位信号1将车速模拟为0km/h,档位信号2保持为R档0xC2的信号,档位信号3保持为R档0x0的信号,档位信号4为0xF1,在112s-278s之间,当档位信号1将车速模拟为140km/h,档位信号2在112s-130s保持为D1/M1档0xC5的信号,在131s-176s保持为D2/M2档0xC6的信号,在177s-205s保持为D3/M3档0xC7的信号,在206s-218s保持为D4/M4档0x08的信号,在219s-230s保持为D5/M5档0xC9的信号,在231s-232s保持为D4/M4档0x08的信号,在233s-238s保持为D3/M3档0xC7的信号,在239s-270s保持为D2/M2档0xC6的信号,档位信号3在112s-130s保持为D1/M1档0xC5的信号,在131s-176s保持为D2/M2档0xC6的信号,在177s-205s保持为D3/M3档0xC7的信号,在206s-218s保持为D4/M4档0x08的信号,在219s-230s保持为D5/M5档0xC9的信号,在231s-232s保持为D4/M4档0x08的信号,在233s-238s保持为D3/M3档0xC7的信号,在239s-270s保持为D2/M2档0xC6的信号,档位信号4为0xF1。Between 0-57s, when the gear signal 1 simulates the vehicle speed as 140km/h, the gear signal 2 keeps the signal of D2/M2 gear 0xC6, the gear signal 3 keeps the signal of D2/M2 gear 0xC6, the gear Signal 4 remains the signal of M gear 0xF2, between 58s-111s, when gear signal 1 simulates the vehicle speed as 0km/h, gear signal 2 remains the signal of R gear 0xC2, and gear signal 3 remains R gear The signal of 0x0, the gear signal 4 is 0xF1, between 112s-278s, when the gear signal 1 simulates the vehicle speed as 140km/h, the gear signal 2 remains as the signal of D1/M1 gear 0xC5 from 112s-130s, at 131s-176s remains as D2/M2 file 0xC6 signal, 177s-205s as D3/M3 file 0xC7 signal, 206s-218s as D4/M4 file 0x08 signal, 219s-230s as D5/M5 signal The signal of gear 0xC9 is kept as the signal of D4/M4 gear 0x08 from 231s-232s, the signal of D3/M3 gear 0xC7 is kept from 233s-238s, and the signal of D2/M2 gear 0xC6 is kept from 239s-270s, the gear signal 3 Keep the signal of D1/M1 file 0xC5 from 112s-130s, the signal of D2/M2 file 0xC6 from 131s-176s, the signal of D3/M3 file 0xC7 from 177s-205s, and the D4 signal from 206s-218s The signal of /M4 file 0x08 is the signal of D5/M5 file 0xC9 from 219s-230s, the signal of D4/M4 file 0x08 is maintained from 231s-232s, and the signal of D3/M3 file 0xC7 is maintained from 233s-238s. 239s-270s remain as the signal of D2/M2 gear 0xC6, and the
2.4.3.7变速箱输出轴转速2.4.3.7 Gearbox output shaft speed
该信号位于0x1AF的byte5-6字节,AT的6档速比分别为:1档4.459,2档2.508,3档1.555,4档1.142,5档0.851,6档0.672。如图4所示,在变矩器为结合状态时,输入轴转速/输出轴转速=相应档位的传动比,变矩器断开状态时的比值与理论值有一定差异。The signal is located in bytes 5-6 of 0x1AF. The 6-speed ratio of AT is: 1st 4.459, 2nd 2.508, 3rd 1.555, 4th 1.142, 5th 0.851, 6th 0.672. As shown in Figure 4, when the torque converter is in the combined state, the input shaft speed/output shaft speed = the transmission ratio of the corresponding gear, and the ratio when the torque converter is disconnected is different from the theoretical value.
2.4.3.8轮速信号2.4.3.8 Wheel speed signal
轮速信号包括前后左右共四个,都位于0x254报文上,四个信号在直线行驶时数值一致,转弯时会有一定的差异,解析结果如图5所示。There are four wheel speed signals including front, rear, left and right, all of which are located in the 0x254 message. The values of the four signals are the same when driving in a straight line, but there will be certain differences when turning. The analysis results are shown in Figure 5.
2.4.3.9车速信号2.4.3.9 Vehicle speed signal
该信号位于0x1A1的byte2-3字节,它的变化趋势与轮速信号一致,如图6。This signal is located in bytes 2-3 of 0x1A1, and its change trend is consistent with the wheel speed signal, as shown in Figure 6.
2.4.4CAN总线校验信号解析2.4.4 Analysis of CAN bus verification signal
2.4.4.1总线校验信号2.4.4.1 Bus check signal
一般为了保证CAN总线上数据的可靠性,数据帧都会包含相应的校验信息。通过解析MINI的数据帧发现在同一帧中包括两种不同算法的校验字节,一种是从0逐步加1直到14的周期循环的校验,它能告知接收方是否出现了丢帧;另一种是较为复杂的CRC8校验算法,这种算法保证了数据帧其他几个字节数据的可靠性。如图7所示为数据帧0x1AF的所有字节,其中前两个信号分别为两种校验算法得到的校验值,校验字节1为4bits的数据,校验字节2为8bits的数据。Generally, in order to ensure the reliability of the data on the CAN bus, the data frame will contain the corresponding verification information. By parsing the data frame of MINI, it is found that the same frame includes two check bytes of different algorithms, one is a periodic check that increases from 0 to 14, which can inform the receiver whether there is frame loss; The other is a more complex CRC8 check algorithm, which ensures the reliability of other bytes of data in the data frame. Figure 7 shows all the bytes of the data frame 0x1AF, in which the first two signals are the check values obtained by the two check algorithms, the check byte 1 is 4 bits of data, and the check byte 2 is 8 bits. data.
考虑到信号模拟时需要修改CAN总线上的相关参数值,修改之后就需要重新计算校验值,因此必须将CRC算法解析出来。Considering that the relevant parameter values on the CAN bus need to be modified during signal simulation, the check value needs to be recalculated after modification, so the CRC algorithm must be parsed.
2.4.4.2 CRC8算法解析2.4.4.2 Analysis of CRC8 Algorithm
CRC8算法是将需要校验的数值与8位多项式进行二进制除法运算,再将计算的结果与一个字节进行异或运算,因此要解析算法即是确定多项式与异或的数值。The CRC8 algorithm is to perform binary division between the value to be checked and an 8-bit polynomial, and then perform an XOR operation on the result of the calculation and a byte. Therefore, to analyze the algorithm is to determine the value of the polynomial and the XOR.
CRC8的计算函数CRC8_Cal(unsigned char*ptr,unsigned char poly_v,unsigned char xor_v),算法流程如图8所示。The calculation function of CRC8 is CRC8_Cal (unsigned char*ptr, unsigned char poly_v, unsigned char xor_v). The algorithm flow is shown in Figure 8.
其中,*ptr:指向需要计算校验值的数组,Among them, *ptr: points to the array where the check value needs to be calculated,
poly_v:多项式的值为0-255,poly_v: the value of the polynomial is 0-255,
xor_v:异或值为0-255,xor_v: XOR value is 0-255,
通过此算法可以快速确定多项式和异或值,最终发现所有数据帧的CRC8都是同一个多项式,而每个异或值都不同,如表3所示。Through this algorithm, the polynomial and XOR value can be quickly determined, and finally it is found that the CRC8 of all data frames is the same polynomial, and each XOR value is different, as shown in Table 3.
表3校验和具体信息Table 3 Checksum specific information
3.信号模拟3. Signal simulation
当进行发动机台架试验时,基于之前解析的相关信号,并根据发动机的控制策略对信号进行模拟,使发动机正常工作。When the engine bench test is carried out, the signal is simulated based on the previously analyzed relevant signals and the control strategy of the engine to make the engine work normally.
3.1网关功能3.1 Gateway function
如图9所示,信号模拟通过两个网关实现。将原车的两路CAN总线从发动机侧分别断开,并加入网关。每个网关有2路CAN模块,分别与断开的CAN总线相连,它的功能是将一路CAN上接收的数据直接从另一路转发出去,或根据一定策略修改相应的数值后从另一路CAN上转发出去。As shown in Figure 9, the signal simulation is implemented through two gateways. Disconnect the two CAN buses of the original car from the engine side and add them to the gateway. Each gateway has 2 CAN modules, which are respectively connected to the disconnected CAN bus. Its function is to directly forward the data received on one CAN from the other, or modify the corresponding value according to a certain strategy from the other CAN. forwarded.
3.2信号模拟策略3.2 Signal Simulation Strategy
对于自动挡AT,如果在台架试验时将档位挂到D档或M档,发动机运转一定时间后会出现变速箱过热故障。因此只能将档位挂到N档进行试验,而为了使发动机性能达到最大,需要通过CAN总线告诉发动机在M档,并根据发动机转速的不同模拟不同的档位。同时需要模拟变速箱输入轴和输出轴转速,以及车速信号。For automatic transmission AT, if the gear is shifted to D or M during the bench test, the transmission overheating failure will occur after the engine runs for a certain period of time. Therefore, the test can only be carried out by shifting the gear to the N gear. In order to maximize the engine performance, it is necessary to tell the engine to be in the M gear through the CAN bus, and simulate different gears according to the different engine speeds. At the same time, it is necessary to simulate the speed of the input shaft and output shaft of the gearbox, as well as the vehicle speed signal.
由于两路CAN总线的信号需要根据发动机转速同步,而只有PT-CAN上有发动机转速信息,为了让PT-CAN2总线上能获得实时的发动机转速信息,网关1和网关2之间需要通讯,根据硬件配置可通过串口(SCI)实现。网关的程序流程图10所示。Since the signals of the two CAN buses need to be synchronized according to the engine speed, only the PT-CAN has the engine speed information. In order to obtain the real-time engine speed information on the PT-CAN2 bus, communication between gateway 1 and gateway 2 is required. According to Hardware configuration can be achieved through the serial port (SCI). The program flow chart of the gateway is shown in 10.
根据之前信号解析的结果,需要修改的信号所在帧包括0xF3(包含发动机转速)、0x1AC(档位信息)、0x39A(档位和变矩器状态)、0x3FD(档位信息)、0x1AF(包含变速箱输入轴及输出轴转速)、0x1A1(车速信息)、0x254(轮速信息)等。According to the results of the previous signal analysis, the frame of the signal to be modified includes 0xF3 (including engine speed), 0x1AC (gear information), 0x39A (gear and torque converter status), 0x3FD (gear information), 0x1AF (including gear shift information) box input shaft and output shaft speed), 0x1A1 (vehicle speed information), 0x254 (wheel speed information), etc.
信号模拟在N档进行,当网关2识别到发动机转速大于900rpm,会将PT-CAN发动机侧的档位信号、变矩器锁止信号、车速和轮速信号修改为合理的值;若发动机转速小于800rpm,网关2直接转发报文,不做任何修改。The signal simulation is performed in the N gear. When the gateway 2 recognizes that the engine speed is greater than 900rpm, it will modify the gear signal, torque converter lock signal, vehicle speed and wheel speed signals on the PT-CAN engine side to reasonable values; if the engine speed If it is less than 800rpm, gateway 2 directly forwards the packets without any modification.
同时网关2将实际发动机转速、状态改变参数St_Val(由发动机转速决定)、以及档位通过SCI发送给网关1,若St_Val为0x55,则网关1修改PT-CAN2发动机侧的发动机转速、档位、变矩器锁止状态、输入轴和输出轴转速(通过发动机转速和档位确定)为对应的值;若St_Val为0,则网关1直接转发报文,不做任何修改。At the same time, gateway 2 sends the actual engine speed, state change parameter St_Val (determined by engine speed), and gear to gateway 1 through SCI. If St_Val is 0x55, gateway 1 modifies the engine speed, gear, The torque converter lock state, input shaft and output shaft speeds (determined by engine speed and gear) are the corresponding values; if St_Val is 0, gateway 1 directly forwards the message without any modification.
4.发动机其他参数的解析4. Analysis of other parameters of the engine
为了获取更多的发动机参数值,从而更深入地进行发动机台架试验,可通过解析诊断仪协议获得相关参数的实时数据。In order to obtain more engine parameter values and conduct more in-depth engine bench tests, real-time data of relevant parameters can be obtained by analyzing the diagnostic instrument protocol.
4.1诊断协议解析4.1 Analysis of Diagnostic Protocol
从诊断接口引出CANH和CANL,并通过CANOE观测诊断仪读取数据流操作过程中总线上的报文,分析之后可知应用层诊断协议为UDS协议——ISO 14229网络层的协议符合ISO 15765-2,包括单帧,起始帧,连续帧以及数据流控制等定义。The CANH and CANL are drawn from the diagnostic interface, and the messages on the bus during the data stream operation are read by the CANOE observation diagnostic instrument. After analysis, it can be seen that the application layer diagnostic protocol is the UDS protocol—the protocol of the ISO 14229 network layer conforms to ISO 15765-2 , including the definition of single frame, start frame, continuous frame and data flow control.
诊断仪发送报文ID以及各模块返回报文ID如下表4所示,各模块通过判断诊断仪发送的第一个字节区分是否是对本模块的数据流读取(如表5所示),若判断为是,则返回相应参数的值,否则不做任何回应。The message ID sent by the diagnostic instrument and the message ID returned by each module are shown in Table 4 below. Each module judges whether the first byte sent by the diagnostic instrument is a data stream read to the module (as shown in Table 5). If the judgment is yes, the value of the corresponding parameter will be returned, otherwise, no response will be made.
表4诊断相关报文IDTable 4 Diagnosis-related message IDs
表5诊断仪数据流请求服务报文第0字节数值Table 5 The value of the 0th byte of the data flow request service message of the diagnostic instrument
4.2数据流解析4.2 Data flow analysis
分析发现,诊断仪对不同模块的数据流读取采用了不同的服务[1],即通过不同的方式达到同样的目的。The analysis shows that the diagnostic instrument uses different services for reading data streams of different modules [1], that is, achieves the same purpose through different methods.
(1)对于EGS变速箱控制器模块,诊断仪直接用服务0x22(通过ID读取服务)实现数据流的读取;(1) For the EGS gearbox controller module, the diagnostic instrument directly uses the service 0x22 (through the ID reading service) to read the data stream;
(2)对于DME发动机控制器模块,诊断仪首先使用服务0x2C(动态定义ID服务)将参数的原ID值动态定义为0xF300,之后再使用服务0x22读取0xF300的值,即可读取相应参数的值。(2) For the DME engine controller module, the diagnostic instrument first uses the service 0x2C (dynamic definition ID service) to dynamically define the original ID value of the parameter as 0xF300, and then uses the service 0x22 to read the value of 0xF300, and the corresponding parameter can be read value of .
由于主要是读取DME模块的参数,因此只需要通过第二种方式解析数据流,解析的结果如表6所示。PID表示根据协议通过相应的PID值可以获得参数的实时数据;长度指参数值由几个字节表示;系数和偏移表示总线值与物理值之间的转换关系。Since it is mainly to read the parameters of the DME module, only the second way is needed to parse the data stream, and the results of the parsing are shown in Table 6. PID means that the real-time data of the parameter can be obtained through the corresponding PID value according to the protocol; the length means that the parameter value is represented by several bytes; the coefficient and offset represent the conversion relationship between the bus value and the physical value.
表6发动机参数解析结果Table 6 Analysis results of engine parameters
4.3数据流采集4.3 Data Stream Collection
利用表6中参数对应的PID值,根据ISO14229协议编写代码获取相应参数的实时值,并将这些值通过CAN模块发送给台架,实现数据流的采集。Using the PID values corresponding to the parameters in Table 6, write codes according to the ISO14229 protocol to obtain the real-time values of the corresponding parameters, and send these values to the bench through the CAN module to realize the collection of data streams.
Claims (1)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011299383.9A CN112413109B (en) | 2020-11-18 | 2020-11-18 | Whole vehicle reverse analysis working method based on CAN bus network signal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011299383.9A CN112413109B (en) | 2020-11-18 | 2020-11-18 | Whole vehicle reverse analysis working method based on CAN bus network signal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112413109A CN112413109A (en) | 2021-02-26 |
| CN112413109B true CN112413109B (en) | 2022-08-02 |
Family
ID=74774327
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011299383.9A Active CN112413109B (en) | 2020-11-18 | 2020-11-18 | Whole vehicle reverse analysis working method based on CAN bus network signal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112413109B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105247193A (en) * | 2013-05-31 | 2016-01-13 | 丰田自动车株式会社 | Control equipment for internal combustion engines |
| CN109141910A (en) * | 2018-05-23 | 2019-01-04 | 中国汽车技术研究中心有限公司 | A kind of measurement condition conversion method from vehicle to engine |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN202229922U (en) * | 2010-12-31 | 2012-05-23 | 潍柴动力股份有限公司 | Rack measuring and controlling equipment for engine and measuring and controlling system |
| DE102011108013A1 (en) * | 2011-07-20 | 2013-01-24 | Thyssenkrupp System Engineering Gmbh | Transmission-tensioning method for measuring and testing a transmission having at least two partial transmissions, in particular a dual-clutch transmission |
| CN102680248B (en) * | 2012-05-16 | 2015-06-10 | 奇瑞汽车股份有限公司 | Test bench and mounting method and testing method thereof |
| JP5776731B2 (en) * | 2013-06-19 | 2015-09-09 | 株式会社明電舎 | Drivetrain testing system |
| CN104089777A (en) * | 2014-07-07 | 2014-10-08 | 广州锦红源电子科技有限公司 | Engine pedestal automatic calibration system |
| AT517689B1 (en) * | 2015-11-11 | 2017-04-15 | Avl List Gmbh | Method of creating a test |
| CN107655692B (en) * | 2017-09-28 | 2019-10-11 | 广州锦红源电子科技有限公司 | Engine pedestal automatic calibration method, device and system |
| CN108663217A (en) * | 2018-03-28 | 2018-10-16 | 中汽研(天津)汽车工程研究院有限公司 | A kind of engine pedestal based on vehicle dry run is to marking method |
| CN108663212B (en) * | 2018-04-25 | 2020-11-13 | 中汽研(天津)汽车工程研究院有限公司 | Vehicle running signal simulation system for engine bench alignment |
-
2020
- 2020-11-18 CN CN202011299383.9A patent/CN112413109B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105247193A (en) * | 2013-05-31 | 2016-01-13 | 丰田自动车株式会社 | Control equipment for internal combustion engines |
| CN109141910A (en) * | 2018-05-23 | 2019-01-04 | 中国汽车技术研究中心有限公司 | A kind of measurement condition conversion method from vehicle to engine |
Non-Patent Citations (1)
| Title |
|---|
| 纯电动汽车CAN信号解析;辛明华等;《汽车工程师》;20171225(第12期);全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112413109A (en) | 2021-02-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105159188B (en) | A kind of new energy vehicle heterogeneous network emulator and control method | |
| CN112444411B (en) | Vehicle diagnostic control method based on CAN bus network signals | |
| CN107985079B (en) | A Vehicle Torque Control Method Compliant with Functional Safety Requirements | |
| CN2911753Y (en) | Distributed control systme for multi-energy driving assembly of hybrid driving electric autocar | |
| CN202974664U (en) | Fault diagnostic apparatus for vehicle diesel engine | |
| US20130159586A1 (en) | Motor vehicle control system with simplified information exchange | |
| CN105388893A (en) | CAN communication data monitoring method and system based on OBD interface | |
| CN206719141U (en) | A kind of electric tractor and communication device with two-way CAN | |
| CN112413107A (en) | ECU-based whole vehicle signal analysis simulation system and working method thereof | |
| CN114839959A (en) | Vehicle remote diagnosis method and system based on SOA (service oriented architecture) service | |
| WO2022184069A1 (en) | Automobile bus fault analysis method, diagnosis device, and bus fault analysis system | |
| CN104618203A (en) | Network topology structure of comprehensive experiment management rack for vehicle power assembly | |
| Zhou et al. | Development method of simulation and test system for vehicle body CAN bus based on CANoe | |
| CN112413109B (en) | Whole vehicle reverse analysis working method based on CAN bus network signal | |
| CN112415983B (en) | Working method for analyzing whole vehicle signals | |
| CN102033540A (en) | System for testing automobile instrument with a controller area network (CAN) bus and testing method thereof | |
| CN114995353A (en) | Vehicle diagnosis method, device and system | |
| CN118810804A (en) | A vehicle controller functional safety architecture system and working method thereof | |
| Shao et al. | Design of special vehicle condition monitoring system based on J1939 | |
| CN117768380A (en) | Data processing method, device, system, electronic equipment and readable storage medium | |
| CN108819882B (en) | A new energy vehicle CAN bus signal analysis method | |
| TWI496706B (en) | Vehicle network system and modulized analysis device thereof | |
| CN115766331A (en) | CAN bus data transmission method and management platform | |
| Zhang | Architecture of control system of automobile inspection line based on CAN bus | |
| CN214752258U (en) | Virtual post-processing system platform device |
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 | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20230719 Address after: 401133 Room 608, Floor 6, No. 39, Yonghe Road, Yuzui Town, Liangjiang New Area, Jiangbei District, Chongqing Patentee after: CAIC New Energy Technology Co.,Ltd. Patentee after: China Automotive Engineering Research Institute Co.,Ltd. Address before: No.9 Jinyu Avenue, new North District, Chongqing Patentee before: China Automotive Engineering Research Institute Co.,Ltd. |
|
| TR01 | Transfer of patent right |