CN103746866A - CAN communication protocol-based simulation testing system - Google Patents

CAN communication protocol-based simulation testing system Download PDF

Info

Publication number
CN103746866A
CN103746866A CN201310717059.8A CN201310717059A CN103746866A CN 103746866 A CN103746866 A CN 103746866A CN 201310717059 A CN201310717059 A CN 201310717059A CN 103746866 A CN103746866 A CN 103746866A
Authority
CN
China
Prior art keywords
module
sending
physical layer
physical
communication protocol
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.)
Pending
Application number
CN201310717059.8A
Other languages
Chinese (zh)
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.)
SUZHOU TOPRANK INFORMATION TECHNOLOGY Co Ltd
Original Assignee
SUZHOU TOPRANK INFORMATION TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SUZHOU TOPRANK INFORMATION TECHNOLOGY Co Ltd filed Critical SUZHOU TOPRANK INFORMATION TECHNOLOGY Co Ltd
Priority to CN201310717059.8A priority Critical patent/CN103746866A/en
Publication of CN103746866A publication Critical patent/CN103746866A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention relates to a CAN communication protocol-based simulation testing system comprising a physical layer module, a data link layer module and an application layer module. The physical layer module includes a CAN physical communication medium and a CAN transceiver; the CAN physical communication medium is used for completing signal transmission; and the CAN transceiver provides a differential sending and receiving function for a bus. The data link layer module includes a CAN core controller including a sending module, a receiving module and an arbitration module; the sending module is used for sending an information frame to the physical layer; the receiving module is used for obtaining the information frame from the physical layer; and the arbitration module is used for carrying out arbitration on the sent and received information frames. And the application layer module includes a simulation center computer and a simulation execution device and is used for simulating a node equipment simulation model. According to the invention, the complexity of independent equipment development and testing can be effectively simplified; the research and development cycle can be shortened; and the research and development cost can be lowered.

Description

