Skip to content

feat: 增加 GEM 报警发送启停 - #22

Merged
CSJ608 merged 1 commit into
mainfrom
feat-alarm-send-control
Aug 29, 2026
Merged

CSJ608 merged 1 commit into
mainfrom
feat-alarm-send-control

Conversation

@CSJ608

@CSJ608 CSJ608 commented Aug 29, 2026

Copy link
Copy Markdown
Owner

变更

  • 增加可替换的 S5F3/S5F4 工程消息对与 GemAlarmControlCodec
  • Host 可启用或禁用单个已注册报警的通知发送
  • Equipment 原子更新注册状态,未知报警返回失败应答
  • 禁用状态在通知入口生效,不改变报警目录或解释报警代码位
  • 补充严格协议向量、注册生命周期与真实 TCP 垂直测试
  • 更新 README、路线图、GEM/标准边界文档和 CHANGELOG

边界

  • 已注册报警默认允许发送;释放并重新注册恢复默认状态
  • 未注册报警通知保持既有行为
  • 不实现全部报警/批量控制、报警条件屏蔽、历史、持久化或在线状态门控
  • 工程基线使用 S5F3/S5F4 和 0x80/0x00,仍需授权 E30-0526 与目标设备核对

验证

  • dotnet build SecsFrame.slnx -c Release:通过,0 警告
  • SecsFrame.Tests net8.0/net10.0:各 196/196 通过
  • 官方 nuget.org secs4net 3.1.0 互操作:隔离重复 10 轮,每轮 2/2 通过
  • 本机 net48 testhost 停在 xUnit 适配器启动、未进入测试;由 PR Windows runner 作为合并门槛
  • 一次并行全量运行在 net8.0 互操作清理阶段触发 StreamFrame 2.3.1 Reconnect() 空引用,随后隔离 10 轮无法复现;本 PR 不混入无关生命周期修改

@CSJ608
CSJ608 merged commit 1689028 into main Aug 29, 2026
4 checks passed
@CSJ608
CSJ608 deleted the feat-alarm-send-control branch August 29, 2026 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant