CN1913459A - Device and method of detection and display of CAN error frame - Google Patents
Device and method of detection and display of CAN error frame Download PDFInfo
- Publication number
- CN1913459A CN1913459A CN 200610010427 CN200610010427A CN1913459A CN 1913459 A CN1913459 A CN 1913459A CN 200610010427 CN200610010427 CN 200610010427 CN 200610010427 A CN200610010427 A CN 200610010427A CN 1913459 A CN1913459 A CN 1913459A
- Authority
- CN
- China
- Prior art keywords
- processor
- node
- output
- display unit
- start button
- 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
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
This invention relates to a device and a method for detecting and displaying CAN error frames, in which, each starting button is connected on its own processor and stop buttons 1-6 are connected on a first processor, the detection unit 4-5 are connected between the fourth processor 4-1 and the fourth communication unit, the processor of each node is connected on the CAN bus via its own communication unit, the method includes: 1, starting the system, 2, initializing the nodes and setting identification symbol fields of the nodes, 3, pressing the starting buttons of the nodes orderly, 4, pressing the stop buttons 1-6, 5, the fourth node detects the CAN error frames and displays.
Description
Technical field
The present invention relates to the technical field of detection of CAN erroneous frame and display unit and method
Background technology
Field bus technique has been applied to industry spot more and more.The CAN bus is especially with distinct advantages such as its high efficiency, low price, high reliability and obtained application more and more widely.CAN communication protocol has been stipulated 4 kinds of different frame types, i.e. Frame, remote frame, erroneous frame and overload frame.In these several frame types, people often are concerned about is to send with data and receive closely-related Frame and remote frame, has but ignored the existence and the importance thereof of erroneous frame.Erroneous frame is a big difficult point of CAN technology, and it is directly connected to the quality of whole device communication.At present both at home and abroad fewer at the research and analysis of CAN erroneous frame, and the neither one effective means detects the CAN erroneous frame and shows.
Summary of the invention
The present invention is directed to prior art can't effectively detect and the problem that shows the CAN erroneous frame, and the detection of a kind of CAN erroneous frame and device shown and method are provided.CAN erroneous frame of the present invention detects with display unit to be made up of first node 1, Section Point 2, the 3rd node 3, the 4th node 4:
First node 1 is made up of first processor 1-1, the first keyboard 1-2, the first display unit 1-3, the first communication unit 1-4, the first start button 1-5 and stop button 1-6; The data input/output bus end of first processor 1-1 is connected the data input/output bus end of the first communication unit 1-4, the control output bus end of the first keyboard 1-2 is connected first processor 1-1 control input bus end, the video data output of first processor 1-1 is connected the video data input of the first display unit 1-3, the enabling signal output of the first start button 1-5 is connected the enabling signal input of first processor 1-1, and the stop signal output of stop button 1-6 is connected the stop signal input of first processor 1-1;
Section Point 2 is made up of the second processor 2-1, the second keyboard 2-2, the second display unit 2-3, second communication unit 2-4 and the second start button 2-5; The data input/output bus end of the second processor 2-1 is connected the data input/output bus end of second communication unit 2-4, the control output bus end of the second keyboard 2-2 is connected second processor 2-1 control input bus end, the video data output of the second processor 2-1 is connected the video data input of the second display unit 2-3, and the enabling signal output of the second start button 2-5 is connected the enabling signal input of the second processor 2-1;
The 3rd node 3 is made up of the 3rd processor 3-1, the 3rd keyboard 3-2, the 3rd display unit 3-3, third communication unit 3-4 and the 3rd start button 3-5; The data input/output bus end of the 3rd processor 3-1 is connected the data input/output bus end of third communication unit 3-4, the control output bus end of the 3rd keyboard 3-2 is connected the 3rd processor 3-1 control input bus end, the video data output of the 3rd processor 3-1 is connected the video data input of the 3rd display unit 3-3, and the enabling signal output of the 3rd start button 3-5 is connected the enabling signal input of the 3rd processor 3-1;
The 4th node 4 is made up of four-processor 4-1, quadruple linkage dish 4-2, the 4th display unit 4-3, four-way letter unit 4-4 and detecting unit 4-5; The data input/output bus end of four-processor 4-1 is connected the data input/output bus end of four-way letter unit 4-4, the control output bus end of quadruple linkage dish 4-2 is connected four-processor 4-1 control input bus end, the video data output of four-processor 4-1 is connected the video data input of the 4th display unit 4-3, the detection data input pin of detecting unit 4-5 is connected the detection data output end of four-way letter unit 4-4, and the detection data output end of detecting unit 4-5 is connected the detection data input pin of four-processor 4-1;
The CAN bus data transmission ends of the CAN bus data transmission ends of the CAN bus data transmission ends of the CAN bus data transmission ends of the first communication unit 1-4 of first node 1, the second communication unit 2-4 of Section Point 2, the third communication unit 3-4 of the 3rd node 3 and the four-way of the 4th node 4 letter unit 4-4 all is connected in turn on the CAN data/address bus.
The method of the invention step is as follows: start whole detection display unit 101; Initialization first node 1 (by the first keyboard 1-2 to each initialization of register of CAN controller among the first processor 1-1 with to the first display unit 1-3 initialization), and identifier field, controlling filed and data fields be set, identifier field is represented priority of messages, when the first start button 1-5 or stop button 1-6 were pressed in setting, the message priority that is sent all was high by 102; Initialization Section Point 2 (by the second keyboard 2-2 to each initialization of register of CAN controller among the second processor 2-1 with to the second display unit 2-3 initialization), and identifier field, controlling filed and data fields be set, identifier field is represented priority of messages, its message priority is set is low 103; Initialization the 3rd node 3 (by the 3rd keyboard 3-2 to each initialization of register of CAN controller among the 3rd processor 3-1 with to the 3rd display unit 3-3 initialization), and identifier field, controlling filed and data fields be set, identifier field is represented priority of messages, its message priority be set be low, its identifier field is identical with Section Point 2 identifier field, and its data fields and Section Point 2 data fields different 104 are set; Initialization the 4th node 4 (by quadruple linkage dish 4-2 to each initialization of register of CAN controller among the four-processor 4-1 with to the 4th display unit 4-3 initialization), by the related register of the CAN controller among the four-processor 4-1 is set, with the high priority message (SEND_ID_11) that guarantees that the 4th node 4 is sent when not receiving the first start button 1-5 that presses first node 1, but can receive other messages 105; After pressing the first start button 1-5 of first node 1, first node 1 sends high priority message (SEND_ID_11) continuously, makes the CAN bus be in busy condition 106; After pressing the second start button 2-5 of Section Point 2, Section Point 2 sends low priority message (SEND_ID_2) 107; After pressing the 3rd start button 3-5 of the 3rd node 3, the 3rd node 3 sends low priority message (SEND_ID_3) 108; After pressing the stop button 1-6 of first node 1, first node 1 stops to send continuously high priority message (SEND_ID_11), send simultaneously a high priority message (SEND_ID_12) again, the 4th node 4 receives this high priority message (SEND_ID_12) back and detects the CAN bus level and (because the message SEND_ID_3 of the message SEND_ID_2 of Section Point 2 and the 3rd node 3 competition bus and have identical identifier field and different data fields simultaneously, and produce mistake; Message priority order SEND_ID_3=SEND_ID_2<SEND_ID_12, SEND_ID_3=SEND_ID_2<SEND_ID_11), also CAN bus MAC (media interviews control) frame is detected 109; The 4th node 4 detects continuous 11 1, promptly stops to detect during 11 recessive level, the mac frame of the detected CAN of containing erroneous frame is sent among the 4th display unit 4-3, and then the CAN erroneous frame is shown 110.
The present invention has realized the detection of CAN erroneous frame and demonstration; Erroneous frame, type of error and the correlation technique content thereof of deeply understanding the CAN bus had important function; The condition that the erroneous frame of the invention simultaneously produces helps carrying out of CAN bus education experiment and training.
Description of drawings
Fig. 1 is the integrated circuit structure chart of apparatus of the present invention; Fig. 2 is control of the present invention and display packing flow chart.
Embodiment
Embodiment one: specify present embodiment in conjunction with Fig. 1, Fig. 2.
The device of present embodiment is made up of first node 1, Section Point 2, the 3rd node 3, the 4th node 4:
First node 1 is made up of first processor 1-1, the first keyboard 1-2, the first display unit 1-3, the first communication unit 1-4, the first start button 1-5 and stop button 1-6; The data input/output bus end of first processor 1-1 is connected the data input/output bus end of the first communication unit 1-4, the control output bus end of the first keyboard 1-2 is connected first processor 1-1 control input bus end, the video data output of first processor 1-1 is connected the video data input of the first display unit 1-3, the enabling signal output of the first start button 1-5 is connected the enabling signal input of first processor 1-1, and the stop signal output of stop button 1-6 is connected the stop signal input of first processor 1-1;
Section Point 2 is made up of the second processor 2-1, the second keyboard 2-2, the second display unit 2-3, second communication unit 2-4 and the second start button 2-5; The data input/output bus end of the second processor 2-1 is connected the data input/output bus end of second communication unit 2-4, the control output bus end of the second keyboard 2-2 is connected second processor 2-1 control input bus end, the video data output of the second processor 2-1 is connected the video data input of the second display unit 2-3, and the enabling signal output of the second start button 2-5 is connected the enabling signal input of the second processor 2-1;
The 3rd node 3 is made up of the 3rd processor 3-1, the 3rd keyboard 3-2, the 3rd display unit 3-3, third communication unit 3-4 and the 3rd start button 3-5; The data input/output bus end of the 3rd processor 3-1 is connected the data input/output bus end of third communication unit 3-4, the control output bus end of the 3rd keyboard 3-2 is connected the 3rd processor 3-1 control input bus end, the video data output of the 3rd processor 3-1 is connected the video data input of the 3rd display unit 3-3, and the enabling signal output of the 3rd start button 3-5 is connected the enabling signal input of the 3rd processor 3-1;
The 4th node 4 is made up of four-processor 4-1, quadruple linkage dish 4-2, the 4th display unit 4-3, four-way letter unit 4-4 and detecting unit 4-5; The data input/output bus end of four-processor 4-1 is connected the data input/output bus end of four-way letter unit 4-4, the control output bus end of quadruple linkage dish 4-2 is connected four-processor 4-1 control input bus end, the video data output of four-processor 4-1 is connected the video data input of the 4th display unit 4-3, the detection data input pin of detecting unit 4-5 is connected the detection data output end of four-way letter unit 4-4, and the detection data output end of detecting unit 4-5 is connected the detection data input pin of four-processor 4-1;
The CAN bus data transmission ends of the CAN bus data transmission ends of the CAN bus data transmission ends of the CAN bus data transmission ends of the first communication unit 1-4 of first node 1, the second communication unit 2-4 of Section Point 2, the third communication unit 3-4 of the 3rd node 3 and the four-way of the 4th node 4 letter unit 4-4 all is connected in turn on the CAN data/address bus.
What this installed that described first processor 1-1, the second processor 2-1, the 3rd processor 3-1, four-processor 4-1 select for use is the chip of 8051 series, C8051F series, 8096 series; That the first keyboard 1-2, the second keyboard 2-2, the 3rd keyboard 3-2, quadruple linkage dish 4-2 select for use is OMRON; That the first display unit 1-3, the second display unit 2-3, the 3rd display unit 3-3, the 4th display unit 4-3 select for use is 12864-2W; That the first communication unit 1-4, second communication unit 2-4, third communication unit 3-4, four-way letter unit 4-4 select for use is SJA1000,82C250,6N137; That the first start button 1-5, the second start button 2-5, the 3rd start button 3-5, stop button 1-6 select for use is OMRON.
The step of present embodiment is as follows: start whole detection display unit 101; Initialization first node 1 (by the first keyboard 1-2 to each initialization of register of CAN controller among the first processor 1-1 with to the first display unit 1-3 initialization), and identifier field, controlling filed and data fields be set, identifier field is represented priority of messages, when the first start button 1-5 or stop button 1-6 were pressed in setting, the message priority that is sent all was high by 102; Initialization Section Point 2 (by the second keyboard 2-2 to each initialization of register of CAN controller among the second processor 2-1 with to the second display unit 2-3 initialization), and identifier field, controlling filed and data fields be set, identifier field is represented priority of messages, its message priority is set is low 103; Initialization the 3rd node 3 (by the 3rd keyboard 3-2 to each initialization of register of CAN controller among the 3rd processor 3-1 with to the 3rd display unit 3-3 initialization), and identifier field, controlling filed and data fields be set, identifier field is represented priority of messages, its message priority be set be low, its identifier field is identical with Section Point 2 identifier field, and its data fields and Section Point 2 data fields different 104 are set; Initialization the 4th node 4 (by quadruple linkage dish 4-2 to each initialization of register of CAN controller among the four-processor 4-1 with to the 4th display unit 4-3 initialization), by the related register of the CAN controller among the four-processor 4-1 is set, with the high priority message (SEND_ID_11) that guarantees that the 4th node 4 is sent when not receiving the first start button 1-5 that presses first node 1, but can receive other messages 105; After pressing the first start button 1-5 of first node 1, first node 1 sends high priority message (SEND_ID_11) continuously, makes the CAN bus be in busy condition 106; After pressing the second start button 2-5 of Section Point 2, Section Point 2 sends low priority message (SEND_ID_2) 107; After pressing the 3rd start button 3-5 of the 3rd node 3, the 3rd node 3 sends low priority message (SEND_ID_3) 108; After pressing the stop button 1-6 of first node 1, first node 1 stops to send continuously high priority message (SEND_ID_11), send simultaneously a high priority message (SEND_ID_12) again, the 4th node 4 receives this high priority message (SEND_ID_12) back and detects the CAN bus level and (because the message SEND_ID_3 of the message SEND_ID_2 of Section Point 2 and the 3rd node 3 competition bus and have identical identifier field and different data fields simultaneously, and produce mistake; Message priority order SEND_ID_3=SEND_ID_2<SEND_ID_12, SEND_ID_3=SEND_ID_2<SEND_ID_11), also CAN bus MAC (media interviews control) frame is detected 109; The 4th node 4 detects continuous 11 1, promptly stops to detect during 11 recessive level, the mac frame of the detected CAN of containing erroneous frame is sent among the 4th display unit 4-3, and then the CAN erroneous frame is shown 110.
Claims (2)
1, a kind of CAN erroneous frame detects and device shown, it is characterized in that it is made up of first node (1), Section Point (2), the 3rd node (3), the 4th node (4):
First node (1) is made up of first processor (1-1), first keyboard (1-2), first display unit (1-3), first communication unit (1-4), first start button (1-5) and stop button (1-6); The data input/output bus end of first processor (1-1) is connected the data input/output bus end of first communication unit (1-4), the control output bus end of first keyboard (1-2) is connected first processor (1-1) control input bus end, the video data output of first processor (1-1) is connected the video data input of first display unit (1-3), the enabling signal output of first start button (1-5) is connected the enabling signal input of first processor (1-1), and the stop signal output of stop button (1-6) is connected the stop signal input of first processor (1-1);
Section Point (2) is made up of second processor (2-1), second keyboard (2-2), second display unit (2-3), second communication unit (2-4) and second start button (2-5); The data input/output bus end of second processor (2-1) is connected the data input/output bus end of second communication unit (2-4), the control output bus end of second keyboard (2-2) is connected second processor (2-1) control input bus end, the video data output of second processor (2-1) is connected the video data input of second display unit (2-3), and the enabling signal output of second start button (2-5) is connected the enabling signal input of second processor (2-1);
The 3rd node (3) is made up of the 3rd processor (3-1), the 3rd keyboard (3-2), the 3rd display unit (3-3), third communication unit (3-4) and the 3rd start button (3-5); The data input/output bus end of the 3rd processor (3-1) is connected the data input/output bus end of third communication unit (3-4), the control output bus end of the 3rd keyboard (3-2) is connected the 3rd processor (3-1) control input bus end, the video data output of the 3rd processor (3-1) is connected the video data input of the 3rd display unit (3-3), and the enabling signal output of the 3rd start button 3-5 is connected the enabling signal input of the 3rd processor (3-1);
The 4th node (4) is made up of four-processor (4-1), quadruple linkage dish (4-2), the 4th display unit (4-3), four-way letter unit (4-4) and detecting unit (4-5); The data input/output bus end of four-processor (4-1) is connected the data input/output bus end of four-way letter unit (4-4), the control output bus end of quadruple linkage dish (4-2) is connected four-processor (4-1) control input bus end, the video data output of four-processor (4-1) is connected the video data input of the 4th display unit (4-3), the detection data input pin of detecting unit (4-5) is connected the detection data output end of four-way letter unit (4-4), and the detection data output end of detecting unit (4-5) is connected the detection data input pin of four-processor (4-1);
The CAN bus data transmission ends of the CAN bus data transmission ends of the CAN bus data transmission ends of the CAN bus data transmission ends of first communication unit (1-4) of first node (1), the second communication unit (2-4) of Section Point (2), the third communication unit (3-4) of the 3rd node (3) and the four-way of the 4th node (4) letter unit (4-4) all is connected in turn on the CAN data/address bus.
2, a kind of CAN erroneous frame detects and the method that shows, it is characterized in that its detection and step display are: start whole detection display unit (101); Initialization first node (1), and identifier field, controlling filed and data fields are set, identifier field is represented priority of messages, is provided with when pressing first start button (1-5) or stop button (1-6), the message priority that is sent all is high (102); Initialization Section Point (2), and identifier field, controlling filed and data fields are set, identifier field is represented priority of messages, it is low (103) that its message priority is set; Initialization the 3rd node (3), and identifier field, controlling filed and data fields be set, identifier field is represented priority of messages, its message priority be set be low, its identifier field is identical with Section Point (2) identifier field, and its data fields and Section Point (2) data fields different (104) are set; Initialization the 4th node (4), by the related register of the CAN controller in the four-processor (4-1) is set, with the high priority message that guarantees that the 4th node (4) is sent when not receiving first start button (1-5) of pressing first node (1), but can receive other messages (105); After pressing first start button (1-5) of first node (1), first node (1) sends the high priority message continuously, makes the CAN bus be in busy condition (106); After pressing second start button (2-5) of Section Point (2), Section Point (2) sends low priority message (107); After pressing the 3rd start button (3-5) of the 3rd node (3), the 3rd node (3) sends low priority message (108); After pressing the stop button (1-6) of first node (1), first node (1) stops to send continuously the high priority message, send simultaneously a high priority message again, the 4th node (4) detects the CAN bus level after receiving this high priority message, also CAN bus mac frame is detected (109); The 4th node (4) detects continuous 11 1, promptly stops during 11 low levels detecting, and the mac frame of the detected CAN of containing erroneous frame is sent in the 4th display unit (4-3), and then the CAN erroneous frame is shown (110).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100104275A CN100463421C (en) | 2006-08-22 | 2006-08-22 | Device and method of detection and display of CAN error frame |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100104275A CN100463421C (en) | 2006-08-22 | 2006-08-22 | Device and method of detection and display of CAN error frame |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1913459A true CN1913459A (en) | 2007-02-14 |
CN100463421C CN100463421C (en) | 2009-02-18 |
Family
ID=37722238
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006100104275A Expired - Fee Related CN100463421C (en) | 2006-08-22 | 2006-08-22 | Device and method of detection and display of CAN error frame |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100463421C (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101778007B (en) * | 2009-01-12 | 2012-05-23 | 哈尔滨威帝电子股份有限公司 | System and method for automatically testing I/O pin of CAN bus control module |
CN108141399A (en) * | 2015-10-15 | 2018-06-08 | 罗伯特·博世有限公司 | For preventing the method and apparatus of the manipulation at CAN bus by being connected to the node in bus by means of CAN controller |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11275100A (en) * | 1998-03-23 | 1999-10-08 | Hitachi Ltd | Can-communication signal branch unit |
JP2005167872A (en) * | 2003-12-05 | 2005-06-23 | Yokogawa Electric Corp | Can bus measuring instrument |
CN2758901Y (en) * | 2004-04-27 | 2006-02-15 | 天津理工学院 | Microcomputer principle and CAN bus teaching experiment apparatus |
SE533636C2 (en) * | 2004-10-25 | 2010-11-16 | Xinshu Man L L C | Device for bus connection in CAN system |
-
2006
- 2006-08-22 CN CNB2006100104275A patent/CN100463421C/en not_active Expired - Fee Related
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101778007B (en) * | 2009-01-12 | 2012-05-23 | 哈尔滨威帝电子股份有限公司 | System and method for automatically testing I/O pin of CAN bus control module |
CN108141399A (en) * | 2015-10-15 | 2018-06-08 | 罗伯特·博世有限公司 | For preventing the method and apparatus of the manipulation at CAN bus by being connected to the node in bus by means of CAN controller |
CN108141399B (en) * | 2015-10-15 | 2021-07-23 | 罗伯特·博世有限公司 | Method and device for preventing manipulation at CAN bus |
Also Published As
Publication number | Publication date |
---|---|
CN100463421C (en) | 2009-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102033942B (en) | Mobile communication equipment terminal-based tag display management method and system | |
CN103645897A (en) | Mobile terminal and operation method thereof | |
CN100505650C (en) | Method for setting up, detecting and displaying interval time of characters inside Modbus RTU frame and between frames | |
CN101316203B (en) | Method for monitoring embedded IP terminal internetwork connection condition | |
CN1913459A (en) | Device and method of detection and display of CAN error frame | |
CN103973542A (en) | Voice information processing method and device | |
CN101373404B (en) | Intelligent positioning method of press key equipment | |
CN100428701C (en) | CAN wrong frame generating and detecting system and its method | |
CN1909498A (en) | Transmitting and receiving display system for CAN message of different priorities and its detecting method | |
CN1913458A (en) | Display and detection system and method of MAC frame and LLC frame of CAN | |
CN101661419A (en) | Testing equipment with multiple testing ports and testing method thereof | |
CN204129129U (en) | Based on the intelligent substation pressing plate monitoring system of technology of Internet of things | |
CN101051881A (en) | System and its method capable of producing Modbus CRC error and comparing and displaying error | |
CN102411603B (en) | Method for displaying information on large screen | |
CN101989214A (en) | Process management system | |
CN100454877C (en) | CAN message priority generation and detection system and its method | |
CN100407680C (en) | System and method for confirming CAN node message transmission waiting condition and waiting time | |
CN101996097A (en) | Process management system | |
CN110007887B (en) | Display method based on spliced screen, spliced screen and spliced screen system | |
CN105681163A (en) | Message processing method and device | |
CN203350869U (en) | Splicing wall address code setting device | |
CN110174881A (en) | A kind of distributed control means and system | |
CN201199358Y (en) | Module for processing software data of monitoring system | |
CN201859346U (en) | Device for monitoring CAN (controller area network) bus communication data | |
CN105302582A (en) | Installation interface display method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090218 Termination date: 20100822 |