Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## [1.11.0] - 2026-02-04

### Added
- **Copyright Headers**: Added standard license headers to all source, include, test, and script files.
- **License**: Switched to `PolyForm-Noncommercial-1.0.0` for all core library components.

### Fixed
- **CI/CD**: Resolved issue in release workflow where `coverage_summary.txt` was not generated.

## [1.10.0] - 2026-02-04

### Added
Expand Down
5 changes: 5 additions & 0 deletions examples/bare_metal/main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file main.c
* @brief Bare Metal Example (Super Loop)
Expand Down
5 changes: 5 additions & 0 deletions examples/client_demo/main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file main.c
* @brief UDS Client Demo
Expand Down
5 changes: 5 additions & 0 deletions examples/freertos_demo/main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file main.c
* @brief FreeRTOS Example (Task Based)
Expand Down
3 changes: 3 additions & 0 deletions examples/generated_tests/test_read_data_by_id.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
# Copyright (c) 2026 Andrii Shylenko
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

"""
Auto-generated integration test for UDS Service 0x22
Read Data By Identifier
Expand Down
3 changes: 3 additions & 0 deletions examples/generated_tests/test_routine_control.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
# Copyright (c) 2026 Andrii Shylenko
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

"""
Auto-generated integration test for UDS Service 0x31
Routine Control
Expand Down
3 changes: 3 additions & 0 deletions examples/generated_tests/test_security_access.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
# Copyright (c) 2026 Andrii Shylenko
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

"""
Auto-generated integration test for UDS Service 0x27
Security Access
Expand Down
3 changes: 3 additions & 0 deletions examples/generated_tests/test_session_control.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
# Copyright (c) 2026 Andrii Shylenko
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

"""
Auto-generated integration test for UDS Service 0x10
Diagnostic Session Control
Expand Down
3 changes: 3 additions & 0 deletions examples/generated_tests/test_tester_present.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
# Copyright (c) 2026 Andrii Shylenko
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

"""
Auto-generated integration test for UDS Service 0x3e
Tester Present
Expand Down
3 changes: 3 additions & 0 deletions examples/generated_tests/test_write_data_by_id.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
# Copyright (c) 2026 Andrii Shylenko
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

"""
Auto-generated integration test for UDS Service 0x2e
Write Data By Identifier
Expand Down
5 changes: 5 additions & 0 deletions examples/host_sim/main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file main.c
* @brief Host Simulation Example for UDSLib.
Expand Down
5 changes: 5 additions & 0 deletions examples/pro_flash_tool.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file pro_flash_tool.c
* @brief Enterprise Example: Orchestrating an OTA Update (0x34, 0x36, 0x37)
Expand Down
5 changes: 5 additions & 0 deletions examples/zephyr_uds_server/src/main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include "uds/uds_core.h"
Expand Down
3 changes: 3 additions & 0 deletions extras/python/pyudslib.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) 2026 Andrii Shylenko
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

import ctypes
import os

Expand Down
5 changes: 5 additions & 0 deletions include/uds/uds_config.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file uds_config.h
* @brief UDS Stack Configuration & Dependency Injection
Expand Down
5 changes: 5 additions & 0 deletions include/uds/uds_core.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file uds_core.h
* @brief ISO-14229 UDS Protocol Stack Core API
Expand Down
5 changes: 5 additions & 0 deletions include/uds/uds_isotp.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file uds_isotp.h
* @brief ISO-TP (ISO 15765-2) Transport Layer Implementation
Expand Down
5 changes: 5 additions & 0 deletions include/uds/uds_tp.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file uds_tp.h
* @brief UDS Transport Layer Definitions
Expand Down
9 changes: 7 additions & 2 deletions include/uds/uds_version.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file uds_version.h
* @brief UDSLib Version Information
Expand All @@ -14,13 +19,13 @@ extern "C" {
#define UDS_VERSION_MAJOR 1

/** Minor version number (backward-compatible functionality) */
#define UDS_VERSION_MINOR 10
#define UDS_VERSION_MINOR 11

/** Patch version number (backward-compatible bug fixes) */
#define UDS_VERSION_PATCH 0

/** Full version string */
#define UDS_VERSION_STR "1.10.0"
#define UDS_VERSION_STR "1.11.0"

/** Version as a single integer for comparison (MMmmpp format) */
#define UDS_VERSION_INT \
Expand Down
3 changes: 3 additions & 0 deletions run_capture.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) 2026 Andrii Shylenko
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

# run_capture.sh
# Runs the simulation while capturing traffic to a PCAP and generating an HTML report.
# Usage: ./run_capture.sh [classic]
Expand Down
3 changes: 3 additions & 0 deletions run_integration_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) 2026 Andrii Shylenko
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

