WO2018121349A1 - Can bus control method and communication system using can bus - Google Patents

Can bus control method and communication system using can bus Download PDF

Info

Publication number
WO2018121349A1
WO2018121349A1 PCT/CN2017/117204 CN2017117204W WO2018121349A1 WO 2018121349 A1 WO2018121349 A1 WO 2018121349A1 CN 2017117204 W CN2017117204 W CN 2017117204W WO 2018121349 A1 WO2018121349 A1 WO 2018121349A1
Authority
WO
WIPO (PCT)
Prior art keywords
bus
message
nodes
control method
unified
Prior art date
Application number
PCT/CN2017/117204
Other languages
French (fr)
Chinese (zh)
Inventor
吕玉华
Original Assignee
蔚来汽车有限公司
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 蔚来汽车有限公司 filed Critical 蔚来汽车有限公司
Publication of WO2018121349A1 publication Critical patent/WO2018121349A1/en

Links

Images

Classifications

    • 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/40143Bus networks involving priority mechanisms
    • 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

Definitions

  • the present invention generally relates to the field of controller area network CAN bus communication technology, and in particular, to a CAN bus communication method and a communication system using the CAN bus.
  • CAN Controller Area Network
  • the CAN bus is a digital signal communication protocol designed by Bosch in Germany to solve complex technical problems in automotive monitoring systems. It is a bus serial communication network.
  • the CAN bus is a car LAN that is extremely suitable for automotive environments, and it has the advantages of reliability, real-time and flexibility in data transmission.
  • the degree of electronic electronics is getting higher and higher, the amount of communication data is getting larger and larger, and the load carrying capacity of the CAN bus is also getting higher and higher.
  • the CAN bus communication quality may not be ideal under high load ratio conditions, such as signal delay or even frame loss.
  • the present invention provides a CAN bus control method, which includes: setting all nodes connected to a CAN bus to adopt a unified clock; and making all nodes follow a unified plan after all nodes are powered on and initialized. A message is sent on the CAN bus.
  • the unified planning comprises: setting a different packet start time delay length for each node.
  • the unified planning further comprises: setting, for each node, a different start transmission delay length according to a type of the message.
  • the unified planning further comprises: setting a minimum transmission time interval for the event message.
  • the unified planning further comprises: dynamically changing a transmission time period of the message according to the importance degree of the message.
  • the message comprises an event message and a periodic message.
  • the present invention also provides a communication system employing a CAN bus, comprising: a CAN bus; and a plurality of nodes connected to the CAN bus, wherein each of the plurality of nodes is set to A unified clock is employed, and each of the plurality of nodes transmits a message on the CAN bus in accordance with a unified plan after all of the plurality of nodes are powered up and initialization is completed.
  • FIG. 1 is a flow chart of a CAN bus control method in accordance with one example of the present invention.
  • FIG. 2 is a schematic diagram of a CAN bus message transmission situation according to an example of the present invention.
  • 3a-3b are diagrams showing the transmission of a CAN bus message in accordance with another example of the present invention.
  • FIG. 4 is a communication system employing a CAN bus in accordance with one example of the present invention.
  • the CAN bus control method will be described in the vehicle as an example, and more specifically, the vehicle is an electric vehicle.
  • node refers to a component, component, part, device, or system in a vehicle that uses the CAN bus to transmit message data.
  • FIG. 1 is a flow chart of a CAN bus control method in accordance with one example of the present invention. As shown in FIG. 1, first all the nodes connected to the CAN bus are set to adopt a unified clock in step 11; and in step 13, after all nodes are powered on and initialized, all nodes are uniformly planned on the CAN bus. Send a message.
  • a unified plan as described above may be pre-set for each node, and the set clock and the planned message transmission scheme may be pre-loaded to each node to power on all nodes connected to the CAN bus.
  • the CAN message can then be sent according to the above unified plan.
  • each message has a certain priority according to its ID (in conventional applications, the smaller the ID value is, the higher the priority), but because each node follows
  • ID in conventional applications, the smaller the ID value is, the higher the priority
  • the respective timings are transmitted on the CAN bus, and many messages with high priority still have to wait for idle on the bus to be successfully transmitted. In this way, most high-priority messages are delayed for a long time to be sent.
  • the unified plan includes setting a different packet start delay length for each node. Since all nodes on the same CAN bus use the same clock, this makes it possible for each node to start transmitting messages at the specified time. By enabling each node on the CAN bus to start message transmission with different delay times after all power-on, it avoids the situation that multiple messages are simultaneously transmitted at the same time, thereby greatly alleviating packet congestion on the bus.
  • the length of time the message is sent is set according to the priority of the message.
  • a plurality of high-priority messages may also be transmitted in a pre-planned time sequence.
  • different priorities of the messages are staggered from each other in advance planning to avoid A burst condition existing when an existing CAN bus message is transmitted.
  • the message containing the brake information during the running of the vehicle and the message containing the throttle information have high priority. According to the conventional CAN bus transmission mode, they may require simultaneous transmission, thereby causing a conflict situation. In the case that the subsequent transmission of the message through the CAN bus, the two messages will always conflict.
  • it is pre-planned at which time point the message containing the brake information is sent, and at what time point the message containing the throttle information is sent. Specifically, the message including the brake information is scheduled to be transmitted at time t0. And the message containing the throttle signal is transmitted at time t0 + ⁇ 1, thereby avoiding the conflict between the two.
  • the pre-planned t0 and t0+ ⁇ 1 refer to the time when the two messages are sent for the first time after the CAN bus is powered on. Because each message has a certain transmission period, conflicts can be avoided in subsequent transmissions.
  • different start transmission delay lengths can be further set according to the type of the message. For example, an event message (eg, a message including brake information, collision information, and the like that is not always occurring) may be determined to have a higher priority than a periodic message (eg, a message including a round speed). Therefore, the length of the start transmission delay of the event message is set smaller than the periodic message. That is to say, each node starts to send a delay time for different messages for different first-to-be-sent messages after power-on. Thereby, it is possible to avoid a delay set in advance so that a message having a high priority itself is unreasonably delayed to be transmitted.
  • an event message eg, a message including brake information, collision information, and the like that is not always occurring
  • a periodic message eg, a message including a round speed
  • a periodic message when the time is planned for it, its transmission period may be T1, and for an event message, its transmission period may be smaller than T1.
  • FIG. 2 is a schematic diagram of CAN bus message transmission in such cases.
  • the nodes transmitting these messages can be configured to transmit these messages in a shorter period of time T2.
  • the message including the brake information mentioned above has an extremely high priority during the running of the vehicle, but when the vehicle is in a state of charging or the like, the message has a low priority, correspondingly The transmission cycle for it will be adjusted longer.
  • variable period transmission of the message can also be pre-configured or planned in the node, that is, each node can adjust the message transmission based on the pre-configuration or planning of the packet transmission plan in the node based on the form state, mode, and the like of the vehicle.
  • the cycle and so on can be sorted according to the functions implemented by the message on the CAN bus, and the transmission period of the message is determined accordingly. This can for example be stored on the node in the form of a list.
  • Each node can adjust the corresponding transmission period according to the importance of the message on the bus. This can significantly reduce the load rate, thereby further improving the communication quality.
  • FIG. 3a is a message sequence in which the event message does not set a minimum time interval from the previous message.
  • T2 when the event message is continuously transmitted at a very short time interval T2, the periodic message originally transmitted in the time period T2 cannot maintain the previous transmission timing due to the continuous transmission of the event report.
  • the interval between the two messages is extended to T3, causing a delay in the cycle and the communication quality is lowered.
  • Figure 3b is a message sequence after setting a minimum transmission time interval for an event message, wherein the event message is set to be transmitted at least at time interval T2 between each message, thereby ensuring a period of T1
  • the periodic message is not delayed in the period during which the event message is sent, thereby improving the communication quality.
  • the CAN bus communication system can be used in a typical network topology. In such a network topology, multiple CAN buses can be included, and communication between different CANs is reproduced through the gateway.
  • On each CAN each of a plurality of nodes (A, B, C, ...) connected to the CAN bus can be set to use a unified clock, and each of the nodes is on the CAN bus. After all nodes are powered on and initialized, the packets are sent on the same CAN bus according to the unified plan. All of the other settings described above also apply to the example shown in FIG.

