‹ 首页

connectivity-ip

@beriberikix · 收录于 昨天 · 上游提交 2 个月前

IP networking fundamentals for Zephyr RTOS. Covers IoT protocol selection (LwM2M, CoAP, MQTT), IP stack configuration and trimming (IPv4/IPv6, UDP/TCP), and professional SDK integration as Zephyr modules using West manifests. Trigger when building cloud-connected applications, optimizing network memory usage, or integrating external cloud SDKs.

适合你,如果正在用 Zephyr 开发云连接设备或优化网络内存

/ 通过 npx 安装 校验哈希
npx oh-my-skill add beriberikix/zephyr-agent-skills/connectivity-ip
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- beriberikix/zephyr-agent-skills/connectivity-ip
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify beriberikix/zephyr-agent-skills/connectivity-ip
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
58GitHub stars
~587最小装载
~2K含声明引用
~2.1K文本包总量
索引托管

怎么用

商店整理自技能原文 · 版本 ed63cdf · 表述以原文为准
它做什么

装了这个技能后,Claude 会指导你为 Zephyr RTOS 选择物联网协议(LwM2M、CoAP、MQTT),配置 IP 栈(IPv4/IPv6、UDP/TCP)以节省内存,以及将外部云 SDK 作为 Zephyr 模块集成。

什么时候触发

当你要构建云连接应用、优化网络内存使用,或集成外部云 SDK 时,Claude 就会提供相关指导。

装好后可以这样说
Claude 会给出 Kconfig 配置示例。
Claude 会说明极端裁剪方法。
技能原文 SKILL.md作者撰写 · Apache-2.0 · ed63cdf

Zephyr Connectivity: IP Networking

Build memory-efficient, cloud-connected applications using Zephyr's modular IP stack and industry-standard IoT protocols.

Core Workflows
1. Protocol Selection

Choose the right protocol (LwM2M, CoAP, MQTT) based on your device's power and management needs.

  • Reference: [protocol_selection.md](references/protocol_selection.md)
  • Key Tools: CONFIG_COAP, CONFIG_LWM2M, CONFIG_MQTT_LIB.
2. IP Stack Configuration

Tune the networking stack to save Flash and RAM while ensuring reliable communication.

  • Reference: [ip_stack_config.md](references/ip_stack_config.md)
  • Key Tools: CONFIG_NET_IPV4, CONFIG_NET_BUF_RX_COUNT, DNS resolver.
3. SDK & Module Integration

Integrate external cloud SDKs and libraries as first-class Zephyr modules.

  • Reference: [sdk_module_integration.md](references/sdk_module_integration.md)
  • Key Tools: west.yml, zephyr/module.yml, name-allowlist.
Quick Start (Kconfig for CoAP)
# Minimal stack for CoAP over UDP
CONFIG_NETWORKING=y
CONFIG_NET_UDP=y
CONFIG_NET_IPV4=y
CONFIG_COAP=y
CONFIG_DNS_RESOLVER=y
Professional Patterns (Cloud Connectivity)
  • Extreme Trimming: Disable TCP and IPv6 if not strictly required to reclaim 10KB+ of RAM.
  • Manifest Control: Use an allow-list in your west.yml to prevent cloning hundreds of megabytes of unused vendor modules.
  • Async DNS: Use the asynchronous DNS resolver to prevent blocking the main application thread during host lookup.
Automation Tools
  • [net_config_audit.py](scripts/net_config_audit.py): Audit prj.conf networking flags for protocol/profile consistency.
Examples & Templates
  • [prj_minimal_coap.conf](assets/prj_minimal_coap.conf): Starter footprint-trimmed CoAP-over-UDP configuration.
Validation Checklist
  • [ ] Device obtains network connectivity and resolves DNS for the configured backend.
  • [ ] Selected protocol path (CoAP, MQTT, or LwM2M) completes connect and message exchange.
  • [ ] Disabled stack features (for example IPv6 or TCP) are absent from final .config when trimmed.
  • [ ] RAM/Flash footprint meets the expected optimization target after stack tuning.
Resources
  • [References](references/):
  • protocol_selection.md: LwM2M vs CoAP vs MQTT.
  • ip_stack_config.md: Optimizing buffers and disabling unused protocols.
  • sdk_module_integration.md: West manifest management and SDK modules.
  • [Scripts](scripts/):
  • net_config_audit.py: Quick audit helper for IP stack Kconfig flags.
  • [Assets](assets/):
  • prj_minimal_coap.conf: Baseline minimal IP profile template.
按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。