Next Article in Journal
Robust Radiation Sources Localization Based on the Peak Suppressed Particle Filter for Mixed Multi-Modal Environments
Next Article in Special Issue
A Novel Dual-Band Six-Phase Voltage-Control Oscillator
Previous Article in Journal
Road Scene Simulation Based on Vehicle Sensors: An Intelligent Framework Using Random Walk Detection and Scene Stage Reconstruction
Previous Article in Special Issue
Sensing and Reliability Improvement of Electrostatic-Discharge Transient by Discrete Engineering for High-Voltage 60-V n-Channel Lateral-Diffused MOSFETs with Embedded Silicon-Controlled Rectifiers
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Reliability Scheduling Algorithm for the Static Segment of FlexRay on Vehicle Networks †

Department of Electronic Engineering, National Taipei University of Technology, Taipei 10608, Taiwan
*
Author to whom correspondence should be addressed.
This work is an extended version of the conference paper published in the 7th IEEE International Symposium on Next Generation Electronics entitled “Fast Reliability Scheduling Algorithm for the Static Segment of FlexRay for Vehicle Network”.
Sensors 2018, 18(11), 3783; https://doi.org/10.3390/s18113783
Submission received: 29 August 2018 / Revised: 22 October 2018 / Accepted: 2 November 2018 / Published: 5 November 2018

Abstract

:
FlexRay is a next-generation in-vehicle communication protocol which works in real time with flexibility. The most common applications in FlexRay are high bandwidth. X-by-wire applications, such as brake by wire and throttle by wire. However, there is no mechanism which can prevent transient faults in the application layer of FlexRay. If a transient fault occurs during driving, this would be very dangerous; therefore, we propose a fast reliability scheduling algorithm (FRSA) to improve the communication reliability of FlexRay. The proposed method reduces the probability of transient faults in one clock cycle by using a retransmission mechanism to recover the transient errors, and further improves computational complexity using the lookup table method to ensure system reliability. In this paper, we analyze a related literature to establish the system reliability constraints needed to evaluate the necessary time and slot usage, and the proposed cost function is used to evaluate the performance and efficiency when the number of messages is increased. Experimental results show that the proposed FRSA reduces execution time by an average 70.76% and cost by an average 13.33% more than the other existing methods. This method can be useful to others, especially regarding research about periodic time-triggered communication systems.

1. Introduction

Next-generation automotive systems will be equipped with an increasing number of components, such as electronic control units (ECUs) and sensors, which are connected through various buses. In order to deal with the amount of data and signals between ECUs or sensor nodes, traditional point-to-point communication has been replaced by vehicle networks such as controller area network (CAN) and FlexRay [1]. Modern automotive systems are moving from CAN to FlexRay. FlexRay is an automotive networking standard, and it has been increasingly adopted in the vehicle dynamics domain and inter-domain communications [2]. The advantages of FlexRay are its real-time operation, flexibility, a maximum data rate of up to 10 Mb/s, two communication channels, precise control and fault tolerance when compared with other vehicle networks. These characteristics mean that FlexRay is a fast and dependable network protocol and is often used for new safety features, such as X-by-wire [3] applications, where deterministic performance is critical. In a FlexRay bus, the communication cycle level consists of static segments, dynamic segments, symbol windows, and network idle time. Static segments were designed using a time-division multiple-access (TDMA) mechanism, and are accessed by time-triggering for safety-critical systems such as drive-by-wire, adaptive cruise control (ACC), and antilock braking systems (ABS) [4,5]. However, radiation, crosstalk, electromagnetic interference (EMI) and power supply noise in the environment cause a lot of interference for the vehicle network [6]. If a transient fault occurs, it will result in transmission delay, data loss, and a miscalculation in logic, which is very dangerous during driving. However, FlexRay does not have an application layer scheme to avoid transient faults in the static segment. The time slot of the static segment is used to store messages which should be transmitted periodically.
Therefore, many studies have been performed on how to offer increased reliability for FlexRay. First, Li et al. [7] formulated the scheduling problem as a mixed integer linear program. This method improves scheduling by minimizing the latencies of the acknowledgement and re-transmission messages, but this work offers no guarantees for reliability. In contrast to [7], Tanasa et al. [8] proposed an algorithm which provides formal guarantees that the generated fault-tolerant message is scheduled in the static segment of FlexRay. However, this algorithm cannot generate the optimal retransmission scheme to reduce the slot utilization. In [9], Li et al. proposed a heuristic algorithm H-I method. They designed an evaluation function to determine which message should be re-transmitted, and its performance is better for bandwidth utilization and execution time than Tanasa’s method [8]. The work in [10] by Lee et al. proposed a method to ensure the reliability of systems using a reliability three-step (RTS) method. This method cannot satisfy the system reliability goal when the number of messages exceeds 25 because the slot utilization has reached 100%; this means that there is an insufficient number of slots to use in the testing time (τ). Wang et al. [11] proposed a frame-packing algorithm based on transmission reliability (FPBTR) to optimize signal combinations and static slot allocations. However, the FPBTR method will have a greater time cost for meeting the demands of the desired reliability. Liu et al. [12] proposed a prompt retransmission mechanism (PRTM) method to ensure the safety-critical communications of FlexRay; they pointed out that retransmission should be studied to optimize the bandwidth utilization. For these reasons, we proposed a new fast reliability scheduling algorithm (FRSA) by considering the low complexity and optimized static slot allocations in [13]. In this paper, we describe the proposed FRSA in more detail to improve the reliability in the static segment of FlexRay communication, which increases the reliability of messages by re-transmission. In addition, the proposed FRSA makes a significant improvement in running time by using lookup table method compared to the previous algorithms, even in the case of a greater number of messages; this will be shown in the experimental results.

