CN106789449A - A kind of CAN exploitation and method of testing and system - Google Patents

A kind of CAN exploitation and method of testing and system Download PDF

Info

Publication number
CN106789449A
CN106789449A CN201710097729.9A CN201710097729A CN106789449A CN 106789449 A CN106789449 A CN 106789449A CN 201710097729 A CN201710097729 A CN 201710097729A CN 106789449 A CN106789449 A CN 106789449A
Authority
CN
China
Prior art keywords
network service
data
actual
application software
commissioning analysis
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
CN201710097729.9A
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.)
Anhui Excellent Technology Co Ltd
Original Assignee
Anhui Excellent 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 Anhui Excellent Technology Co Ltd filed Critical Anhui Excellent Technology Co Ltd
Priority to CN201710097729.9A priority Critical patent/CN106789449A/en
Publication of CN106789449A publication Critical patent/CN106789449A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Abstract

The invention discloses a kind of exploitation of CAN and method of testing and system, belong to technical field of automotive electronics, the application software needed for method includes actual CAN data Commissioning Analysis sends data to the network service that virtual CAN is created;Application software needed for the data forwarding that the network service will be received to connected other CAN Commissioning Analysis, and the data forwarding that will be received is to actual CAN;Commissioning Analysis are carried out to the data that the network service is forwarded using the application software needed for the CAN Commissioning Analysis being connected with the network service.A kind of CAN data Commissioning Analysis system is provided in addition.By creating a network service, multiple application software are mounted simultaneously in network service, multiple application software can be to sending data in network service, and the data forwarding that will be received by network service is to the other application software for being connected.The complexity of testing cost and system is reduced, the stability of system is improve.

Description

