Next Article in Journal
Novel Common-Mode Current Suppression Method in Transformerless PV Grid-Connected System
Next Article in Special Issue
A Chaotic System with Infinite Equilibria and Its S-Box Constructing Application
Previous Article in Journal
Hybrid Fibres as Shear Reinforcement in High-Performance Concrete Beams with and without Openings
Previous Article in Special Issue
Co-Occurrence Network of High-Frequency Words in the Bioinformatics Literature: Structural Characteristics and Evolution
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research of Message Scheduling for In-Vehicle FlexRay Network Static Segment Based on Next Fit Decreasing (NFD) Algorithm

College of Engineering, YanBian University, Yanji 133002, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2018, 8(11), 2071; https://doi.org/10.3390/app8112071
Submission received: 26 September 2018 / Revised: 18 October 2018 / Accepted: 24 October 2018 / Published: 26 October 2018
(This article belongs to the Special Issue Applied Sciences Based on and Related to Computer and Control)

Abstract

:
FlexRay is becoming the in-vehicle communication network of the next generation. In this study, the main contents are the FlexRay network static segment scheduling algorithm and optimization strategy, improve the scheduling efficiency of vehicle network and optimize the performance of communication network. The FlexRay static segment characteristic was first analyzed, then selected bandwidth utilization as the performance metrics to scheduling problem. A signal packing method is proposed based on Next Fit Decreasing (NFD) algorithm. Then Frame ID (FID) multiplexing method was used to minimize the number of FIDs. Finally, experimental simulation by CANoe. FlexRay software, that shows the model can quickly obtain the message schedule of each node, effectively control the message payload size and reduced bus payload by 16.3%, the number of FID drops 53.8% while improving bandwidth utilization by 32.8%.

1. Introduction

With the improvement of the automobile electronization, it results in the rapid increase of modules numbers and more complicated systematic functions for realization more advanced software and electronic functions. For general examples, systems like the airbag, the self-adaptive cruise control, and the traction control are implemented on distributed electrical and electronic architecture to obtain more comfortable and safer vehicle environments.
Whereas the commonly used CAN (Controller Area Network) system has severely restricted the function expansion and cost control of vehicles [1], in 2000, FlexRay union was established by companies of BMW, Daimler Chrysler, Motorola, and Philps and the FlexRay network was developed to have a 20 M/bps of bit rate, the high throughput, and the certainty, as well as a hybrid high-speed communication network with time-division and flexible time-division multiple access. In 2010, FlexRay 3.0 protocol was published [2]. The FlexRay bus network has been applied to high-class commercial vehicles like BMW X5, BMW 7 series, and Audi A8 series [3,4]. In order to satisfy the increasing demand of communication network in vehicle electronic control system under the premise of ensuring the safety and reliability of vehicle bus network system, FlexRay message scheduling fusion technology is a one of the key points.
In this study, based on Next Fit Decreasing (NFD) algorithm for static segment of FlexRay bus, a message optimization scheme will be mentioned to achieve the high efficiency of FlexRay network. This scheme will resolve problems, like synthesizing the schedule of FlexRay static segment, solving the signal and Frame ID (FID) allocation problems, reducing the bandwidth and improving network utilization at the same time, as well as reducing the number of FID.

2. FlexRay Communication Protocol

As shown in Figure 1, the communication of FlexRay network is in a cyclical manner. Cycles on the bus are counting by cycle counters where its range is set from 0 to the maximum number of the system configuration gCycleCountMax. Each communication cycle consists of four parts. They are static segment (ST), dynamic segment (DS), symbol window (SW), and network idle time (NIT). Among them, static segment transmits periodic messages using time division multiple access (TDMA) technology and suitable for high-confidence and security-critical communications [5,6,7].
The FlexRay static segment consists of multiple time slots with the same size. The slot number is recorded by the static slot counter when the signal of frames is transmitting. A FlexRay frame is consists of the header segment, the payload segment, and trailer segment [8,9,10]. As shown in Figure 2, the length of valid data segment is 0–254 bytes. When a frame transmits over the bus, some bits are needed to encode it. Transmission start sequence (TSS) accounts for 3–15 bits, and frame start sequence (FSS) for 2 bits where byte start sequence (BSS) should be added at the front of every byte. Frame end sequence (FES) accounts for 2 bits. Communication idle delimiter (CID) takes another 11 bits and action point offset (APO) accounts for 1–63 macrotick (MT) [11,12,13].
Then, the length of frame is expressed as:
L F L ( j ) = T S S + F S S + 80 + 20 w j + F E S
where: L F L is the length of the message frame. Eighty bits is the sum of the header segment and the trailer segment.
Static slot length can be expressed as:
L S T ( j ) = 2 × A P O + c e i l ( ( ( L F L + C I D ) × t b i t + M i n P D + M a x P D ) ( t M T × ( 1 C D M ) ) 1 )
where L S T is the length of the static time slot in MT (Macrotick); c e i l is the top integral function. t b i t is the time to transfer each bit; M i n P D (Min Propagation Delay) is the minimum of propagation delay; M a x P D (Max Propagation Delay) is the maximum of propagation delay; t M T is the duration of each macro t ; C D M (Clock Deviation Max) is the maximum of clock deviation (0.0015).
It is assumed that there are i nodes in FlexRay bus, the F I D number of each node is denote as F I D e i , ( i = 1 , 2 n ) . The total number of F I D of i nodes can be expressed as:
F I D = i = 1 n F I D e i
Bandwidth utilization indicates how many of the allocated slots in the static segment are used to transmit signal [14]. Because of the different length of the FlexRay static message, the static slot length is determined by the length of the longest static message. Therefore, the purpose of FlexRay static segment scheduling is to ensure periodic message transmitted while minimizing the number of FIDs and maximizing bandwidth utilization.

3. Periodic Signal Packing

Having considered the possibilities of future uses like transmitting large number of signals, more efficient use of bandwidth is necessary. Hence, signal packaging becomes the key point in FlexRay network design. In general packing processes, the message signals were not distinguished from the different transmission period and were packed equally. In the previous study, large periodic signals are repeatedly transmitted because of indistinguishable periodic information from packed signals.
Assuming the previous algorithm without considering a period, packing the signals of 1 and 2 in Table 1 will have the transmission period of 5 ms and 20 ms, the corresponding repetition rates of 1 and 4, respectively. When two signals are packed and transmitted together, the smaller repetition of the two signals is selected as the repetition of the new message. So, signal 2 occupies three times more bandwidth with a data size of 8 bits in one super-period.
In this study, the method packaging the periodic signal independently will be mentioned to avoid wasting the bandwidth and optimize the bus utilization.
Assuming that any signal on i node is assumed to be a quaternion vector s i = { e s i , p s i , r s i , b s i } . Where, e s i is the send node of the signal s i . p s i is the period (ms) of signal s i , r s i is the repetition of signal s i , b s i is the payload length(bit) of signal s i . We packing the signal set S = { s 1 , s 2 , s 3 , , s i } into a message set M = { m i , 1 , m i , 2 , m i , 3 , , m i , j } . Assume that any message on i-node to be a quaternion vector m i , j = { e m i , j , p m i , j , r m i , j , b m i , j , } . Where, e m i , j is the send node message m i , j , p m i , j is period (ms) of message m i , j , r m i , j is the repetition of message m i , j , b m i , j is the payload length(bit) of message m i , j . In order to realize better signals packaging, assumptions of a signal packing model are listed as below.
  • All information of signals are known including the transmission node, transmission period, signal deadline, repetition rate, and the size of signal. The value of transmission period equals to the deadline.
  • All of the transmission periods of signals on FlexRay bus are integral multiples of the communication cycle.
  • There is no error frame on FlexRay bus. Each node can transmit and receive signals.
  • Signals are only packed together when they have same ECU (Electronic Control Unit) and same repetition rates.