2. Proposed Methodology

This section presents the proposed fast reliability scheduling algorithm (FRSA) and its system architecture, including the re-transmission mechanism to recover transient errors, how to implement the static segment of FlexRay, and the communication reliability improvement method.

2.1. System Architecture and Design

The retransmission mechanism to recover transient errors is popularly used in communication [12,14]. The proposed retransmission mechanism generates a fault-tolerant scheduling framework by transmitting the same message repeatedly, as shown in Figure 1.
The retransmission mechanism (i.e., duplicating messages) is based on time redundancy mechanisms in the static segment of FlexRay. In the example, we assume that the probability of failure (PFi) of M2 is bigger than M1. When the process occurs without a message re-transmission mechanism, the values of the re-transmission times (RTi) of M1 and M2 are both 0. For a system with a message re-transmission mechanism, M2 should be retransmitted because M2 has a lower reliability than M1. We now modify RT1 and RT2 to be 0 and 1, respectively.
The message will be successfully delivered with the retransmission mechanism to avoid transient failure. The reliability of each message (Mi) is closely related with the retransmission times (RTi) and probability of failure (PFi). Message reliability is estimated according to Equation (1), and is equal to that shown in [8]. According to the global success reliability (GS), obtained by multiplying the probability of each message, increasing the probability of the successful delivery of each message will help to further improve the reliability of the system. In the fault-tolerant scheduling framework, Mij means the retransmitted message, where i = 1, 2, …, n, and j are the retransmission times to identify whether a message type is a copy or new, and its range is 1 to the total number of slots in the static segment to ensure that there are enough slots for retransmission:
  ( 1     P F i   R T i + 1 ) τ T i  
The proposed FRSA architecture and parameters according to the above retransmission mechanism are shown in Figure 2. It is composed of three units: the message generator and the message reliability processing and scheduling output modules. The FlexRay parameters and lookup table are some parameters required for the system and corresponding new GSmi values, respectively. In addition, there are two methods for the handling of a large number of messages in the proposed algorithm. First, each message is sorted by its GSmi in descending order; this step excludes the messages that do not need to be retransmitted. Second, in order to meet reliability and deadline constraints in the case of a greater number of messages, computation is performed using a lookup table method instead of an iterative solution. We describe the proposed algorithm in more detail in the next section.

2.2. Message Generator

A set of messages, M, is generated by the message generator module in the static segment. M = {M1, M2, …, Mn}, and each message Mi consists of four parameters, as in Equation (2), where Ti denotes the generation rate of Mi, and Di is the relative time of Mi since it was produced until the end of transmission. PFi and Si are the probability of failure during transmission and the size of Mi in bits, respectively. PFi can be computed as Equation (3), where the bit error rates (BER) value is decided according to the type of wire and the environment [15]. On the other hand, when the message is stored in a slot, its parameter Di should be less than or equal to Ti to avoid being overwritten by other messages before transmission, as in Equation (4):
M = {Mi (Ti, Di, PFi, Si), i = 1, 2, …, n}
  P F i   =   1     ( 1     BER ) S i  
    m   M ,   D i     T i  

2.3. FlexRay Parameters

