百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

lwpkt

> 编程语言
开源

针对基于 RS-485 的多设备通信的轻量级分组协议结构

378 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

针对基于 RS-485 的多设备通信的轻量级分组协议结构

Packet protocol manager

LwPKT is a generic packet protocol library optimized for embedded systems.

Open documentation

Features

  • Written in C (C11), compatible with stdint.h data types
  • Platform independent, no architecture specific code
  • Uses LwRB library for data read/write operations
  • Support for events on packet-ready, read and write operations
  • Optimized for embedded systems, allows high optimization for data transfer
  • Configurable packet structure with support for variable-length data, theoretically unlimited size
  • Allows multiple nodes in network with from and to addresses
  • Separate optional field for command data type
  • CRC-8 or CRC-32 check to handle data transmission errors, selectable at compile time
  • Runtime toggle of address, command, flags and CRC features per packet instance
  • Optional extended (variable-length) address and command encoding for larger identifier ranges
  • Hardened parsing with bounded variable-length fields, rejecting malformed or oversized packets
  • Python implementation available, published to PyPI as lwpkt
  • User friendly MIT license

Applications

To name a few:

  • Communication in RS-485 network between various devices
  • Low-level point to point packet communication (UART, USB, ethernet, ...)

Contribute

Fresh contributions are always welcome. Simple instructions to proceed:

  1. Fork Github repository
  2. Follow C style & coding rules and use clang-format to format the code
  3. Create a pull request to develop branch with new features or bug fixes

Alternatively you may:

  1. Report a bug
  2. Ask for a feature request

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ccommanddatadeviceslength

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言