---
name: protocol-analyzer-d913fee4fc44
description: Serial protocol analysis and debugging for common embedded interfaces (I2C, SPI, UART)
category: Communication Protocols
allowed-tools:
  - Bash
  - Read
  - Write
  - Edit
  - Glob
  - Grep
graph:
  domains: [domain:embedded-systems]
  specializations: [specialization:embedded-systems]
  skillAreas: [skill-area:rtos-programming, skill-area:firmware-development, skill-area:protocol-design]
  roles: [role:embedded-engineer]
---

# Protocol Analyzer Skill

## Overview

This skill provides serial protocol analysis and debugging capabilities for common embedded communication interfaces including I2C, SPI, and UART.

## Capabilities

### I2C Analysis
- Bus address detection and scanning
- Transaction decoding and timing
- NACK handling and error detection
- Multi-master arbitration analysis
- Clock stretching detection
- 7-bit and 10-bit addressing
- Fast mode and fast mode plus support

### SPI Analysis
- Transaction decoding
- Mode configuration (CPOL/CPHA)
- Clock frequency analysis
- Chip select timing verification
- Full-duplex data capture
- Multi-slave configurations

### UART Analysis
- Frame analysis and decoding
- Baud rate auto-detection
- Parity and stop bit verification
- Flow control analysis (RTS/CTS)
- Break condition detection
- Error frame identification

### Timing Analysis
- Setup and hold time verification
- Clock frequency measurement
- Inter-frame timing analysis
- Protocol timing compliance
- Glitch and noise detection

### Integration
- Saleae Logic analyzer integration
- Sigrok/PulseView support
- Protocol decoder libraries
- Export to standard formats

## Target Processes

- `device-driver-development.js` - Driver debugging and validation
- `hardware-bring-up.js` - Initial communication verification
- `signal-integrity-testing.js` - Protocol signal analysis
- `bsp-development.js` - BSP communication testing

## Dependencies

- Logic analyzer software (Saleae Logic, Sigrok)
- Protocol decoder libraries
- Logic analyzer hardware

## Usage Context

This skill is invoked when tasks require:
- Serial protocol debugging
- Communication timing verification
- Bus error diagnosis
- Protocol compliance testing
- Multi-device communication analysis

## Protocol Configurations

### I2C Standard Settings
```yaml
i2c:
  mode: standard | fast | fast_plus | high_speed
  addressing: 7bit | 10bit
  clock_stretching: enabled | disabled
```

### SPI Mode Settings
```yaml
spi:
  mode: 0 | 1 | 2 | 3  # CPOL/CPHA combinations
  bit_order: msb_first | lsb_first
  word_size: 8 | 16 | 32
```

### UART Settings
```yaml
uart:
  baud_rate: 9600 | 115200 | etc.
  data_bits: 7 | 8 | 9
  parity: none | even | odd
  stop_bits: 1 | 2
```


---
Source attribution: a5c-ai
Original project: https://github.com/a5c-ai/babysitter/blob/feb68abe397acc14f32b34984975c48fedba2b33/library/specializations/embedded-systems/skills/protocol-analyzer/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

# MIT License

Copyright (c) 2025 A5C AI

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: a5c-ai
Original project: https://github.com/a5c-ai/babysitter/blob/feb68abe397acc14f32b34984975c48fedba2b33/library/specializations/embedded-systems/skills/protocol-analyzer/SKILL.md
Attribution basis: Source repository record

Fields of work: Development & Engineering
Roles: Backend Developer, Embedded / IoT Developer, QA / Test Engineer
Specialties: Backend
Tools: Sigrok, Saleae Logic
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: b4734aa6f1f8dce0adebeaf36aeaaf22708d608d1e2b6a2d2eca844de7230a24