This module provides some parameters required of a message when the message Mi is transmitted over the static segment of FlexRay:
  • Length of FlexRay communication cycle (LFC): the length of one communication cycle in FlexRay;
  • Length of static segment (LST): the static segment length of a FlexRay communication cycle;
  • Number of static slots (Nslot): total number of slots in the static segment, within the range 1–1023;
  • Length of static slot (Lslot): the length of a slot in the static segment, Lslot = LST/Nslot;
  • Testing time (τ): the time required to test fault tolerance in the system. τ is typically one hour (3,600,000 ms);
  • System reliability goal (SR): reliability goal for the system. The reliability goal for a communication system (SR) means that the reliability of the system is necessary for transmitting a message.

2.4. Message Reliability Processing Module

The FlexRay protocol is widely used for in-vehicle communication; however, it has no mechanism to prevent transient faults in its application layer. Therefore, improved communication reliability for FlexRay is important. The function of the message reliability processing module is to ensure reliability by computing the number of times a message delivery is duplicated for a static message in FlexRay. The flowchart of the message reliability processing module is shown in Figure 3. We attempt to increase the reliability of messages and then denote them with the following parameters:
  • GSmi: This estimates the probability of success (reliability) for a message (Mi) in transmission, as in Equation (5), which is equal to that in [8]. Mi consists of four parameters; in addition, it has a probability of failure and re-transmitted time (RTi). The parameter is used to improve the probability of success by re-transmission;
  • Global success reliability (GS): This denotes the probability that all the messages (M) can be successfully transmitted at least once in the testing time (τ). If the reliability of message (M) which is computed in this module is bigger than or equal to the system reliability goal, the system is reliable in transmission and sends all messages to the scheduling output module. M consists of each message (Mi); therefore, GS is obtained by multiplying each GSmi, as in Equation (5):
      G S = i = 1 n G S m i   =   i = 1 n ( 1 P F i R T i + 1 ) τ T i  
  • Single message reliability goal (SRmi): This parameter denotes the reliability goal of each message. SRmi must be bigger than or equal to the system reliability goal (SR). According to Equation (5), GS is obtained by multiplying each GSmi: in fact, GS does not meet SR when the reliability goal of each message (SRmi) is equal to SR. This is because each GSmi is less than 1 so that the multiplication result (GS) will fail to meet the system reliability goal.
A communication system is usually subject to reliability and deadline constraints (Di). The estimation of the failure probability of message transmission is critical for the scheduling algorithm. In this module, first, each message (Mi) is sorted by GSmi in descending order. Sorting is a fast and effective method to reduce the procedure of the re-computed SRmi and RTi. For example, the order is GS1 > GS4 > GS3 > GS2 after sorting, if GS1 × GS4 > SR, and then these are multiplied by GS3. SRmi and RTi must be re-computed when the multiplication result fails to meet SR. The proposed method sorts each message (Mi) and then excludes the messages that do not need to retransmitted to further improve slot utilization. How to obtain SRmi is described in the next section.

2.5. Lookup Table Method

According to the above method, the FlexRay message M must be retransmitted to improve the communication reliability when GS fails to meet SR. The multiplication result of GSmi is defined as Equation (6), where k denotes the number of scheduled messages. We assume that k is 5 and SR is 0.99, which means GSmi5 ≥ 0.99, and GMmi for each scheduled message must be greater than or equal to 0.998. Then, by the square root formula, we can now convert Equation (6) into Equation (7), where New_SRmi is used to obtain a new GSmi value:
G S m i k     System   Reliability   Goal   ( S R )
N e w _ S R m i     S R k  
The communication requirements for automotive systems are the means of data stability and speed of processing. Many studies have been published on the method of calculating new GSmi values [8,10]. However, these methods have a high computational cost due to their iterative algorithm, and it is difficult to estimate the total running time of the procedure. In addition, the reliability of the global message may fail to meet the system reliability goal in the case of a greater number of messages. The proposed FRSA utilizes a pre-computed lookup table as a database to construct New_SRmi very quickly, where the New_SRmi is of a number of scheduled messages from 10 to 60. In general, the time complexity of the lookup table method and iterative algorithm are O(1) and O(n2), respectively, where n is related to the number of messages. This makes sure that the New_SRmi meets SR at only one step in time (O(1)) in this process. The proposed method improves the execution time over the previous algorithms, even in the case of a greater number of messages. This will be shown in the experimental results:

2.6. Scheduling Output Module

