# t4ke0/rfid_reader architecture

> Architecture diagram of the GitHub repository t4ke0/rfid_reader, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/t4ke0/rfid_reader
- Repository: https://github.com/t4ke0/rfid_reader

## Overview

This is a small Rust command-line RFID reader for an RDM6300 connected through a USB-TTL serial adapter. Running the program opens `/dev/ttyS0` at 9600 baud, reads serial bytes, handles start/end markers, collects lowercase ASCII into a tag string, and prints the result. The sampled source shows these behaviors in one entry point; it does not show separate domain modules or downstream storage or services.

Main entry points: [`src/main.rs`](https://github.com/t4ke0/rfid_reader/blob/main/src/main.rs) (Serial RFID Reader)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_reader["RFID Reader"]
  node_main["Serial RFID Reader<br/>[main.rs]"]
end

node_user(("User"))
node_serial["USB-TTL Serial Port"]
node_stdout["Terminal Output"]

node_user -->|"runs"| node_main
node_main -->|"reads bytes"| node_serial
node_main -->|"prints tag"| node_stdout

click node_main "https://github.com/t4ke0/rfid_reader/blob/main/src/main.rs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_user toneBlue
class node_serial,node_stdout toneIndigo
```

## Components

### RFID Reader

- [Serial RFID Reader](https://github.com/t4ke0/rfid_reader/blob/main/src/main.rs): `src/main.rs`

### Other components

- **User**
- **USB-TTL Serial Port**
- **Terminal Output**

## Connections

- User → Serial RFID Reader: runs (evidence: `README.md`)
- Serial RFID Reader → USB-TTL Serial Port: reads bytes (evidence: `src/main.rs`)
- Serial RFID Reader → Terminal Output: prints tag (evidence: `src/main.rs`)