A kind of CAN exploitation and method of testing and system
Technical field
The present invention relates to technical field of automotive electronics, more particularly to a kind of CAN is developed and method of testing and system.
Background technology
In the development process of automobile electronic system, it usually needs to controller local area network (Controller Area Network, CAN) bus message monitored and analyzed, inject test packet is tested and shown in CAN in real time Data.In order to complete these tasks, existing method is that multiple application software joint multiple USB is turned into CAN interface card(Below Abbreviation USB-CAN)The physical layer of CAN is connected to, such as Fig. 1 shows the typical connection figure of existing one, this connection Mode is needed to connect multiple USB-CAN on one computer, and each software is needed by a corresponding USB-CAN and CAN The other equipment connected in bus is communicated.Wherein, application software is the software for needing exploitation debugging, and packet catcher is used to grab Take all data of CAN and the data of crawl are preserved into file and supply post analysis, real-time data analysis instrument is to packet capturing The data of instrument crawl are captured and are carried out the related physical quantity of the CAN that packet parsing and real time parsing are obtained, data Implantation tool injects the test data related to application software.
But, there is following defect in this existing method:One is, it is necessary to using multiple USB-CAN, improve and test into This;Two are, multiple USB-CAN are connected to when on same computer, cause systematic comparison complicated, and the driving of system may Influence each other and cause the unstable of system;Three are, when new instrument is accessed, it is necessary to access corresponding USB-CAN, cause The autgmentability for stating existing method is poor.
The content of the invention
It is an object of the invention to provide a kind of exploitation of CAN and method of testing and system, to reduce CAN exploitation With the complexity of test process.
To realize object above, the technical solution adopted by the present invention is:First aspect, there is provided a kind of exploitation of CAN with Method of testing, the method includes:
Application software needed for actual CAN data Commissioning Analysis sends data to the network service that virtual CAN is created;
Application needed for the data forwarding that the network service will be received to connected other CAN Commissioning Analysis is soft Part, and the data forwarding that will be received is to actual CAN;
The network service is forwarded using the application software needed for the CAN Commissioning Analysis being connected with the network service Data carry out Commissioning Analysis.
Second aspect, there is provided a kind of CAN exploitation and test system, the system include:
Operate in the network service created by virtual CAN at a PC ends and actual CAN data Commissioning Analysis institute The application software for needing;
Application software needed for actual CAN data Commissioning Analysis accesses the network service by the form of network connection.
Compared with prior art, there is following technique effect in the present invention:The present invention passes through to create a network service, in net Mount multiple application software in network service simultaneously, multiple application software to sending data in network service, and can be taken by network The data forwarding that business will be received gives the other application software for being connected.Without setting corresponding to each application software USB-CAN, reduces the complexity of testing cost and system, further increasing the stability of system.
Brief description of the drawings
Fig. 1 is a typical connection diagram of the existing test system that background of invention part is addressed;
Fig. 2 is the schematic flow sheet of a kind of CAN exploitation that one embodiment of the invention is provided and method of testing;
Fig. 3 is the structural representation of a kind of CAN exploitation that one embodiment of the invention is provided and test system.
Specific embodiment
With reference to shown in Fig. 1 to Fig. 3, the present invention is described in further detail.
As shown in Fig. 2 present embodiment discloses a kind of exploitation of CAN and method of testing, the method comprises the following steps S1 to S3:
Application software needed for S1, actual CAN data Commissioning Analysis sends number to the network service that virtual CAN is created According to;
Wherein, the application software needed for actual CAN data Commissioning Analysis includes needing application software, the packet capturing of exploitation debugging The application software such as instrument, real-time data analysis instrument and data implantation tool.It should be noted that not limited in the present embodiment The type and quantity of application software, the need for art technology can be according to actual conditions, select different application software.
Needed for the data forwarding that S2, the network service will be received to connected other CAN Commissioning Analysis Application software, and the data forwarding that will be received is to actual CAN;
S3, using the application software needed for the CAN Commissioning Analysis being connected with the network service to the network service turn The data of hair carry out Commissioning Analysis.
In actual applications, the data for disturbing bag to disturb actual CAN are injected by data implantation tool, in interference During, gripping tool is captured to the communication data between individual application software and actual CAN, and by other application software Communication data to capturing carries out Commissioning Analysis.Communication process in the present embodiment between application software and actual CAN is: The other application that the data of a certain application software are forwarded directly to its connection by the network service created by virtual CAN is soft Part, multiple application software can realize data transmit-receive by network service with using an actual CAN.And traditional communication Mode is that each application software needs to be communicated with the equipment in actual CAN by corresponding USB-CAN, realizes number According to transmitting-receiving, that is, need to connect multiple USB-CAN on one computer.Therefore, it is of the invention compared with traditional communication mode, only Needing one even can not need USB-CAN, greatly reduce the quantity of USB-CAN, reduce the complexity of whole system And use cost.
In addition, it should be noted that, the data of the actual CAN in the present embodiment to capturing carry out the mistake of Commissioning Analysis Journey is identical with existing Commissioning Analysis process, is repeated no more in the present embodiment.
Further, it is necessary to explanation, the data forwarding that the application software that network service will be received sends to actual CAN After bus, actual CAN is transmitted data in connected equipment, and equipment performs corresponding dynamic according to the data for receiving Make or return corresponding message data.When equipment returns to corresponding message data, the CAN number disclosed in the present embodiment Also comprise the following steps according to adjustment method:
The data that the network service will be received are forwarded to actual CAN by USB-CAN, and receive actual CAN The message data of return;
The message data that actual CAN is returned is forwarded to the network service CAN being connected with the network service In application software needed for Commissioning Analysis;
Wherein, the message data that described actual CAN is returned is the message number that the equipment being connected with actual CAN is produced According to.
It should be noted that the gripping tool in the present embodiment also is captured to carry out to the message data that equipment is returned Analysis.
Further, method disclosed in the present embodiment also includes:
The corresponding application software that the 2nd PC ends will be operated in is connected to the net that the virtual CAN is created by network mode In network service, wherein, the virtual CAN operates in a PC ends;
The 2nd PC ends carry out remote debugging by a PC ends to actual CAN.
It should be noted that because the virtual CAN in the present embodiment is to operate on a PC ends and pass through The form of network is realized so that application software can also be operated on other computers, such as second in the present embodiment PC ends.2nd PC ends the first PC ends are accessed by the form of network connection, you can actual CAN is entered by a PC ends Row remote debugging is developed.
As shown in figure 3, present embodiment discloses a kind of exploitation of CAN and test system, the system includes:Operate in Application software needed for the network service created as virtual CAN and actual CAN data Commissioning Analysis at one PC ends;
Application software needed for actual CAN data Commissioning Analysis accesses the network service by the form of network connection.
Further, the system in the present embodiment also includes what is be connected with described network service interface by connecting line USB-CAN, USB-CAN are also connected with actual CAN.
It should be noted that described network service can be, but not limited to by the form and actual CAN of USB-CAN Connection.When the interface of network service is connected with USB-CAN, the data that network service also sends the application software for receiving turn Actual CAN is sent to, and the message data received from actual CAN by USB-CAN is forwarded to its connection All application software.
Further, as shown in figure 3, the system of the present embodiment also includes accessing the network by the form of network connection The 2nd PC ends in service, the application software needed for the CAN data Commissioning Analysis are run on the 2nd PC ends.
Specifically, the need for according to actual test situation, the application software run on the 2nd PC ends also includes needing exploitation The application software such as the application software of debugging, packet catcher, real-time data analysis instrument and data implantation tool, on the 2nd PC ends When running above-mentioned application software, you can carry out Commissioning Analysis to actual CAN data by a PC ends.
Also, it should be noted that when the data transmit-receive with equipment is not related to, being created by virtual CAN in the present embodiment Network service can not be connected with actual CAN, in the case of the CAN that loses contact with reality, complete actual CAN number According to transmitting-receiving, realize the Commissioning Analysis of pure virtual CAN, it is easy to extend.
It should be noted that in actual applications, for there is the software developed based on USB-CAN, it is necessary to open Send out a set of and operate identical application programming interface with USB-CAN(Application Programming Interface, API)Dynamic link library(Dynamic Link Library, DLL), the function of the API correlation functions of USB operations is replaced with The operation of the network service created to virtual CAN, operates including connection, data transmit-receive and disconnection etc., then directly replaces Change complete by the DLL of original software original software with suitable.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all it is of the invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.

Claims (6)

1. a kind of CAN is developed and method of testing, it is characterised in that including:
Application software needed for S1, actual CAN data Commissioning Analysis sends number to the network service that virtual CAN is created According to;
Answering needed for the data forwarding that S2, the network service will be received to connected other CAN Commissioning Analysis Use software;
S3, using the application software needed for the CAN Commissioning Analysis being connected with the network service to the network service turn The data of hair carry out Commissioning Analysis.
2. the method for claim 1, it is characterised in that also include:
The data that the network service will be received are forwarded to actual CAN by USB-CAN, and receive actual CAN The message data of return;
The message data that actual CAN is returned is forwarded to the network service CAN being connected with the network service In application software needed for Commissioning Analysis;
Wherein, the message data that described actual CAN is returned is the message number that the equipment being connected with actual CAN is produced According to.
3. the method for claim 1, it is characterised in that also include:
The corresponding application software that the 2nd PC ends will be operated in is connected to the net that the virtual CAN is created by network mode In network service, wherein, the virtual CAN operates in a PC ends;
The 2nd PC ends carry out remote debugging by a PC ends to actual CAN.
4. a kind of exploitation of CAN and test system, it is characterised in that including operate in a PC ends by virtual CAN Application software needed for the network service of establishment and actual CAN data Commissioning Analysis;
Application software needed for actual CAN data Commissioning Analysis accesses the network service by the form of network connection.
5. system as claimed in claim 4, it is characterised in that also including being connected by connecting line and described network service interface The USB-CAN for connecing, USB-CAN are also connected with actual CAN.
6. system as claimed in claim 5, it is characterised in that also taken including accessing the network by the form of network connection The 2nd PC ends in business, the application software needed for the CAN data Commissioning Analysis are run on the 2nd PC ends.
CN201710097729.9A 2017-02-22 2017-02-22 A kind of CAN exploitation and method of testing and system Pending CN106789449A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710097729.9A CN106789449A (en) 2017-02-22 2017-02-22 A kind of CAN exploitation and method of testing and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710097729.9A CN106789449A (en) 2017-02-22 2017-02-22 A kind of CAN exploitation and method of testing and system

Publications (1)

Publication Number Publication Date
CN106789449A true CN106789449A (en) 2017-05-31

Family

ID=58957914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710097729.9A Pending CN106789449A (en) 2017-02-22 2017-02-22 A kind of CAN exploitation and method of testing and system

Country Status (1)

