Zephyr Connectivity: IP Networking

SkillAI & models

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.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Zephyr Connectivity: IP Networking skill

What this skill tells your AI

The instructions your AI receives, as published by beriberikix/zephyr-agent-skills in skills/connectivity-ip/SKILL.md and read by ahel’s review.

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.

2. IP Stack Configuration

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

  • Reference: 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.

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

Examples & Templates

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:
    • 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:
    • net_config_audit.py: Quick audit helper for IP stack Kconfig flags.
  • Assets:
    • prj_minimal_coap.conf: Baseline minimal IP profile template.

Signals

GitHub stars
63
Forks
15
Last commit
May 2026
Advanced
Catalog kind
skill
Gateway key
connectivity-ip
Source
github.com/beriberikix/zephyr-agent-skills