Abstract

The present invention provides a CAN bus control method, comprising: configuring all nodes connected to a CAN bus to use a unified clock; and making all the nodes send packets on the CAN bus according to a unified plan after all the nodes are powered on and initialized. In addition, the present invention also provides a communication system using a CAN bus, comprising: a CAN bus; and a plurality of nodes connected to the CAN bus, wherein each of the plurality of nodes is configured to use a unified clock, and each of the plurality of nodes sends a packet on the CAN bus according to a unified plan after all of the plurality of nodes are powered on and initialized.

Description

CAN总线控制方法及采用CAN总线的通信系统CAN bus control method and communication system using CAN bus 技术领域Technical field
本发明一般地涉及控制器局域网CAN总线通信技术领域,并且具体地,涉及CAN总线通信方法以及采用CAN总线的通信系统。The present invention generally relates to the field of controller area network CAN bus communication technology, and in particular, to a CAN bus communication method and a communication system using the CAN bus.
背景技术Background technique
CAN是控制器局域网络(Controller Area Network,CAN)的简称。CAN总线是德国Bosch公司为解决汽车监控系统中的复杂技术难题而设计的数字信号通信协议,它属于总线式串行通信网络。CAN总线是一种极其适用于汽车环境的汽车局域网,其在数据传输方面具备可靠、实时和灵活的优点。CAN is an abbreviation of Controller Area Network (CAN). The CAN bus is a digital signal communication protocol designed by Bosch in Germany to solve complex technical problems in automotive monitoring systems. It is a bus serial communication network. The CAN bus is a car LAN that is extremely suitable for automotive environments, and it has the advantages of reliability, real-time and flexibility in data transmission.
由于现在汽车电子化程度越来越高,通信数据量越来越大,对于CAN总线的负载承载能力要求也越来越高。但是由于受到硬件制约,在高负载率情况下,CAN总线通信质量可能不理想,例如会出现信号延时甚至丢帧情况。As the degree of electronic electronics is getting higher and higher, the amount of communication data is getting larger and larger, and the load carrying capacity of the CAN bus is also getting higher and higher. However, due to hardware constraints, the CAN bus communication quality may not be ideal under high load ratio conditions, such as signal delay or even frame loss.
因此,所期望的是设计一种能够在当前硬件条件下提高CAN总线通信负载率,同时保证通信质量的方案。Therefore, what is desired is to design a solution that can increase the CAN bus communication load rate under current hardware conditions while ensuring communication quality.
发明内容Summary of the invention
有鉴于此,本发明提供一种CAN总线控制方法,其包括:将连接到CAN总线的所有节点设置为采用统一时钟;以及在所有节点全部上电且初始化完成之后使所述所有节点按照统一规划在所述CAN总线上发送报文。In view of this, the present invention provides a CAN bus control method, which includes: setting all nodes connected to a CAN bus to adopt a unified clock; and making all nodes follow a unified plan after all nodes are powered on and initialized. A message is sent on the CAN bus.
如上所述的方法,其中,所述统一规划包括:为每个节点设置不同的报文开始发送延迟时间长度。The method as described above, wherein the unified planning comprises: setting a different packet start time delay length for each node.
如上所述的方法,其中,根据每个报文的优先级来设置报文开始发送延迟时间长度。The method as described above, wherein the packet start transmission delay time length is set according to the priority of each message.
如上所述的方法,其中,所述统一规划还包括:针对每个节点 根据报文的类型设置不同的开始发送延迟时间长度。The method as described above, wherein the unified planning further comprises: setting, for each node, a different start transmission delay length according to a type of the message.
如上所述的方法,其中,所述统一规划还包括:为事件性报文设置最小发送时间间隔。The method as described above, wherein the unified planning further comprises: setting a minimum transmission time interval for the event message.
如上所述的方法,其中,所述统一规划还包括:根据报文的重要程度动态地改变报文的发送时间周期。The method as described above, wherein the unified planning further comprises: dynamically changing a transmission time period of the message according to the importance degree of the message.
如上所述的方法,其中,所述报文的重要程度根据报文的功能来确定。The method as described above, wherein the importance of the message is determined according to the function of the message.
如上所述的方法,其中,所述报文包括事件性报文和周期性报文。The method as described above, wherein the message comprises an event message and a periodic message.
另一方面,本发明还提供了一种采用CAN总线的通信系统,其包括:CAN总线;以及连接到所述CAN总线的多个节点,其中所述多个节点中的每一个均被设置为采用统一时钟,并且所述多个节点中的每一个均在所述多个节点全部上电且初始化完成之后按照统一规划在所述CAN总线上发送报文。In another aspect, the present invention also provides a communication system employing a CAN bus, comprising: a CAN bus; and a plurality of nodes connected to the CAN bus, wherein each of the plurality of nodes is set to A unified clock is employed, and each of the plurality of nodes transmits a message on the CAN bus in accordance with a unified plan after all of the plurality of nodes are powered up and initialization is completed.
附图说明DRAWINGS
本发明的前述和其他目标、特征和优点根据下面对本发明的实施例的更具体的说明将是显而易见的,这些实施例在附图中被示意。The foregoing and other objects, features, and advantages of the invention will be apparent from
图1是根据本发明一个示例的CAN总线控制方法的流程图。1 is a flow chart of a CAN bus control method in accordance with one example of the present invention.
图2是根据本发明一个示例的CAN总线报文发送情况的示意图。2 is a schematic diagram of a CAN bus message transmission situation according to an example of the present invention.
图3a-3b是根据本发明另一示例的CAN总线报文发送情况的示意图。3a-3b are diagrams showing the transmission of a CAN bus message in accordance with another example of the present invention.
图4是根据本发明一个示例的采用CAN总线的通信系统。4 is a communication system employing a CAN bus in accordance with one example of the present invention.
具体实施方式detailed description
现在参照附图描述本发明的示意性示例,相同的附图标号表示相同的元件。下文描述的各示例有助于本领域技术人员透彻理解本发明,且各示例意在示例而非限制。图中各元件、部件、模块、装置及 设备本体的图示仅示意性表明存在这些元件、部件、模块、装置及设备本体同时亦表明它们之间的相对关系,但并不用以限定它们的具体形状;流程图中各步骤的关系也不以所给出的顺序为限,可根据实际应用进行调整但不脱离本申请的保护范围。BRIEF DESCRIPTION OF THE DRAWINGS Exemplary embodiments of the present invention will now be described with reference to the drawings, wherein like reference numerals refer to the like. The examples described below are provided to enable those skilled in the art to understand the invention, and the examples are intended to be illustrative and not limiting. The illustrations of the various elements, components, modules, devices and device bodies in the figures are only illustrative of the existence of such elements, components, modules, devices, and device bodies, and also indicate the relative relationship between them, but are not intended to limit their specificity. Shape; the relationship of the steps in the flowchart is not limited to the order given, and can be adjusted according to the actual application without departing from the scope of protection of the present application.
在本文中,示例而非限制地,将以该CAN总线控制方法应用在车辆中作为示例来进行阐述,更为具体地,该车辆为电动车辆。术语“节点”指的是车辆中会使用CAN总线发送报文数据的部件、元件、零件、设备、或系统等。In this context, by way of example and not limitation, the CAN bus control method will be described in the vehicle as an example, and more specifically, the vehicle is an electric vehicle. The term "node" refers to a component, component, part, device, or system in a vehicle that uses the CAN bus to transmit message data.
图1是根据本发明一个示例的CAN总线控制方法的流程图。如图1所示,首先在步骤11中将连接到CAN总线的所有节点设置为采用统一时钟;以及在步骤13中在所有节点全部上电且初始化完成之后使所有节点按照统一规划在CAN总线上发送报文。1 is a flow chart of a CAN bus control method in accordance with one example of the present invention. As shown in FIG. 1, first all the nodes connected to the CAN bus are set to adopt a unified clock in step 11; and in step 13, after all nodes are powered on and initialized, all nodes are uniformly planned on the CAN bus. Send a message.
在实践中,可为各节点预先设置如上文所述的统一规划,并将所设定的时钟和所规划的报文发送方案预先加载到各个节点,以便在所有连接到CAN总线的节点上电之后可按照上述统一规划来进行CAN报文的发送。In practice, a unified plan as described above may be pre-set for each node, and the set clock and the planned message transmission scheme may be pre-loaded to each node to power on all nodes connected to the CAN bus. The CAN message can then be sent according to the above unified plan.
简单地说,按照常规的CAN总线报文发送方式,每条报文,虽然依据其ID,它们具有一定的优先级(常规应用中,ID值越小优先级越高),但是由于各个节点按照各自的时序在CAN总线上进行发送,很多具有高优先级的报文还是要依次等待总线上的空闲以被成功发送。这样,绝大多数高优先级的报文还是被延迟了较长时间才发送出去。Simply put, according to the conventional CAN bus message transmission mode, each message has a certain priority according to its ID (in conventional applications, the smaller the ID value is, the higher the priority), but because each node follows The respective timings are transmitted on the CAN bus, and many messages with high priority still have to wait for idle on the bus to be successfully transmitted. In this way, most high-priority messages are delayed for a long time to be sent.
CAN总线上各个节点的通信情况,尤其是针对车内通信而言,常常是可预期的。因此,按照本发明示例的CAN总线控制方法,依据每个节点的功能,预先为报文发送进行规划可优先避免总线上很多不必要的冲突。The communication of the various nodes on the CAN bus, especially for in-vehicle communication, is often predictable. Therefore, according to the CAN bus control method exemplified by the present invention, according to the function of each node, planning for message transmission in advance can preferentially avoid many unnecessary conflicts on the bus.
在一些示例中,所述统一规划包括:为每个节点设置不同的报文开始发送延迟时间长度。由于同一条CAN总线上的所有节点都采用了相同的时钟,这使得每个节点按照规定的时间开始发送报文成为 可能。通过使CAN总线上的各个节点在全部上电之后以不同的延迟时间开始报文发送避免了同一时刻有多个报文同时发送的情况,从而大大缓解总线上的报文堵塞。In some examples, the unified plan includes setting a different packet start delay length for each node. Since all nodes on the same CAN bus use the same clock, this makes it possible for each node to start transmitting messages at the specified time. By enabling each node on the CAN bus to start message transmission with different delay times after all power-on, it avoids the situation that multiple messages are simultaneously transmitted at the same time, thereby greatly alleviating packet congestion on the bus.
在一些示例中,根据报文的优先级来设置报文开始发送延迟时间长度。在这种情况下,在具有多个高优先级报文要发送的情况下,也可按照预先规划的时间顺序来发送,换句话说,预先规划时将不同优先级的报文彼此错开从而避免了现有CAN总线报文发送时存在的冲突(burst)情况。In some examples, the length of time the message is sent is set according to the priority of the message. In this case, in the case where a plurality of high-priority messages are to be transmitted, they may also be transmitted in a pre-planned time sequence. In other words, different priorities of the messages are staggered from each other in advance planning to avoid A burst condition existing when an existing CAN bus message is transmitted.
举例来说,车辆行驶过程中的包含刹车信息的报文与包含油门信息的报文都具有高优先级,按照常规的CAN总线发送方式,它们可能会要求同时发送,从而出现冲突情况,这种情况下,后续通过CAN总线报文发送的方式,这两个报文将一直出现冲突。但是按照本发明,会预先规划好在什么时间点发送包含刹车信息的报文,在什么时间点发送包含油门信息的报文,具体而言,预先规划好在t0时间发送包含刹车信息的报文,而在t0+σ1时间发送包含油门信号的报文,由此避免了两者的冲突。需要说明的是,预先规划的t0与t0+σ1指的是CAN总线上电后第一次发送这两个报文的时间。因为每条报文的发送周期一定,因此,后续发送中同样可避免冲突。For example, the message containing the brake information during the running of the vehicle and the message containing the throttle information have high priority. According to the conventional CAN bus transmission mode, they may require simultaneous transmission, thereby causing a conflict situation. In the case that the subsequent transmission of the message through the CAN bus, the two messages will always conflict. However, according to the present invention, it is pre-planned at which time point the message containing the brake information is sent, and at what time point the message containing the throttle information is sent. Specifically, the message including the brake information is scheduled to be transmitted at time t0. And the message containing the throttle signal is transmitted at time t0 + σ1, thereby avoiding the conflict between the two. It should be noted that the pre-planned t0 and t0+σ1 refer to the time when the two messages are sent for the first time after the CAN bus is powered on. Because each message has a certain transmission period, conflicts can be avoided in subsequent transmissions.
针对每个节点,还可根据报文的类型进一步设置不同的开始发送延迟时间长度。例如,可以将事件性报文(例如含刹车信息、碰撞信息等并不是一直发生的信息的报文)确定为比周期性报文(例如包含轮速的报文)具有更高的优先级,因此为事件性报文设置比周期性报文小的开始发送延迟时间长度。也就是说,每个节点在上电之后针对不同的首先要发送的报文也具有不同的报文开始发送延迟时间。由此,可以避免预先设置的延迟使得本身具有高优先级的报文不合理地被延迟发送。For each node, different start transmission delay lengths can be further set according to the type of the message. For example, an event message (eg, a message including brake information, collision information, and the like that is not always occurring) may be determined to have a higher priority than a periodic message (eg, a message including a round speed). Therefore, the length of the start transmission delay of the event message is set smaller than the periodic message. That is to say, each node starts to send a delay time for different messages for different first-to-be-sent messages after power-on. Thereby, it is possible to avoid a delay set in advance so that a message having a high priority itself is unreasonably delayed to be transmitted.
例如,对于周期性的报文,在为其规划时间时,可能它的发送周期是T1,而对于事件性报文,其发送周期可能要比T1小。For example, for a periodic message, when the time is planned for it, its transmission period may be T1, and for an event message, its transmission period may be smaller than T1.
当节点开始进行报文发送之后,还可以进一步根据报文的重要 程度来改变报文的发送时间周期。图2是在此类情况下的CAN总线报文发送的示意图。举例来说,对于一些周期性报文,它们被预先确定为以时间长度T1为周期进行发送。然而,在通信过程中,这些报文的重要程度可能会发生改变,例如重要程度升高,从而导致这些报文的优先级提高。在这种情况下,可以将发送这些报文的节点配置为以更短的时间长度T2为周期来发送这些报文。以上文提到的包含刹车信息的报文为例,该报文在车辆行驶过程中,具有极高的优先权,但是当车辆处于充电等状态时,则该报文具有低优先级,相应地,针对它的发送周期会被调整得较长。After the node starts to send packets, it can further change the sending time period of the packets according to the importance of the packets. Figure 2 is a schematic diagram of CAN bus message transmission in such cases. For example, for some periodic messages, they are predetermined to be transmitted in a period of time length T1. However, during the communication process, the importance of these messages may change, for example, the importance is increased, resulting in an increase in the priority of these messages. In this case, the nodes transmitting these messages can be configured to transmit these messages in a shorter period of time T2. For example, the message including the brake information mentioned above has an extremely high priority during the running of the vehicle, but when the vehicle is in a state of charging or the like, the message has a low priority, correspondingly The transmission cycle for it will be adjusted longer.
报文的变周期发送同样可以预先配置或规划在节点中,也就是说各节点各可以基于车辆的形式状态、模式等来基于预先配置或规划在节点中的报文发送规划来调整报文发送的周期等。换句话说,例如可以根据报文在CAN总线上实现的功能来进行重要程度排序,并且相应地确定报文的发送周期。这可以例如以列表的形式存储在节点上。每个节点可以各自按照总线上的报文重要程度来调整相应的发送周期。这样做能够明显地降低负载率,从而进一步提高通信质量。The variable period transmission of the message can also be pre-configured or planned in the node, that is, each node can adjust the message transmission based on the pre-configuration or planning of the packet transmission plan in the node based on the form state, mode, and the like of the vehicle. The cycle and so on. In other words, for example, the importance level can be sorted according to the functions implemented by the message on the CAN bus, and the transmission period of the message is determined accordingly. This can for example be stored on the node in the form of a list. Each node can adjust the corresponding transmission period according to the importance of the message on the bus. This can significantly reduce the load rate, thereby further improving the communication quality.
进一步地,还可以为事件性报文设置最小发送时间间隔。图3a和3b示出了没有采用该设置以及采用该设置的情况下CAN总线报文发送的示意图。典型地,事件性报文通常会以最快的速度在CAN总线上被发送,由此导致总线上其他报文的周期受影响。图3a是事件性报文不设置与前一报文最小时间间隔的报文时序。如图3a所示,当事件性报文以非常短的时间间隔T2不断被发送时,原本以时间周期T2来发送的周期性报文由于事件性报本的持续发送而无法保持之前的发送时序,其两个报文之间的间隔被延长为T3,造成周期的延迟从而通信质量被降低。Further, a minimum transmission time interval can also be set for the event message. Figures 3a and 3b show schematic diagrams of CAN bus message transmission without this setting and with this setting. Typically, event messages are typically sent on the CAN bus as quickly as possible, thereby causing the cycle of other messages on the bus to be affected. FIG. 3a is a message sequence in which the event message does not set a minimum time interval from the previous message. As shown in FIG. 3a, when the event message is continuously transmitted at a very short time interval T2, the periodic message originally transmitted in the time period T2 cannot maintain the previous transmission timing due to the continuous transmission of the event report. The interval between the two messages is extended to T3, causing a delay in the cycle and the communication quality is lowered.
图3b是在为事件性报文设置最小发送时间间隔之后的报文时序,其中事件性报文被设置为在每个报文之间至少以时间间隔T2被发送,由此保证了周期为T1的周期性报文在事件性报文发送过程中周期不会被延时,从而提高通信质量。Figure 3b is a message sequence after setting a minimum transmission time interval for an event message, wherein the event message is set to be transmitted at least at time interval T2 between each message, thereby ensuring a period of T1 The periodic message is not delayed in the period during which the event message is sent, thereby improving the communication quality.
图4是根据本发明一个示例的采用CAN总线的通信系统。根据本发明的CAN总线通信系统可以被用在典型的网络拓扑结构中。在这样的网络拓扑结构中可以包含多路CAN总线,不同CAN之间通信通过网关进行转载。在每一路CAN上,可以将连接到该CAN总线的多个节点(A,B,C,…)中的每一个均被设置为采用统一时钟,并且这每一个节点均在该CAN总线上的所有节点全部上电且初始化完成之后按照统一规划在同一CAN总线上发送报文。在上文中所描述的所有其他设置也均适用于图4所示的示例。4 is a communication system employing a CAN bus in accordance with one example of the present invention. The CAN bus communication system according to the present invention can be used in a typical network topology. In such a network topology, multiple CAN buses can be included, and communication between different CANs is reproduced through the gateway. On each CAN, each of a plurality of nodes (A, B, C, ...) connected to the CAN bus can be set to use a unified clock, and each of the nodes is on the CAN bus. After all nodes are powered on and initialized, the packets are sent on the same CAN bus according to the unified plan. All of the other settings described above also apply to the example shown in FIG.
应当说明的是,以上具体实施方式仅用以说明本发明的技术方案而非对其进行限制。尽管参照上述具体实施方式对本发明进行了详细的说明,本领域的普通技术人员应当理解,依然可以对本发明的具体实施方式进行修改或对部分技术特征进行等同替换而不脱离本发明的实质,其均涵盖在本发明请求保护的范围中。It should be noted that the above specific embodiments are merely illustrative of the technical solutions of the present invention and are not limited thereto. While the invention has been described in detail herein with reference to the preferred embodiments of the embodiments of the invention All are covered by the scope of the claimed invention.

