CN103888330B - The monitoring method of auto parts and components CAN bus data transmission - Google Patents

The monitoring method of auto parts and components CAN bus data transmission Download PDF

Info

Publication number
CN103888330B
CN103888330B CN201210561477.8A CN201210561477A CN103888330B CN 103888330 B CN103888330 B CN 103888330B CN 201210561477 A CN201210561477 A CN 201210561477A CN 103888330 B CN103888330 B CN 103888330B
Authority
CN
China
Prior art keywords
bus
message
components
auto parts
computer
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
CN201210561477.8A
Other languages
Chinese (zh)
Other versions
CN103888330A (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.)
Shanghai Dajun Technologies Inc
Original Assignee
Shanghai Dajun Technologies Inc
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 Shanghai Dajun Technologies Inc filed Critical Shanghai Dajun Technologies Inc
Priority to CN201210561477.8A priority Critical patent/CN103888330B/en
Publication of CN103888330A publication Critical patent/CN103888330A/en
Application granted granted Critical
Publication of CN103888330B publication Critical patent/CN103888330B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of monitoring methods of auto parts and components CAN bus data transmission, edit CAN bus configuration file, configuration file includes the database file of all auto parts and components messages in CAN bus, and the message configuration of configuration file is consistent with the CAN bus content that parts message includes of getting on the car;Computer connects CAN bus by USB data line, auto parts and components and computer send and receive message toward CAN bus respectively, computer will send and receive message by configuration file and will be compared with auto parts and components message, unanimously then show that CAN bus sends and receives message dependable performance;The message that any auto parts and components send and receive in computer real-time reception CAN bus, and than more consistent, show that CAN bus data transmission is accurate.This method realizes the CAN bus monitoring messages of arbitrary auto parts and components, it is ensured that the accuracy of CAN bus data transmission, and it is simple in structure, cheap, easy to use.

Description

