CN103888330A - Monitoring method for CAN-bus data transmission of automobile parts - Google Patents

Monitoring method for CAN-bus data transmission of automobile parts Download PDF

Info

Publication number
CN103888330A
CN103888330A CN201210561477.8A CN201210561477A CN103888330A CN 103888330 A CN103888330 A CN 103888330A CN 201210561477 A CN201210561477 A CN 201210561477A CN 103888330 A CN103888330 A CN 103888330A
Authority
CN
China
Prior art keywords
bus
message
configuration file
messages
components
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.)
Granted
Application number
CN201210561477.8A
Other languages
Chinese (zh)
Other versions
CN103888330B (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

Landscapes

  • Small-Scale Networks (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a monitoring method for CAN-bus data transmission of automobile parts, that is, a CAN-bus configuration file is edited, wherein the configuration file includes database files of all automobile part messages on a CAN bus and the message configuration of the configuration file is identical with content included in automobile part messages on the CAN bus; a computer is connected with the CAN bus through a USB data line, and the automobile parts and the computer send messages to and receives messages from the CAN bus respectively and the computer compares the sent and received messages with the automobile part messages through the configuration file, and if the sent and received messages are identical with the automobile part messages, it shows that the CAN bus is reliable in performance of sending and receiving messages; and the computer receives messages which are sent and received by any automobile part on the CAN bus in a real-time manner and compares the messages with the CAN-bus configuration file and if the messages are identical with the CAN-bus configuration file, it shows that the CAN bus is accurate in data transmission. The method realizes CAN-bus message monitoring of any automobile part and ensures the accuracy of data transmission of the CAN bus; and the method is simple in structure, low in cost and convenient to use.

Description

The method for supervising of auto parts and components CAN bus data transmission
Technical field
The present invention relates to a kind of method for supervising of auto parts and components CAN bus data transmission.
Background technology
Due to high-performance and the reliability of CAN bus, be widely used in the aspects such as industrial automation, automobile, boats and ships, Medical Devices.Along with automobile industry fast development, thereby strengthen the R&D intensity of the each type component of automobile, CAN bus is used as automobile electric bus communication protocol, for the transfer of data between the each type component of automobile, CAN bus is as the main communication protocol of automotive electrical system, so particularly important to the monitoring data transmission of CAN agreement.The monitoring of automobile CAN-bus transfer of data is at present made up of auto parts and components CAN bus and bus data monitoring software mostly, but the auto parts and components CAN bus that each data monitoring software must be corresponding unique, CAN communication protocol is fixed and cannot be carried out the configuration of CAN protocol massages.
Auto parts and components CAN bus data transmission at present adopts the monitoring of monitoring bus implement software, as CANalyzer monitoring software, Vector monitoring software and CANoe monitoring software etc., its advantage is powerful, can test the auto parts and components in any CAN bus by bus configuration, but its cost costliness, and a set of software and hardware is merely able to use a PC, reduce the utilization rate of software, and software application complicated operation.Its advantage of method for supervising of auto parts and components CAN bus and monitoring bus software composition is that development cost is low in addition, but the specific frame of auto parts and components CAN bus that each data monitoring must be corresponding unique.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of method for supervising of auto parts and components CAN bus data transmission, utilize this method to realize the CAN bus message monitoring of any auto parts and components, guarantee the accuracy of CAN bus data transmission, and simple in structure, cheap, easy to use.
For solving the problems of the technologies described above, the method for supervising of auto parts and components CAN bus data transmission of the present invention comprises the steps:
Step 1, editor CAN bus configuration file, configuration file comprises the database file of all auto parts and components messages in CAN bus, each auto parts and components message comprises frame ID, frame format, data length, message name, start bit, length, data format, data type, amplification factor, side-play amount, minimum value, maximum, default value and unit, and the configuration of the message of configuration file is consistent with the CAN bus content that parts message comprises of getting on the car;
Step 2, computer connect CAN bus by usb data line, auto parts and components send four frame messages in CAN bus, computer receives this four frames message in CAN bus, according to CAN bus configuration file, compare four frame message data content and the cycles of sending and receiving by computer, the four frame message data contents that receive are consistent with CAN bus configuration file with the cycle, show that CAN bus receives message dependable performance;
Step 3, computer send two frame messages in CAN bus, auto parts and components receive this two frames message in CAN bus, according to CAN bus configuration file, compare two frame message data content and the cycles of sending and receiving by computer, the two frame message data contents that send are consistent with CAN bus configuration file with the cycle, show that CAN bus sends message dependable performance;
Step 4, computer receive the message of arbitrary auto parts and components sending and receiving in CAN bus in real time, and with the comparison of CAN bus configuration file, the message data content of arbitrary auto parts and components sending and receiving is consistent with CAN bus configuration file with the cycle, shows the transmission of CAN bus data accurately.
Because the method for supervising of auto parts and components CAN bus data transmission of the present invention has adopted technique scheme, edit CAN bus configuration file, configuration file comprises the database file of all auto parts and components messages in CAN bus, and the configuration of the message of configuration file is consistent with the CAN bus content that parts message comprises of getting on the car; Computer connects CAN bus by usb data line, auto parts and components and computer are respectively toward CAN bus sending and receiving message, computer compares sending and receiving message and auto parts and components message by configuration file, unanimously shows CAN bus sending and receiving message dependable performance; Computer receives the message of arbitrary auto parts and components sending and receiving in CAN bus in real time, and with the comparison of CAN bus configuration file, more show that CAN bus data transmission is accurately.This method has realized the CAN bus message monitoring of any auto parts and components, guarantees the accuracy of CAN bus data transmission, and simple in structure, cheap, easy to use.
Embodiment
The method for supervising of auto parts and components CAN bus data transmission of the present invention comprises the steps:
Step 1, editor CAN bus configuration file, configuration file comprises the database file of all auto parts and components messages in CAN bus, each auto parts and components message comprises frame ID, frame format, data length, message name, start bit, length, data format, data type, amplification factor, side-play amount, minimum value, maximum, default value and unit, and the configuration of the message of configuration file is consistent with the CAN bus content that parts message comprises of getting on the car;
If the message configuration format of CAN bus configuration file is as following table:
Figure 2012105614778100002DEST_PATH_IMAGE002
One of auto parts and components in table, are defined, the message data content of engine;
Step 2, computer connect CAN bus by usb data line, auto parts and components send four frame messages in CAN bus, computer receives this four frames message in CAN bus, according to CAN bus configuration file, compare four frame message data content and the cycles of sending and receiving by computer, the four frame message data contents that receive are consistent with CAN bus configuration file with the cycle, show that CAN bus receives message dependable performance;
Following table is auto parts and components toward the content that sends four frame messages in CAN bus:
Figure 2012105614778100002DEST_PATH_IMAGE004
To be computer receive the content of four frame messages from CAN bus to following table:
Figure 2012105614778100002DEST_PATH_IMAGE006
From above-listed two tables, its content and cycle are in full accord, show that CAN bus receives message dependable performance;
Step 3, computer send two frame messages in CAN bus, auto parts and components receive this two frames message in CAN bus, according to CAN bus configuration file, compare two frame message data content and the cycles of sending and receiving by computer, the two frame message data contents that send are consistent with CAN bus configuration file with the cycle, show that CAN bus sends message dependable performance;
Following table is computer toward the content that sends two frame messages in CAN bus:
Figure DEST_PATH_IMAGE008
To be auto parts and components receive the content of two frame messages from CAN bus to following table;
Figure DEST_PATH_IMAGE010
From above-listed two tables, its content and cycle are in full accord, show that CAN bus sends message dependable performance;
Step 4, computer receive the message of arbitrary auto parts and components sending and receiving in CAN bus in real time, and with the comparison of CAN bus configuration file, the message data content of arbitrary auto parts and components sending and receiving is consistent with CAN bus configuration file with the cycle, shows the transmission of CAN bus data accurately.
Can monitor in real time the transmitting-receiving message on automobile CAN-bus by this method, and by with editor's CAN bus configuration file comparison, to judge the accuracy of arbitrary auto parts and components transmitting-receiving message in CAN bus, thereby improve the reliability of whole-control system.

Claims (1)

1. a method for supervising for auto parts and components CAN bus data transmission, is characterized in that this method comprises the steps:
Step 1, editor CAN bus configuration file, configuration file comprises the database file of all auto parts and components messages in CAN bus, each auto parts and components message comprises frame ID, frame format, data length, message name, start bit, length, data format, data type, amplification factor, side-play amount, minimum value, maximum, default value and unit, and the configuration of the message of configuration file is consistent with the CAN bus content that parts message comprises of getting on the car;
Step 2, computer connect CAN bus by usb data line, auto parts and components send four frame messages in CAN bus, computer receives this four frames message in CAN bus, according to CAN bus configuration file, compare four frame message data content and the cycles of sending and receiving by computer, the four frame message data contents that receive are consistent with CAN bus configuration file with the cycle, show that CAN bus receives message dependable performance;
Step 3, computer send two frame messages in CAN bus, auto parts and components receive this two frames message in CAN bus, according to CAN bus configuration file, compare two frame message data content and the cycles of sending and receiving by computer, the two frame message data contents that send are consistent with CAN bus configuration file with the cycle, show that CAN bus sends message dependable performance;
Step 4, computer receive the message of arbitrary auto parts and components sending and receiving in CAN bus in real time, and with the comparison of CAN bus configuration file, the message data content of arbitrary auto parts and components sending and receiving is consistent with CAN bus configuration file with the cycle, shows the transmission of CAN bus data accurately.
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 true CN103888330A (en) 2014-06-25
CN103888330B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634258A (en) * 2018-11-30 2019-04-16 北京新能源汽车股份有限公司 It is a kind of for the bus message method of calibration of hardware-in―the-loop test, apparatus and system
CN113740748A (en) * 2021-09-03 2021-12-03 深圳市新威尔电子有限公司 Battery detection method for sending message based on CAN bus

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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634258A (en) * 2018-11-30 2019-04-16 北京新能源汽车股份有限公司 It is a kind of for the bus message method of calibration of hardware-in―the-loop test, apparatus and system
CN113740748A (en) * 2021-09-03 2021-12-03 深圳市新威尔电子有限公司 Battery detection method for sending message based on CAN bus
CN113740748B (en) * 2021-09-03 2024-04-26 深圳市新威尔电子有限公司 Battery detection method based on CAN bus sending message

Also Published As

Publication number Publication date
CN103888330B (en) 2018-07-13

Similar Documents

Publication Publication Date Title
CN204046631U (en) The quick management system of a kind of BMC based on MCTP technology
RU2012101207A (en) METHOD FOR CONTROLLING THE OPERATION OF THE BUS SYSTEM BEFORE THE WHOLE CAN BUS
CN104506516A (en) Gateway for conversion between Modbus RTU/ASCII (remote terminal unit/American standard code for information interchange) communication protocol and Modbus TCP (transmission control protocol) communication protocol and implementation method for gateway
CN103888330A (en) Monitoring method for CAN-bus data transmission of automobile parts
CN204915558U (en) Signal processing device of car CAN bus
CN104216360B (en) Realize the universal method of many control object Synchronization Controls
CN201703423U (en) Controller circuit of electric power assisted steering system
CN203754167U (en) Handheld terminal for elevator debugging and maintenance
CN202950637U (en) Novel arthroscope system
CN208001343U (en) A kind of video, the super fusion treatment device platform of image
CN203554485U (en) CAN bus test equipment
CN203204610U (en) Short message service-based system
CN204576495U (en) A kind of dual bus arbitration control device
CN206100068U (en) Economize on -vehicle information wireless transmission system of flow intelligence
CN202395812U (en) RS232 bus and CAN (controlled area network) bus protocol converter
CN205665542U (en) Multimedia central controller
CN204578550U (en) A kind of serial ports and network self-adapting terminal equipment
CN204291043U (en) Multi-functional protocol conversion device
CN204125045U (en) A kind of car hosit is got on or off the bus signal transmitting apparatus
CN202533506U (en) Intelligent three-phase power transmitter
CN202663432U (en) Controller area network (CAN) network router for electric passenger car
CN203340107U (en) Network transmission system based on access of unidirectional serial port channel
Wu et al. Remote data acquisition and signal processing system based on LabVIEW
CN202906973U (en) A communication protocol converting circuit of an RAM shared by double MPUs
CN203350324U (en) Adaptive DL/T645 and MODBUS protocal multifunctional meter

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