CN102724082A - CAN communication monitoring method based on LabView - Google Patents

CAN communication monitoring method based on LabView Download PDF

Info

Publication number
CN102724082A
CN102724082A CN2012101587080A CN201210158708A CN102724082A CN 102724082 A CN102724082 A CN 102724082A CN 2012101587080 A CN2012101587080 A CN 2012101587080A CN 201210158708 A CN201210158708 A CN 201210158708A CN 102724082 A CN102724082 A CN 102724082A
Authority
CN
China
Prior art keywords
communication
register
timestamp
frame data
labview
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
CN2012101587080A
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.)
Chery New Energy Automobile Technology Co Ltd
Original Assignee
SAIC Chery Automobile 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 SAIC Chery Automobile Co Ltd filed Critical SAIC Chery Automobile Co Ltd
Priority to CN2012101587080A priority Critical patent/CN102724082A/en
Publication of CN102724082A publication Critical patent/CN102724082A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a CAN communication monitoring method based on LabView. The method effectively improves the reliability of CAN communication systems without adding peripheral equipment. The CAN communication monitoring method based on LabView provided by the invention comprises the following steps: a LabView software reads CAN communication data and stores the time stamp of read frame data in a register; the time stamps of the frame data read twice in succession are compared; if the difference delta t between the time stamps of two frame data exceeds a predetermined range, CAN communication fails; if the difference delta t between the time stamps of two frame data is within a predetermined range, CAN communication is normal. The CAN communication monitoring method based on LabView provided by the invention can effectively monitor CAN communication without peripheral equipment adding and cost increasing, thereby the reliability of CAN communication system is improved.

Description

