본문으로 건너뛰기
cccskills
무료GitHub에 공개

connectivity-usb-can

USB and CAN connectivity for Zephyr RTOS. Covers USB device stack configuration (CDC ACM, HID, MSC), CAN controller integration, and professional USB-to-CAN adapter patterns including buffering and protocol packetization. Trigger when adding USB interfaces, implementing CAN bus communication, or building hardware diagnostic tools.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(6)

  • SKILL.md2.6 KB
  • assets/can_filters_template.csv80 B
  • references/usb_device_stack.md1.8 KB
  • references/usb_to_can.md2.4 KB
  • scripts/can_filter_lint.py2.3 KB
  • skill-meta.yaml526 B

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Zephyr Connectivity: USB & CAN

Build versatile hardware interfaces using Zephyr's modular USB device stack and robust CAN controller support.

Core Workflows

1. USB Device Stack

Configure and enable standard USB classes for host communication.

  • Reference: usb_device_stack.md
  • Key Tools: CONFIG_USB_DEVICE_STACK, usb_enable(), CDC ACM, HID.

2. USB-to-CAN Integration

Implement high-performance bridge patterns for CAN bus diagnostics and adapters.

  • Reference: usb_to_can.md
  • Key Tools: can_send(), k_msgq, binary packetization, CAN filtering.

Quick Start (USB CDC ACM)

# prj.conf
CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_CDC_ACM=y
#include <zephyr/usb/usb_device.h>

void main(void) {
    usb_enable(NULL);
}

Professional Patterns (Adapter Design)

  • Binary Protocols: Use established protocols like gs_usb for robust data transfer over the USB-to-CAN bridge.
  • Hardware Filtering: Rely on the CAN controller's hardware filters to minimize CPU overhead from irrelevant bus traffic.
  • Thread Safety: Use Zephyr's kernel IPCs (k_msgq, k_fifo) to safely move data between high-priority CAN interrupts and the USB processing thread.

Automation Tools

Examples & Templates

Validation Checklist

  • USB enumeration succeeds and the host sees the expected class interface.
  • CAN frames can be transmitted and received on a known-good test bus.
  • Bridge buffering prevents frame loss under burst traffic conditions.
  • Protocol framing between USB endpoint and CAN payload is decoded consistently on both sides.

Resources

  • References:
    • usb_device_stack.md: Configuring USB classes and descriptors.
    • usb_to_can.md: Adapter patterns and buffering strategies.
  • Scripts:
    • can_filter_lint.py: CAN filter table consistency checker.
  • Assets:
    • can_filters_template.csv: Sample filter definitions.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Custom board bringup for Zephyr RTOS using Hardware Model v2 (HWMv2). Covers directory structure, board.yml metadata, core configuration files (Kconfig, defconfig, CMake), and revision management. Trigger when creating new board definitions or porting Zephyr to custom hardware.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

beriberikix/zephyr-agent-skills712026년 5월 19일 업데이트

Build system management for Zephyr RTOS. Covers West workspace initialization, manifest management, Sysbuild multi-image builds, Kconfig symbols, and CMake integration. Trigger when setting up workspaces, configuring builds, or troubleshooting build-time errors.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

beriberikix/zephyr-agent-skills712026년 5월 19일 업데이트

Bluetooth Low Energy (BLE) integration for Zephyr RTOS. Covers GATT Services/Characteristics, GAP advertising, connection parameters, power optimization strategies, and the professional Send-When-Idle design pattern. Trigger when adding BLE connectivity, optimizing battery life for wireless devices, or implementing custom GATT profiles.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

beriberikix/zephyr-agent-skills712026년 5월 19일 업데이트

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

beriberikix/zephyr-agent-skills712026년 5월 19일 업데이트

Devicetree management for Zephyr RTOS. Covers syntax, bindings, overlays, Hardware Model v2 (HWMv2), and advanced node/property deletion patterns. Trigger when defining hardware topology, creating overlays, or mapping pins and peripherals.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

beriberikix/zephyr-agent-skills712026년 5월 19일 업데이트

Hardware interfacing and peripheral management for Zephyr RTOS. Covers the sensor subsystem (channels, triggers, fetch/get), pin control (Pinctrl) and multiplexing, GPIO management using Devicetree specs, and SoC-level hardware configurations. Trigger when adding new hardware components, configuring pinmux, or developing sensor-based applications.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

beriberikix/zephyr-agent-skills712026년 5월 19일 업데이트

beriberikix의 스킬 모두 보기

이 스킬의 문제 신고