Claims (9)

  1. 一种CAN总线控制方法,其包括:A CAN bus control method includes:
    将连接到CAN总线的所有节点设置为采用统一时钟;以及Set all nodes connected to the CAN bus to use a unified clock;
    在所有节点全部上电且初始化完成之后使所述所有节点按照统一规划在所述CAN总线上发送报文。After all the nodes are powered on and the initialization is completed, all the nodes are sent on the CAN bus according to a unified plan.
  2. 如权利要求1所述的CAN总线控制方法,其中,所述统一规划包括:为每个节点设置不同的报文开始发送延迟时间长度。The CAN bus control method according to claim 1, wherein said unified planning comprises: setting a different packet start delay length for each node.
  3. 如权利要求1所述的CAN总线控制方法,其中,根据每个节点报文的优先级来设置报文开始发送延迟时间长度。The CAN bus control method according to claim 1, wherein the message transmission delay time length is set according to the priority of each node message.
  4. 如权利要求2所述的CAN总线控制方法,其中,所述统一规划还包括:针对每个节点根据报文的类型设置不同的开始发送延迟时间长度。The CAN bus control method according to claim 2, wherein said unified planning further comprises: setting, for each node, a different start transmission delay time length according to a type of the message.
  5. 如权利要求2所述的CAN总线控制方法,其中,所述统一规划还包括:为事件性报文设置最小发送时间间隔。The CAN bus control method according to claim 2, wherein the unified planning further comprises: setting a minimum transmission time interval for the event message.
  6. 如权利要求2所述的CAN总线控制方法,其中,所述统一规划还包括:根据报文的重要程度动态地改变报文的发送时间周期。The CAN bus control method according to claim 2, wherein the unified planning further comprises: dynamically changing a transmission time period of the message according to an importance degree of the message.
  7. 如权利要求6所述的CAN总线控制方法,其中,所述报文的重要程度根据报文的功能来确定。The CAN bus control method according to claim 6, wherein the importance of the message is determined according to the function of the message.
  8. 如权利要求2所述的CAN总线控制方法,其中,所述报文包括事件性报文和周期性报文。The CAN bus control method according to claim 2, wherein the message comprises an event message and a periodic message.
  9. 一种采用CAN总线的通信系统,其包括:A communication system using a CAN bus, comprising:
    CAN总线;以及CAN bus; and
    连接到所述CAN总线的多个节点,Connected to multiple nodes of the CAN bus,
    其中所述多个节点中的每一个均被设置为采用统一时钟,并且所述多个节点中的每一个均在所述多个节点全部上电且初始化完成之后按照统一规划在所述CAN总线上发送报文。Wherein each of the plurality of nodes is configured to adopt a unified clock, and each of the plurality of nodes is in accordance with a unified plan on the CAN bus after all of the plurality of nodes are powered on and initialized Send a message on.