A kind of method of the monitoring CAN communication based on LabView
Technical field
The invention belongs to communication technique field, specially refer to a kind of method of the monitoring CAN communication based on LabView.
Background technology
LabView is a kind of patterned programming language, has been widely used in fields such as industry spot, thermometrically, control, emulation.Wherein, often can use the CAN communication module and realize the mutual of information, reach the purpose of state-detection and communicating control information.
Traditional based in the LabView application written program; Whether operate as normal is not done to monitor to the CAN communication module; Because in the stronger environment of interference such as industry spot; Phenomenons such as the CAN cycle is unstable, transmitting-receiving is undesired happen occasionally, and therefore communication is monitored to CAN, finds that timely and effectively fault has seemed particularly important.
Summary of the invention
The objective of the invention is to propose a kind of method of the monitoring CAN communication based on LabView,, increase the reliability of CAN communication system effectively need not to add under the situation of ancillary equipment.
The method of the monitoring CAN communication based on LabView of the present invention is following: LabView software reads the CAN communication data; And the timestamp of the frame data that read is stored in the register; The timestamp of the more double frame data that read then; When the difference DELTA t of the timestamp of two frame data exceeds preset range, represent that then the CAN communication breaks down; When the difference DELTA t of the timestamp of two frame data is in preset range, represent that then the CAN communication is normal.
Observe and verification for convenient, LabView software is stored in the CAN communication data that is read in the array that is provided with in advance, and shows in real time.
Specifically, read and judge that the method for CAN communication data has following two kinds:
1, the said double frame data that read are continuous frame data, when the difference DELTA t of the timestamp of said two frame data is zero, represent that then the CAN communication breaks down; When the difference DELTA t of the timestamp of said two frame data greater than zero the time, represent that then the CAN communication is normal.
This kind reads and judges that the method for CAN communication data specifically comprises the steps:
A:LabView software reads the CAN communication data by frame, and the timestamp of two continuous frames data is stored in respectively in first register and second register;
B: the timestamp of relatively being stored in first register and second register, when the difference DELTA t of the timestamp in two registers is zero, represent that then the CAN communication breaks down, LabView software is reported to the police; When Δ t greater than zero the time, represent that then the CAN communication is normal;
C:, the timestamp in second register is shifted store in first register then with the first register zero clearing;
D: read the next frame data, and the timestamp of these frame data is stored in second register;
E: repeated execution of steps B, C, D are up to stopping monitoring.
In the said A step, LabView software is stored in the CAN communication data that is read in the array that is provided with in advance, and shows in real time.
2, the said double frame data that read are to be blanking time two frame data of scheduled time T, as the difference DELTA t of the timestamp of said two frame data during less than T1 or greater than T2, represent that then the CAN communication breaks down; When the difference DELTA t of the timestamp of said two frame data more than or equal to T1 and when being less than or equal to T2, represent that then the CAN communication is normal; Said T1=T-T0, T2=T+T0, said T0 are predefined redundancy time value.
This kind reads and judges that the method for CAN communication data specifically comprises the steps:
A:LabView software is every to read the CAN communication data one time at a distance from scheduled time T, and the timestamp of the double frame data that read is stored in respectively in first register and second register;
B: the timestamp of relatively being stored in first register and second register, as the difference DELTA t of the timestamp in two registers during, represent that then the CAN communication breaks down less than T1 or greater than T2, LabView software is reported to the police; When Δ t more than or equal to T1 and when being less than or equal to T2, represent that then the CAN communication is normal;
C:, then the timestamp in second register is stored in first register with the first register zero clearing;
D: read the CAN communication data once more, and the timestamp of these frame data is stored in second register;
E: repeated execution of steps B, C, D are up to stopping monitoring.
In the said A step, LabView software is stored in the CAN communication data that is read in the array that is provided with in advance, and shows in real time.
Above-mentioned second method can realize the monitoring to the stability in CAN cycle.
The method of the monitoring CAN communication based on LabView of the present invention need not to add ancillary equipment, under the prerequisite that does not increase cost, can monitor effectively the CAN communication, thereby increase the reliability of CAN communication system.
Embodiment
Below through to the description of embodiment, the effect of mutual alignment between the shape of specific embodiments of the invention such as related each member, structure, the each several part and annexation, each several part and operation principle etc. are done further to specify.
Embodiment 1:
The method based on the monitoring CAN communication of LabView of present embodiment comprises the steps:
A:LabView software reads the CAN communication data by frame, the CAN communication data that is read is stored in the array that is provided with in advance, and shows that in real time the timestamp with the two continuous frames data is stored in respectively in first register and second register simultaneously;
B: the timestamp of relatively being stored in first register and second register, when the difference DELTA t of the timestamp in two registers is zero, represent that then the CAN communication breaks down, LabView software is reported to the police; When Δ t greater than zero the time, represent that then the CAN communication is normal;
C:, the timestamp in second register is shifted store in first register then with the first register zero clearing;
D: read the next frame data, and the timestamp of these frame data is stored in second register;
E: repeated execution of steps B, C, D are up to stopping monitoring.
Embodiment 2:
The method based on the monitoring CAN communication of LabView of present embodiment comprises the steps:
A:LabView software whenever reads the CAN communication data one time at a distance from 10 milliseconds; The CAN communication data that is read is stored in the array that is provided with in advance; And show that in real time the timestamp with the double frame data that read is stored in respectively in first register and second register simultaneously;
B: the timestamp of relatively being stored in first register and second register; When the difference DELTA t of the timestamp in two registers less than 9 milliseconds or during greater than 11 milliseconds; Represent that then the CAN communication breaks down, i.e. the less stable in CAN cycle, LabView software is reported to the police; When Δ t more than or equal to 9 milliseconds and when being less than or equal to 11 milliseconds, represent that then the CAN communication is normal;
C:, then the timestamp in second register is stored in first register with the first register zero clearing;
D: read the CAN communication data once more, and the timestamp of these frame data is stored in second register;
E: repeated execution of steps B, C, D are up to stopping monitoring.

Claims (8)