After the message reliability processing module, the next step will estimate the scheduling of all messages. The scheduling output module is used to make sure all messages can be transmitted before their deadline. Tanasa et al. [8] proposed bounding retransmissions to bound the minimum number of retransmissions required that must be done in order to achieve the system reliability goal. In the proposed method, this module is denoted with the following upper and lower bound constraint parameters:
  • Maximum retransmission times (RTi(max)): slot utilization is also an important factor for successful transmission. When slot utilization is bigger than 1, it will cause message transmission failure. This means that the number of slots used for message retransmission is over the total number of slots in the static segment (Nslot). Therefore, we can now denote RTi(max) as Equation (8):
    i = 1 n ( R T i ( max ) + 1 )     N s l o t  
  • Minimum retransmission times (RTi(min)): the proposed method improved the reliability of the system using a message re-transmission mechanism. Essentially, there are too few re-transmission times to achieve the system reliability goal (SR). RTi(min) relates with SRmi and PFi, as in Equation (9):
      R T i ( min )     log ( 1 S R m i T i τ ) log P F i     1  

2.7. Proposed Fast Reliability Scheduling Algorithm

Algorithm 1 is the proposed fast reliability scheduling algorithm (FRSA). In the beginning, each message M is computed by the RTi(min) and GSmi (lines 1 and 2). After obtaining these two values, we have the initial global success reliability (GS).
Algorithm 1 The proposed fast reliability scheduling algorithm
Inputs: M, System reliability goal (SR); Outputs: re-transmitted times (RTi)
1: for each Mi do
2:  compute RTi(min) and GSmi
  end_for
3: if (Global Success Reliability ≧ System Reliability goal) then Schedulability Analysis
  /* GS does not meet SR, start to re-compute SRmi and RTi */
4: else sort GSmi in descending order to obtain GS1 > GS2 >…> GSn (Equation (5))
  end_if
5: for j = 1 to n − 1 do
6:  until ( i = 1 j ( 1 P F i R T i + 1 ) τ T i S R &&   i = 1 j + 1 ( 1 P F i R T i + 1 ) τ T i S R ) then
   /* to exclude the messages that do not need to be re-transmitted */
7:  TempGS = SR / i = 1 j ( 1 P F i R T i + 1 ) τ T i
  end_for
8: for I = 1 to n do
9:   if (GSmiTempGS) then RTi = RTi(min)
10:   else re-compute RTi(min) and GSmi using New_SRmi =TempGS
    end_if
11:   if (Global Success Reliability < System Reliability goal)
12:    for i to n do
13:     re-compute RTi(min) and GSmi with New_SRmi using lookup table method
     end_for
    end_if
  end_for
14: if (Global Success Reliability ≥ System Reliability goal) then Schedulability Analysis
15: else goto Line 4
  end_if
16: return {RT1, RT2,…, RTn}
As in the discussion above on the characteristics of FlexRay, GS cannot meet the system reliability goal (SR) in most transmissions; therefore, SRmi and RTi are re-computed with recovery mechanism. Sorting is an important step, making the procedure of re-computation more effective (Line 4). To achieve an efficient execution time and slot utilization, the proposed algorithm multiplies each GSmi until the multiplication value does not meet SR, then the tempGS is used to obtain which messages have to be re-computed by the SRmi and RTi (Line 6 and 7). If the GSmi is smaller than tempGS, the New_SRmi of the message is obtained from tempGS according to the New_SRmi (Line 10). In some cases, GS still does not meet SR, and the proposed mechanism re-computes the single message reliability goal for each message M, selected according to the lookup table method, which can provide a near-optional reliability goal for the reliability of the system (Line 13). Finally, we can check whether GS is bigger than or equal to the reliability goal or not (Line 14). If true, schedulability analysis processing is performed or re-computed by SRmi and RTi (Line 15). Based on algorithm analysis, the complexity of the proposed fast reliability scheduling algorithm is O(n2), where n is the number of messages.

3. Experimental Results

In this section, the experimental environment and validation for the proposed method are described as follows. Then, we will discuss the experimental results, comparing our approach and three related studies.

3.1. Experimental Environment and Validation

The proposed algorithm is implemented on a Windows 7 machine running an Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz with visual studio 2015 by C++ language. The validation applied 51 cases which were generated for 10 to 60 messages: there are 100 examples in each case. The message parameters of FlexRay, such as Ti, Di, PFi, and Si, are randomly generated. The periods and PFi are varied between 2 ms and 40 ms while the deadline is the same as the period and 1% and 50%, respectively. The period of a FlexRay communication cycle is 5 ms, LFC is 3 ms and Nslot is 450, and SR is 0.99. The above parameter configurations are according to the BMW specification and are also adopted in the literature [8].
The validation of the proposed method uses three cases: message transmission with and without the proposed FRSA, with the other case unable to be scheduled. Data in Table 1 show the five messages which should be transmitted and their parameters. The global success reliability (GS) approaches 0 by applying Equation (5). GS does not meet SR because of being without a message re-transmission mechanism. In almost every case, the recovery mechanism is a necessary processing step to ensure the communication reliability of the FlexRay protocol. The test case applied the proposed FRSA to re-compute the SRmi and RTi; we can see that FRSA increases the GS to 0.9987. The proposed FRSA re-computed each corresponding RTi, and then messages M1~M5 are sorted by their GSmi in descending order. The overhead of the re-transmission mechanism is an increase of bandwidth utilization. The utilization increase of bandwidth (slot) can be explained because of the recovery mechanism for the re-transmitted messages.
There are two conditions which are unable to be scheduled. In one, the GS does not meet the system reliability goal (SR). In the other, the slot utilization is over the upper bound (Nslot). This means that there is available bandwidth that can be used to re-transmit messages, meaning that the RTi rule cannot be followed, causing lower reliability.

