Method for calculating frame collision rate of frame on CAN (Controller Area Network) bus and method for minimizing CAN bus resources

A technology of CAN bus and calculation method, applied in the field of data transmission, can solve the problems of inability to optimize bus resources, inability to calculate collision frame rate, etc., and achieve the effect of optimal configuration

CN114650195AActive Publication Date: 2022-06-21SHENZHEN POWEROAK NEWENER
5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2022-06-21

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention provides a method for calculating a frame collision rate of a frame on a CAN bus and a method for minimizing CAN bus resources. The method for minimizing the CAN bus resources comprises the following steps: S1, setting an initial CAN bus communication rate; s2, calculating a frame collision rate of each priority frame planned to run on the CAN bus based on an Erlang B formula in a queuing theory at the preset rate of the step S1; s3, judging whether the frame collision rate, calculated in the step S2, of the frame of each priority exceeds the upper limit of the frame collision rate allowed by the frame of the priority or not; if yes, increasing the CAN bus communication rate in the step S1 and entering the step S2 to continue circulation; if not, lowering the CAN bus communication rate in the step S1 and entering the step S2 to continue circulation; and S4, outputting the minimum communication rate corresponding to the frame collision rate upper limit allowed by the frames not exceeding the priorities so as to complete optimization. The invention provides a set of frame collision rate algorithm, so that the required minimum bus resource is calculated according to the upper limit of the frame collision rate of each priority frame, and the resource is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the technical field of data transmission, in particular to a method for calculating the collision frame rate of frames on a CAN bus and a method for minimizing CAN bus resources. Background technique

[0002] In the automobile industry, due to the requirements of safety, comfort, convenience, low power consumption, and low cost, various electronic control systems have been developed. Since the data types used for communication between these systems and the requirements for reliability are not the same, there are many cases composed of multiple buses, and the number of wiring harnesses also increases accordingly. In order to meet the needs of "reducing the number of wire harnesses" and "carrying out high-speed communication of a large amount of data through multiple LANs", in 1986, the German electric company Bosch developed the CAN communication protocol for automobiles.

[0003] The full name of CAN is Controller Area Network...

Examples

Embodiment 1

Embodiment 2