Emulation test system based on CAN communication protocol
Technical field
The present invention relates to the CAN communication system based on CAN communication protocol, specifically a kind of emulation test system based on CAN communication protocol.
Background technology
CAN (Controller Area Network), i.e. controller local area network.CAN bus transmission model can effectively solve the problem that conventional data exchange method (being point-to-point transmission means) cannot meet the communicating requirement of a large amount of electronic control systems of using in Hyundai Motor and communication system.Traditional method of testing, during such as communication test between automobile node device (comprising electronic control system, engine, instrument, transducer, communication system etc.), the physical varification that has often needed whole system, being about to all node access CAN buses in kind tests, requiring to ensure that total system developed under complete prerequisite, cause its exploitation improvement that is unfavorable for specific installation, and the R&D cycle is long, testing expense is high, has increased the input of resource.
Summary of the invention
The present invention is directed to the problems referred to above, a kind of emulation test system based on CAN communication protocol is provided, this system can be simulated whole communication network, realizes the test assignment of separate nodes equipment.
According to technical scheme of the present invention: a kind of emulation test system based on CAN communication protocol, comprises physical layer block, Data Link Layer Module and application layer module; Described physical layer block comprises CAN physical mediums of communication and CAN transceiver, and described CAN physical mediums of communication is for settling signal transmission, and described CAN transceiver provides the differential sending and receiving function to bus; Described Data Link Layer Module comprises CAN core controller, described CAN core controller comprises sending module, receiver module and arbitration modules, described sending module is for mailing to physical layer by information frame, described receiver module is used for from physical layer obtaining information frame, and described arbitration modules is for arbitrating the information frame sending out with receive; Described application layer module comprises Simulation Center computer and simulation actuating equipment, for analog node device emulation model.
Described CAN core controller is realized the notice and recovery management, the data encapsulation/dismounting of media access control sublayer, frame coding, media interviews management, error detection, mistake are demarcated, replied and the position coding/decoding of serialization/de-serialization and physical layer, bit timing and synchronously of accepting filter, overload that comprises LLC sublayer.
Described sending module comprises framing module, signal transmitting module and transmit control device, and transmit control device is connected with signal transmitting module with framing module by bus; When receiving corresponding signal, framing module is transferred to signal transmitting module by complete information frame, and signal transmitting module sends to CAN bus by current data position.
Described application layer module adopts the multidomain uniform modeling environment MWorks based on Modelica language to build.
Technique effect of the present invention is: the present invention, by application layer module analog node device emulation model, for the exploitation and improvement of equipment, has simplified the complexity of specific installation exploitation with test effectively, has shortened the R&D cycle, has reduced R&D costs.
Accompanying drawing explanation
Fig. 1 is structured flowchart of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is further described.
As shown in Figure 1, the present invention is a kind of emulation test system based on CAN communication protocol, comprises physical layer block, Data Link Layer Module and application layer module.
Physical layer block comprises CAN physical mediums of communication and CAN transceiver.What the modeling of CAN communication media adopted is twisted-pair feeder equivalent electric circuit Mathematical Modeling, and based on the building of Modelica language completing circuit model, CAN physical mediums of communication is for settling signal transmission.CAN transceiver provides the differential sending and receiving function to bus; It is Mathematical Modeling that CAN transceiver be take the equivalent circuit diagram of PCA82C250 chip, according to Modelica language non-causal modeling principle and modularization modeling method, builds physical layer model.
Data Link Layer Module comprises CAN core controller, CAN core controller comprises sending module, receiver module and arbitration modules, sending module is for mailing to physical layer by information frame, receiver module is used for from physical layer obtaining information frame, and arbitration modules is for arbitrating the information frame sending out with receive.
CAN core controller is realized the notice and recovery management, the data encapsulation/dismounting of media access control sublayer, frame coding, media interviews management, error detection, mistake are demarcated, replied and the position coding/decoding of serialization/de-serialization and physical layer, bit timing and synchronously of accepting filter, overload comprise LLC sublayer.
Sending module comprises framing module, signal transmitting module and transmit control device, and transmit control device is connected with signal transmitting module with framing module by bus; When receiving corresponding signal, framing module is transferred to signal transmitting module by complete information frame, and signal transmitting module sends to CAN bus by current data position.
Data link layer model is comprised of CAN core controller, transmission buffering, examination filter, reception FIFO buffer module.CAN core controller is with reference to the SJA1000 of Philips company chip structure, adopt the StateGraph modeling method in Modelica technology to carry out the function logic description of CAN controller, realize the modeling of CAN controller, send buffering for reading the initial data of application layer, checking and accepting filter is used for from data link layer received frame information, by checking and accepting mask off code (AMR) and checking and accepting code (ACR) and filter the data that this node needs, accept FIFO buffer module for the filtered initial data of extraction filter.
Application layer module comprises Simulation Center computer and simulation actuating equipment, for analog node device emulation model.Simulation actuating equipment is used for replacing other not produce the node of hardware device, uses other parts in simulation actuating equipment completion analogue system, the CAN communication system of complete, and now CAN communication system is software emulation system.Application layer module adopts the multidomain uniform modeling environment MWorks based on Modelica language to build.
CAN communication system at least comprises two nodes, for example node A and Node B.
The data content of the primitive frame that node A application layer equipment tissue sends, data are issued to CAN core controller, the complete CAN protocol contents that realized of CAN core controller, verification when initial data is carried out framing and sent data etc., by transceiver, digital " 0 " " 1 " is converted to logic low and high level, by the effect of physical layer twisted-pair feeder and terminal resistance, sends to other nodes of whole CAN communication network.The transceiver of other node in network can be decoded as the logic level signal on physical layer twisted-pair feeder " 0 " " 1 " value, through steps such as verification and examination filtering, if this node, for example the data that A node is issued B node, B node can receive these frame data, and other nodes can not receive.B node also will be replied answer signal after successfully receiving these data.CAN core controller unpacks the frame data that receive, and then passes to B node application layer, and B node application layer equipment is carried out some operation or replied data to node A according to the particular content of order.
The present invention, by application layer module analog node device emulation model, for the exploitation and improvement of equipment, has simplified the complexity of specific installation exploitation with test effectively, has shortened the R&D cycle, has reduced R&D costs.

Claims (4)