3.2. Performance Evaluation

In order to evaluate the performance of the proposed algorithm, we compared the execution time and slot utilization with existing algorithms [9,10,11]. This comparatively analyzes the related work to achieve the desired reliability target needed to determine the running time and slot usage. The slot utilization is related to the bandwidth utilization of FlexRay, as in Equation (10):
Slot   Utilization   = u s e d   s l o t s a l l   s l o t s   = 1 n R T i + 1 T i × L F C   N s l o t     1  
These methods [9,10,11] show the execution time and slot utilization in experimental results; however, they did not discuss the relationship between performance (running time) and resource utilization (slot usage) when the number of messages is increased. Now that we have proposed a cost function, we can use it to analyze the performance and efficiency of previous works, as in Equations (11)–(13):
cost = K1 × f(∆time) + K2 × f(slot)
f(∆time) = slope(ti, ti−1)/∆number of message × 100%, i = 2, …, n
f(slot) = slot utilization/number of messages
where K1 and K2 are the weight factors in the cost function, and they are the same and equal to 1 to balance the performance and resource utilization. f(∆time) is used to evaluate the rates of change (slopes) between the running time and the increased number of messages. Note that the cost value will be invalid in two cases: f(∆time) is negative when ti is smaller than ti−1, and the other is the lowest number of messages is the baseline for the slope function. f(slot) indicates the resource utilization of a single message in each experiment.
First, the experimental data will be separated into three parts according to the different parameter configurations of existing methods. The message parameters are generated by random and each setting has 100 examples. The FlexRay bus parameters are fixed in Setting 1 and Setting 3, and are not fixed in Setting 2, as shown in Table 2. In addition, these results are also compared directly by cost value. The comparison and analysis of the proposed FRSA and existing methods in each setting are as follows.
• Comparison 1, Li’s method [9]
In [9], there are 16 test cases with fixed parameters in FlexRay in the experiment. In particular, the probability of failure (PFi) is not related to the size of messages and the bit error rate, but is varied between 1% and 50%, respectively. The major focus of Li’s method is to save the bandwidth utilization rate. They defined an evaluation function to calculate the greatest contribution value, and then generated a new package of message re-transmission. This means that each message which is retransmitted makes a significant improvement in reliability and further improves slot usage. As the main aim of Li’s method, we can observe that work [9] has better performance in saving slot utilization than the proposed FRSA when the number of signals under 16, as Table 3 shows. However, along with an increase of the number of messages in test cases, the computational complexity of the evaluation function always causes a greater time cost than the proposed FRSA, as shown in Figure 4. When the performance evaluation is according to cost function, the fluctuating range of f(∆time) of Li’s method is more extreme than the proposed method. In addition, the average cost of the proposed method is better than Li’s method.
• Comparison 2, Wang’s method [11]
On the other hand, Wang et al. proposed a frame-packing algorithm based on transmission reliability (FPBTR) [11]. This algorithm is implemented by considering both reliable transmission and maximized bandwidth utilization. The comparison of the running time and slot utilization of the proposed FRSA algorithm and Wang’s method are shown in Table 4. According to the FPBTR method, the number of slots in the static segment (Nslot) is dependent on the range of messages; they do not optimize static slot allocations. The proposed FRSA excluded messages which do not need to re-transmitted to further improve slot utilization. It can be found that the proposed FRSA has better performance in slot utilization than Wang’s method when the same parameters are utilized. Moreover, the FPBTR method has been focused on optimizing the frame packing of Lslot and Nslot which creates a greater time cost to meet the demands of the given reliability than the proposed FRSA, as shown in Figure 5.
• Comparison 3, Lee’s method [10]
Lee et al. [10] proposed a method to sort each message in descending order by its reliability value. After sorting, the new single message reliability goal is according to the reliability of the previous message. When the reliability goal does not satisfy reliability constraints, Lee’s method computes the average of the reliability value of messages; if the reliability of messages is smaller than the average value, then these messages should be corrected. The comparison of the slot utilization of the proposed FRSA algorithm and Lee’s method is shown in Table 5. Lee’s method has better performance in slot utilization in each test case; however, with the iterative method, it is difficult to estimate the execution time. Obviously, the f(∆time) of Lee’s method increased sharply when the number of messages is 8. These results suggest that its high computational complexities make the execution time increase more than the proposed FRSA, as shown in Figure 6. The average cost of the proposed FRSA is also better than Lee’s method, as shown in Figure 7.
After comparing the proposed method and the given methods [9,10,11], we summarize the main conclusions of our comparisons as shown in Table 6 and Table 7. We can see that the proposed FRSA method reduces execution time by an average of 70.76% because the computational complexity determines the performance of the algorithm. These results suggest that the proposed FRSA can achieve the goal of reliability more quickly by excluding parts of messages and the lookup table method than by the other iterative methods. On the other hand, we proposed a cost function to evaluate the performance and resources when the number of messages increases, as shown in Figure 7. Obviously, the total cost of the proposed FRSA is better than Wang’s method [11]. Although bandwidth utilization is not the best in each setting, the proposed FRSA still reduces on cost by an average of 13.33%.