PCT/CN2017/117204 2016-12-30 2017-12-19 Can bus control method and communication system using can bus WO2018121349A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611257639.3 2016-12-30
CN201611257639.3A CN106921546A (en) 2016-12-30 2016-12-30 CAN control method and the communication system using CAN

Publications (1)

Publication Number Publication Date
WO2018121349A1 true WO2018121349A1 (en) 2018-07-05

Family

ID=59453365

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/117204 WO2018121349A1 (en) 2016-12-30 2017-12-19 Can bus control method and communication system using can bus

Country Status (2)

Country Link
CN (1) CN106921546A (en)
WO (1) WO2018121349A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112532495A (en) * 2020-11-16 2021-03-19 中国汽车技术研究中心有限公司 Vehicle-mounted CAN bus delay optimization method
CN113702850A (en) * 2021-08-27 2021-11-26 深圳市新威尔电子有限公司 Battery detection method for transmitting CAN message based on process flow
CN113740748A (en) * 2021-09-03 2021-12-03 深圳市新威尔电子有限公司 Battery detection method for sending message based on CAN bus
CN114760227A (en) * 2021-03-16 2022-07-15 广州汽车集团股份有限公司 Message sending delay test method, test upper computer and storage medium
CN115664887A (en) * 2022-10-20 2023-01-31 东风汽车股份有限公司 Method for calculating load rate of CAN bus of whole vehicle
CN113740748B (en) * 2021-09-03 2024-04-26 深圳市新威尔电子有限公司 Battery detection method based on CAN bus sending message

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106921546A (en) * 2016-12-30 2017-07-04 蔚来汽车有限公司 CAN control method and the communication system using CAN
CN111327499A (en) * 2018-12-14 2020-06-23 北京宝沃汽车有限公司 Method and device for sending message and automobile
CN112367634B (en) * 2020-11-10 2022-12-13 上海汽车集团股份有限公司 Message sending method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719876A (en) * 2009-12-18 2010-06-02 中控科技集团有限公司 Network communication dispatching method and system
CN103124233A (en) * 2011-11-18 2013-05-29 北京旋极信息技术股份有限公司 Signal relay system and implementation method thereof
CN104434095A (en) * 2014-09-19 2015-03-25 天津大学 Bioelectricity impedance imaging system hardware circuit system based on CAN bus
CN106921546A (en) * 2016-12-30 2017-07-04 蔚来汽车有限公司 CAN control method and the communication system using CAN

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977134A (en) * 2010-11-02 2011-02-16 电子科技大学 Method for uniformly distributing communication network bus load of automobile electronic controller
CN102848996A (en) * 2011-06-28 2013-01-02 张骁懿 Automotive electronic control system
CN104283751B (en) * 2014-10-28 2018-05-08 北京汽车研究总院有限公司 The processing method and processing device of the message of periodicity sending in a kind of CAN bus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719876A (en) * 2009-12-18 2010-06-02 中控科技集团有限公司 Network communication dispatching method and system
CN103124233A (en) * 2011-11-18 2013-05-29 北京旋极信息技术股份有限公司 Signal relay system and implementation method thereof
CN104434095A (en) * 2014-09-19 2015-03-25 天津大学 Bioelectricity impedance imaging system hardware circuit system based on CAN bus
CN106921546A (en) * 2016-12-30 2017-07-04 蔚来汽车有限公司 CAN control method and the communication system using CAN

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112532495A (en) * 2020-11-16 2021-03-19 中国汽车技术研究中心有限公司 Vehicle-mounted CAN bus delay optimization method
CN114760227A (en) * 2021-03-16 2022-07-15 广州汽车集团股份有限公司 Message sending delay test method, test upper computer and storage medium
CN114760227B (en) * 2021-03-16 2023-02-28 广州汽车集团股份有限公司 Message sending delay test method, test upper computer and storage medium
CN113702850A (en) * 2021-08-27 2021-11-26 深圳市新威尔电子有限公司 Battery detection method for transmitting CAN message based on process flow
CN113702850B (en) * 2021-08-27 2024-04-16 深圳市新威尔电子有限公司 Battery detection method for sending CAN message based on process flow
CN113740748A (en) * 2021-09-03 2021-12-03 深圳市新威尔电子有限公司 Battery detection method for sending message based on CAN bus
CN113740748B (en) * 2021-09-03 2024-04-26 深圳市新威尔电子有限公司 Battery detection method based on CAN bus sending message
CN115664887A (en) * 2022-10-20 2023-01-31 东风汽车股份有限公司 Method for calculating load rate of CAN bus of whole vehicle

