CN109120420A - A kind of multi-channel-CAN Bus analyzer - Google Patents
A kind of multi-channel-CAN Bus analyzer Download PDFInfo
- Publication number
- CN109120420A CN109120420A CN201710483157.8A CN201710483157A CN109120420A CN 109120420 A CN109120420 A CN 109120420A CN 201710483157 A CN201710483157 A CN 201710483157A CN 109120420 A CN109120420 A CN 109120420A
- Authority
- CN
- China
- Prior art keywords
- bus
- processing unit
- usb
- channel
- analyzer
- 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
Links
- 238000012545 processing Methods 0.000 claims abstract description 24
- 230000008878 coupling Effects 0.000 claims description 3
- 238000010168 coupling process Methods 0.000 claims description 3
- 238000005859 coupling reaction Methods 0.000 claims description 3
- 230000005540 biological transmission Effects 0.000 abstract description 5
- 238000013461 design Methods 0.000 abstract description 4
- 238000005516 engineering process Methods 0.000 abstract description 4
- 238000004458 analytical method Methods 0.000 description 10
- 238000011161 development Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 238000002955 isolation Methods 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 238000011160 research Methods 0.000 description 2
- 241000233805 Phoenix Species 0.000 description 1
- 238000012356 Product development Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- RFHAOTPXVQNOHP-UHFFFAOYSA-N fluconazole Chemical compound C1=NC=NN1CC(C=1C(=CC(F)=CC=1)F)(O)CN1C=NC=N1 RFHAOTPXVQNOHP-UHFFFAOYSA-N 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000009413 insulation Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000032696 parturition Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 230000001681 protective effect Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 238000012549 training Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
-
- 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
- H04L12/40052—High-speed IEEE 1394 serial bus
- H04L12/40078—Bus configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0677—Localisation of faults
-
- 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)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
A kind of design scheme of multi-channel-CAN Bus analyzer, this scheme is using 32 chips of ARM as control core processing unit, multiple processing units are connected to usb hub control module by usb bus, and multiple processing units synchronize the timestamp of each processing unit using precise synchronization technology.Each processing unit external 2 CAN transceivers and can be communicated with CAN bus respectively, be isolated using photoelectrical coupler, to improve the anti-interference of system while protecting circuit.Being automatically switched isolated power supply is that each processing unit and CAN transceiver are powered, and reduces the electrical source consumption of computer USB interface.The present invention can be realized the collection and processing to multichannel CAN bus data, and there are USB interfaces to be connected with PC, realize transmission, acquisition, controlling terminal equipment.
Description
Technical field
The present invention relates to CAN bus analyzers, specifically provide a kind of multi-channel-CAN Bus analyzer.
Background technique
With the development of science and technology, the raising of production automation level, fieldbus are increasingly valued by people.
As one kind of fieldbus, CAN (Controller Area Network) bus is that BOSCH company is Hyundai Motor earliest
Using a kind of more host local area networks of leading release.CAN has formed international standard, and has been acknowledged as several most promising
One of fieldbus.
CAN bus analyzer is a kind of equipment for monitoring CAN bus current operating conditions, and major function is that analysis is total
Various parameters on line, thus provide an intuitive window to user in time observe in CAN bus various parameters and
Operation conditions.
CAN bus is the abbreviation of controller local area network (Controller Area Network), it is by researching and developing and giving birth to
The famous German BOSCH company exploitation of automobile electronics is produced, and eventually becomes international standard (ISO11519), is in the world
One of most widely used fieldbus.
Multi-channel-CAN Bus analyzer is a kind of equipment for detecting multiple CAN bus operating statuses, major function
It is the various parameters analyzed in bus, so that it is each in CAN bus to observe to provide an intuitive window to user in time
Kind parameter and operation conditions.Existing CAN analyzer technology is mostly the analyzer of single channel or two channels, and processor ability is weak,
Function is simple, and user can not by multichannel CAN data, parallel acquisition be handled simultaneously as needed, and it is total to be unable to satisfy multichannel CAN in this way
The real-time synchronization of line number evidence exchanges and the advanced requirements such as analysis processing.At home, due to insufficient to CAN bus technical research,
It is later to the start-up time of CAN product design, research of the most enterprises without in depth progress multi-channel-CAN Bus analyzer
With customization, leading to domestic CAN bus analysis tool is mostly a channel or two channels, and few four-ways even eight channels are set
It is standby, it is difficult to external technological maheup challenge.Therefore, in multi-channel-CAN bus analysis field of tool, almost all is other factory of state
The product of family.Software majority corresponding to these products is English-speaking environment, and part is then German, and software function is powerful but operates
It is considerably complicated, need special training that can just know how to operate.
Summary of the invention
It is an object of the invention to realize collection and processing to multichannel CAN bus data, and provide USB interface and PC phase
Even, transmission control terminal for data acquisition equipment is realized.
A kind of multi-channel-CAN Bus analyzer, using 32 chips of at least one ARM as control core processing unit;
Processing unit is connected to usb hub control module by usb bus;Each processing unit passes through photoelectrical coupler external 2
CAN transceiver is simultaneously communicated with CAN bus respectively.
The invention proposes a kind of design scheme of multi-channel-CAN bus data acquisition analysis system, this scheme uses ARM
32 chips are connected to usb hub control module by usb bus as control core processing unit, multiple processing units,
Multiple processing units synchronize the timestamp of each processing unit by precise synchronization technology.Each processing unit can external 2 CAN
Transceiver is simultaneously separately connected CAN bus and is communicated, and is isolated using photoelectrical coupler, devises protection circuit, improve
The anti-interference of system.Being automatically switched isolated power supply is that each processing unit and CAN transceiver are powered, and reduces computer USB mouth
Electrical source consumption.
The present invention can help user quickly to analyze, position the problem of tested a plurality of CAN network, and have
Feature low in cost, easy to operate, scalability is strong.The present invention can simultaneously divide multiple CAN bus networks simultaneously
Analysis, it is easy to use, it is high-efficient.
The present invention is applicable to the systems such as the acquisition of CAN bus historical data, failure front and back message analysis.It can be widely applied
It in big data quantities such as automobile, rail vehicle, Industry Controls and is not easy in the system for checking failure, is convenient for data readback.
Strong applicability of the present invention can support the 32/64 bit manipulation system such as Windows XP/7/8/10 and Linux extensively
System, while being suitable for being based on the platforms such as IOS, Android, Windows Mobil.Unified application program is provided for user
Programming interface and complete Applied D emonstration code develop example containing VC, VB .Net, Delphi, Labview and C++Builder etc.
Journey demonstration, is user-friendly for application development.Using ECAN Tools software can be performed CAN-bus message transmitting-receiving and
The setting of the functions such as monitoring, automatic identification baud rate and operating mode.
The present invention have the characteristics that following performances and:
1, PC interface meets USB2.0 and standardizes at full speed, compatible USB1.1 and USB3.0;
2, integrated multipath CAN-bus interface uses phoenix terminal connections mode;
3, it supports CAN2.0A and CAN2.0B frame format, meets the specification of ISO/DIS 11898;
4, CAN-bus communication baud rate is arbitrarily programmable between 5Kbps ~ 1Mbps;
5, using usb bus power supply power supply, or external power supply (DC+5V, 200mA) is used;
6, CAN-bus interface uses electrical isolation, isolation module insulation voltage: DC 1000V;
7, highest receives data traffic: 14000 fps;
8, the literary timestamp precision of CAN termination receiving reaches 1us;
9,32/64 bit manipulation system and the linux system such as Windows XP/7/8/10 are supported, at the same be suitable for based on iOS,
The platforms such as Android, Windows Mobil;
10, ECAN Tools test software is supported;
11, operating temperature range: -40 DEG C ~+85 DEG C.
Detailed description of the invention
The present invention is described in further details with reference to the accompanying drawings of the specification:
Fig. 1 is the schematic diagram of multi-channel-CAN Bus analyzer.
Fig. 2 is the CAN bus network topology structure figure of multi-channel-CAN Bus analyzer.
Fig. 3 is the secondary development function call graph of multi-channel-CAN Bus analyzer.
Specific embodiment
The present embodiment is the high-performance type CAN-bus Bus analyzer of integrated multipath CAN interface.Model C AN card can be simultaneous
Hold USB2.0 bus to standardize at full speed, using high-performance CAN bus analyzer, PC can quick connect to CAN- by USB interface
Bus network is constituted in the CAN-bus network fields such as fieldbus laboratory, Industry Control, intelligent residential district, automobile electron
The CAN-bus network control node of data processing, data acquisition.
The present embodiment is that CAN-bus product development, the strong tools of CAN-bus data analysis and portable system are used
The optimal selection at family.The present embodiment self-carried USB interface integrates CAN interface and electrical isolation protective module, can make its avoid due to
Temporary over-current/over-voltage and equipment is damaged, the reliability that enhancing system uses in harsh environment.
The present embodiment supports 32/64 bit manipulation systems such as WindowsXP/Win7/Win10.The present embodiment provides unified
Application programming interface and complete Applied D emonstration code, contain VC, VB .Net, Delphi, Labview and C++
Builder etc. develops routine demonstration, and user is facilitated to carry out application development.
The ECANTools universal test software of my company's independent development can be used in the present embodiment, and CAN-bus message can be performed
Transmitting-receiving and the functions such as monitoring.The channel the present embodiment integrated multipath CAN, can be used for connecting multiple CAN-bus networks or
The equipment of CAN-bus interface.The pin of connecting terminal is defined as follows shown in table.
The present embodiment has the characteristics that plug and play, therefore the USB interface of PC machine can be used directly to bus point in user
Analyzer power supply;If USB electricity shortage, need to select external power supply power supply mode.Usb bus powering mode is suitable for most of answer
With occasion, for example, when multi-channel-CAN Bus analyzer is the Unique Device of USB port connection.PC is total with multi-channel-CAN
Line analysis instrument is directly connected to by USB cable subsidiary at random, electric from USB cable to multi-channel-CAN Bus analyzer offer+5V
Source;At this point, indicator light PWR, SYS are lighted, indicate that equipment is working properly and is in connection status.External power supply powering mode is suitable
The occasion of enough electric currents can not be provided to Bus analyzer together in USB port.Bus analyzer is connected to using external power supply
Power outlet, indicator light PWR, SYS is lighted at this time;Then PC and Bus analyzer are connected by USB cable subsidiary at random
It connects, Bus analyzer can work normally.
The channel the present embodiment integrated multipath CAN, every road CAN are drawn by 13 Pin plug-in type connection terminal.Connecting terminal
Pin definition it is as shown in table 1.
The CAN-bus signal of 1 Bus analyzer of table distributes
In actual use, majority of case only needs for CAN_H to be connected with bus CAN_H, and CAN_L is connected with bus CAN_L
Realize communication.
CAN-bus network uses rectilinear topology structure, and 2 farthest terminals of bus need to install the terminal resistance of 120 Ω;
If interstitial content is greater than 2, intermediate node does not need the terminal resistance of 120 Ω of installation.Branch is connected, length should not surpass
Cross 3 meters.The connection of CAN-bus bus is as shown in Figure 2.
In order to enhance the reliability of CAN communication, eliminate CAN bus terminal signaling reflection interference, CAN bus network is farthest
Terminal coupling resistance will be usually added in two endpoints.The value of terminal coupling resistance is determined by the characteristic impedance of transmission cable.Example
If the characteristic impedance of twisted pair is 120 Ω, then two in bus endpoint should also integrate 120 Ω terminal resistances.Bus analyzer
Using 82C251 transceiver, if other nodes use different transceivers on network, in addition terminal resistance must be calculated.
120 Ω terminal resistances have been integrated inside the present embodiment, can choose whether resistance accessing bus by toggle switch.
There is the present embodiment 1 PWR indicator light, 1 SYS indicator light, every road CAN to have 1 indicator light indicating equipment respectively
Operating status.The specific instruction function of indicator light is shown in Table 2, when indicator light is under various states, the state of CAN bus such as table 2
It is shown.
2 Bus analyzer indicator light of table
After multi-channel-CAN Bus analyzer powers on, indicator light is lighted simultaneously, and PWR and SYS are always on later, but CANn lamp does not work, table
Bright equipment has been powered, and system completes initialization;After USB interface connection is normal, when the end PC has upper computer software to call USBCAN
When equipment, usb signal indicator light SYS can flash.At this point, corresponding CANn indicator light can flash when CANn has data transmit-receive.
ECANTools software is the matched Special debugging analysis software of the present embodiment.Using the software, user can be straight
It sees, is rapidly performed by CAN bus data transmit-receive.Software easily uses and to extend function very rich, and user can upper hand quickly
It uses.
The present embodiment provides the interface of standard for the user of secondary development, comprising: ECANVCI.h,
ECANVCI.lib,ECANVCI.dll.The interface is reference format, and user can compile in VC, VB, Labview etc.
In journey environment, these interface functions are stated to call, specifically used method is detailed in " ECAN dynamic base service manual ".Fig. 3 is normal
With structural body title and function library call flow.
The mistake that the present embodiment is related to is broadly divided into function call mistake and two kinds of CAN-bus miscommunication.Function call
Mistake is generally caused by parameter error, such as: device number goes beyond the scope, style number mistake etc., with Win32 function
The error number that GetLastError is returned is 87, besides the equipment being not switched on is operated, it is really illegal to one
Handle is operated, and has corresponding Win32 standard error code to provide according to specific function call situation, user can be used
GetLastError carries out error analysis, this part should generally be completed except wrong work in design.
For CAN-bus miscommunication, generally caused by CAN network, it is also possible to cause because user setting is improper, such as:
Configuration of baud rate is inconsistent, just calls transmission function etc. without starting CAN controller.Most of mistake is in device drives
Simple processing is made, if to carry out deeper error analysis and processing, ReadCANStatus function can be called.
Should further be noted that data overflow interrupt error, there are two types of possible for its generation: (1) software receives slow area
Washover goes out.This illustrates that application program can not handle the data received in time, and at this moment user should optimization application or change
Communication strategy.(2) hardware acceptance buffer overflow.Generating this mistake is caused since receiving end PC interruption delay is too big
's.It can only be solved by promoting computer performance or coordinating remaining node suitably and reduce transmission speed.
Above-described embodiment is only the technical concepts and features for illustrating the present embodiment, and its object is to allow be familiar with technique
Personage can understand the content of the present embodiment and implement accordingly, and the protection scope of the present embodiment can not be limited with this.All bases
Equivalent change or modification made by the present embodiment Spirit Essence should all cover within the protection scope of the present embodiment.
Claims (1)
1. a kind of multi-channel-CAN Bus analyzer, it is characterised in that: using 32 chips of at least one ARM as control core
Processing unit;Processing unit is connected to usb hub control module by usb bus;Each processing unit passes through photoelectric coupling
External 2 CAN transceivers of device are simultaneously communicated with CAN bus respectively.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710483157.8A CN109120420A (en) | 2017-06-23 | 2017-06-23 | A kind of multi-channel-CAN Bus analyzer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710483157.8A CN109120420A (en) | 2017-06-23 | 2017-06-23 | A kind of multi-channel-CAN Bus analyzer |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109120420A true CN109120420A (en) | 2019-01-01 |
Family
ID=64732911
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710483157.8A Pending CN109120420A (en) | 2017-06-23 | 2017-06-23 | A kind of multi-channel-CAN Bus analyzer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109120420A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2638142Y (en) * | 2003-08-29 | 2004-09-01 | 清华大学 | Portable CAN bus analysis recorder based on USB interface |
CN103428050A (en) * | 2013-08-15 | 2013-12-04 | 上海固泰科技有限公司 | Multipath CAN (controller area network) simulation system based on CAN bus |
US20170147074A1 (en) * | 2015-11-24 | 2017-05-25 | Ford Global Technologies, Llc | Methods and Systems for Enabling Gesture Control for a Vehicle Feature |
-
2017
- 2017-06-23 CN CN201710483157.8A patent/CN109120420A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2638142Y (en) * | 2003-08-29 | 2004-09-01 | 清华大学 | Portable CAN bus analysis recorder based on USB interface |
CN103428050A (en) * | 2013-08-15 | 2013-12-04 | 上海固泰科技有限公司 | Multipath CAN (controller area network) simulation system based on CAN bus |
US20170147074A1 (en) * | 2015-11-24 | 2017-05-25 | Ford Global Technologies, Llc | Methods and Systems for Enabling Gesture Control for a Vehicle Feature |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101937038B (en) | Intelligent multi-core cable harness detection device | |
CN108808854A (en) | A kind of electric distribution network data collection terminal based on intelligent terminal | |
CN108984354A (en) | A kind of server chips debug circuit, adjustment method and server | |
CN105720690A (en) | Intelligent circuit breaker communication networking system | |
CN104133429A (en) | Intelligent control gateway and control method | |
CN111077463A (en) | Balanced maintenance system for online monitoring of storage battery | |
CN203673060U (en) | General detection tool for carrier modules | |
CN206564555U (en) | Motor debugging apparatus | |
CN109120420A (en) | A kind of multi-channel-CAN Bus analyzer | |
CN207516987U (en) | It is a kind of to support the reliability of multi-USB interface equipment is same to survey device | |
CN212183548U (en) | IEC61850 protocol and Modbus protocol keysets | |
CN214623371U (en) | Vehicle-mounted Ethernet interface conversion device | |
CN108646090A (en) | ammeter and ammeter control system | |
CN209710109U (en) | A kind of measuring device that communications protocol switches online | |
CN100452107C (en) | AT91M40800 based multi-tandem port bus system | |
CN102176590B (en) | Wire holder for automatically managing household electric appliances by computer | |
CN208013324U (en) | A kind of frequency converter test platform | |
CN107015499A (en) | A kind of CAN data analyzer | |
CN109801670A (en) | A kind of hard disc of computer test macro | |
CN101581773A (en) | Carrier electric energy meter detecting method | |
CN111400220A (en) | Cable and method of use thereof | |
CN202034633U (en) | Wire holder used for automatically managing household electronic product and electric appliance with computer | |
CN212137385U (en) | Intelligent fire control power cabinet | |
CN210377825U (en) | Low-voltage centralized meter reading debugging device | |
CN203826917U (en) | Intelligent type tripper |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190101 |
|
WD01 | Invention patent application deemed withdrawn after publication |