Commit Graph
11 Commits
Author SHA1 Message Date
sirmrak 27703a2f93 fix: убрать detach_kernel_driver() — это отключает audio интерфейсы
Проблема: detach_kernel_driver(0) отключал ядро от интерфейса 0,
который является частью audio function (интерфейсы 0-2).
После этого audio драйвер не мог восстановить устройство.

Решение: Убрать detach_kernel_driver() вообще.
Control transfer с CTRL_TYPE_VENDOR работает без claim interface.
Так работает xvf_host.py — там тоже нет detach_kernel_driver().

Исправленные файлы:
- wyoming_satellite/xvf_usb.py (уже было исправлено)
- examples/example_led.py
2026-05-20 20:43:01 +03:00
sirmrak b1f7185a4f refactor: вернуть управление яркостью без масштабирования цветов
DoA эффект:
- base_color: 0x303030 (серый, без масштабирования)
- doa_color: 0xD4BC00 (бирюзовый, без масштабирования)
- brightness: управляется отдельно через set_led_brightness()

Это как в оригинале до изменений яркости.
2026-05-20 20:20:36 +03:00
sirmrak ba006c506b fix: добавить set_led_brightness() для DoA эффекта
Проблема: после перехода на set_led_doa_color() яркость
не устанавливалась отдельно, поэтому LED не работали.

Решение:
- led_controller.set_led_brightness(brightness) после set_led_doa_color()

Восстановлено поведение как в оригинале:
LED_EFFECT [4] → LED_DOA_COLOR → LED_BRIGHTNESS
2026-05-20 20:09:56 +03:00
sirmrak c62203b220 feat: Multi-event server support + USB LED controller
New features:
- wyoming_satellite/xvf_usb.py — прямой USB доступ к XVF3800 без subprocess
- docs/development/multi-event-server-plan.md — план разработки event server
- examples/respeaker_usb_mic_array.py — исходный файл с LED анимациями

Documentation updates:
- DEPLOY.md — добавлена секция про LED управление и event server план
- docs/integration/mqtt-led.md — обновлена документация по USB и event server
- docs/deployment/systemd-services.md — добавлен event server раздел

Refactoring:
- examples/wyoming-led.py — замена subprocess на XVF3800Controller
- install_service.sh — удалён (устарел, используется install_systemd_services.sh)

Bug fixes:
- wyoming-led.py — яркость DoA эффекта через масштабирование цвета
- systemd сервис — добавлена поддержка wyoming_satellite.xvf_usb модуля
2026-05-20 13:50:16 +03:00
sirmrakandQwen-Coder 75ba5481b6 fix: яркость DoA эффекта через масштабирование цвета
Для LED_EFFECT=4 (DoA) команда LED_BRIGHTNESS не работает.
Яркость управляется через значения цветов в LED_DOA_COLOR.

Изменения:
- Масштабирование base_color и doa_color по brightness (0-255)
- Формат цвета: 0xBBGGRR (BGR byte order)
- Комментарии на русском согласно .qwen/qwen.md

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-05-20 11:41:06 +03:00
sirmrakandQwen-Coder 19a11aac6e feat: custom LED animations mirroring ESPHome effects
Port LED effects from respeaker_usb_mic_array.py to example_led.py:
- Replace built-in XVF3800 effects with custom frame-by-frame animations
- Use LED_RING_COLOR command (resid=20, cmdid=19) for direct LED control
- Implement 11 animations matching home-assistant-voice.yaml:
  - off, twinkle, twinkle_blue, waiting, listening, thinking,
    replying, muted, error, timer_tick, timer_ring
- Muted indicator: 4 red LEDs at mic positions (0°, 90°, 180°, 270°)
- Timer tick: arc shows remaining time with sweep marker
- Add --test mode for hardware verification
- Add --verbose flag for INFO logging
- Enhanced USB diagnostics and error reporting

Technical changes:
- set_led_frame() sends 12×uint32 colors in 0xBBGGRR format
- RGB tuples with _scale() for brightness control
- _pulse_step() for smooth pulsing effects
- _apply_mic_indicators() for muted state visualization

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-05-20 09:56:16 +03:00
sirmrakandQwen-Coder d38719ad53 docs: добавлен settings cheat sheet
- docs/settings-cheatsheet.md — полный справочник всех CLI флагов
- Обновлён docs/README.md — добавлена ссылка на cheat sheet

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-05-19 23:13:01 +03:00
sirmrakandQwen-Coder cae22004b1 Полная синхронизация
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-05-19 19:40:42 +03:00
sirmrak df5ce8a683 переделан MQTT 2026-05-19 15:27:02 +03:00
sirmrak 8f2ff703db Все настроено 2026-05-14 10:19:01 +03:00
sirmrak 87502c55e0 Загрузка исходника 2026-05-09 11:49:44 +03:00