Country Link
CN (1) CN106789449A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111404793A (en) * 2020-03-11 2020-07-10 山东超越数控电子股份有限公司 Method, system, equipment and readable storage medium for controlling mapping of physical CAN port and virtual CAN port
CN112311773A (en) * 2020-10-15 2021-02-02 上海交通大学 Implementation method for intelligent automobile sensor interface system
CN116389188A (en) * 2023-04-10 2023-07-04 北京索英电气技术股份有限公司 Data transmission method and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414188A (en) * 2008-12-03 2009-04-22 重庆邮电大学 Automobile ABS ECU on-line calibration system and method based on CCP protocol
CN103414622A (en) * 2013-08-15 2013-11-27 上海固泰科技有限公司 Simulation method based on CAN buses
CN103414620A (en) * 2013-08-15 2013-11-27 上海固泰科技有限公司 Double-channel CAN simulation system based on CAN buses
CN103425123A (en) * 2013-08-15 2013-12-04 上海固泰科技有限公司 Automated testing method for CAN (controller area network) bus based on software script
CN103440187A (en) * 2013-08-15 2013-12-11 上海固泰科技有限公司 Hardware script-based automated CAN (Controller Area Network) bus test method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414188A (en) * 2008-12-03 2009-04-22 重庆邮电大学 Automobile ABS ECU on-line calibration system and method based on CCP protocol
CN103414622A (en) * 2013-08-15 2013-11-27 上海固泰科技有限公司 Simulation method based on CAN buses
CN103414620A (en) * 2013-08-15 2013-11-27 上海固泰科技有限公司 Double-channel CAN simulation system based on CAN buses
CN103425123A (en) * 2013-08-15 2013-12-04 上海固泰科技有限公司 Automated testing method for CAN (controller area network) bus based on software script
CN103440187A (en) * 2013-08-15 2013-12-11 上海固泰科技有限公司 Hardware script-based automated CAN (Controller Area Network) bus test method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111404793A (en) * 2020-03-11 2020-07-10 山东超越数控电子股份有限公司 Method, system, equipment and readable storage medium for controlling mapping of physical CAN port and virtual CAN port
CN111404793B (en) * 2020-03-11 2022-01-21 超越科技股份有限公司 Method, system, equipment and readable storage medium for controlling mapping of physical CAN port and virtual CAN port
CN112311773A (en) * 2020-10-15 2021-02-02 上海交通大学 Implementation method for intelligent automobile sensor interface system
CN112311773B (en) * 2020-10-15 2021-07-06 上海交通大学 Implementation method for intelligent automobile sensor interface system
CN116389188A (en) * 2023-04-10 2023-07-04 北京索英电气技术股份有限公司 Data transmission method and related device
CN116389188B (en) * 2023-04-10 2024-03-12 北京索英电气技术股份有限公司 Data transmission method and related device

Similar Documents

Publication Publication Date Title
US7440415B2 (en) Virtual network addresses
CN110166432A (en) The access method of internal net destination service provides the method for Intranet destination service
CN103178996B (en) Distributed packet-switching chip model verification system and method
CN101388800B (en) Method, device and system for pressed test to network performance of server
CN104965700B (en) The method and system of driving SPI equipment is realized under vxworks operating system
US20140343915A1 (en) Test environment configuration apparatus and method of operating network simulation apparatus using same
CN112286746B (en) Universal verification platform and method for AXI slave device interface
CN104579822A (en) Automatic performance test system and method of mobile application based on Http protocol
CN109002366A (en) A kind of remote debugging method and device of mobile terminal webpage
CN102546266B (en) Method and platform for diagnosing network failures
CN102694695A (en) Serial communication configuration and debugging method based on Ethernet communication protocol
CN110677829B (en) LTE-V2X test system and test method for long term evolution vehicle to everything
CN103023708A (en) Method and system for testing communication protocol interface
CN106789449A (en) A kind of CAN exploitation and method of testing and system
CN105721239A (en) Game test method, device and game system
CN111400228A (en) Method and system for integrating RapidIO transmission in DDS communication middleware
CN107947982A (en) A kind of device software management system
CN104852823A (en) Process monitoring method, device and system
JP2001209407A (en) Simulator for executing plc program
CN109783357A (en) The method and device of test application program, computer equipment, storage medium
CN101964923A (en) Configuration system and method for interactive commands
US20070047448A1 (en) Network equipment testing method and system
CN106250315A (en) A kind of automatic imitation request-reply system and method for configurableization
CN115348126A (en) Network target range entity equipment access method, device and implementation system
CN104092661B (en) The communication means and device of virtual machine serial ports

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531

RJ01 Rejection of invention patent application after publication