Auto Module Demo
This is a demo program for the RAPIDSEA Auto Module stack, which demonstrates the functionality of various automotive features, including the speedometer, trip meter, tachometer, odometer, temperature sensor, fuel gauge, gear module, and telltale. The program uses UDP communication to receive automotive data, processes it, and displays it based on configuration parameters.
Features
Speedometer Module: Displays real-time speed, configurable with thresholds and scaling factors.
Trip Meter: Tracks trip data such as distance traveled, fuel consumption, time and average speed.
Tachometer Module: Displays real-time engine RPM, configurable with thresholds.
Odometer Module: Tracks total distance traveled by the vehicle.
Temperature Module: Monitors temperature data.
Fuel Gauge: Displays the current fuel level in the vehicle.
Gear Module: Tracks and displays the current gear of the vehicle.
Tell Tale Module: Controls and displays telltale lights (on/off).
UDP Communication: Utilizes UDP for data exchange between the system and external devices.
Prerequisites
RAPIDSEA platform with Auto Module support.
UDP network configuration to communicate with the server.
Basic understanding of automotive systems like speedometers, trip meters, tachometers, etc.
Key Functions
UDP Communication: The program initializes a UDP server for receiving data and sends back processed data.
Speedometer Data Processing: Real-time speedometer data is processed using scaling factors, thresholds, and dispatching information for display.
Trip Meter Data Processing: Tracks the distance traveled and fuel consumed during trips.
Tachometer Data Processing: Monitors the engine RPM and displays it in real-time.
Odometer Data Processing: Tracks and displays the total distance traveled by the vehicle.
Temperature Data Processing: Displays temperature data such as engine or coolant temperature.
Fuel Gauge Data Processing: Monitors and displays fuel levels in the vehicle.
Gear Module Data Processing: Displays the current gear and monitors shifting status.
Tell Tale Data Processing: Controls and updates telltale lights based on vehicle status.
User Display Notification: The program notifies the user display module to show updated data.
Setup
The application operates in a continuous loop, receiving and processing data from UDP packets, and dispatches updates based on configured conditions.
Initialize UDP Server: * The server listens on 127.0.0.1:15000 and processes incoming data.
Configure Modules: * Configure all modules (speedometer, trip meter, tachometer, odometer, etc.) with appropriate scaling factors, thresholds, and limits.
Main Loop: * The program listens for incoming UDP data, processes it, and dispatches data for each module (speedometer, trip meter, tachometer, etc.) to the user interface.
Auto Modules Running Example
Refer to the Supported Platforms page to set up your environment and follow further.
User Configuration of UDP Server
The RAPIDSEA Auto Module demo uses the UDP protocol for communication between the client and server. Below is the configuration for the UDP Server.
Network Configuration |
Values |
---|---|
IP (Server) |
127.0.0.1 (or the client’s IP address) |
Port |
15000 (or the port used for communication) |

User Configuration of UDP Client
The RAPIDSEA Auto Module demo uses the UDP protocol for communication between the client and server. Below is the configuration for the UDP client.
Network Configuration |
Values |
---|---|
IP (Client) |
127.0.0.1 (or the server’s IP address) |
Port |
25000 (or the port used for communication) |

Auto Modules Working Process
Follwing this steps.

Once you run the execution command (./Automod_Demo_App.exe), the client will connect to the server using UDP.
Note: Before running the client, ensure the UDP server is running.
The application communicates using UDP packets between the client and the server.
The UDP communication allows the exchange of automotive data, including speedometer, trip meter, tachometer, odometer, fuel gauge, temperature, gear module, and telltale light status, ensuring real-time updates are processed and displayed.
Refer to the UDP protocol page for more details: Auto Modules Introduction