4. Conclusions

Communication requirements for automotive systems include both data stability and speed of processing. Related vehicle applications such as powertrain systems, electronic stability control (ESC) and traction control systems (TCS) have response time constraints. This work presents a new fast reliability scheduling algorithm (FRSA) to recover the transient errors for the static segment of the FlexRay bus. The proposed method increased the reliability of the system by the re-transmission of messages to ensure communication requirements. Experimental results show that the proposed FRSA has better performance for the running time of finding optimal solutions than the existing methods. In addition, the proposed fast and low-time-complexity lookup table method makes not only a significant improvement on execution time, but is also suitable for any periodic time-triggered communication system.

Author Contributions

Conceptualization, I-A.L. and J.-J.W.; Data curation, J.-J.W.; Formal analysis, I-A.L.; Funding acquisition, I-A.L.; Methodology, T.-Y.L.; Resources, J.-J.W.; Software, J.-J.W. and J.-T.T.; Supervision, T.-Y.L.; Validation, I-A.L. and J.-T.T.; Writing—Original Draft, T.-Y.L., I-A.L. and J.-J.W.; Writing—Review & Editing, T.-Y.L.

Funding

The authors would like to thank the Ministry of Science and Technology of the Republic of China, Taiwan, for partially supporting this research under Contract No. MOST 107-2637-E-027-006.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. FlexRay Communications System—Protocol Specification—Version 2.1 Revision A. Available online: https://www.softwareresearch.net/fileadmin/src/docs/teaching/SS08/PS_VS/FlexRayCommunicationSystem.pdf (accessed on 24 April 2017).
  2. Tuohy, S.; Glavin, M.; Hughes, C.; Jones, E.; Trivedi, M.; Kilmartin, L. Intra-Vehicle Networks: A Review. IEEE Trans. Intell. Transp. Syst. 2014, 16, 534–545. [Google Scholar] [CrossRef]
  3. X-By-Wire Team. X-By-Wire: Safety Related Fault Tolerant Systems in Vehicles; Technical Report No. BE 95/1329; X-by-Wire Consortium: Stuttgart, Germany, 1998. [Google Scholar]
  4. Shreejith, S.; Fahmy, S.A.; Lukasiewycz, M. Reconfigurable Computing in Next-Generation Automotive Networks. IEEE Embedded Syst. Lett. 2013, 5, 12–15. [Google Scholar] [CrossRef]
  5. Shanker, S.; Fahmy, S.A. Extensible FlexRay Communication Controller for FPGA-Based Automotive Systems. IEEE Trans. Veh. Technol. 2014, 64, 453–465. [Google Scholar]
  6. Kanekawa, N.; Ibe, E.H.; Suga, T.; Uematsu, Y. Dependability in Electronic Systems: Mitigation of Hardware Failures, Soft Errors, and Electro-Magnetic Disturbances; Springer Science & Business Media: New York, NY, USA, 2010. [Google Scholar]
  7. Li, W.; Natale, M.D.; Zheng, W.; Giusto, P.; Alberto, S.V.; Seshia, S.A. Optimizations of an Application-Level Protocol for Enhanced Dependability in FlexRay. In Proceedings of the IEEE Design, Automation & Test in Europe, Nice, France, 20–24 April 2009; pp. 1076–1081. [Google Scholar]
  8. Tanasa, B.; Bordoloi, U.D.; Eles, P.; Peng, Z. Scheduling for fault-tolerant communication on the static segment of FlexRay. In Proceedings of the 31st IEEE Real-Time Systems Symposium, San Diego, CA, USA, 30 November–3 December 2010; pp. 385–394. [Google Scholar]
  9. Li, R.; Zhu, Y.; Wang, Z. Research on Fault Tolerance for the Static Segment of FlexRay Protocol. In Proceedings of the 15th IEEE Advanced Communications Technology, Pyeong Chang, Korea, 27–30 January 2013; pp. 362–366. [Google Scholar]
  10. Lee, T.Y.; Hong, Z.H.; Liou, M.J. Reliability Scheduling Approach for FlexRay Fault-tolerant Systems. In Proceedings of the Innovative Electronics Design and Applications, Taipei, Taiwan, 13 December 2013; pp. 314–317. [Google Scholar]
  11. Wang, Y.; Liu, H.; Huang, B.; Sun, X. Frame Design for Vehicular FlexRay Network Based on Transmission Reliability and Slot Utilization. In Proceedings of the 9th IEEE International Symposium on Computational Intelligence and Design, Hangzhou, China, 10–11 December 2016; pp. 447–452. [Google Scholar]
  12. Liu, B.; Bai, W.W.; Zhen, G.C. A Prompt Retransmission Method for In-Vehicle Network FlexRay. In Proceedings of the 36th IEEE Chinese Control Conference, Dalian, China, 26–28 July 2017; pp. 850–855. [Google Scholar]
  13. Lee, T.Y.; Wang, J.J.; Lin, I.A.; Tsai, J.T. Fast Reliability Scheduling Algorithm for the Static Segment of FlexRay for Vehicle Network. In Proceedings of the 7th IEEE International Symposium on Next Generation Electronics, Taipei, Taiwan, 7–9 May 2018. [Google Scholar]
  14. Luis, M.; Veronica, V.; Paulo, P.; Luis, A. Error Recovery in the Time-Triggered Paradigm with FTT-CAN. Sensors 2018, 18, 188. [Google Scholar]
  15. Ferreira, J.; Oliveira, A.; Fonseca, P.; Fonseca, J.A. An Experiment to Assess Bit Error Rate in CAN. In Proceedings of the 3rd International Workshop on Real-Time Networks, Catania, Italy, 29 June 2004; pp. 15–18. [Google Scholar]