In the case of above assumptions, the signal packing is started as follows. Two-dimensional variables x i , j is pulled in and x i , j { 1 , 0 } . x i , j = 1 indicates that the signal s i is packaged into the message m i , j when the ECU of signal s i and message m i , j is same to the transmission cycle, otherwise x i , j = 0 .
x i , j = { 1 , e s i = e m i , j   a n d   p s i = p m i , j 0 , o t h e r w i s e
In order to ensure that each signal is packaged once only, it needs a following formulation:
j = 1 K x i , j = 1 , i = 1 , 2 , , n
The problem of signal packing can be transformed into an open packing problem. The capacity of the box can be converted to the effective payload length of the frame, and the signal is regarded as an item to be packed. Because the length of the frame’s payload is indefinite, the upper and lower bound constraints are set on them. In FlexRay network, the length of the frame’s effective payload segment is the signal length which is packaged into the frame. As shown in Equation (6), the conditions of the package show that the maximum payload length will be got if only the same repetition signal rates are packaged into the same message. As shown in Equation (7), we can obtain the minimum length of the payload if all the signals are in one frame in each node.
l L = max 1 i n   b s i
l H = max 1 i n r s i = 1 m b s i
It will be seen that the length of the payload of the frame is in the range of [ l L , l H ] . Hence, the optimal frame payload length is:
l L l b e s t l H
Therefore, the static segment network utilization can be expressed by Equation (9), where K is the number of packing messages.
m i , j M , s i S    U = i = 1 n s i K × max ( m i , j )
The cycle communication mode is adopted of FlexRay. So, in the communication cycle, the signal of all super-periodic is retransmitted.
T s p = L C M ( p m 1 , 1 , p m 1 , 2 , p m 1 , 3 , , p m 1 , j , p m 2 , 1 , p m 2 , 2 , p m 2 , 3 , ,   p m 2 , j , ,   p m i , j )
When the number of nodes and the number of signals in the FlexRay network are increased multiply, the traditional linear programming model will result in more complicated and difficult processes, as well as longer solving times. In this study, we will use the Next Fit Decreasing (NFD) algorithm to optimize bus utilization.
First in the NFD algorithm, the signal is sorted from large to small according to the data of length, assuming that the length of the signal s 1 , s 2 , s 3 , , s i is L 1 , L 2 , L 3 , , L i respectively, the signal is packaged into a message in a given order. The signal s 1 is putted into slot s l 1 firstly, if L 1 + L 2 l c u r , then s 2 will put in s l 1 , otherwise it will put into s l 2 . Continually, testing whether s 2 could be putted into s l 2 . If can, put into the slot s l 2 , otherwise open the slot s l 3 . Figure 3 is a signal package flow chart, the main operation flow is as follows:
(1).
Obtain the signal information corresponding to each node.
(2).
The signal of each node is arranged in ascending order of the repetition rate, and the signal of the same repetition rate in each node is arranged in descending order of the size of the data bits.
(3).
Calculate the exact value of the payload length of the frame, which means calculate the values of l L and l H , and initialize l c u r = l L , U = 0 .
(4).
According to the NFD algorithm, the nodes are packaged by sequentially. Finally, a message set is obtained.
(5).
Calculate a super-periodic network utilization in the case of the payload length of the current frame, that expressed as U c u r , if U < U c u r , update the current message set.
(6).
Set l c u r = l c u r + 1 and repeat steps (4) and (5), loop until l c u r = l H .
(7).
Take the maximum value of U when the corresponding message set and its corresponding frame payload length l b e s t .

4. Frame ID Reusing

After signal packing, we can get the best length of payload and the best network utilization. Based on this, a schedule of frame ID (FID) reusing is constructed. The reuse of FID is important to scheduling strategy, making the schedule to occupy the least slots under the requirements of real-time system, so as to retain as much free slots. As well as, when new nodes and new frames are added for scaling, not only the flexibility of the static schedule be improved, but also the network resources are saved as much as possible. Scheduling for frames of FlexRay network is shown in Figure 4.
As shown in Figure 4, the repetition of message m 0 , m 3 , m 4 , m 5 is 2, the repetition r m of message m 1 is 4, the repetition of message is determined by sending periodic p m and communication cycle T b u s .
r m = p m T b u s
The period when message m is sent on the bus for the first time is called basic cycle, which can be represented in Figure 4 by the y-offset of the y-axis. So, the base cycle of message m 0 , m 3 , m 4 is 1, the base cycle of message m 1 is 3, and the base cycle of message m 5 is 0. The basic cycle constraints are as follow.
b c m < r m
The relationship between basic cycle b c m and repetition rate r m is shown in Equation (13), N c is the period for sending the current message. Where, b c m { 0 , 1 , , 63 } ,    r m { 1 , 2 , 4 , 5 , 8 , 10 , 16 , 20 , 32 , 40 , 50 , 64 } .
N c m o d r m = b c m
The offset x m is the location in the slot where message m was sent, which can be represented in Figure 4 by the x-offset of the x-axis. Such as the offset of message m 4 is 4, the range of the offset is as shown in Equation (14). Where l s is the size of static slot, l m is the size of message.
0 < x m l s l m
For a set of packaged messages M , the messages are sorted according to the following rules to ensure that the messages are closely arranged in the schedule and do not intersect each other.
(1) The message having the smaller repetition rate will be sent more frequently. So, the message with a smaller repetition rate is arranged transmitting first. For the larger repetition rate of messages, it can be arranged flexibly because of they occupied fewer cycles. Thus, the remaining cycles are used to put them. Therefore, for message of each node, it should be arranged in the ascending order according to the repetition rate of packed messages.
m M , a , b K , a b , r m a r m b ,   0 a b k
(2) For messages with the same repetition, be sure to place the larger message at first, and fill the remaining payload in that slot with the smaller message. Therefore, messages in each node with the same repetition rate should be arranged in the decreasing order of its length.
m M , a , b K , a b , r m a = r m b , l m a l m b ,   0 a b k
(3) They should not intersect for all repeated message in the schedule arrangement. Even if messages m and m have the same slot, the schedule does not intersect because of their different cycles.
i , j N o :   ( b m + r m × i ) mod N c ( b m + r m × j ) mod N c
All messages are sorted in ascending order by repetition rate as shown in Table 2, the repetition of m 2 is same as m 3 and m 4 , sort in descending order of payload size. When the message frame is assigned to the schedule, it is allocated from the low period. The communication cycle of FlexRay is 0–63. Because the frame is sent repeatedly according to the period, the sampling cycle T s p is the super period of frames. In the case of message sent form nodes in Table 2, only 0–7 cycle needs to be considered.
In order to obtain better configure of the schedule, T s p / T b u s rows that have the same slot even though have different periods could be regarded as the same one column. Then, the reciprocal of the repetition is taken and added up. When the sum is 1, the message has been configured to fill this slot. For example, the message repetitions r m are respectively 1, 2, 2, 2, 4, and 8 in Table 2. They have the reciprocal of 1, 1/2, 1/2, 1/2, 1/4, 1/8, respectively. If the repetition of message is 1, it indicates that one slot is full filled. If the reciprocal of m 2 and m 3 is 1/2, they will occupy one slot. In the other case, the cumulative sum of messages m 4 , m 5 , m 6 is 7/8. Though the sum of them is less than 1, the nodes of messages has been assigned slots, so the message m 4 , m 5 , m 6 will occupy a whole slot. The scheduling strategy which was provided in this paper was used in Table 2 to get the schedule shown in Figure 5.
FID can be shared when frames are from the same node. For each node e i , required number of FID is:
F I D e i = j = 1 k 1 r m i , j
The equation is extended to a system with k frames for n nodes, Then, required number of FID is given by Equation (19).
F I D e i = i = 1 n F I D e i

5. Experimental Results

To evaluate our message scheduling method, we applied it to the communication system which has 4 nodes in BMW X7. The duration of communication cycle is the typical value of 5 ms in where the static segment occupies 3 ms and the dynamic segment occupies 2 ms. And other simulation parameters are shown in Table 3. The table shows the configuration of FlexRay network parameters dedicated to construct the data frame. In this study, we designed experiments with two different sets of data (Table 4 and Table 5). Table 4 shows the SAE benchmark data. Table 5 shows the signal parameters of BMW’s 7 series where signal repetition rate is set to 1, 2, 4 and 8 respectively. Both of Table 4 and Table 5 shows in detail about the period of transmitted signals of each ECU, repetition, and data length. The experiment was as follows.
(1) Using the SAE benchmark data. Let signals of Table 4 as experimental raw data. Repetition values are set to 1, 2, and 20. The sample signal’s length is equal to 8 bits and randomly expanded. The proposed algorithm and BCBFD algorithm which BC and BFD is an abbreviation of Bandwidth Consumption and Best Fit Decreasing respectively [15], are used to the signal set packing, respectively. Compared the upper and lower limits of payload data payload length, as well as bus utilization and the number of slots.
Figure 6 shows that how the upper and lower bound of the frame’s payload of l L , l H change when the number of signals increases. As shown in Figure 6, the lower bound of the frame payload length of the two algorithms is fixed and have equal values. It is determined by the maximum value of the length of all signals in the node. It results in the effective length of 8 bits in a single signal payload without considering a signal expanding. Even in the case of continually increased l H , it can be seen that the NFD scheduling algorithm can effectively control the increase of the upper bound of the payload, and save operation time.
As shown in Figure 7, the result of the curve of network utilization indicates that the average network utilization rate of scheduling algorithm proposed in this paper has a higher value than the average network utilization rate of BCBFD algorithm. Even though the network utilization of BCBFD algorithm increases with the number of signals, there is a gap that compared with the algorithm in this paper. This shows that the NFD scheduling algorithm has a stronger ability to save network resources.
The comparison of the slot number is shown in Figure 8. The number of FIDs in BCBFD algorithm increases linearly with the number of messages, while the number of FIDs in NFD algorithm increases slowly. The conclusion is that the NFD scheduling algorithm is stronger than the BCBFD algorithm in resolving scheduling problems of static segment.
BCBFD algorithm and NFD scheduling algorithm execution time ratio is shown in Figure 9. The bound of upper and lower of the length payload segment are precisely calculated, also effectively reduced. The number of iterations of the algorithm is reduced, and the execution efficiency of the algorithm is improved.
(2) Using the BMW’s 7 series data, to show the benefits of the NFD algorithm, we used the illustrative case, and compared with BCBFD algorithm [15]. The experiment is based on the vehicle bus simulation tools Network Designer and CANoe. FlexRay where the network system is built on. The case uses the data of Table 5. The signal data length is 2–20 bit, the payload length is taken as 20–56 bits, and the repetition rate of BMW 7 Series are 1, 2, 4, and 8.
Using the data in Table 5, two algorithms were used to packing the signal sets into frames to obtain the respective package combinations. They are shown in Table 6 and Table 7. Without modification in the numbers of both ECU and transmitted signal, based on the NFD algorithm proposed in this paper and the BCBFD algorithm [15], a reconstruction of transmitted signal is executed. Then, the database is built by Network Designer, and imported into the softwares CANoe and FlexRay. As shown in Figure 10, four node ECUs are set up in the simulation network of CANoe. FelxRay that are used to transmitted frames. The proposed NFD algorithm and BCBFD algorithm were simulated and compared. Network performances of two different algorithms are compared and shown in Table 8. Data in the table shows that the busload is reduced by 16.3%, the bandwidth utilization is increased by 32.8%, and the number of frame FIDs is reduced by 53.8%. The proposed algorithm can reduce the number of time slots and effectively reduce the network payload, and the network utilization has also been improved.

6. Conclusions

This study focused on the FlexRay static segment scheduling, and analyzed transmission characteristics of static segment message, then, proposed the network evaluation criteria. Using NFD algorithm, the signal encapsulation problem is converted to a packing problem. At the same time, a scheduling strategy for message FID multiplexing is established to optimize the transmission of message. The simulation system was established by Network Designer. FlexRay software and CANoe. FlexRay software. The simulation results show that the proposed algorithm could reduce the bus load by 16.3%, the bandwidth utilization by 32.8%, as well as decrease the number of FIDs by 53.8%. The FlexRay static segment message improves the transmission efficiency.

Author Contributions

Y.X. (Yinan Xu): conceptualization and supervision; S.J.: methodology and writing of original draft; M.L. and J.Z.: software and formal analysis; Y.W. and Y.X. (Yihu Xu): validation and review & editing of original draft.

Funding

This research was funded by National Natural Science Foundation of China Grant Number 61763047.

Acknowledgments

This research was supported by National Natural Science Foundation of China Grant Number 61763047.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Dvorak, J.; Hanzalek, Z. Using Two Independent Channels with Gateway for FlexRay Static Segment Scheduling. IEEE Trans. Ind. Inform. 2016, 12, 1887–1895. [Google Scholar] [CrossRef]
  2. FlexRay Consortium. FlexRay Communications System Protocol Specification Version 3.0.1. Available online: www.flexray.com (accessed on 28 March 2017).
  3. Kötz, J.; Poledna, S. Making FlexRay a reality in a premium car. In Proceedings of the SAE Convergence 2008, Detroit, MI, USA, 20–22 October 2008. [Google Scholar]
  4. Cakmak, C.; Schmidt, E.G.; Schmidt, K.W. A Fast and Optimal Static Segment Scheduling Method for FlexRay v3.0. In Proceedings of the 25th Signal Processing and Communications Applications Conference, Antalya, Turkey, 15–18 May 2017. [Google Scholar] [CrossRef]
  5. Sagstetter, F.; Lukasiewycz, M.; Chakraborty, S. Generalized Asynchronous Time-Triggered Scheduling for FlexRay. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2017, 36, 214–226. [Google Scholar] [CrossRef]
  6. Schmidt, K.; Schmidt, E.G. Message Scheduling for the FlexRay Protocol: The Static Segment. IEEE Trans. Technol. 2009, 58, 2170–2179. [Google Scholar] [CrossRef]
  7. Souto, P.F.; Portugal, P.; Vasques, F. Reliability Evaluation of Broadcast Protocols for FlexRay. IEEE Trans. Veh. Technol. 2016, 65, 525–541. [Google Scholar] [CrossRef]
  8. Xu, Y.N.; Kim, Y.E.; Cho, K.J.; Chung, J.G.; Huang, X.M. Implementation of FlexRay CC and BG Protocols with Application to a Robot System. Int. J. Comput. Aided Eng. Technol. 2010, 2, 232–237. [Google Scholar] [CrossRef]
  9. Shreejith, S.; Fahmy, S.A. Extensible FlexRay Communication Controller for FPGA-Based Automotive Systems. IEEE Trans. Veh. Technol. 2015, 64, 453–465. [Google Scholar] [CrossRef] [Green Version]
  10. Xu, Y.N.; Kim, Y.E.; Cho, K.J.; Chung, J.G.; Lim, M.S. Implementation of FlexRay Protocol with an Automotive Application. In Proceedings of the IEEE International SoC Design Conference, Busan, Korea, 24–25 November 2008. [Google Scholar] [CrossRef]
  11. Hua, Y.; Liu, X.; He, W.B.; Feng, D. Design and Implementation of Holistic Scheduling and Efficient Storage for FlexRay. IEEE Trans. Parallel Distrib. Syst. 2014, 25, 2529–2539. [Google Scholar] [CrossRef]
  12. FlexRay Consortium. FlexRay Communications System Protocol Specification Version 2.1. Available online: www.flexray.com (accessed on 5 June 2006).
  13. Zhao, R.; Qin, G.H.; Liu, J.Q. Optimal Scheduling of the Flexray Static Segment Based on Two-Dimensional Bin-Packing Algorithm. Int. J. Automot. Technol. 2016, 17, 703–715. [Google Scholar] [CrossRef]
  14. Park, I.; Sunwoo, M. FlexRay Network Parameter Optimization Method for Automotive Applications. IEEE Trans. Ind. Electron. 2011, 58, 1449–1458. [Google Scholar] [CrossRef]
  15. Kang, M.; Park, K.; Jeong, M. Frame packing for minimizing the bandwidth consumption of the FlexRay static segment. IEEE Trans. Ind. Electron. 2013, 60, 4001–4007. [Google Scholar] [CrossRef]
Figure 1. FlexRay communication cycle. ST, static segment; DS, dynamic segment; SW, symbol window; NIT, network idle time.
Figure 1. FlexRay communication cycle. ST, static segment; DS, dynamic segment; SW, symbol window; NIT, network idle time.
Applsci 08 02071 g001
Figure 2. FlexRay message frame format.
Figure 2. FlexRay message frame format.
Applsci 08 02071 g002
Figure 3. Frame packing flow chart.
Figure 3. Frame packing flow chart.
Applsci 08 02071 g003
Figure 4. Frame schedule for FlexRay.
Figure 4. Frame schedule for FlexRay.
Applsci 08 02071 g004
Figure 5. Message schedule for an ECU.
Figure 5. Message schedule for an ECU.
Applsci 08 02071 g005
Figure 6. Bound limits of the frame payload segment.
Figure 6. Bound limits of the frame payload segment.
Applsci 08 02071 g006
Figure 7. Comparison of network utilization.
Figure 7. Comparison of network utilization.
Applsci 08 02071 g007
Figure 8. Comparison of frame ID (FID).
Figure 8. Comparison of frame ID (FID).
Applsci 08 02071 g008
Figure 9. Running time ratio.
Figure 9. Running time ratio.
Applsci 08 02071 g009
Figure 10. The node set of FlexRay simulation system.
Figure 10. The node set of FlexRay simulation system.
Applsci 08 02071 g010
Table 1. Signal message of frame.
Table 1. Signal message of frame.
SignalPeriod (ms)RepetitionSize (bit)
1518
22048
Table 2. Messages required for sending of an ECU (Electronic Control Unit).
Table 2. Messages required for sending of an ECU (Electronic Control Unit).
MessageRepetitionSize (bit)MessageRepetitionSize (bit)
m 1 11 m 4 22
m 2 28 m 5 416
m 3 24 m 6 811
Table 3. FlexRay network parameter values.
Table 3. FlexRay network parameter values.
ParameterValueUnitParameterValueUnit
APO1MTCID11bit
TSS9bitgdBit0.1µs
FSS1bitgdMacrotick1µs
BSS2bitBitrate10Mbit/s
FES2bit t M T 1µs
APO, action point offset; TSS, transmission start sequence; FSS, frame start sequence; BSS, byte start sequence; FES, frame end sequence.
Table 4. SAE benchmark data.
Table 4. SAE benchmark data.
SignalECUPeriod (ms)RepetitionSize (bit)
11100208
2100208
3100208
4100208
52518
6518
7100208
83518
94518
10518
115518
12100208
136558
14558
151028
161028
Table 5. FlexRay network signal set.
Table 5. FlexRay network signal set.
SignalECURepetitionSize (bit)SignalECURepetitionSize (bit)
1112026 420
2 1227 16
3 1028 8
4 21629 8
5 12303216
6 1031 12
7 832 10
8 833 8
9 41634 416
10 1235 15
11 1036 12
12 837 8
13 838 816
14 82039 10
15 1640 8
16 1241 8
17 8424216
18211243 12
19 1044 10
20 245 8
21 22046 8
22 1647 810
23 1048 8
24 849 8
25 250 2
Table 6. Signal packing for Next Fit Decreasing (NFD) scheduling.
Table 6. Signal packing for Next Fit Decreasing (NFD) scheduling.
MessageSignalECURepetitionSize (bit)
11, 2, 31142
24, 5, 6, 7, 8 254
39, 10, 11, 12, 13 454
414, 15, 16, 17 856
518, 19, 202124
621, 22, 23, 24, 25 256
726, 27, 28, 29 452
830, 31, 32, 333246
934, 35, 36, 37 451
1038, 39, 40, 41 842
1142, 43, 44, 45, 464254
1247, 48, 49, 50 828
Table 7. Signal packing for BCBFD (Bandwidth Consumption and Best Fit Decreasing) scheduling.
Table 7. Signal packing for BCBFD (Bandwidth Consumption and Best Fit Decreasing) scheduling.
MessageSignalECURepetitionSize (bit)
11, 14, 41140
29, 15, 2 148
35, 10, 16, 3 248
46, 11, 7, 8, 12 246
513, 17 424
621, 26, 222240
727, 18, 19 144
823, 24, 28, 29, 20, 25 248
930, 34, 38, 353248
1031, 36, 32 249
1133, 39, 37, 40, 41 242
1242, 43, 44, 47, 454248
1346, 48, 49, 50 234
Table 8. Network performance comparison.
Table 8. Network performance comparison.
Network PerformanceNFD AlgorithmBCBFD Algorithm
Total frames10251225
Null frames00
Busload7.23%8.75%
Bandwidth utilization83%62.5%
FID number613

Share and Cite

MDPI and ACS Style

Jin, S.; Liu, M.; Wu, Y.; Xu, Y.; Zhang, J.; Xu, Y. Research of Message Scheduling for In-Vehicle FlexRay Network Static Segment Based on Next Fit Decreasing (NFD) Algorithm. Appl. Sci. 2018, 8, 2071. https://doi.org/10.3390/app8112071

AMA Style

Jin S, Liu M, Wu Y, Xu Y, Zhang J, Xu Y. Research of Message Scheduling for In-Vehicle FlexRay Network Static Segment Based on Next Fit Decreasing (NFD) Algorithm. Applied Sciences. 2018; 8(11):2071. https://doi.org/10.3390/app8112071

Chicago/Turabian Style

Jin, Shiyi, Mengzhuo Liu, Yujing Wu, Yihu Xu, Jingnan Zhang, and Yinan Xu. 2018. "Research of Message Scheduling for In-Vehicle FlexRay Network Static Segment Based on Next Fit Decreasing (NFD) Algorithm" Applied Sciences 8, no. 11: 2071. https://doi.org/10.3390/app8112071

APA Style

Jin, S., Liu, M., Wu, Y., Xu, Y., Zhang, J., & Xu, Y. (2018). Research of Message Scheduling for In-Vehicle FlexRay Network Static Segment Based on Next Fit Decreasing (NFD) Algorithm. Applied Sciences, 8(11), 2071. https://doi.org/10.3390/app8112071

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop