Automatický CAN logger

dc.contributor.advisorKosturik Kamil, Ing. Ph.D.cs
dc.contributor.authorBém, Dominikcs
dc.contributor.refereeRůžička Ondřej, Ing.cs
dc.date.accepted2025-06-10
dc.date.accessioned2026-02-20T16:25:57Z
dc.date.available2024-10-04
dc.date.available2026-02-20T16:25:57Z
dc.date.issued2025-05-23
dc.date.submitted2025-05-23
dc.description.abstractDiplomová práce se zabývá návrhem a realizací vestavěného zařízení pro automatický záznam dat z komunikační sběrnice typu CAN (Controller Area Network), která se široce využívá v automobilovém a průmyslovém prostředí. Cílem bylo vytvořit kompaktní a spolehlivý záznamový systém - tzv. CAN logger - který bude schopen autonomně zachytávat zprávy přenášené po sběrnici a ukládat je na externí paměťové médium ve formátu kompatibilním s běžnými nástroji pro následnou analýzu.<br>V teoretické části je popsán vývoj, struktura a principy komunikace na sběrnici CAN včetně rozšíření CAN FD. Podrobně je vysvětlena struktura rámce, způsob arbitráže, detekce chyb, typy rámců a možnosti filtrování zpráv. Dále je věnována pozornost vrstvenému modelu komunikace, fyzické vrstvě sběrnice a vlastnostem řadiče FDCAN integrovaného v mikrokontrolérech STM32. Druhá část teorie se zaměřuje na analýzu dostupných paměťových médií, především SD karet, jejich rozhraní (SPI, SDIO), souborové systémy (FAT, exFAT) a implementaci knihovny FatFs pro zápis dat v prostředí STM32.<br>Praktická část práce popisuje návrh hardwarové části zařízení, které je založeno na mikrokontroléru STM32G474RET6. Jsou zde rozebrány jednotlivé bloky schématu, ochranné a napájecí obvody, zapojení CAN transceiveru, modulu pro správu baterie i připojení SD karty. Součástí je návrh desky plošných spojů (PCB), výběr vhodných součástek a důvody jejich použití. Následuje softwarová implementace v jazyce C s využitím prostředí STM32CubeIDE a HAL knihoven. Kód zajišťuje inicializaci periferií, záznam zpráv do kruhových bufferů v paměti RAM, přepínání bufferů, a následný zápis dat na SD kartu. Implementovány byly i základní funkce pro ovládání zařízení pomocí tlačítek a indikaci stavu pomocí LED.<br>Výsledné zařízení bylo otestováno v reálném provozu a úspěšně zaznamenávalo zprávy z CAN i CAN FD sběrnice. Výstupní datové soubory lze dále zpracovávat v běžných diagnostických nástrojích (např. Vector CANoe). Navržený CAN logger tak představuje nízkonákladové, flexibilní a otevřené řešení vhodné pro vývojové, testovací i monitorovací účely v oblasti embedded systémů.cs
dc.description.abstract-translatedThis thesis deals with the design and implementation of an embedded device for automatic data logging from a Controller Area Network (CAN) bus, which is widely used in automotive and industrial applications. The aim was to develop a compact and reliable data logger capable of autonomously capturing messages transmitted over the bus and storing them on external memory in a format compatible with standard analysis tools.<br>The theoretical part provides an overview of the development, structure, and communication principles of the CAN bus, including its extension CAN FD. It describes in detail the frame structure, arbitration mechanism, error detection, frame types, and message filtering options. Attention is also given to the layered communication model, the physical layer of the CAN bus, and the characteristics of the FDCAN controller integrated in STM32 microcontrollers. The second part focuses on the analysis of available storage media, particularly SD cards, their interfaces (SPI, SDIO), file systems (FAT, exFAT), and the use of the FatFs library for data writing in STM32 systems.<br>The practical part describes the hardware design of the device, which is based on the STM32G474RET6 microcontroller. It covers the individual circuit blocks, protection and power supply circuits, the CAN transceiver, battery management module, and SD card connection. The printed circuit board (PCB) design is presented along with component selection and justification. The software implementation in C is realized using STM32CubeIDE and HAL libraries. The firmware handles peripheral initialization, message buffering in RAM, buffer switching, and subsequent data logging to the SD card. Basic user interface features such as button control and LED status indication are also implemented.<br>The device was successfully tested in real-world conditions and reliably logged messages from both CAN and CAN FD buses. The resulting log files are compatible with standard diagnostic tools such as Vector CANoe. The proposed CAN logger thus represents a cost-effective, flexible, and open solution suitable for development, testing, and monitoring in embedded systems.en
dc.description.departmentKatedra elektroniky a informačních technologiícs
dc.description.resultObhájenocs
dc.format88 s. (141 211 znaků)
dc.identifier99896
dc.identifier.urihttp://hdl.handle.net/11025/66043
dc.language.isocs
dc.publisherZápadočeská univerzita v Plznics
dc.rightsPlný text práce je přístupný bez omezenícs
dc.rights.accessopenAccesscs
dc.subjectCANcs
dc.subjectCAN FDcs
dc.subjectFDCANcs
dc.subjectSTM32G474RET6cs
dc.subjectdata loggercs
dc.subjectSD kartacs
dc.subjectFatFscs
dc.subjectSPIcs
dc.subjectembedded systémcs
dc.subjectsběrnicová komunikacecs
dc.subjectsouborový systém FATcs
dc.subject.translatedCANen
dc.subject.translatedCAN FDen
dc.subject.translatedFDCANen
dc.subject.translatedSTM32G474RET6en
dc.subject.translateddata loggeren
dc.subject.translatedSD carden
dc.subject.translatedFatFsen
dc.subject.translatedSPIen
dc.subject.translatedembedded systemen
dc.subject.translatedbus communicationen
dc.subject.translatedFAT file systemen
dc.thesis.degree-grantorZápadočeská univerzita v Plzni. Fakulta elektrotechnickács
dc.thesis.degree-levelNavazujícícs
dc.thesis.degree-nameIng.cs
dc.thesis.degree-programElektronika a informační technologiecs
dc.titleAutomatický CAN loggercs
dc.title.alternativeAutomatic CAN loggeren
dc.typediplomová prácecs
local.files.count4*
local.files.size4038250*
local.has.filesyes*
local.relation.IShttps://portal.zcu.cz/StagPortletsJSR168/CleanUrl?urlid=prohlizeni-prace-detail&praceIdno=99896

Files

Original bundle
Showing 1 - 4 out of 4 results
No Thumbnail Available
Name:
DP_Bem_E23N0037P.pdf
Size:
3.69 MB
Format:
Adobe Portable Document Format
Description:
VŠKP
No Thumbnail Available
Name:
PO_Bem_E23N0037P.pdf
Size:
63.14 KB
Format:
Adobe Portable Document Format
Description:
Posudek oponenta VŠKP
No Thumbnail Available
Name:
PV_Bem_E23N0037P.pdf
Size:
58.48 KB
Format:
Adobe Portable Document Format
Description:
Posudek vedoucího VŠKP
No Thumbnail Available
Name:
PB_Bem_E23N0037P.pdf
Size:
41.14 KB
Format:
Adobe Portable Document Format
Description:
Průběh obhajoby VŠKP

Collections