# UDSLib C-to-C Integration Test

# Get the script directory
Expand Down
3 changes: 3 additions & 0 deletions scripts/build_iso14229.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) 2026 Andrii Shylenko
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

# Build script for iso14229 external validator

set -e
Expand Down
3 changes: 3 additions & 0 deletions scripts/check_misra.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) 2026 Andrii Shylenko
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

# scripts/check_misra.sh
# Automated MISRA-C:2012 baseline compliance checker for UDSLib.

Expand Down
3 changes: 3 additions & 0 deletions scripts/check_quality.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) 2026 Andrii Shylenko
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

# UDSLib Stricter Code Quality Check Script

set -e
Expand Down
3 changes: 3 additions & 0 deletions scripts/docker_run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) 2026 Andrii Shylenko
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

# Build and run UDSLib tests in a standardized Docker container

set -e
Expand Down
3 changes: 3 additions & 0 deletions scripts/generate_coverage.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) 2026 Andrii Shylenko
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

# UDSLib Coverage Report Generator
# Requirements: lcov, genhtml

Expand Down
3 changes: 3 additions & 0 deletions scripts/generate_release_notes.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) 2026 Andrii Shylenko
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

# Generate release notes for UDSLib releases
# Usage: ./generate_release_notes.sh <version>

Expand Down
3 changes: 3 additions & 0 deletions scripts/run_all_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) 2026 Andrii Shylenko
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

# UDSLib Comprehensive Test Suite Runner
# Executes all test tiers: Unit → Integration → System Validation

Expand Down
3 changes: 3 additions & 0 deletions scripts/setup_vcan.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) 2026 Andrii Shylenko
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

# Virtual CAN Setup Script for Linux

set -e
Expand Down
3 changes: 3 additions & 0 deletions scripts/setup_zephyr.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) 2026 Andrii Shylenko
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

# Scripts to setup minimal Zephyr environment for Simulation
# Based on Zephyr generic installation guide

Expand Down
5 changes: 5 additions & 0 deletions src/core/uds_core.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file uds_core.c
* @brief Core UDS Logic Implementation
Expand Down
5 changes: 5 additions & 0 deletions src/core/uds_internal.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file uds_internal.h
* @brief Internal UDS Core & Service Declarations
Expand Down
5 changes: 5 additions & 0 deletions src/services/uds_service_data.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file uds_service_data.c
* @brief Read Data By ID (0x22) & Write Data By ID (0x2E)
Expand Down
5 changes: 5 additions & 0 deletions src/services/uds_service_flash.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file uds_service_flash.c
* @brief Flash Engine Services: RoutineControl (0x31), RequestDownload (0x34),
Expand Down
5 changes: 5 additions & 0 deletions src/services/uds_service_io.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file uds_service_io.c
* @brief Input Output Control By Identifier (0x2F)
Expand Down
5 changes: 5 additions & 0 deletions src/services/uds_service_maintenance.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file uds_service_maintenance.c
* @brief Maintenance Services: ECU Reset (0x11), Comm Control (0x28), and DTC Management (0x14,
Expand Down
5 changes: 5 additions & 0 deletions src/services/uds_service_mem.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file uds_service_mem.c
* @brief Memory Services Implementation (0x23, 0x3D)
Expand Down
5 changes: 5 additions & 0 deletions src/services/uds_service_security.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file uds_service_security.c
* @brief Security Access (0x27) & Authentication (0x29)
Expand Down
5 changes: 5 additions & 0 deletions src/services/uds_service_session.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file uds_service_session.c
* @brief Diagnostic Session Control (0x10) & Tester Present (0x3E)
Expand Down
5 changes: 5 additions & 0 deletions src/transport/uds_tp_isotp.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file uds_tp_isotp.c
* @brief Lightweight ISO-TP Implementation (Zephyr-Ready Fallback)
Expand Down
5 changes: 5 additions & 0 deletions tests/integration/test_integration.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
Expand Down
3 changes: 3 additions & 0 deletions tests/integration/test_iso14229.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) 2026 Andrii Shylenko
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

# Test UDSLib client against iso14229 external server

set -e
Expand Down
3 changes: 3 additions & 0 deletions tests/integration/test_uds.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) 2026 Andrii Shylenko
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

import socket
import struct
import subprocess
Expand Down
5 changes: 5 additions & 0 deletions tests/test_core.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2026 Andrii Shylenko
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
*/

/**
* @file test_core.c
* @brief Unit tests for UDSLib Core Logic
Expand Down
Loading
Loading