悦悦悦inky-bms.hashnode.dev·6d ago · 20 min readS32K146OFBMU 电池管理系统(BMS)架构深度剖析S32K146OFBMU 电池管理系统(BMS)架构深度剖析 文档版本: V2.0生成日期: 2026-04-21代码规模: 18.3 万行代码,343 个源文件硬件平台: NXP S32K146 (ARM Cortex-M4F @ 80MHz)适用对象: 嵌入式软件工程师、BMS 开发者 📋 目录 整体架构层次 主要模块及其职责 核心数据结构 关键算法详解 通信协议 任务调度00
悦悦悦inkyems.hashnode.dev·Sep 12 · 26 min readHow a Storage BMS Actually Computes Its Charge Current LimitThere is one number in every energy storage system that gets asked for constantly: "How much can we charge right now?" That number is not pulled out of thin air, and it is not simply read from a param00
悦悦悦inkyems.hashnode.dev·Sep 12 · 4 min read一套储能 BMS 的充电电流限值,是怎么一步步算出来的在储能系统里,有一个数字每天都在被追问:"现在最多能充多少电?" 这个数字不是拍脑袋定的,也不是简单地从参数表里读出来的。它是一个经过层层约束、反复取最小、还带了一堆防抖逻辑之后才诞生的结果。它决定了 PCS(储能变流器)此刻允许从电网吸取多少功率,也决定了电池能不能安全地、长久地活下去。 这篇文章我想讲清楚这件事。我会以一套真实的量产代码为底本一套基于S32K146 的储能 BMU 主控固件,电00
悦悦悦inkyems.hashnode.dev·Sep 2 · 17 min readThe Power Game Inside a Storage EMS: One Meter, One Semaphore, and a 200 ms Race Against Reverse PowerBefore We Start I've spent nearly two years doing embedded work on an energy storage EMS. The part of the system I most want to write about is not the fancy protocol stacks — it's a collection of thin00
悦悦悦inkyems.hashnode.dev·Aug 26 · 3 min read储能 EMS 的功率策略:从一块电表到一次逆流的 200 毫秒写在前面 我是薛定谔的悦,储能领域的工程师。最近系统里最让我有表达欲的,不是那些花哨的协议栈,而是一套看起来特别"土"的东西——几块电表、一个信号量、两个预保护值,拼出来的防逆流和防过载。 这套逻辑代码不多,核心就分布在 ccu_sampler 和 kwhmeter_sampler 两个模块里,加起来可能不到两千行。但它是整个储能系统"并网安全"的底线:充电的时候不能把变压器顶爆,放电的时候不能把00