CN109672599A - 一种控制can总线数据通讯丢帧的方法 - Google Patents
一种控制can总线数据通讯丢帧的方法 Download PDFInfo
- Publication number
- CN109672599A CN109672599A CN201811492182.3A CN201811492182A CN109672599A CN 109672599 A CN109672599 A CN 109672599A CN 201811492182 A CN201811492182 A CN 201811492182A CN 109672599 A CN109672599 A CN 109672599A
- Authority
- CN
- China
- Prior art keywords
- communication
- data
- bus
- node
- time
- 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
Classifications
-
- 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/40006—Architecture of a communication node
- H04L12/40013—Details regarding a bus controller
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
-
- 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
本发明属于通讯控制领域,属于针对多路节点的总线控制技术,特别涉及一种控制CAN总线数据通讯丢帧的方法。目前针对CAN通讯出现数据缺失的故障时,仅能上报通讯故障,无法对该问题进行抑制甚至是避免。本发明在通讯之前设置CAN总线上单个节点的通讯时间为T1,数据帧数为n1,通讯数据字节数a,波特率为r,相邻数据帧之间的发送间隔时间T2;计算出单个数据帧所占宽度t=a/r;使得n2*t<T2<T1/n1,n2为CAN总线通讯节点数;在通讯时,若任意一数据帧发生丢失且时间超过5s时,则对节点CAN总线通讯芯片进行一次复位操作,保证CAN通讯正常工作。解决了基于CAN的多路多帧数据通讯数据丢失的问题。
Description
技术领域
本发明属于通讯控制领域,属于针对多路节点的总线控制技术,特别涉及一种控制CAN总线数据通讯丢帧的方法。
背景技术
目前,针对CAN通讯出现数据缺失的故障时,仅能上报通讯故障,无法对该问题进行抑制甚至是避免。
发明内容
本发明的目的是:提出一种控制CAN总线数据通讯丢帧的方法,解决节点地址一致,节点存在多帧数据的故障控制问题。
本发明的控制CAN总线数据通讯丢帧的方法,其特征在于:该方法包括以下步骤:
在通讯之前,
1)设置CAN总线上单个节点的通讯时间为T1,数据帧数为n1,通讯数据字节数a,波特率为r,相邻数据帧之间的发送间隔时间T2;
2)计算出单个数据帧所占宽度t=a/r;
3)使得n2*t<T2<T1/n1,n2为CAN总线通讯节点数;
在通讯时,
若任意一数据帧发生丢失且时间超过5s时,则对节点CAN总线通讯芯片进行一次复位操作,保证CAN通讯正常工作。
本发明的有益效果是:本发明解决了基于CAN的多路多帧数据通讯数据丢失的问题。
附图说明
图1是现有技术通讯冲突的示意图;
图2是采用本发明的通讯状态的示意图。
具体实施方式
采用本发明控制CAN总线数据通讯丢帧的方法,通过以下步骤进行操作:
在通讯之前,
1)设置CAN总线上单个节点的通讯时间为T1,数据帧数为n1,通讯数据字节数a,波特率为r,相邻数据帧之间的发送间隔时间T2;
2)计算出单个数据帧所占宽度t=a/r;
3)使得n2*t<T2<T1/n1,n2为CAN总线通讯节点数;
在通讯时,
若任意一数据帧发生丢失且时间超过5s时,则对节点CAN总线通讯芯片进行一次复位操作,保证CAN通讯正常工作。
Claims (1)
1.一种控制CAN总线数据通讯丢帧的方法,其特征在于:该方法包括以下步骤:
在通讯之前,
1)设置CAN总线上单个节点的通讯时间为T1,数据帧数为n1,通讯数据字节数a,波特率为r,相邻数据帧之间的发送间隔时间T2;
2)计算出单个数据帧所占宽度t=a/r;
3)使得n2*t<T2<T1/n1,n2为CAN总线通讯节点数;
在通讯时,
若任意一数据帧发生丢失且时间超过5s时,则对节点CAN总线通讯芯片进行一次复位操作,保证CAN通讯正常工作。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811492182.3A CN109672599A (zh) | 2018-12-07 | 2018-12-07 | 一种控制can总线数据通讯丢帧的方法 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811492182.3A CN109672599A (zh) | 2018-12-07 | 2018-12-07 | 一种控制can总线数据通讯丢帧的方法 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109672599A true CN109672599A (zh) | 2019-04-23 |
Family
ID=66144738
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811492182.3A Pending CN109672599A (zh) | 2018-12-07 | 2018-12-07 | 一种控制can总线数据通讯丢帧的方法 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109672599A (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115134184A (zh) * | 2022-06-07 | 2022-09-30 | 西北机电工程研究所 | 一种任意形式can总线通讯判断方法 |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5936962A (en) * | 1996-07-02 | 1999-08-10 | Extreme Networks, Inc. | Method and apparatus for predicting and controlling data transmission in a CSMA/CD LAN |
CN1930826A (zh) * | 2004-03-11 | 2007-03-14 | 宝马股份公司 | 数据通信方法 |
CN102013943A (zh) * | 2010-07-26 | 2011-04-13 | 浙江吉利汽车研究院有限公司 | 一种can总线网络丢帧处理方法 |
CN102164066A (zh) * | 2010-02-23 | 2011-08-24 | 周媛 | 基于can测控子系统可靠数据传输方法 |
JP4818950B2 (ja) * | 2007-02-22 | 2011-11-16 | 日本電信電話株式会社 | 無線lanデータパケット衝突回避制御方法およびその装置 |
CN104915277A (zh) * | 2015-07-02 | 2015-09-16 | 天津航天机电设备研究所 | 一种基于LabVIEW主动接收型的通信调试系统及其通信调试方法 |
CN107426072A (zh) * | 2017-06-29 | 2017-12-01 | 北京电子工程总体研究所 | 一种can总线冗余重发容错的通讯方法 |
-
2018
- 2018-12-07 CN CN201811492182.3A patent/CN109672599A/zh active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5936962A (en) * | 1996-07-02 | 1999-08-10 | Extreme Networks, Inc. | Method and apparatus for predicting and controlling data transmission in a CSMA/CD LAN |
CN1930826A (zh) * | 2004-03-11 | 2007-03-14 | 宝马股份公司 | 数据通信方法 |
JP4818950B2 (ja) * | 2007-02-22 | 2011-11-16 | 日本電信電話株式会社 | 無線lanデータパケット衝突回避制御方法およびその装置 |
CN102164066A (zh) * | 2010-02-23 | 2011-08-24 | 周媛 | 基于can测控子系统可靠数据传输方法 |
CN102013943A (zh) * | 2010-07-26 | 2011-04-13 | 浙江吉利汽车研究院有限公司 | 一种can总线网络丢帧处理方法 |
CN104915277A (zh) * | 2015-07-02 | 2015-09-16 | 天津航天机电设备研究所 | 一种基于LabVIEW主动接收型的通信调试系统及其通信调试方法 |
CN107426072A (zh) * | 2017-06-29 | 2017-12-01 | 北京电子工程总体研究所 | 一种can总线冗余重发容错的通讯方法 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115134184A (zh) * | 2022-06-07 | 2022-09-30 | 西北机电工程研究所 | 一种任意形式can总线通讯判断方法 |
CN115134184B (zh) * | 2022-06-07 | 2023-05-23 | 西北机电工程研究所 | 一种任意形式can总线通讯判断方法 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9853856B2 (en) | Method and device for protecting service reliability and network virtualization system | |
EP3073688B1 (en) | Data transmission method, core forwarding device and end point forwarding device | |
CN202679397U (zh) | 实时工业以太网EtherCAT从站系统 | |
CN103984768B (zh) | 一种数据库集群管理数据的方法、节点及系统 | |
CN104158706A (zh) | 环回检测方法及装置 | |
CN102833119A (zh) | 双网冗余机制下实时数据接收同步处理的方法 | |
CN103746927A (zh) | 基于优先级的流控pfc方法及发送设备、接收设备 | |
CN109672599A (zh) | 一种控制can总线数据通讯丢帧的方法 | |
EP3024160A1 (en) | Control method, device and optical transceiver | |
US20140078933A1 (en) | Method and board for high-speed link auto-negotiation | |
US10009672B2 (en) | Optical transmission system and transmission method, optical switching apparatus, and control method | |
DE102014206997A1 (de) | Verfahren zur Energieeinsparung bei Mehrkanaleinrichtungen | |
CN105807886A (zh) | 一种芯片唤醒系统及方法以及移动终端 | |
CN105424093B (zh) | 一种环境监测数据的传输方法 | |
SG11201909799TA (en) | Communication method, access network device and terminal device | |
CN105072053A (zh) | 一种以太网交换机流量控制方法 | |
WO2019080546A1 (zh) | 一种调整参数的方法及参数调整装置 | |
EP3240251A1 (en) | Line card determination, determination processing method and device, and line card determination system | |
CN103001802A (zh) | 以太端口故障自动修复方法及系统 | |
CN102594696A (zh) | 一种管理网络设备链路聚合组的方法及装置 | |
CN210222738U (zh) | 中断重连快速响应装置和通信设备 | |
CN108599984A (zh) | 共享端口状态的方法、接入设备及支持双归属保护的系统 | |
CN105320881B (zh) | 光功率降低保护方法及装置 | |
CN105591952A (zh) | 应用于堆叠分裂的流量切换方法和装置 | |
CN106105060A (zh) | 数据通信的方法、装置和系统 |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190423 |