The monitoring method of auto parts and components CAN bus data transmission
Technical field
The present invention relates to a kind of monitoring methods of auto parts and components CAN bus data transmission.
Background technology
Due to the high-performance and reliability of CAN bus, it is widely used in industrial automation, automobile, ship, Medical Devices Etc..With automobile industry fast development, to increase the R&D intensity of each type component of automobile, CAN bus is used as vapour Vehicle electric bus communication protocol, for the data transmission between each type component of automobile, CAN bus is main as automotive electrical system Communication protocol, so the monitoring data transmission to CAN protocol is particularly important.The monitoring of automobile CAN-bus data transmission is big at present It is mostly made of auto parts and components CAN bus and bus data monitoring software, but each data monitoring software must correspond to uniquely Auto parts and components CAN bus, i.e. CAN communication agreement fixes and can not carry out CAN protocol message configuration.
Auto parts and components CAN bus data transmission is monitored using monitoring bus software implementation at present, as CANalyzer is monitored Software, Vector monitoring softwares and CANoe monitoring softwares etc., its advantage is that it is powerful, it can be tested and be appointed by bus configuration Auto parts and components in CAN bus of anticipating, but its is expensive, and also a set of software and hardware is merely able to use a PC machine, reduces The utilization rate of software, and software is using complicated for operation.In addition the prison of auto parts and components CAN bus and monitoring bus software composition Prosecutor method is its advantage is that development cost is low, but must to correspond to unique auto parts and components CAN bus specific for each data monitoring Frame.
Invention content
Technical problem to be solved by the invention is to provide a kind of monitoring sides of auto parts and components CAN bus data transmission Method realizes the CAN bus monitoring messages of arbitrary auto parts and components using this method, it is ensured that CAN bus data transmission it is accurate Property, and it is simple in structure, cheap, easy to use.
In order to solve the above technical problems, the monitoring method of auto parts and components CAN bus data transmission of the present invention includes as follows Step:
Step 1: editor's CAN bus configuration file, configuration file includes all auto parts and components messages in CAN bus Database file, each auto parts and components message include frame ID, frame format, data length, message name, start bit, length, number According to format, data type, amplification factor, offset, minimum value, maximum value, default value and unit, the message of configuration file configures It is consistent with the CAN bus content that parts message includes of getting on the car;
Step 2: computer connects CAN bus by USB data line, auto parts and components are toward sending four frame reports in CAN bus Text, computer receive the four frames message in CAN bus, according to CAN bus configuration file, compare transmission by computer and connect The four frame message data contents received and period, the four frame message data contents sent and received are consistent with the period, show CAN bus Receive message dependable performance;
Step 3: computer receives two frame in CAN bus toward two frame messages, auto parts and components are sent in CAN bus Message the two frame message data contents relatively sent and received by computer and period, connects according to CAN bus configuration file Receipts and the two frame message data contents sent are consistent with the period, show that CAN bus sends message dependable performance;
Step 4: any auto parts and components send and receive in computer real-time reception CAN bus message and being compared Compared with the message data content that any auto parts and components send and receive is consistent with the period, shows that CAN bus data transmission is accurate.
Since the monitoring method of auto parts and components CAN bus data transmission of the present invention uses above-mentioned technical proposal, that is, compile CAN bus configuration file is collected, configuration file includes the database file of all auto parts and components messages in CAN bus, configuration text The message configuration of part is consistent with the CAN bus content that parts message includes of getting on the car;Computer is connected by USB data line CAN bus, auto parts and components and computer send and receive message toward CAN bus respectively, and computer will be sent out by configuration file It send and receives message to be compared with auto parts and components message, unanimously then show that CAN bus sends and receives message dependable performance; The message that any auto parts and components send and receive in computer real-time reception CAN bus, and than more consistent, show CAN bus Data transmission is accurate.This method realizes the CAN bus monitoring messages of arbitrary auto parts and components, it is ensured that CAN bus data transmission Accuracy, and it is simple in structure, cheap, easy to use.
Specific implementation mode
The monitoring method of auto parts and components CAN bus data transmission of the present invention includes the following steps:
Step 1: editor's CAN bus configuration file, configuration file includes all auto parts and components messages in CAN bus Database file, each auto parts and components message include frame ID, frame format, data length, message name, start bit, length, number According to format, data type, amplification factor, offset, minimum value, maximum value, default value and unit, the message of configuration file configures It is consistent with the CAN bus content that parts message includes of getting on the car;
Such as the message configuration format such as following table of CAN bus configuration file:
One of auto parts and components defined in table, the message data content of engine;
Step 2: computer connects CAN bus by USB data line, auto parts and components are toward sending four frame reports in CAN bus Text, computer receive the four frames message in CAN bus, according to CAN bus configuration file, compare transmission by computer and connect The four frame message data contents received and period, the four frame message data contents sent and received are consistent with the period, show CAN bus Receive message dependable performance;
Following table is auto parts and components toward the content for sending four frame messages in CAN bus:
Following table is the content that computer receives four frame messages from CAN bus:
From above-listed two table it is found that its content and period are completely the same, and it is also consistent with CAN bus configuration file, show CAN bus receives message dependable performance;
Step 3: computer receives two frame in CAN bus toward two frame messages, auto parts and components are sent in CAN bus Message the two frame message data contents relatively sent and received by computer and period, connects according to CAN bus configuration file Receipts and the two frame message data contents sent are consistent with the period, show that CAN bus sends message dependable performance;
Following table is computer toward the content for sending two frame messages in CAN bus:
Following table is the content that auto parts and components receive two frame messages from CAN bus;
From above-listed two table it is found that its content and period are completely the same, and it is also consistent with CAN bus configuration file, show CAN bus sends message dependable performance;
Step 4: any auto parts and components send and receive in computer real-time reception CAN bus message and being compared Compared with the message data content that any auto parts and components send and receive is consistent with the period, shows that CAN bus data transmission is accurate.
The transmitting-receiving message on automobile CAN-bus can be monitored in real time by this method, and text is configured according to the CAN bus of editor The message data content sent and received and period are compared by part, to judge that any auto parts and components are received and dispatched in CAN bus The accuracy of message, to improve the reliability of whole-control system.

Claims (1)

1. a kind of monitoring method of auto parts and components CAN bus data transmission, it is characterised in that this method includes the following steps:
Step 1: editor's CAN bus configuration file, configuration file includes the data of all auto parts and components messages in CAN bus Library file, each auto parts and components message include frame ID, frame format, data length, message name, start bit, length, data lattice The message configuration of formula, data type, amplification factor, offset, minimum value, maximum value, default value and unit, configuration file is same The CAN bus content that parts message includes of getting on the car is consistent;
Step 2: computer connects CAN bus by USB data line, auto parts and components toward sending four frame messages in CAN bus, The four frames message that computer receives in CAN bus is relatively sent and received according to CAN bus configuration file by computer Four frame message data contents and the period, the four frame message data contents sent and received are consistent with the period, show that CAN bus connects The literary dependable performance of receiving;
Step 3: computer receives the two frames message in CAN bus toward two frame messages, auto parts and components are sent in CAN bus, According to CAN bus configuration file, the two frame message data contents relatively sent and received by computer and period receive and send out The two frame message data contents sent are consistent with the period, show that CAN bus sends message dependable performance;
Step 4: any auto parts and components send and receive in computer real-time reception CAN bus message and being compared, appoint The message data content that one auto parts and components send and receive is consistent with the period, shows that CAN bus data transmission is accurate.
CN201210561477.8A 2012-12-21 2012-12-21 The monitoring method of auto parts and components CAN bus data transmission Active CN103888330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210561477.8A CN103888330B (en) 2012-12-21 2012-12-21 The monitoring method of auto parts and components CAN bus data transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210561477.8A CN103888330B (en) 2012-12-21 2012-12-21 The monitoring method of auto parts and components CAN bus data transmission

