[WORK] Три этапа: скан всех 174 PDF (31 устройство, AVB найден), функции в BOM по ролям, Dante-комплект в выводе

This commit is contained in:
root committed 2026-11-06 15:24:29 +03:00
1 parent 0962104843
commit c3b61771a5
4 files changed
+533 -2

No files matched your search

+86
View File
@@ -0,0 +1,86 @@
# Три этапа: скан всех PDF, PRO AV, функции в BOM
Дата: 06.11.2026.
## Этап 1: скан всех PDF
Вместо 44 разобранных даташитов — **все PDF** через `pdftotext`:
| Показатель | Значение |
|---|---|
| PDF найдено | 176 |
| С текстом | 174 |
| Устройств | 31 |
| Функций | 27 |
Новые находки против скана по 44 файлам:
| Функция | Было | Стало |
|---|---|---|
| SIP | 6 | **12** |
| Auto Framing | 8 | **11** |
| Speaker Tracking | 5 | **11** |
| 802.1X / LLDP / VLAN | 5 | **10** |
| SRTP | 4 | **8** |
| AirPlay / Miracast | 3 | **6** |
| Presenter Tracking | 1 | **3** |
| **AVB** | 0 | **1** ← нашёлся |
## Этап 3: функции в BOM
BOM теперь учитывает требования **по ролям**:
```
какая роль отвечает за функцию:
AEC, ANC, Dante, AES67 → audio
Auto Framing, Speaker Track → camera
AirPlay, Miracast, USB-C → sharing_or_hub
SIP, H.323, Teams, Zoom → codec
PoE, Wi-Fi, Bluetooth → network
```
### Проверка: AEC не ломает камеру
```
$ bom.py --host "MeetingBar A50" --seats 10 --need "AEC"
Хост MeetingBar A50 1
Микрофон встроенный 1
Камера UVC86 1 ← камера осталась!
Панель CTP25 1
Презентация WPP30 1
```
**До исправления** камера отсекалась, потому что AEC применялся ко всем
аксессуарам. Теперь — только к аудио.
### Проверка: Dante даёт нативный комплект
```
$ bom.py --host "MeetingEye 500" --seats 20 --need "Dante"
Хост MeetingEye 500 1
Камера UVC30 1
Панель CTP18 1
Презентация WPP30 1
Dante-решение CM50+CS10-D+AP08 1 ← нативный комплект
⚠ хост НЕ имеет функции «Dante» — нужен комплект
```
Движок честно говорит: сам хост Dante не даёт, но решение есть — нативный
комплект Yealink.
## Что это даёт
| Требование партнёра | Что делает движок |
|---|---|
| «AEC обязателен» | оставляет камеры, фильтрует микрофоны по AEC |
| «Нужен Dante» | предупреждает + предлагает CM50+CS10-D+AP08 |
| «Нужен HDBaseT» | честно: у Yealink нет |
| «4K» | фильтрует камеры по 4K |
## Осталось
1. **PRO AV функции** (этап 2) — спикеры и DSP: свой набор, пока только из PDF
2. Цены → BOM станет сметой
3. Дисплеи и кронштейны в BOM (роли есть, в подборе нет)
+288
View File
@@ -0,0 +1,288 @@
source:
method: pdftotext по всем PDF
files: 176
devices:
- device: A10
features:
PoE: You can power the CTP18 through PoE, as shown in the figure below.
USB-C: The MeetingBar A10 can use a USB-C cable for Share Content.
Wi-Fi: MeetingBar A10 and CTP18 must be on the same LAN or connected to the same Wi-Fi before pairing and completing
AEC: beamforming algorithm, together with technology of processing on acoustic echo cancellation and the
H.323: Based on Android 11 OS, A10 supports H.323 and SIP in one SKU. Cooperating A10 with Yealink Wireless
SIP: Based on Android 11 OS, A10 supports H.323 and SIP in one SKU. Cooperating A10 with Yealink Wireless
Bluetooth: A10 combines a computing unit, camera, microphones, speaker, adjustable TV Clamp, Wi-Fi, and Bluetooth, which
4K: Featuring a 4K camera and 120° lens, A10 delivers outstanding video quality. Together with the electric lens cap, its
Auto Framing: AI technologies, including Auto Framing, Speaker Tracking, and so on, allow users to experience a smarter and
Speaker Tracking: AI technologies, including Auto Framing, Speaker Tracking, and so on, allow users to experience a smarter and
802.1X: • IEEE802.1X
LLDP: • VLAN, LLDP
VLAN: • VLAN, LLDP
- device: A50
features:
4K: '• Maximum resolution: 4K'
Teams: In addition, MeetingBar A50 seamlessly supports Microsoft Teams Rooms (MTR), delivering a consistent and
Auto Framing: '- Auto Framing'
Speaker Tracking: '- Speaker Tracking'
AEC: '• Audio processing: Full duplex, AEC (Acoustic Echo Cancellation), AGC (Automatic Gain'
ANC: '• Noise suppression: AI-enhanced noise suppression'
USB-C: Network cable, 1.2m/3.94ft USB C to C cable, High stand , Cable management cover)
H.323: • H.323/SIP:1080p30fps
SIP: • H.323/SIP:1080p30fps
Bluetooth: • Bluetooth 5.0
Wi-Fi: • Wi-Fi 6
- device: CP50 CPE40
features:
PoE: Up to 8 devices can be cascaded via POE cable, meeting the pickup and amplification needs of different sizes of
USB-C: '- 1.2m dual-head USB-C cable'
Bluetooth: Features integrated mute, volume +, volume -, and Bluetooth physical buttons, synchronizing with meeting
Zoom: Zoom Rooms Accessories Compatibility Lists
- device: CT300
features:
PoE: Hardware 1 × PoE port
- device: CTP25 PTC25
features:
PoE: • 1 x RJ45 port (PoE 802.3af compaint)
USB-C: USB-C wired content sharing/BYOD/power
Bluetooth: • Bluetooth 5.0
Wi-Fi: Wireless • Wi-Fi 6 802.11a/b/g/n/ac/ax
4K: and enhancing convenience. The USB-C cable of CTP25 supports 4K content sharing, wired BYOD (Bring Your
802.1X: • 802.1X and LLDP-MED
LLDP: • 802.1X and LLDP-MED
VLAN: Network • VLAN, 802.1P/Q, and Diffserv
- device: ME 500 PRO
features:
AEC: Audio codec - Multi-channel acoustic echo cancellation
USB-C: '- Supports HDMI / USB-C video input'
H.323: various computers. Supports H.323/SIP dual protocols, widely compatible, and deeply integrated with Yealink
SIP: various computers. Supports H.323/SIP dual protocols, widely compatible, and deeply integrated with Yealink
4K: generation 4K ultra-clear PTZ camera featuring 36x hybrid zoom and also supports third-party camera input,
SRTP: '- SRTP/TLS, AES encryption'
802.1X: Security - IEEE 802.1X, LLDP-MED, VLAN
LLDP: Security - IEEE 802.1X, LLDP-MED, VLAN
VLAN: Security - IEEE 802.1X, LLDP-MED, VLAN
- device: MTP30 Mtouch plus
features:
Bluetooth: '• Bluetooth: BT 5.2'
Wi-Fi: '• WiFi: IEEE 802.11 a/b/g/n/ac/ax.'
AirPlay: You can share the content via Airplay, Miracast or GoogleCast to MTouch Plus, and you can experience
Miracast: You can share the content via Airplay, Miracast or GoogleCast to MTouch Plus, and you can experience
- device: Mcore
features:
Bluetooth: '• Bluetooth: BT 5.2'
Wi-Fi: '• WiFi: IEEE 802.11 a/b/g/n/ac/ax'
Zoom: '- Zoom Rooms'
Teams: '- Microsoft Teams Rooms'
- device: Mcore Kit
features:
USB-C: USB-C or HDMI ports. Additionally, the MCore 4 is equipped with an HDMI-In interface,
Bluetooth: cables or power sources. Additionally, the RoomSensor operates via Bluetooth (BLE),
Wi-Fi: 'WiFi: IEEE 802.11 a/b/g/n/ac/ax'
4K: supporting 4K resolution auxiliary stream input to ensure lossless image presentation, further
Teams: Basic Component of Microsoft Teams Room System
- device: Me 400
features:
AEC: post-processing on acoustic echo cancellation and the dereverberation algorithm, brings
USB-C: '- Wireless Microphone • Bandwidth Requirements: • HDMI/USB-C (VCH51)'
H.323: • H.323/SIP • Virtual remote control
SIP: • H.323/SIP • Virtual remote control
Bluetooth: codec, camera, microphone, speaker, Wi-Fi, and Bluetooth, MeetingEye 400 provides you a solution of simple
Wi-Fi: codec, camera, microphone, speaker, Wi-Fi, and Bluetooth, MeetingEye 400 provides you a solution of simple
4K: Smart UHD 4K Video Conferencing Endpoint
AirPlay: '- TV Mount Kit - 1080p30: 512Kbps or more (H.265) • Apple AirPlay'
Miracast: '- 720p30: 384Kbps or more (H.265) • Miracast'
Auto Framing: Featuring AI technology, including Auto Framing and Speaker Tracking, MeetingEye 400 • Built-in 8 MEMS microphone arrays
Speaker Tracking: Featuring AI technology, including Auto Framing and Speaker Tracking, MeetingEye 400 • Built-in 8 MEMS microphone arrays
SRTP: '- G.722 • SRTP/TLS/H.235/AES 256-bit encryption • Storage temperature: -30~70°C'
802.1X: '- G.729 • VLAN, IEEE802.1X, LLDP-MED'
LLDP: '- G.729 • VLAN, IEEE802.1X, LLDP-MED'
VLAN: '- G.729 • VLAN, IEEE802.1X, LLDP-MED'
- device: Me 500
features:
Zoom: For the compatible devices and the maximum number of compatible devices, please refer to Zoom Rooms
USB-C: -Supports HDMI / USB-C video input
H.323: MeetingEye 500 supports standard Sip/H.323, Tencent Meeting, UME, Yealink Meeting, YMS,
SIP: MeetingEye 500 supports standard Sip/H.323, Tencent Meeting, UME, Yealink Meeting, YMS,
Bluetooth: '• Bluetooth: Bluetooth 5.0'
Wi-Fi: '• Wi-Fi: 2.4GHz/5GHz dual-mode'
4K: select and enlarge the displayed content; can be used with a new generation of 4K
AirPlay: • AirPlay (Apple AirPlay)
Miracast: • Miracast
SRTP: -SRTP/TLS, AES encryption
802.1X: -IEEE 802.1X, LLDP-MED, VLAN
LLDP: -IEEE 802.1X, LLDP-MED, VLAN
VLAN: -IEEE 802.1X, LLDP-MED, VLAN
AEC: '- Multi-channel acoustic echo cancellation'
Auto Framing: MeetingEye 500 works with AI cameras to achieve AI technologies, including Auto Framing and Speaker Tracking,
Speaker Tracking: MeetingEye 500 works with AI cameras to achieve AI technologies, including Auto Framing and Speaker Tracking,
PoE: Cable Lock Box PoE Adapter (Optional)
- device: Me 900
features:
Zoom: For the compatible devices and the maximum number of compatible devices, please refer to Zoom Rooms
AEC: Audio Codec and Technology - Multi-channel acoustic echo cancellation
PoE: '• VCH port supports POE power supply (only supports Yealink devices):'
USB-C: '- USB-C *1'
H.323: 8 microphones. MeetingEye 900 supports the H.323/SIP protocol and is compatible with different communication
SIP: 8 microphones. MeetingEye 900 supports the H.323/SIP protocol and is compatible with different communication
4K: 4K Ultra HD large conference room, split-type video conferencing endpoint
SRTP: '- SRTP/TLS, AES encryption'
802.1X: '- IEEE 802.1X, LLDP-MED, VLAN'
LLDP: '- IEEE 802.1X, LLDP-MED, VLAN'
VLAN: '- IEEE 802.1X, LLDP-MED, VLAN'
- device: Meeting Board
features:
AEC: processing acoustic echo cancellation and reverberation suppression, brings high-quality 8m full-duplex calls and
H.323: H.323 & SIP
SIP: H.323 & SIP
Bluetooth: • Built-in Bluetooth 5.0
Wi-Fi: WIFI6 wireless presentation
4K: 4K built-in camera
Presenter Tracking: and Speaker Tracking, there are more AI-based camera tracking features like Picture in Picture, Presenter Tracking,
Auto Framing: noise handling to provide a FHD video conferencing experience. Not to mention the classic real-time Auto Framing
Speaker Tracking: and Speaker Tracking, there are more AI-based camera tracking features like Picture in Picture, Presenter Tracking,
SRTP: • SRTP/TLS, AES 256-bit encryption
802.1X: • IEEE802.1X
LLDP: • VLAN, LLDP
VLAN: • VLAN, LLDP
- device: Meeting Display
features:
Bluetooth: 'Bluetooth: Bluetooth 5.1'
Wi-Fi: 'Wireless WiFi: Wi-Fi 6'
AirPlay: AirPlay
Miracast: Miracast
- device: Mspeaker Pro
features:
PoE: MSpeaker Pro utilizes a standard PoE/PoE+ power supply, requiring only a single network
- device: PVB MeetingBoard PRO
features:
Bluetooth: especially mirrors. Minimize interference from nearby wireless devices, Bluetooth devices, and
Wi-Fi: connection, make sure the room has strong Wi-Fi coverage and point the antenna toward the
Auto Framing: The camera's AF (Auto Framing) and ST (Speaker Tracking) features automatically frame participants
Speaker Tracking: The camera's AF (Auto Framing) and ST (Speaker Tracking) features automatically frame participants
4K: 4K camera solution. It is equipped with Yealink's fully self-developed intelligent AI voice
AEC: • Multi-channel acoustic echo cancellation
ANC: Technology • Noise suppression technology
Teams: 't • Device management: Yealink Management Cloud Service (YMCS), Microsoft Teams'
AirPlay: '- AirPlay'
Miracast: '- Miracast'
SRTP: '• Encryption algorithms: supports SRTP media stream encryption and AES-256'
802.1X: '• Security protocols: supports 802.1X, LLDP-MED, and other network security'
LLDP: '• Security protocols: supports 802.1X, LLDP-MED, and other network security'
VLAN: '• Security mechanisms: supports VLAN, 802.1P/Q, Diffserv, and other QoS services'
- device: PVT140 A40
features:
AEC: 'Audio processing: Full duplex, AEC (Acoustic Echo'
ANC: 'Noise suppression: AI-enhanced noise suppression'
USB-C: 2x USB2.0C USB-C port
H.323: 'H.323/SIP: 1080p30fps'
SIP: 'H.323/SIP: 1080p30fps'
Bluetooth: Bluetooth 5.0
Wi-Fi: Network Wi-Fi 6
4K: 'Video output resolution: 4k (2160p) 30fps, 1080p60fps'
Teams: Microsoft Device Management Platform(Microsoft Teams
Auto Framing: Auto Framing
Speaker Tracking: Speaker Tracking
- device: Pro AV
features:
Dante: exceptional automation capabilities. With support for up to 16x16 Dante audio channels, including 8 optimized
AEC: channels with dynamic AEC, intelligent noise cancellation, and reverberation suppression, coupled with 4x4 analog
PoE: '- Each port supports IEEE802.3at PSE'
USB-C: USB Channels
AES67: deployment. It also supports the Dante AES67 protocol, offering expandability for the CM50 system. With
Teams: Deep Integration with Microsoft Teams
802.1X: Set 802.1x
LLDP: Set LLDP
VLAN: application type is "voice", the devices decide whether to update the VLAN configurations obtained from the LLDP
Speaker Tracking: ❌ Delayed response in speaker tracking
- device: RCH40 RCH 40 E2
features:
Dante: '*There are two edtions of RCH40: RCH40 & RCH40 E2. Yealink CM20 & CS10 or Dante devices can only'
PoE: Meet Yealink RCH40, the Gigabit PoE+ Switch designed for Meeting Room Audio & Video Networking.
- device: Room Panel
features:
PoE: Any Walls, and Tilt Optional Orientation Optional * PoE or DC Power Remote Device Management
USB-C: '• Resolution: 1280x800 • USB Port: 1 x USB-C port'
Bluetooth: Fi, Bluetooth 5.0, built-in NFC/RFID reader, enhanced microphone arrays and speakers to meet all modern workspace demands. Also
Wi-Fi: 802.11ac Wi-Fi Bluetooth 5.0 RFID & NFC Embedded * Actions with Occupancy Sensor *
- device: RoomSensor
features:
SIP: and regions, Yealink ranks No.1 in the global market share of SIP phone shipments (Global IP Desktop Phone Growth Excellence
Bluetooth: Lithium Power Supply Bluetooth BLE Status Alarm Actions with Yealink RoomPanel
PoE: vity - PoE (IEEE 802.3at)
- device: UC
features:
H.323: '1. SIP/H.323 Registration Service: Used for scenarios where third-party terminals register for meetings using the'
SIP: and is enabled by default. The SVC terminal in the new architecture uses HTTPS mode to join the meeting and SIP
4K: '4. Meeting/Collaboration Adapter-4K High-Performance Transcoding Gateway: It is used to be compatible with'
SRTP: 'SRTP is Disabled : Generally, it is recommended to keep it enabled by default. Disabling it will encrypt the'
- device: UVC40 E2
features:
AEC: • Acoustic Echo Cancellation
ANC: Technology • Noise Suppression
USB-C: • 7m USB cable
Wi-Fi: • Built-in Wi-Fi
4K: Featuring 4K ultra-HD imaging and a 120° super-wide-angle lens, UVC40 E2 delivers outstanding video
Teams: '- Microsoft Teams'
Auto Framing: quality. Together with the electric privacy shutter, its AI technologies, including Auto Framing, sound
Speaker Tracking: localization, Speaker Tracking, and so on, allow users to experience a smarter and safer video
- device: UVC85 BYOD 200
features:
PoE: Up to 8 devices can be cascaded via POE cable, meeting the pickup and amplification needs of
USB-C: deployment; the PC only needs one USB cable to connect and activate audio and video capabilities.
Bluetooth: Features integrated mute, volume +, volume -, and Bluetooth physical buttons, synchronizing with
4K: meeting rooms. It includes the Yealink 4K Ultra HD intelligent Camera UVC85, the Yealink CP50
Auto Framing: Auto-Framing
- device: UVC86
features:
USB-C: • 7m USB Cable (2.5m for MVC bundle)
4K: Dual-Eye 4K Intelligent Tracking Camera Enhances
Presenter Tracking: participant and detail. With Auto Framing, Speaker Tracking, and Presenter Tracking features, the
Auto Framing: participant and detail. With Auto Framing, Speaker Tracking, and Presenter Tracking features, the
Speaker Tracking: participant and detail. With Auto Framing, Speaker Tracking, and Presenter Tracking features, the
- device: VCH51 Pro Package
features:
PoE: -1 x 1000Mbps RJ45 port (IEEE 802.3af, full-duplex)
USB-C: conferencing platforms. Simply connect a USB-C cable to your laptop, launch your preferred
4K: resolution of 4K/60fps in select situations.
- device: VCM35
features: {}
- device: VCM36-W Package
features:
ANC: foot (6-meter) 360° voice pickup range. Its advanced echo cancellation and noise suppression
USB-C: • 1x 1.2 m USB-C Cable
Wi-Fi: The Yealink VCM36-W is a wireless Wi-Fi conference microphone designed to deliver clear voice
- device: VPP30
features:
USB-C: '- USB-C to USB-A Adapter x1'
Wi-Fi: WPP30 has the embedded meeting assistant software and Wi-Fi 6 chip, simply plug WPP30 into the
4K: The Yealink WPP30 is a new 4K Ultra HD wireless presentation pod. Empowered with up to 4K/30FPS
- device: Гарнитуры
features:
ANC: Audio Active Noise Cancellation (ANC) X √
USB-C: Yealink USB Connect(PC) √ √
Bluetooth: BLUETOOTH HEADSET SERIES
Teams: • Certified for Microsoft Teams Premium Open Office
SIP: Manage all calls from PC, Sip Phone and Mobile Phone
Wi-Fi: WiFi due to the different frequency.
- device: общая информация Yealink
features:
PoE: expected to be through PoE switch 2. Cannot be used
Bluetooth: in Bluetooth, which is not useful for
Wi-Fi: (DECT/WIFI microphones) 3. Cannot be
AirPlay: WF50 1 Support, unlimited For Miracast/Airplay
Miracast: WF50 1 Support, unlimited For Miracast/Airplay
ANC: Noise suppression configuration √ × ×
Auto Framing: 'Disable the smart framing mode and manually control the camera. - Auto-framing: Based on human body detection,'
Speaker Tracking: Tracking aspect ratio Adjust the direction and focus (zoom level) of the camera during speaker tracking.
SIP: In the web user interface, go to H323/SIP > Local Contacts.
Zoom: 'edge/show?id=64a40dd46a27da76bd073686) 2X zoom: Zoom Rooms tencent: Tencent Meeting byod:'
Teams: '1. For Microsoft Teams: On the home screen, select More > Settings > Device Settings > Yealink'
USB-C: 3 USB-C port Reserved interface.
H.323: H.323/SIP Yealink Meeting Yealink UME Zoom YMS BYOD
802.1X: 802.1X
LLDP: some network-related functions (such as static IP, LLDP, etc.).
VLAN: At the same time, the terminal can also receive LLDP messages sent by the connected switch. The switch assigns a VLAN ID to the terminal
4K: 4K 1080P 720P 360P
Dante: Dante or
AVB: AVB AVBr
SRTP: 'SRTP Configure the Secure Real-time Transport Protocol (SRTP) function type. Supported types are: - Disable: Disable the'
Presenter Tracking: Presenter Tracking x x
+61 -2
View File
@@ -20,6 +20,51 @@ def norm(s):
return re.sub(r"[^a-z0-9]", "", str(s).lower())
# какая роль отвечает за какую функцию
FEATURE_ROLE = {
"aec": "audio", "anc": "audio", "dante": "audio", "aes67": "audio",
"wireless microphone": "audio", "pickup": "audio",
"auto framing": "camera", "speaker tracking": "camera",
"presenter tracking": "camera", "intelliframe": "camera", "4k": "camera",
"hdbaset": "sharing_or_hub", "airplay": "sharing_or_hub",
"miracast": "sharing_or_hub", "usb-c": "sharing_or_hub",
"poe": "network", "wi-fi": "network", "bluetooth": "network",
"h.323": "codec", "sip": "codec", "teams": "codec", "zoom": "codec",
}
def relevant(need_norm, role):
"""Нужно ли применять требование к аксессуару этой роли."""
for n in need_norm:
r = FEATURE_ROLE.get(n)
if r is None or r == role or role == "codec":
return True
return False
def load_all_features():
"""Функции из трёх источников: features.yaml, protocols.yaml, dante.yaml."""
import yaml
out = {}
for fname, key in (("features.yaml", "features"), ("protocols.yaml", "features")):
f = os.path.join(BASE, fname)
if not os.path.exists(f):
continue
d = yaml.safe_load(open(f, encoding="utf-8")) or {}
for x in d.get("devices") or []:
name = norm(x.get("device"))
vals = x.get(key)
if isinstance(vals, dict):
vals = list(vals.keys())
out.setdefault(name, set()).update(vals or [])
f = os.path.join(BASE, "dante.yaml")
if os.path.exists(f):
d = yaml.safe_load(open(f, encoding="utf-8")) or {}
for x in d.get("dante_devices") or []:
out.setdefault(norm(x.get("device")), set()).add("Dante")
return out
def load():
import yaml
g = yaml.safe_load(open(os.path.join(BASE, "graph.yaml"), encoding="utf-8"))
@@ -60,6 +105,7 @@ def main():
args = ap.parse_args()
cat, vals, feats, edges = load()
allfeat = load_all_features()
hk = norm(args.host)
if hk not in edges and hk not in cat:
print("хост не найден:", args.host)
@@ -82,7 +128,8 @@ def main():
"why": "основа системы", "src": "каталог"})
# 2. функции
have = {norm(f) for f in feats.get(hk, set())}
have = {norm(f) for f in (feats.get(hk, set()) | allfeat.get(hk, set()))}
need_norm = {norm(n) for n in need}
for n in need:
if norm(n) not in have:
problems.append("хост НЕ имеет функции «%s»" % n)
@@ -125,6 +172,9 @@ def main():
continue
if cat.get(norm(e["to"]), {}).get("role") != "audio":
continue
acc_feats = {norm(f) for f in allfeat.get(norm(e["to"]), set())}
if need_norm and relevant(need_norm, "audio") and not need_norm <= acc_feats:
continue # не имеет требуемых функций
p = vals.get(norm(e["to"]), {}).get("audio.pickup_m") or 0
mics.append((p, e))
# coverage_fix: нужное число устройств с учётом лимита
@@ -148,7 +198,10 @@ def main():
# 4. камера (если у хоста роль codec и нет встроенной)
cam_edges = [e for e in edges.get(hk, [])
if e.get("supported") and e.get("usable", True)
and cat.get(norm(e["to"]), {}).get("role") == "camera"]
and cat.get(norm(e["to"]), {}).get("role") == "camera"
and (not need_norm or not relevant(need_norm, "camera")
or need_norm <= {norm(f) for f in
allfeat.get(norm(e["to"]), set())})]
if cam_edges:
def cam_score(e):
v = vals.get(norm(e["to"]), {})
@@ -183,6 +236,12 @@ def main():
"why": "совместима: %s" % (strip_marks(e.get("condition"))[:60] or "—"),
"src": "матрица"})
# Dante: если требуется — предлагаем нативный комплект
if any(norm(n) == "dante" for n in need):
bom.append({"role": "Dante-решение", "model": "CM50+CS10-D+AP08", "qty": 1,
"why": "нативный Dante-комплект: микрофон+динамик+DSP",
"src": "DANTE.md"})
# вывод
print("\n%-24s %-22s %-4s %s" % ("Роль", "Модель", "Кол", "Обоснование"))
print("-" * 100)
+98
View File
@@ -0,0 +1,98 @@
#!/usr/bin/env python3
"""Скан ВСЕХ PDF Yealink на функции (pdftotext, быстро).
Устройство определяется по имени папки модели. Для каждой функции — цитата.
"""
import glob
import os
import re
import subprocess
import sys
SRC = "/opt/work-hub/datasheets-src/Datasheet/Yealink"
BASE = "/opt/work-hub/compat"
FEATURES = {
"Dante": r"\bdante\b",
"AES67": r"aes\s*-?\s*67",
"AEC": r"\bAEC\b|acoustic echo cancellation",
"ANC": r"\bANC\b|active noise cancellation|noise suppression",
"HDBaseT": r"hd\s*base\s*t",
"PoE": r"\bPoE\b|802\.3af|802\.3at|802\.3bt",
"USB-C": r"USB[-\s]?C",
"H.323": r"H\.323",
"SIP": r"\bSIP\b",
"Bluetooth": r"bluetooth",
"Wi-Fi": r"wi-?fi",
"4K": r"\b4K\b",
"Zoom": r"Zoom Rooms|native Zoom",
"Teams": r"Microsoft Teams|Teams Rooms",
"AirPlay": r"airplay",
"Miracast": r"miracast",
"Presenter Tracking": r"presenter tracking",
"Auto Framing": r"auto[\s-]framing",
"Speaker Tracking": r"speaker tracking",
"SRTP": r"\bSRTP\b",
"802.1X": r"802\.1X",
"LLDP": r"\bLLDP\b",
"VLAN": r"\bVLAN\b",
"AVB": r"\bAVB\b",
"Biamp": r"biamp",
"Shure": r"shure",
"QSC": r"\bQSC\b",
}
def text_of(pdf):
try:
r = subprocess.run(["pdftotext", "-layout", pdf, "-"],
capture_output=True, text=True, timeout=90)
return r.stdout or ""
except Exception:
return ""
def main():
import yaml
pdfs = sorted(glob.glob(os.path.join(SRC, "*", "*.pdf")))
print("PDF всего:", len(pdfs))
devices = {}
scanned = 0
for p in pdfs:
folder = os.path.basename(os.path.dirname(p))
t = text_of(p)
if len(t) < 300:
continue
scanned += 1
dev = re.sub(r"\s*\(\d+\)?\s*$", "", folder).strip()
found = devices.setdefault(dev, {})
for key, pat in FEATURES.items():
if key in found:
continue
for ln in t.splitlines():
if re.search(pat, ln, re.I):
found[key] = re.sub(r"\s+", " ", ln).strip()[:140]
break
print("просканировано с текстом:", scanned)
print("устройств:", len(devices))
stat = {}
for d, v in devices.items():
for k in v:
stat[k] = stat.get(k, 0) + 1
print("\nраспространённость:")
for k, n in sorted(stat.items(), key=lambda x: -x[1]):
print(" %-20s %2d" % (k, n))
path = os.path.join(BASE, "protocols_all.yaml")
with open(path, "w", encoding="utf-8") as f:
yaml.safe_dump({"source": {"method": "pdftotext по всем PDF",
"files": len(pdfs)},
"devices": [{"device": d, "features": v}
for d, v in sorted(devices.items())]},
f, allow_unicode=True, sort_keys=False, width=200)
print("\nсохранено:", path)
return 0
if __name__ == "__main__":
sys.exit(main())