1. the emulation test system based on CAN communication protocol, is characterized in that: comprise physical layer block, Data Link Layer Module and application layer module; Described physical layer block comprises CAN physical mediums of communication and CAN transceiver, and described CAN physical mediums of communication is for settling signal transmission, and described CAN transceiver provides the differential sending and receiving function to bus; Described Data Link Layer Module comprises CAN core controller, described CAN core controller comprises sending module, receiver module and arbitration modules, described sending module is for mailing to physical layer by information frame, described receiver module is used for from physical layer obtaining information frame, and described arbitration modules is for arbitrating the information frame sending out with receive; Described application layer module comprises Simulation Center computer and simulation actuating equipment, for analog node device emulation model.
2. according to the emulation test system based on CAN communication protocol claimed in claim 1, it is characterized in that: described CAN core controller is realized the notice and recovery management, the data encapsulation/dismounting of media access control sublayer, frame coding, media interviews management, error detection, mistake are demarcated, replied and the position coding/decoding of serialization/de-serialization and physical layer, bit timing and synchronously of accepting filter, overload that comprises LLC sublayer.
3. according to the emulation test system based on CAN communication protocol claimed in claim 1, it is characterized in that: described sending module comprises framing module, signal transmitting module and transmit control device, transmit control device is connected with signal transmitting module with framing module by bus; When receiving corresponding signal, framing module is transferred to signal transmitting module by complete information frame, and signal transmitting module sends to CAN bus by current data position.
4. according to the emulation test system based on CAN communication protocol claimed in claim 1, it is characterized in that: described application layer module adopts the multidomain uniform modeling environment MWorks based on Modelica language to build.
CN201310717059.8A 2013-12-20 2013-12-20 CAN communication protocol-based simulation testing system Pending CN103746866A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310717059.8A CN103746866A (en) 2013-12-20 2013-12-20 CAN communication protocol-based simulation testing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310717059.8A CN103746866A (en) 2013-12-20 2013-12-20 CAN communication protocol-based simulation testing system

Publications (1)

Publication Number Publication Date
CN103746866A true CN103746866A (en) 2014-04-23

Family

ID=50503857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310717059.8A Pending CN103746866A (en) 2013-12-20 2013-12-20 CAN communication protocol-based simulation testing system

Country Status (1)

Country Link
CN (1) CN103746866A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106773778A (en) * 2016-11-21 2017-05-31 北京汽车股份有限公司 Automobile CAN-bus physical layer simulation testing device and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626351A (en) * 2008-07-09 2010-01-13 青岛高校信息产业有限公司 Multiprotocol data acquisition gateway
CN102043657A (en) * 2011-02-01 2011-05-04 苏州同元软控信息技术有限公司 File serialization method of model library of physical modeling language Modelica
CN102467530A (en) * 2010-11-11 2012-05-23 上海大潮电子技术有限公司 Data mining system and data mining method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626351A (en) * 2008-07-09 2010-01-13 青岛高校信息产业有限公司 Multiprotocol data acquisition gateway
CN102467530A (en) * 2010-11-11 2012-05-23 上海大潮电子技术有限公司 Data mining system and data mining method
CN102043657A (en) * 2011-02-01 2011-05-04 苏州同元软控信息技术有限公司 File serialization method of model library of physical modeling language Modelica

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
彭权威: "基于OPNET的列车通信网络仿真研究", 《中国优秀硕士学位论文全文数据库》 *
汪瞳: "CAN总线网络仿真系统开发", 《中国优秀硕士学位论文全文数据库》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106773778A (en) * 2016-11-21 2017-05-31 北京汽车股份有限公司 Automobile CAN-bus physical layer simulation testing device and method

Similar Documents

Publication Publication Date Title
CN102393738B (en) Diagnostic device and test method of automobile electronic control unit (ECU)
CN103873324A (en) Universal bus testing system
CN103714029A (en) Novel two-line synchronous communication protocol and application
CN103925853A (en) Carrier rocket ground test system device
CN108322373A (en) Bus test card, test method and the bus test device of avionics system
CN101605081B (en) Data transmission device, data reception device and method for controlling data transmission
CN111142012A (en) Testing device and testing method for track circuit communication interface board
CN102176699B (en) Testing platform based on time-division command/response type multiplex bus
KR101507562B1 (en) Device for fitting a multimedia system in a vehicle
CN103746865A (en) Node application layer equipment simulation testing system in CAN communication system
KR20200139059A (en) Controller diagnostic device and method thereof
CN103746866A (en) CAN communication protocol-based simulation testing system
CN108733871B (en) Pure software simulation bus communication method
CN103763166A (en) Signal transmission simulation system of physical layer in CAN communication system
CN101609412A (en) Vehicle-mounted information and entertainment system analog device
CN104683174B (en) Train bus-line analytical equipment and method
CN105262659A (en) HDLC protocol controller based on FPGA chip
CN203554485U (en) CAN bus test equipment
CN107544328A (en) CAN controller chip interface serialization device
CN205092880U (en) HDLC protocol controller based on FPGA chip
CN204597989U (en) Based on the AFDX terminal test equipment of CPCI interface
CN110401586B (en) Bus communication method, device, equipment and readable storage medium
CN113609052A (en) Chip simulation system based on FPGA and microprocessor and implementation method
CN101876931B (en) Bus performance estimation method, system and device
CN113422756A (en) Verification data transmission method, rate conversion device and verification data transmission system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140423

WD01 Invention patent application deemed withdrawn after publication