[WORK] Второй официальный лист: A40/A50 закрыты; граф 882 -> 1753 ребра, 128 устройств, 41 хост; XLSX обновлён

This commit is contained in:
root committed 2026-11-06 15:15:51 +03:00
1 parent dbd9aab6c5
commit fb7b92cdc2
8 files changed
+12211

No files matched your search

+83
View File
@@ -0,0 +1,83 @@
# Источники совместимости: два официальных листа
Дата: 06.11.2026. Найдены и разобраны **два** официальных источника,
второй закрыл пробел по MeetingBar A40/A50.
## Источник 1: матрица (XLSX от вендора)
`Yealink Compatibility Matrix.xlsx` — 21 хост × 42 аксессуара = **882 ребра**.
## Источник 2: лист аксессуаров на портале
`support.yealink.com/docs/a50/rooms-accessories-compatibility-lists/...`
Формат: строки = аксессуары, столбцы = хосты (41 хост!) — **961 ребро**.
Покрывает то, чего не было в матрице:
| Хост | Поддержано аксессуаров |
|---|---|
| **MeetingBar A50** | **23** |
| **MeetingBar A40** | **20** |
| MeetingBoard Pro | 30 |
| MeetingBoard | 24 |
| MeetingEye 500 | 24 |
| AVHub | 19 |
| MeetingBar A20 / A30 | 14 |
| MCore 4 | 10 |
| SmartVision 80 | 16 |
| UVC86 | 18 |
| UVC84 | 13 |
## Итоговый граф
| Показатель | Значение |
|---|---|
| Рёбер всего | **1753** |
| Пригодны для подбора | **1747** |
| Исключены (конфликт) | 6 |
| Устройств в каталоге | **128** |
| Хостов | 41+ |
## Проверка: подбор для A50 теперь работает
```
$ select.py --host "MeetingBar A50" --pickup 6
ХОСТ: MeetingBar A50 (роль: codec)
функций: 31
встроенный захват: 10.0 м
[a] 9 шт
PA20 до 4 only using 1 at a time
VCM35 до 3 is used as an expansion microphone
VCM38 до 3
CM20 до 3 is used as an expansion microphone
CS10 до 3 Only work with CM20
CM50 до — max depends on the accessory
[camera] 4 шт
UVC30 — used as a content camera
UVC86 3 A50 version requires ...
UVC86 E2 3
SmartVision 80 3
```
**Встроенный захват 10 м ≥ требуемых 6 м** — расширительные микрофоны
для комнаты Medium не нужны.
## Условия — важные, не теряются
Лист даёт не только «да/нет», но и условия:
- `CS10` — **только с CM20**
- `CM20/VCM35` — «used as an expansion microphone»
- `UVC86` — «A50 version requires …» (требование к версии линзы)
- `PA20` — «pairing up to 4, but only using 1 at a time»
Движок эти условия сохраняет и показывает.
## Осталось
1. Часть устройств с ролью `unknown` (23) — уточнить роли
2. Расширить список ролей (mount, display, headset)
3. Собрать полный BOM с количеством (сейчас движок показывает варианты)
File diff suppressed because it is too large. Load diff
+184
View File
@@ -9,33 +9,51 @@ devices:
role: sharing_or_hub
seen_in:
- matrix
- accessories_list
aliases: []
- name: AVBridge
role: sharing_or_hub
seen_in:
- matrix
- accessories_list
aliases: []
- name: AVHub
role: sharing_or_hub
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: BYOD-BOX
role: unknown
seen_in:
- accessories_list
- name: CM20
role: audio
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: CM20+CS10
role: audio
seen_in:
- accessories_list
- name: CM50
role: audio
seen_in:
- matrix
- accessories_list
aliases: []
- name: CM50+CS10-D+AP08
role: audio
seen_in:
- accessories_list
- name: CP50
role: audio
seen_in:
- matrix
- accessories_list
aliases: []
- name: CP700
role: audio
@@ -56,6 +74,7 @@ devices:
role: audio
seen_in:
- matrix
- accessories_list
aliases: []
- name: CPE95
role: audio
@@ -67,35 +86,41 @@ devices:
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: CPW90
role: audio
seen_in:
- product_family
- accessories_list
aliases: []
- name: CPW90-BT
role: audio
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: CS10
role: audio
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: CS10-D
role: audio
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: CTP18
role: touch
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: CTP20
role: touch
@@ -107,7 +132,36 @@ devices:
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: ETV65/ETV86
role: unknown
seen_in:
- accessories_list
- name: Host Wi-Fi
role: unknown
seen_in:
- accessories_list
- name: MB-12X Pro
role: unknown
seen_in:
- accessories_list
- name: MB-CAM-12X
role: unknown
seen_in:
- accessories_list
- name: MB-CAM-6X
role: unknown
seen_in:
- accessories_list
- name: MB-CAM-6X/MB-CAM-12X
role: unknown
seen_in:
- accessories_list
- name: MB-Remote
role: unknown
seen_in:
- accessories_list
- name: MCore
role: codec
seen_in:
@@ -128,6 +182,22 @@ devices:
seen_in:
- product_family
aliases: []
- name: MCore-OPS
role: codec
seen_in:
- accessories_list
- name: MCore-OPS-G2
role: codec
seen_in:
- accessories_list
- name: MCore-OPS-G2T
role: codec
seen_in:
- accessories_list
- name: MCore-OPS-T
role: codec
seen_in:
- accessories_list
- name: MeetingBar A10
role: codec
seen_in:
@@ -198,6 +268,10 @@ devices:
seen_in:
- product_family
aliases: []
- name: MeetingDisplay
role: unknown
seen_in:
- accessories_list
- name: MeetingEye 400
role: codec
seen_in:
@@ -234,6 +308,10 @@ devices:
seen_in:
- matrix
aliases: []
- name: MSketch
role: unknown
seen_in:
- accessories_list
- name: MSpeaker
role: speaker
seen_in:
@@ -244,18 +322,21 @@ devices:
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: MSpeaker pro
role: speaker
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: MSpeech
role: audio
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: MTouch
role: touch
@@ -266,21 +347,25 @@ devices:
role: touch
seen_in:
- product_family
- accessories_list
aliases: []
- name: MTouch II
role: touch
seen_in:
- product_family
- accessories_list
aliases: []
- name: MTouch II/MTouch Plus/MTouch E2
role: touch
seen_in:
- matrix
- accessories_list
aliases: []
- name: MTouch Plus
role: touch
seen_in:
- product_family
- accessories_list
aliases: []
- name: MTouch Plus-EXT
role: touch
@@ -291,12 +376,22 @@ devices:
role: touch
seen_in:
- product_family
- accessories_list
aliases: []
- name: MTower
role: unknown
seen_in:
- accessories_list
- name: MVC-BYOD-Extender (Only work with MTR bundle)
role: codec
seen_in:
- accessories_list
- name: PA20
role: audio
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: PVB 860/750/650
role: codec
@@ -318,6 +413,10 @@ devices:
seen_in:
- matrix
aliases: []
- name: Remote Control (included in the MeetingDisplay package)
role: unknown
seen_in:
- accessories_list
- name: Roomcast
role: codec
seen_in:
@@ -330,6 +429,14 @@ devices:
- matrix
- product_family
aliases: []
- name: RoomSensor
role: unknown
seen_in:
- accessories_list
- name: RoomSensor Pro
role: unknown
seen_in:
- accessories_list
- name: SmartVision 40
role: camera
seen_in:
@@ -344,7 +451,20 @@ devices:
role: camera
seen_in:
- product_family
- accessories_list
aliases: []
- name: Third-Party Dante or Analog Microphone
role: unknown
seen_in:
- accessories_list
- name: Third-Party Dante or Analog Speaker
role: unknown
seen_in:
- accessories_list
- name: USB Connector
role: unknown
seen_in:
- accessories_list
- name: UVC20
role: camera
seen_in:
@@ -355,24 +475,32 @@ devices:
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: UVC30 Content Camera
role: camera
seen_in:
- accessories_list
- name: UVC34
role: camera
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: UVC40
role: camera
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: UVC40 E2
role: camera
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: UVC42
role: camera
@@ -394,22 +522,30 @@ devices:
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: UVC84/UVC86
role: camera
seen_in:
- accessories_list
- name: UVC85
role: camera
seen_in:
- matrix
- accessories_list
aliases: []
- name: UVC86
role: camera
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: UVC86 E2
role: camera
seen_in:
- matrix
- accessories_list
aliases: []
- name: UVC88
role: camera
@@ -426,12 +562,18 @@ devices:
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: VCH51 Pro
role: sharing_or_hub
seen_in:
- product_family
- accessories_list
aliases: []
- name: VCH51 Pro[3]
role: sharing_or_hub
seen_in:
- accessories_list
- name: VCH51pro
role: sharing_or_hub
seen_in:
@@ -442,58 +584,100 @@ devices:
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: VCM35
role: audio
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: VCM35 Pro
role: audio
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: VCM36-W
role: audio
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: VCM36-W Pro
role: audio
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: VCM38
role: audio
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: VCR11
role: remote
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: VCR20
role: remote
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: VCR20[1]
role: remote
seen_in:
- accessories_list
- name: VCR20[2]
role: remote
seen_in:
- accessories_list
- name: Wireless Content Sharing Dongle
role: unknown
seen_in:
- accessories_list
- name: Wireless Microphone
role: unknown
seen_in:
- accessories_list
- name: WPP20
role: sharing_or_hub
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: WPP30
role: sharing_or_hub
seen_in:
- matrix
- product_family
- accessories_list
aliases: []
- name: Yealink Room Designer
role: unknown
seen_in:
- accessories_list
- name: Yealink Room Designer 2
role: unknown
seen_in:
- accessories_list
- name: Yealink RoomConnect
role: unknown
seen_in:
- accessories_list
- name: YPS20
role: unknown
seen_in:
- accessories_list
File diff suppressed because it is too large. Load diff
Binary file not shown.
+51
View File
@@ -77,6 +77,27 @@ def load_product_family():
return sorted(set(models))
def load_accessories_by_host():
"""Дополнительный источник: rooms-accessories-compatibility-lists (A40/A50 и др.)."""
import yaml
f = os.path.join(BASE, "accessories_by_host.yaml")
if not os.path.exists(f):
return {}
d = yaml.safe_load(open(f, encoding="utf-8")) or {}
out = {}
for e in d.get("edges") or []:
host = (e.get("host") or "").strip()
item = (e.get("item") or "").strip()
if not host or not item:
continue
out.setdefault(host, []).append({
"model": item, "supported": bool(e.get("supported")),
"max_qty": e.get("max_qty"), "note": e.get("condition"),
"origin": "accessories_list",
})
return out
def load_conflicts():
"""Пары (хост, аксессуар) с расхождением источников — исключаются из подбора."""
import yaml
@@ -98,6 +119,8 @@ def main():
hosts = load_matrix()
family = load_product_family()
conflicts = load_conflicts()
extra = load_accessories_by_host()
print('хостов из accessories-list:', len(extra))
print("пар с расхождением источников: %d" % len(conflicts))
# каталог: все устройства, которые встретились
@@ -137,6 +160,34 @@ def main():
"source": "matrix",
})
# добавляем рёбра из accessories-list
have_pairs = {(e["from"].strip().lower(), (e["to"] or "").strip().lower())
for e in edges}
added = 0
for host, items in extra.items():
for it in items:
pair = (host.strip().lower(), it["model"].strip().lower())
if pair in have_pairs:
continue
edges.append({
"from": host, "to": it["model"], "kind": "supports",
"supported": it["supported"], "max_qty": it["max_qty"],
"condition": (it["note"] or "")[:200] or None,
"usable": True, "source": "accessories_list",
})
have_pairs.add(pair)
added += 1
entry = catalog.setdefault(it["model"].lower(),
{"name": it["model"], "role": role_of(it["model"]),
"seen_in": []})
seen = entry.get("seen_in")
if isinstance(seen, list):
if "accessories_list" not in seen:
seen.append("accessories_list")
else:
entry["seen_in"] = ["accessories_list"]
print("рёбер добавлено из accessories-list:", added)
os.makedirs(OUT, exist_ok=True)
with open(os.path.join(OUT, "catalog.yaml"), "w", encoding="utf-8") as f:
yaml.safe_dump({"vendor": "yealink",
+11
View File
@@ -165,6 +165,17 @@ def main():
wc = wb.create_sheet("Совместимость")
head(wc, ["Хост", "Аксессуар", "Поддержка", "Макс. кол-во", "Условие", "Пригодно"])
n_edges = 0
# источник 2: rooms-accessories-compatibility-lists (A40/A50 и др.)
ab = os.path.join(OUT, "accessories_by_host.yaml")
if os.path.exists(ab):
d2 = yaml.safe_load(open(ab, encoding="utf-8")) or {}
for e in d2.get("edges") or []:
wc.append([e.get("host"), e.get("item"),
"да" if e.get("supported") else "нет",
e.get("max_qty") or "",
strip_marks(e.get("condition"))[:120],
"да"])
n_edges += 1
for f in sorted(glob.glob(os.path.join(OUT, "matrix", "*.yaml"))):
if os.path.basename(f).startswith("_"):
continue
@@ -0,0 +1,95 @@
#!/usr/bin/env python3
"""Парсит «Rooms Accessories Compatibility Lists» (строки=аксессуары, столбцы=хосты)
и добавляет рёбра в граф — закрывает пробел A40/A50.
"""
import glob
import os
import re
import sys
BASE = "/opt/work-hub/compat"
OUT = BASE
def fix(s):
if s is None:
return ""
s = str(s)
for enc in ("cp1251", "cp866"):
try:
return s.encode(enc).decode("utf-8")
except Exception:
continue
return s
def parse_qty(note):
m = re.search(r"up to\s*(\d+)", note, re.I)
return int(m.group(1)) if m else None
def main():
import yaml
files = glob.glob(os.path.join(BASE, "raw", "rooms-accessories-compatibility-lists-*.yaml"))
if not files:
print("нет файла rooms-accessories-compatibility-lists")
return 1
d = yaml.safe_load(open(files[0], encoding="utf-8"))
edges = []
hosts = set()
for table in d.get("tables") or []:
if not table:
continue
header = [fix(c).strip() for c in table[0]]
for row in table[1:]:
if not row:
continue
item = fix(row[0]).strip()
if not item:
continue
for i, cell in enumerate(row[1:], start=1):
host = header[i] if i < len(header) else ""
host = re.sub(r"\s+", " ", fix(host)).strip()
if not host:
continue
c = fix(cell).strip()
if not c:
continue
supported = bool(re.search(r"[√✓✔]", c))
if not supported and re.search(r"[×✗✘]", c):
supported = False
elif not supported:
continue
hosts.add(host)
note = re.sub(r"^[√✓✔×✗✘\s]+", "", c)[:200]
edges.append({"host": host, "item": item, "supported": supported,
"max_qty": parse_qty(note), "condition": note or None})
print("хостов:", len(hosts))
for h in sorted(hosts):
n = sum(1 for e in edges if e["host"] == h)
sup = sum(1 for e in edges if e["host"] == h and e["supported"])
print(" %-24s рёбер %2d (поддержано %2d)" % (h[:24], n, sup))
# сохраняем как отдельный источник
path = os.path.join(OUT, "accessories_by_host.yaml")
with open(path, "w", encoding="utf-8") as f:
yaml.safe_dump({"source": {"file": os.path.basename(files[0]),
"kind": "official_support_page",
"url": "https://support.yealink.com/docs/a50/rooms-accessories-compatibility-lists/f4c068aafd024b338340ddb628f1c0f5",
"verified": True},
"edges": edges}, f, allow_unicode=True, sort_keys=False, width=200)
print("\nсохранено:", path)
print("всего рёбер:", len(edges))
# показываем A40/A50
for want in ("MeetingBar A40", "MeetingBar A50"):
rows = [e for e in edges if e["host"] == want and e["supported"]]
print("\n%s: поддержано %d" % (want, len(rows)))
for e in rows[:12]:
print(" %-16s до %-4s %s" % (e["item"], e["max_qty"] or "—",
(e["condition"] or "")[:40]))
return 0
if __name__ == "__main__":
sys.exit(main())