1. method based on the monitoring CAN communication of LabView; It is characterized in that: LabView software reads the CAN communication data; And the timestamp of the frame data that read is stored in the register; The timestamp of the more double frame data that read then when the difference DELTA t of the timestamp of two frame data exceeds preset range, representes that then the CAN communication breaks down; When the difference DELTA t of the timestamp of two frame data is in preset range, represent that then the CAN communication is normal.
2. the method for the monitoring CAN communication based on LabView according to claim 1 is characterized in that LabView software is stored in the CAN communication data that is read in the array that is provided with in advance, and shows in real time.
3. the method for the monitoring CAN communication based on LabView according to claim 1; It is characterized in that the said double frame data that read are continuous frame data; When the difference DELTA t of the timestamp of said two frame data is zero, represent that then the CAN communication breaks down; When the difference DELTA t of the timestamp of said two frame data greater than zero the time, represent that then the CAN communication is normal.
4. the method for the monitoring CAN communication based on LabView according to claim 3 is characterized in that specifically comprising the steps:
A:LabView software reads the CAN communication data by frame, and the timestamp of two continuous frames data is stored in respectively in first register and second register;
B: the timestamp of relatively being stored in first register and second register, when the difference DELTA t of the timestamp in two registers is zero, represent that then the CAN communication breaks down, LabView software is reported to the police; When Δ t greater than zero the time, represent that then the CAN communication is normal;
C:, the timestamp in second register is shifted store in first register then with the first register zero clearing;
D: read the next frame data, and the timestamp of these frame data is stored in second register;
E: repeated execution of steps B, C, D are up to stopping monitoring.
5. the method for the monitoring CAN communication based on LabView according to claim 4 is characterized in that in the said A step, and LabView software is stored in the CAN communication data that is read in the array that is provided with in advance, and shows in real time.
6. the method for the monitoring CAN communication based on LabView according to claim 1; It is characterized in that the said double frame data that read are is two frame data of the scheduled time T blanking time; As the difference DELTA t of the timestamp of said two frame data during, represent that then the CAN communication breaks down less than T1 or greater than T2; When the difference DELTA t of the timestamp of said two frame data more than or equal to T1 and when being less than or equal to T2, represent that then the CAN communication is normal; Said T1=T-T0, T2=T+T0, said T0 are predefined redundancy time value.
7. the method for the monitoring CAN communication based on LabView according to claim 6 is characterized in that specifically comprising the steps:
A:LabView software is every to read the CAN communication data one time at a distance from scheduled time T, and the timestamp of the double frame data that read is stored in respectively in first register and second register;
B: the timestamp of relatively being stored in first register and second register, as the difference DELTA t of the timestamp in two registers during, represent that then the CAN communication breaks down less than T1 or greater than T2, LabView software is reported to the police; When Δ t more than or equal to T1 and when being less than or equal to T2, represent that then the CAN communication is normal;
C:, then the timestamp in second register is stored in first register with the first register zero clearing;
D: read the CAN communication data once more, and the timestamp of these frame data is stored in second register;
E: repeated execution of steps B, C, D are up to stopping monitoring.
8. the method for the monitoring CAN communication based on LabView according to claim 7 is characterized in that in the said A step, and LabView software is stored in the CAN communication data that is read in the array that is provided with in advance, and shows in real time.
CN2012101587080A 2012-05-22 2012-05-22 CAN communication monitoring method based on LabView Pending CN102724082A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101587080A CN102724082A (en) 2012-05-22 2012-05-22 CAN communication monitoring method based on LabView

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101587080A CN102724082A (en) 2012-05-22 2012-05-22 CAN communication monitoring method based on LabView

Publications (1)

Publication Number Publication Date
CN102724082A true CN102724082A (en) 2012-10-10

Family

ID=46949752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101587080A Pending CN102724082A (en) 2012-05-22 2012-05-22 CAN communication monitoring method based on LabView

Country Status (1)

