DRDjamel Rahem

Djamel Rahem

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


Djamel Rahem has a total of 6 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    Worst-Case Execution Time Analysis of a Real-Time System based on Arduino in CAN Network

    by Ammar Merazga, Djamel Rahem, Fateh Moulahcene, Djemai Kebbal, Rostom Khelaf, Imad Benacer

    Real-time systems need communication networks, as they often operate across multiple physical nodes. CAN-BUS is a common field bus used in these systems. Such systems require a time-based analysis to meet key deadlines and ensure system safety. This study designs and implements a distributed embedded motor control system using FreeRTOS over CAN-BUS for real-time operation. A prototype was built with low-cost components such as Arduino, L298N, and an MCP2515 module. A WCET analysis was performed on the system. The system has two CAN nodes connected to a PC via PCAN-USB for testing and analyzing using Busmaster software. The first CAN node controls the DC motor speed using a real-time PID controller, and the other manages the motor speed through CAN. The experimental results of the PID controller showed a low steady-state error of less than 0.3%. As the speed increases, there is less overshoot. The settling time ( ) is also short, proving the stability of the system. Πerformance was verified by comparing it with the signals from the Busmaster software. The WCET analysis used the Bound-T tool on the AVR2560 microprocessor (16 MHz without cache or pipeline). The calculated WCETs for three tasks were 1228.88 µs, 210.19 µs, and 2786.25 µs. This work verifies the schedulability of tasks for applications on a FreeRTOS real-time embedded platform. Bound-T is an open-source tool for WCET static analysis that has shown strong potential and can be used to perform precise and reliable temporal analyses.

  • Open Access

    Analyzing real-time communication: Arduino-based Controller Area Network (CAN) in electric vehicle

    by Merazga Ammar, Rahem Djamel, Moulahcene Fateh, Kebbal Djemai

    The increasing complexity of electric vehicles (EVs) and the growing demand for propulsion and driver assistance have strengthened the need for CAN networks. This necessitates a detailed analysis of communication and CAN bus utilization. A low bus load does not guarantee a valid design if response times are insufficient. This paper presents a response time analysis (RTA) of a distributed real-time control system that uses an Arduino-based CAN network and an MCP2515 interface to check if the system can be scheduled. The RTA is based on calculating the worst-case response time of the message (WCRT), which is its longest response time. The prototype EV houses a system consisting of four (4) real-time embedded CAN nodes. We have implemented a PID controller within the motor speed control node. Based on existing literature, we proposed an algorithm to calculate the WCRT of the control system messages and another to address the priority inversion issue in network communication. The experimental results for the PID controller are satisfactory. The controller reaches the target speed with minimal oscillations with values 478ms, 31.81s, 0.62%, and 2.57%, corresponding to time rise, settling time, steady-state error, and overshoot at 90 rpm, demonstrating its robust performance. Experimental results confirm the scheduling analysis of the system with a low bus load (0.9% at 500 kbps). The tests conducted on the experimental and SAE benchmark data show that validity depends on message schedulability, bus load, and bandwidth. A system may be schedulable at 500 kbps but not at 125 kbps with the same traffic.