Publications (2)

Publication Number Publication Date
CN103888330A CN103888330A (en) 2014-06-25
CN103888330B true CN103888330B (en) 2018-07-13

Family

ID=50957056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210561477.8A Active CN103888330B (en) 2012-12-21 2012-12-21 The monitoring method of auto parts and components CAN bus data transmission

Country Status (1)

Country Link
CN (1) CN103888330B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634258B (en) * 2018-11-30 2021-05-25 北京新能源汽车股份有限公司 Bus message checking method, device and system for hardware-in-loop test

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004010645A1 (en) * 2002-07-18 2004-01-29 Vega Grieshaber Kg Bus station with an integrated bus monitor function
CN101145942A (en) * 2007-01-04 2008-03-19 中兴通讯股份有限公司 A serial bus failure detection method for single bus master-slave protection device
CN101360036A (en) * 2007-07-31 2009-02-04 比亚迪股份有限公司 CAN bus gateway controller and data transmission method between CAN buses
CN201638076U (en) * 2010-03-18 2010-11-17 奇瑞汽车股份有限公司 Vehicle-mounted diagnosis device based on CAN (Content Addressable Network) bus
CN202041845U (en) * 2010-12-28 2011-11-16 南京工程学院 Vehicle-mounted CAN (Control Area Network) bus system test and control analysis platform
CN102722592A (en) * 2012-05-15 2012-10-10 中国人民解放军91550部队 Universal digital information recording device and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004010645A1 (en) * 2002-07-18 2004-01-29 Vega Grieshaber Kg Bus station with an integrated bus monitor function
CN101145942A (en) * 2007-01-04 2008-03-19 中兴通讯股份有限公司 A serial bus failure detection method for single bus master-slave protection device
CN101360036A (en) * 2007-07-31 2009-02-04 比亚迪股份有限公司 CAN bus gateway controller and data transmission method between CAN buses
CN201638076U (en) * 2010-03-18 2010-11-17 奇瑞汽车股份有限公司 Vehicle-mounted diagnosis device based on CAN (Content Addressable Network) bus
CN202041845U (en) * 2010-12-28 2011-11-16 南京工程学院 Vehicle-mounted CAN (Control Area Network) bus system test and control analysis platform
CN102722592A (en) * 2012-05-15 2012-10-10 中国人民解放军91550部队 Universal digital information recording device and method

Also Published As

Publication number Publication date
CN103888330A (en) 2014-06-25

Similar Documents

Publication Publication Date Title
US9292411B2 (en) Wireless debugging and updating of firmware
CN106713095A (en) Vehicle-mounted communication device and vehicle
TW201433484A (en) (Remote) diagnosis system for eScooter ECU with optional data mining through internet
CN103888330B (en) The monitoring method of auto parts and components CAN bus data transmission
CN204915558U (en) Signal processing device of car CAN bus
Sutar et al. ECU diagnostics validator using CANUSB
CN202794942U (en) Remote monitoring system of electric fork-lift truck
CN104483960A (en) Automobile diagnosis communication module data transceiving parallel processing method
CN103425123A (en) Automated testing method for CAN (controller area network) bus based on software script
CN102610085A (en) Infrared meter reading method compatible with multi protocols
CN112866304B (en) Mutual conversion equipment and mutual conversion method for CAN message and ROS message
Sutar et al. Ecu health monitor using canusb
CN203554485U (en) CAN bus test equipment
CN109981394B (en) Communication method and device based on enhanced CAN bus protocol analyzer
CN206100068U (en) Economize on -vehicle information wireless transmission system of flow intelligence
CN104423376A (en) Self-diagnosis remote detection system of vehicle
CN205622888U (en) Intelligent terminal
CN105610595B (en) Fault data acquisition system, remote equipment control system and corresponding method thereof
Rao et al. Accident Detection in Vehicular Networks Using Android-based Smartphones
CN106656645B (en) Monitoring device of point-to-point communication equipment and monitoring system with same
Li et al. Research and implementation of embedded remote measurement and control system based on industrial Ethernet
CN103692916A (en) CAN-fieldbus-based (controller area network-fieldbus-based) purely-electric automobile instrument display terminal
Tomaselli An analysis of possible architectures and MQTT communication protocol applied to the connected vehicles scenario
CN104290757A (en) Programmable combined bus parking system and control method thereof
CN103578159A (en) Train data recorder

Legal Events

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