FlexRay Static Segment Message Scheduling Based on Heterogeneous Scheduling Algorithm
Abstract
:1. Introduction
2. FlexRay Bus Network
2.1. FlexRay Data Frame Structure
2.2. Transmission Characteristics of FlexRay Static Segment
3. Heterogeneous Message Scheduling Algorithm for Static Segment of FlexRay
3.1. Architecture of SHSA Algorithm
3.2. Heterogeneous Allocation of Communication Channels
Algorithm 1: Channel allocation algorithm |
Input: Set of static segment messages |
Output: Channel allocation results |
1: list Sort(); /* Input: Set of static segment messages Output: Priority sorting result list. list sort M by descending order of priority; Return list /* |
2: Calculate the communication time for signal in the static segment message set ; |
3: for do |
4: calculate ; |
5: if then |
6: assign to Channel 1; |
7: else |
8: assign to Channel 2; |
9: end if |
10: end for |
11: Return Channel allocation results |
3.3. ILP Message Scheduling
3.4. Schedulability Analysis
4. Simulation Experiments
5. Conclusions
Author Contributions
Funding
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Barletta, V.S.; Caivano, D.; Vincentiis, M.D.; Ragone, A.; Scalera, M.; Martín, M.Á.S. V-SOC4AS: A Vehicle-SOC for Improving Automotive Security. Algorithms 2023, 16, 112. [Google Scholar] [CrossRef]
- Kim, H.-J.; Choi, M.-H.; Kim, M.-H.; Lee, S. Development of an Ethernet-Based Heuristic Time-Sensitive Networking Scheduling Algorithm for Real-Time In-Vehicle Data Transmission. Electronics 2021, 10, 157. [Google Scholar] [CrossRef]
- Páez, F.; Kaschel, H. Design and Testing of a Computer Security Layer for the LIN Bus. Sensors 2022, 22, 6901. [Google Scholar] [CrossRef] [PubMed]
- Chen, J.; Zuo, Q.; Xu, Y.; Wu, Y.; Jin, W.; Xu, Y. Study of Fixed Point Message Scheduling Algorithm for In-Vehicle Ethernet. Electronics 2024, 13, 2050. [Google Scholar] [CrossRef]
- Hamed, A.; El-Kharashi, M.W.; Salem, A.; Safar, M. Two-Layer Bus-Independent Instruction Set Architecture for Securing Long Protocol Data Units in Automotive Open System Architecture-Based Automotive Electronic Control Units. Electronics 2022, 11, 952. [Google Scholar] [CrossRef]
- Alexandre, S.R.; Daniel, H.P.; Renato, V.B.H.; Edison, P.F.; Carlos, E.P. Impact Analysis of Electrical Fast Transients on FlexRay In-Vehicle Networks. IEEE Trans. Electromagn. Compat. 2021, 63, 294–300. [Google Scholar]
- Wu, Y.; Li, S.; Liu, S.; Xu, Y. Efficient Message Scheduling for FlexRay Dynamic Segments. Symmetry 2025, 17, 380. [Google Scholar] [CrossRef]
- Lee, T.-Y.; Lin, I.-A.; Liao, R.-H. Design of a FlexRay/Ethernet Gateway and Security Mechanism for In-Vehicle Networks. Sensors 2020, 20, 641. [Google Scholar] [CrossRef] [PubMed]
- Sugihara, M. Dynamic Slot Multiplexing Under Operating Modes for TDMA-Based Real-Time Networking Systems. Electronics 2020, 9, 224. [Google Scholar] [CrossRef]
- Khatri, N.; Shrestha, R.; Nam, S.Y. Security Issues with In-Vehicle Networks, and Enhanced Countermeasures Based on Blockchain. Electronics 2021, 10, 893. [Google Scholar] [CrossRef]
- Kukkala, V.K.; Bradley, T.; Pasricha, S. Reliable Real-Time Message Scheduling in Automotive Cyber-Physical Systems. Mach. Learn. Optim. Tech. Automot. Cyber-Phys. Syst. 2023, 978, 3–42. [Google Scholar]
- Vaz, R.M.; Hodel, K.N.; Santos, M.M.D.; Arruda, B.A.; Netto, M.L.; Justo, J.F. An efficient formulation for optimization of FlexRay frame scheduling. Veh. Commun. 2020, 24, 100234. [Google Scholar] [CrossRef]
- Alsaidy, S.A.; Abbood, A.D.; Sahib, M.A. Heuristic initialization of PSO task scheduling algorithm in cloud computing. J. King Saud Univ. Comput. Inf. Sci. 2022, 34, 2370–2382. [Google Scholar] [CrossRef]
- Kumar, P.R.S.; Manjunatn, A.S.; Vinod, V. Efficient Utilization of Bandwidth in Static Segment of FlexRay Protocol. SN Comput. Sci. 2024, 5, 744. [Google Scholar] [CrossRef]
- Senapati, D.; Sarkar, A.; Karfa, C. HMDS: A Makespan Minimizing DAG Scheduler for Heterogeneous Distributed Systems. ACM Trans. Embed. Comput. Syst. 2021, 20, 1–26. [Google Scholar] [CrossRef]
- FlexRay Consortium. FlexRay Communications System Protocol Specification, Version 3.0.1.; FlexRay Consortium: Stuttgart, Germany, 2010; pp. 1–341. [Google Scholar]
- Shen, Y.; Wang, Z.; Dong, H.; Lu, G.; Alsaadi, F.E. Distributed Recursive State Estimation for a Class of Multi-Rate Nonlinear Systems Over Wireless Sensor Networks Under FlexRay Protocols. IEEE Trans. Netw. Sci. Eng. 2023, 10, 1551–1563. [Google Scholar] [CrossRef]
- Sunil, K.P.R.; Manjunath, A.S.; Vinod, V. Efficient handling of sporadic messages in FlexRay. Perform. Eval. 2024, 166, 102444. [Google Scholar]
- Murvay, P.; Groza, B. Efficient Physical Layer Key Agreement for FlexRay Networks. IEEE Trans. Veh. Technol. 2020, 69, 9767–9780. [Google Scholar] [CrossRef]
- Sunil, K.P.R.; Vinod, V.; Manjunath, A.S. Average delay analysis of soft deadline messages scheduled in the dynamic segment of FlexRay protocol. Perform. Eval. 2024, 164, 102404. [Google Scholar]
Parameter | Description |
---|---|
Binary variable, denotes whether slot is allocated | |
Binary variable, denotes whether message is allocated in time slot with period | |
S | Set of slots |
M | Set of messages |
E | Set of ECUs |
Repetition of messages | |
Length of slots | |
Length of message | |
k | periodic number |
c | denotes period |
Message | Length (Byte) | Repetition | Message | Length (Byte) | Repetition | Message | Length (Byte) | Repetition |
---|---|---|---|---|---|---|---|---|
ABSWarninglamp | 1 | 2 | EngForce | 16 | 2 | New_Element 18441 | 16 | 2 |
AccelerationForce | 16 | 2 | EngPower | 16 | 2 | New_Element_19865 | 16 | 2 |
BackUpLight | 1 | 2 | EngSpeed | 16 | 2 | New_Element 59120 | 16 | 1 |
BatteryWarnLamp | 1 | 2 | EngTemp | 7 | 2 | New_Element 73321 | 16 | 1 |
BrakeLight | 1 | 2 | ErrorCode | 6 | 2 | New_Element_9074 | 16 | 2 |
BrakePressure | 15 | 2 | ESPWarningLamp | 1 | 2 | New_Element_9090 | 16 | 2 |
BrakeWarningLamp | 1 | 2 | SigDev4 | 16 | 1 | oilWarningLamp | 1 | 2 |
CarSpeed | 16 | 2 | Gear | 3 | 2 | PetrolLevel | 8 | 2 |
CurGear | 3 | 2 | GearLock | 1 | 2 | ShiftRequest | 1 | 2 |
Diagnostics | 8 | 2 | ASRMode | 1 | 2 | SigDev1 | 16 | 2 |
EcoMode | 2 | 2 | IdleRunning | 1 | 2 | SigDev2 | 16 | 1 |
EngForce | 16 | 2 | New_Element_17031 | 16 | 1 | SigDev3 | 16 | 1 |
status | 2 | 2 | SigDev5 | 16 | 1 | WaterWarnlamp | 1 | 2 |
Performance Indicators | SHSA | HMDS | Message Packing Scheme | JASM-SG |
Bandwidth Utilization | 72.5% | 59.96% | 47.97% | 47.06% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Li, S.; Wu, Y.; Xu, Y.; Zhang, K.; Xu, Y. FlexRay Static Segment Message Scheduling Based on Heterogeneous Scheduling Algorithm. Symmetry 2025, 17, 696. https://doi.org/10.3390/sym17050696
Li S, Wu Y, Xu Y, Zhang K, Xu Y. FlexRay Static Segment Message Scheduling Based on Heterogeneous Scheduling Algorithm. Symmetry. 2025; 17(5):696. https://doi.org/10.3390/sym17050696
Chicago/Turabian StyleLi, Shuqing, Yujing Wu, Yihu Xu, Kaihang Zhang, and Yinan Xu. 2025. "FlexRay Static Segment Message Scheduling Based on Heterogeneous Scheduling Algorithm" Symmetry 17, no. 5: 696. https://doi.org/10.3390/sym17050696
APA StyleLi, S., Wu, Y., Xu, Y., Zhang, K., & Xu, Y. (2025). FlexRay Static Segment Message Scheduling Based on Heterogeneous Scheduling Algorithm. Symmetry, 17(5), 696. https://doi.org/10.3390/sym17050696