PHPackages                             erikwang2013/industrial-protocols-lin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. erikwang2013/industrial-protocols-lin

ActiveIndustrial-protocol

erikwang2013/industrial-protocols-lin
=====================================

LIN 协议包 — 汽车车身总线，19200 bps UART，主从模式

v1.1.1(yesterday)00PHP &gt;=8.1

Since Jul 22Compare

[ Source](https://github.com/erikwang2013/industrial-protocols-lin)[ Packagist](https://packagist.org/packages/erikwang2013/industrial-protocols-lin)[ RSS](/packages/erikwang2013-industrial-protocols-lin/feed)WikiDiscussions Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

LIN 协议包 — 汽车车身总线，19200 bps UART，主从模式
====================================

[](#lin-协议包--汽车车身总线19200-bps-uart主从模式)

> [English](README.en.md)

erikwang2013/industrial-protocols-lin — 纯 PHP 实现，类别：汽车总线。

安装
--

[](#安装)

```
composer require erikwang2013/industrial-protocols-kernel erikwang2013/industrial-protocols-lin
```

> 本包依赖 [erikwang2013/industrial-protocols-kernel](https://github.com/erikwang2013/industrial-protocols)，内核提供连接管理、协议注册、协程适配、事件系统等基础设施。

使用
--

[](#使用)

```
use Erikwang2013\IndustrialProtocols\Kernel;
$kernel = new Kernel(['config_path' => __DIR__ . '/industrial-protocols.php']);
$kernel->boot();

// 通过 ConnectionManager 连接设备
$conn = $kernel->getConnectionManager()->connect('device-id');
$result = $conn->read('address');
```

> 本包依赖 [erikwang2013/industrial-protocols-kernel](https://github.com/erikwang2013/industrial-protocols)，内核提供连接管理、协议注册、协程适配、事件系统等基础设施。

功能
--

[](#功能)

LIN 帧(Sync Break + Sync Field + PID + Data + Checksum)、PID 校验位编码、Classic/Enhanced 校验和、19200 bps UART

架构
--

[](#架构)

UART 串口 + LinFrame 帧编解码 + LinDriver 驱动，实现 6 个 SDK 接口

协议支持
----

[](#协议支持)

LIN 主从模式 (19200 bps)

系统要求
----

[](#系统要求)

- PHP &gt;= 8.1
- Composer
- erikwang2013/industrial-protocols-kernel

License
-------

[](#license)

MIT — Copyright (c) 2026 erik  —

---

相关链接
----

[](#相关链接)

- [Industrial Protocols 主项目](https://github.com/erikwang2013/industrial-protocols)
- [Kernel 内核](https://github.com/erikwang2013/industrial-protocols-kernel)
- [全部 42 个协议包](https://github.com/erikwang2013/industrial-protocols#%E6%94%AF%E6%8C%81%E7%9A%84%E5%8D%8F%E8%AE%AE)

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9014941?v=4)[erik](/maintainers/erikwang2013)[@erikwang2013](https://github.com/erikwang2013)

---

Tags

automotivelinindustrial protocolslin-bus

### Embed Badge

![Health badge](/badges/erikwang2013-industrial-protocols-lin/health.svg)

```
[![Health](https://phpackages.com/badges/erikwang2013-industrial-protocols-lin/health.svg)](https://phpackages.com/packages/erikwang2013-industrial-protocols-lin)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