Country Link
CN (1) CN102724082A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683185A (en) * 2015-03-06 2015-06-03 东华大学 Method for monitoring serial port communication based on Labview
CN109143839A (en) * 2018-09-04 2019-01-04 广西质量技术工程学校 A kind of sensor redundancy control method highly fault tolerant
CN109696900A (en) * 2017-10-23 2019-04-30 北京长城华冠汽车科技股份有限公司 A kind of system and method for testing board Controller Area Network message sending cycle

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1560806A (en) * 2004-03-04 2005-01-05 深圳市泛海三江电子有限公司 Fire alarm application layer data transmission method based on CAN2.0B
CN201037955Y (en) * 2007-06-01 2008-03-19 清华大学 Fuel batter whole automobile communication network testing device based on TTCAN
CN101247288A (en) * 2008-03-14 2008-08-20 华为技术有限公司 Periodic line quality detecting method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1560806A (en) * 2004-03-04 2005-01-05 深圳市泛海三江电子有限公司 Fire alarm application layer data transmission method based on CAN2.0B
CN201037955Y (en) * 2007-06-01 2008-03-19 清华大学 Fuel batter whole automobile communication network testing device based on TTCAN
CN101247288A (en) * 2008-03-14 2008-08-20 华为技术有限公司 Periodic line quality detecting method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683185A (en) * 2015-03-06 2015-06-03 东华大学 Method for monitoring serial port communication based on Labview
CN104683185B (en) * 2015-03-06 2018-04-20 东华大学 A kind of monitoring serial port communication method based on Labview
CN109696900A (en) * 2017-10-23 2019-04-30 北京长城华冠汽车科技股份有限公司 A kind of system and method for testing board Controller Area Network message sending cycle
CN109143839A (en) * 2018-09-04 2019-01-04 广西质量技术工程学校 A kind of sensor redundancy control method highly fault tolerant

Similar Documents

Publication Publication Date Title
CN101763389B (en) Device and method for controlling database resource
WO2010077772A8 (en) Time stamped imagery assembly for course performance video replay
WO2012166725A3 (en) Apparatus and methods for providing data integrity
WO2012166726A3 (en) Apparatus and methods for providing data integrity
WO2008009986A3 (en) Aggregated management system
RU2007149553A (en) METHODS AND SYSTEMS FOR CORRECTING APPLICATIONS
WO2009005992A3 (en) Tuning and optimizing distributed systems with declarative models
WO2013181497A3 (en) Systems and methods for inventory management
WO2008085940A3 (en) Methods and systems for an accountable media advertising application
FI20115104A0 (en) SYSTEM AND METHOD FOR MODEL-BASED TESTING
WO2013016576A8 (en) Systems and methods for managing fault codes
WO2011035247A3 (en) System and method for immersive operations intelligence
CN102724082A (en) CAN communication monitoring method based on LabView
WO2009146105A3 (en) Systems and methods for event coordination and asset control
CN107984471B (en) Method and device for determining working state of robot and robot
CN109818418A (en) A kind of apparatus and method status of electric power monitoring and shown
CN112580812A (en) Model training method, inventory safety early warning method, device, equipment and medium
CN104320301A (en) Intranet special line flow monitoring method and system
CN106293975B (en) Information processing method, information processing unit and information processing system
CN105759777B (en) Fault of electric locomotive processing system and method
CN202662072U (en) Staff in-position monitoring device
WO2012009105A3 (en) Replaying architectural execution with a probeless trace capture
CN104346233A (en) Fault recovery method and device for computer system
Malik et al. Cost-benefit analysis of a parallel system with arrival time of the server and maximum repair time
EP2562649A3 (en) Method for repairing communication abnormality between data card and host and data card

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: CHERY NEW ENERGY AUTOMOBILE TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: SAIC CHERY AUTOMOBILE CO., LTD.

Effective date: 20150715

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20150715

Address after: 241000 Yijiang, Anhui Province, Jin Hua Road, No. 226, South Road, No.

Applicant after: New-energy automobile Technology Co., Ltd. of Cherry

Address before: 241009 Wuhu economic and Technological Development Zone, Anhui, No. 8 Changchun Road

Applicant before: Saic Chery Automobile Co., Ltd.

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20121010