项目 / dgiot/dgiot

dgiot/dgiot

行业推荐
语言 Erlang标签 iotiot-platformmqttindustrial-iotmodbusdigital-twinedge-computingerlanglow-codeopc-uascada数据更新 2026-11-24 06:50:13 · 仓库 2026-11-23

一段话介绍

用 Erlang/OTP 编写的工业物联网汇聚引擎,用来接入设备、维护设备影子,并结合本体模型和规则处理时序数据。核心与 EMQX、规则引擎和告警等模块一起工作,边缘侧可配合 iotStudio。本页只写用途与入口,不介绍协议攻击或工控入侵手法。

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
Open Source Industrial IoT Platform | 300+ protocols | 6-min deploy | Modbus OPC UA MQTT | 12K Stars
4,871累计星
966Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景

按行业选型 →

设备物联接入与边缘采集

适配系统:物联网平台、边缘计算网关 · 得分 5.6

实现工业协议解析与设备接入管理,可作为物联网平台的设备接入层与数据采集前置。

低代码表单与业务配置

适配系统:低代码平台、表单引擎 · 得分 1.2

以配置化方式生成业务对象与界面,适合长尾业务需求的快速交付。

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
可运行 docker compose up -d。
特点或设计要点
dgiot 采用边缘(iotStudio 设备接入、管道、流引擎、告警)经 MQTT/HTTP 连接云端分层的架构,涵盖安全、动作与逻辑等模块。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-10-13 · 语言 Erlang · 贡献者 —
erlang

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 5,505 字节。

<p align="center">
  <img src="https://img.shields.io/badge/Erlang-24.3-%23A90533">
  <img src="https://img.shields.io/badge/OTP-24.3-green">
  <img src="https://img.shields.io/badge/EMQX-4.9-orange">
  <img src="https://img.shields.io/badge/License-Apache%202.0-blue">
</p>

<h1 align="center">dgaiot</h1>
<h3 align="center">Industrial IoT Aggregation Engine</h3>
<p align="center">Erlang/OTP · Million-Device · Shadow · Ontology · gen_statem</p>

---

## DLAS Architecture

```
  ┌──────────────────────────────────────────────────────────────────┐
  │                    EDGE: iotStudio (Python+Vue)                   │
  │  DeviceAccess(9) → UnifiedPipeline → StreamEngine(15) → Alert(6) │
  └──────────────────────────┬───────────────────────────────────────┘
                             │ MQTT / HTTP
  ┌──────────────────────────▼───────────────────────────────────────┐
  │  SECURITY    auth · role · ACL/CLP · Hooks · JWT                 │
  ├──────────────────────────────────────────────────────────────────┤
  │  ACTION      Shadow(gen_statem) · Bridge · MQTT · Rule Engine   │
  │              init → auth → online → {normal, alarm, offline}    │
  ├──────────────────────────────────────────────────────────────────┤
  │  LOGIC       Ontology Engine · Model Registry · 3 ETS Tables     │
  │              load_model → compile → spawn → evaluate → reason    │
  ├──────────────────────────────────────────────────────────────────┤
  │  DATA        Parse(23 Classes) · PG(:7432)                       │
  │              TDengine(_{ProductId}, devaddr NCHAR(50))           │
  │              EMQX(:1883) · Mnesia/ETS                             │
  └──────────────────────────────────────────────────────────────────┘
```

[Full HTML Diagram](docs/architecture-diagram.html)

## FDE Pipeline

```
Model → Ontology → Device Access → TimeSeries → Rules → Dashboard
  1        2           3              4           5          6
```

## Data Flow

```
Modbus 40300 → MQTT(dgiot/{site}/{gw}/{dev}/{pt}/data) → Shadow PID
  → evaluate(Rules) → state transition → Parse + TDengine INSERT
```

## Ontology: DLAS

| Layer | Function | Key Technology |
|:------|:---------|:---------------|
| **Data** | 23 Parse classes, TDengine, Mnesia/ETS | JSONB, SuperTable/SubTable, _{ProductId} |
| **Logic** | load_model, spawn_instance, registry, rules, reasoner | 3 ETS tables, gen_statem compile |
| **Action** | Shadow 1:1 device process, Bridge, MQTT | gen_statem OTP, ont_push_point |
| **Security** | auth, role tree, ACL(object), CLP(class), Hooks | JWT, Parse ACL |

[Full Ontology Doc](docs/DGAIOT_ONTOLOGY.md) · [Storage Architecture](docs/ontology-storage.md) · [Station Simulation](docs/research/station-simulation.md)

## Modules

| App | Layer | Role |
|:----|:------|:-----|
| `dgiot` | Data | Core — EMQX, rule engine, alarms |
| `dgiot_ontology` | Logic | Model registry, reasoner, instance spawner |
| `dgiot_parse` | Data | Parse Server REST client |
| `dgiot_task` | Action | Shadow gen_statem worker |
| `dgiot_device` | Logic | Device management + thing model |
| `dgiot_bridge` | Action | Protocol bridge framework |
| `dgiot_dlink` | Action | Data link layer |
| `dgiot_api` | Security | REST API + auth gateway |
| `dgiot_http` | — | HTTP service layer |
| `dgiot_tdengine` | Data | TDengine timeseries connector |

## Quick Start

One-click deploy with Docker (recommended for evaluation):

```bash
git clone https://github.com/dgiot/dgiot.git
cd dgiot
docker compose up -d
```

Build from source — the bootstrap script installs Erlang/OTP 24.3 and build
tools automatically (Ubuntu / Debian / CentOS / openEuler / macOS):

```bash
git clone https://github.com/dgiot/dgiot.git
cd dgiot
bash scripts/bootstrap.sh
make
```

## Documentation

- [DGIOT vs. Palantir](docs/comparison.md) — positioning: the brain and the limbs, complementary by design
- [Open-Source Palantir Landscape](docs/open-source-palantir-landscape.md) — reality-checked survey of "open-source Palantir" projects
- [Pragmatic Enhancement Architecture](docs/pragmatic-enhancement-architecture.md) — Kafka + TimescaleDB + rules + BI in four phases (中文版: [zh/pragmatic-enhancement-architecture.md](docs/zh/pragmatic-enhancement-architecture.md))

## Related

- [iotStudio](https://github.com/dgiot/iotStudio) — Edge Agent & Application (Python + Vue)
- [dgiot](https://github.com/dgiot/dgiot) — Full Erlang IoT Platform

## License

Apache 2.0
↑