Also Published As

Publication number Publication date
CN106921546A (en) 2017-07-04

Similar Documents

Publication Publication Date Title
WO2018121349A1 (en) Can bus control method and communication system using can bus
US11362858B2 (en) Method for transmitting data via a communication channel, correspondingly designed device and communication interface, as well as correspondingly designed computer program
Bello Novel trends in automotive networks: A perspective on Ethernet and the IEEE Audio Video Bridging
US10116462B2 (en) Method for transmitting data between nodes of a motor vehicle using an Ethernet transport protocol and control unit configured to carry out said method
US11316654B2 (en) Communication device and method for operating a communication system for transmitting time critical data
Lee et al. Meeting the real-time constraints with standard Ethernet in an in-vehicle network
US20200358711A1 (en) Method of releasing resource reservation in network
WO2023030336A1 (en) Data transmission method, tsn node, and computer readable storage medium
US11323380B2 (en) Method of synchronization of data packet transmission
US20230090803A1 (en) Network Infrastructure Device, Communication Terminal and Method for Synchronizing Control Applications via a Communication Network for Transferring Time-Critical Data
Park et al. Worst-case analysis of ethernet AVB in automotive system
JP6152425B2 (en) Real-time message transmission method and computer network for transmitting real-time messages
CN113940038A (en) Subscriber station for a serial bus system and method for communication in a serial bus system
US8605744B2 (en) Semiconductor integrated circuit device
KR20210141678A (en) Media access to time-sensitive and best effort data packets, and related systems, methods, and devices
US11442432B2 (en) Communication device and method for data transmission within an industrial communication network
Min et al. Performance Enhancement of In-Vehicle 10BASE-T1S Ethernet Using Node Prioritization and Packet Segmentation
Austermann et al. Concepts for Bitrate Enhancement and Latency Reduction in Recurring Disturbed CAN FD Networks
WO2024009398A1 (en) Access point, data reception method, and data reception program
Min et al. Interrupt-enabled Physical Layer Collision Avoidance for 10BASE-T1S Automotive Ethernet
Huo et al. Queuing enhancements for in-vehicle time-sensitive streams using power line communications
US20240015785A1 (en) Systems, devices, and methods related to conserving communication bandwidth with spare time schedule
Yoo et al. Unidirectional ring ethernet for low-complexity in-vehicle control network
EP4312410A1 (en) A can communication controller and a method of operating a can communication controller
Testa et al. Comparative assessment of Time-Sensitive Networking transmission schemes in automotive applications

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17887868

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 11/09/2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17887868

Country of ref document: EP

Kind code of ref document: A1