Figure 1. Diagram of message re-transmission mechanism.
Figure 1. Diagram of message re-transmission mechanism.
Sensors 18 03783 g001
Figure 2. The proposed fast reliability scheduling algorithm (FRSA) architecture.
Figure 2. The proposed fast reliability scheduling algorithm (FRSA) architecture.
Sensors 18 03783 g002
Figure 3. Flowchart of the message reliability processing module.
Figure 3. Flowchart of the message reliability processing module.
Sensors 18 03783 g003
Figure 4. Comparison of running time with Li’s method.
Figure 4. Comparison of running time with Li’s method.
Sensors 18 03783 g004
Figure 5. Comparison of running time with Wang’s method.
Figure 5. Comparison of running time with Wang’s method.
Sensors 18 03783 g005
Figure 6. Comparison of running time with Lee’s method.
Figure 6. Comparison of running time with Lee’s method.
Sensors 18 03783 g006
Figure 7. Comparison of cost with existing methods in different parameters.
Figure 7. Comparison of cost with existing methods in different parameters.
Sensors 18 03783 g007
Table 1. The validation of the proposed method.
Table 1. The validation of the proposed method.
Recovery MechanismMi (Ti, Di, Si, PFi)RTiGSmiGSSlot Utilization
NonM1 (32, 32, 240, 2.39997 × 10−5)00.06720550.00000.031424
M2 (18, 18, 272, 2.71996 × 10−5)00.00433948
M3 (24, 24, 296, 2.95996 × 10−5)00.0117959
M4 (3, 3, 264, 2.63997 × 10−5)01.74401 × 10−14
M5 (6, 6, 152, 1.51999 × 10−5)00.000109455
Proposed
FRSA
M1 (32, 32, 240, 2.39997 × 10−5)10.9999350.99870.0628472
M3 (24, 24, 296, 2.95996 × 10−5)10.999869
M5 (6, 6, 152, 1.51999 × 10−5)10.999861
M2 (18, 18, 272, 2.71996 × 10−5)10.999852
M4 (3, 3, 264, 2.63997 × 10−5)10.999164
Table 2. The parameter settings of related work.
Table 2. The parameter settings of related work.
Message Parameter Configuration in Static Segments
ParameterSetting 1Setting 2Setting 3
Period (Ti)5 ms~20 ms1 ms~25 ms2 ms~40 ms
Deadline (Di)same as Tisame as Tisame as Ti
Size of message (Si)64 bits 32 bits~72 bits32 bits
Bit Error Rate (BER)-10−3-
Probability of failure (PFi)1%~50% 1     ( 1     BER ) S i 1%~50%
The Parameter Configuration of FlexRay Buses
FlexRay cycle (LFC)5 ms5 ms5 ms
Length of static segment (LST)3 ms3 ms3 ms
Length of slot in SS (Lslot)20 μs8.3 μs~50 μs8.57 μs
The number of slot in static segment (Nslot)15060~360350
The Parameter Configuration of Systems
Range of messages5~201~605~20
System reliability goal (SR)99%99%99%
Testing time ( τ )3,600,000 ms3,600,000 ms3,600,000 ms
Table 3. Comparison of running time and slot utilization with Li’s method.
Table 3. Comparison of running time and slot utilization with Li’s method.
Number of MessagesProposed MethodLi’s Method [9]
Running TimeSlot UtilizationRunning TimeSlot Utilization
57.7916.544812
67.1726.845120
77.7930.845426
88.3936.245928
98.9340.256236
109.5145.976740
1110.2649.756646
1210.7254.127050
1311.4459.927856
1412.0364.78162
1512.6170.198868
1613.3974.249076
1713.8977.789882
1814.6983.9010188
1915.1789.2111592
2015.7994.59119100
Table 4. Comparison of running time and slot utilization with Wang’s method.
Table 4. Comparison of running time and slot utilization with Wang’s method.
Number of MessagesProposed MethodWang’s Method [11]
Running TimeSlot UtilizationRunning TimeSlot Utilization
1015.8577.642586
2023.2178.014086.2
3031.3181.835586.4
4041.1784.177586.6
5049.7985.469586.8
6058.5383.8411587.15
Table 5. Comparison of running time and slot utilization with Lee’s method.
Table 5. Comparison of running time and slot utilization with Lee’s method.
Number of MessagesProposed MethodLee’s Method [10]
Running TimeSlot UtilizationRunning TimeSlot Utilization
58.139.53318.81
67.7911.873510.36
79.5913.903012.31
812.0514.714513.62
99.8916.064915.68
1010.7319.635119.06
1111.5420.715919.22
1213.5424.676621.67
1314.324.897323.13
1414.4526.687724.88
1515.0328.128227.01
1615.2331.428829.98
1715.3633.29732.85
1815.9834.829933.82
1916.6537.2510236.46
2017.1438.8310736.74
Table 6. Comparison of average running time with related studies.
Table 6. Comparison of average running time with related studies.
MethodsAverage Running Time (ms)Reduction (%)
Parameter Proposed FRSAComparison Method
Setting 111.2277.94 (Li [9])85.59
Setting 236.6467.50 (Wang [11])45.71
Setting 312.9668.18 (Lee [10])80.98
Average 70.76
Table 7. Comparison of average cost with related studies.
Table 7. Comparison of average cost with related studies.
MethodsAverage costReduction (%)
Parameter Proposed FRSAComparison Method
Setting 110.40111.168 (Li [9])6.86
Setting 25.3936.140 (Wang [11])12.16
Setting 310.10112.782 (Lee [10])20.97
Average 13.33

Share and Cite

MDPI and ACS Style

Lee, T.-Y.; Lin, I.-A.; Wang, J.-J.; Tsai, J.-T. A Reliability Scheduling Algorithm for the Static Segment of FlexRay on Vehicle Networks. Sensors 2018, 18, 3783. https://doi.org/10.3390/s18113783

AMA Style

Lee T-Y, Lin I-A, Wang J-J, Tsai J-T. A Reliability Scheduling Algorithm for the Static Segment of FlexRay on Vehicle Networks. Sensors. 2018; 18(11):3783. https://doi.org/10.3390/s18113783

Chicago/Turabian Style

Lee, Trong-Yen, I-An Lin, Jun-Jie Wang, and Ju-Tse Tsai. 2018. "A Reliability Scheduling Algorithm for the Static Segment of FlexRay on Vehicle Networks" Sensors 18, no. 11: 3783. https://doi.org/10.3390/s18113783

APA Style

Lee, T. -Y., Lin, I. -A., Wang, J. -J., & Tsai, J. -T. (2018). A Reliability Scheduling Algorithm for the Static Segment of FlexRay on Vehicle Networks. Sensors, 18(11), 3783. https://doi.org/10.3390/s18113783

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