ptz-conformance-testing
/ptz-conformance-testing
Validate a PTZ camera interface implementation (VISCA, ONVIF or other) against the ptzsim reference simulator: start ptzsim with the matching protocol, drive it with ptzsim send or an ONVIF client, or run the bundled visca_conformance.py / onvif_conformance.py smoke scripts against your own camera-side endpoint; follow the conformance checklists for reply framing, error codes, sockets, discovery, auth, faults and timeouts. Use whenever a camera interface must be proven interoperable with real clients/cameras.
- Author
- stritti ↗
- Repository
- ptz-simulator ↗
- Licence
- MIT
- Last repository change
- 12.11.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 0
- HTML comments
- 1
- URLs in SKILL.md
- 2
No signals detected. Repository changed on 12.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.
What it does and when to use it
Validate a PTZ camera interface implementation (VISCA, ONVIF or other) against the ptzsim reference simulator: start ptzsim with the matching protocol, drive it with ptzsim send or an ONVIF client, or run the bundled visca_conformance.py / onvif_conformance.py smoke scripts against your own camera-side endpoint; follow the conformance checklists for reply framing, error codes, sockets, discovery, auth, faults and timeouts. Use whenever a camera interface must be proven interoperable with real clients/cameras.
Original author description
Validate a PTZ camera interface implementation (VISCA, ONVIF or other) against the ptzsim reference simulator: start ptzsim with the matching protocol, drive it with ptzsim send or an ONVIF client, or run the bundled visca_conformance.py / onvif_conformance.py smoke scripts against your own camera-side endpoint; follow the conformance checklists for reply framing, error codes, sockets, discovery, auth, faults and timeouts. Use whenever a camera interface must be proven interoperable with real clients/cameras.
How it works
- Quick start
- Rules for conformance tests
SKILL.md preview
--- name: ptz-conformance-testing description: "Validate a PTZ camera interface implementation (VISCA, ONVIF or other) against the ptzsim reference simulator: start ptzsim with the matching protocol, drive it with ptzsim send or an ONVIF client, or run the bundled visca_conformance.py / onvif_conformance.py smoke scripts against your own camera-side endpoint; follow the conformance checklists for reply framing, error codes, sockets, discovery, auth, faults and timeouts. Use whenever a camera interface must be proven interoperable with real clients/cameras." license: MIT compatibility: ptzsim and the bundled scripts need only Python 3.8+ (standard library); optional extras (NDI runtime, onvif-zeep-async client test) are opt-in. metadata: author: stritti version: "1.0.0" source: https://github.com/stritti/ptz-simulator --- <!-- SPDX-FileCopyrightText: 2026 Stephan Strittmatter SPDX-License-Identifier: MIT --> # Conformance testing against the ptzsim reference [ptzsim](https://github.com/stritti/ptz-simulator) is the reference implementation: it speaks VISCA (Sony VISCA over IP UDP 52381, raw VISCA over TCP 5678 / UDP 1259, serial via pty) and ONVIF (Device/Media/PTZ/Imaging SOAP services, WS-Discovery, HTTP digest + WS-Security) strictly per the standards, on Python 3.8+ with no dependencies. Use it in both directions: - **Your code is the camera** (exposes the interface): run the bundled smoke scripts against your endpoint — `../visca-interface/scripts/visca_conformance.py` (VISCA) and `../onvif-ptz-interface/scripts/onvif_conformance.py` (ONVIF). They exit 0 only when every wire-level check passes. Also point a real client library at your endpoint. - **Your code is the client** (drives a camera): start ptzsim and point your client at it; work through the checklist section "Client side" (VISCA over IP control errors, separate pan/tilt speed maximums, ONVIF omitted axes) and assert on the camera model with the `ptzsim.testing` helpers `assert_stopped` / `assert_no_errors`. References: - [references/ptzsim-usage.md](references/ptzsim-usage.md) — how to install/run ptzsim, the serve/send commands, ports, auth options, and the `ptzsim.testing` helpers for end-to-end tests in your own test suite. - [references/conformance-checklist.md](references/conformance-checklist.md) — what "reference-conformant" means per protocol: the exact checks to verify (VISCA framing, sockets, error codes; ONVIF spaces, faults, discovery, auth, timeouts), the client-side pitfalls, plus the known deliberate deviations of the reference. ## Quick start ```bash # reference camera on localhost: VISCA/IP 52381, raw TCP 5678, raw UDP 1259, ONVIF 8080 python3 -m ptzsim serve --sony --tcp --udp --onvif --onvif-user admin --onvif-password secret --no-tui python3 -m ptzsim serve --pelco-d /tmp/ttyPelcoD # Pelco-D serial (ptzsim >= 0.4.0) uv run --extra ndi ptzsim serve --ndi --name "Camera 1" # NDI source with PTZ metadata # quick VISCA checks against it python3 -m ptzsim send "81 09 06 12 FF" # pan/tilt position inquiry python3 -m ptzsim send "81 01 06 04 FF" # home # smoke-test YOUR camera-side endpoint instead python3 visca_conformance.py --host 192.168.1.50 --transport sony python3 onvif_conformance.py --host 192.168.1.50 --port 8080 --user admin --password secret --discovery ``` ## Rules for conformance tests - Test over real sockets end to end, not only parsed fixtures. - Assert the exact reply bytes/SOAP structure, including error paths (syntax error, not executable, buffer full; InvalidArgVal, NoProfile, MovingPTZ, ActionNotSupported). - Cover discovery (Probe → ProbeMatches with XAddrs) and auth (401 challenge; digest and WSSE UsernameToken PasswordDigest) when the interface has them. - For a client, check after every Stop that no axis is still moving and that the camera rejected nothing; a client call that only returns after its timeout means it missed a reply (often a VISCA over IP control reply `0F 01` / `0F 02`). - Where the reference deliberately deviates from the full standard, document the deviation in your README instead of "fixing" the test (see the checklist).
Files in this package (3)
- SKILL.md 4 KB
- references/conformance-checklist.md 10 KB
- references/ptzsim-usage.md 6 KB
Versions
The database has no other skills named ptz-conformance-testing.
Database snapshot: 13.11.2026 · package version 418a5b3c7c97 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 90ptz-reference-interface
Implement a reference-conformant PTZ camera control interface (VISCA over serial or IP, ONVIF Profile S/T PTZ, or another PTZ protocol) that interoperates with real cameras, VMS and controllers: choose the protocol, implement framing and operations exactly per the standard, and… - 100onvif-ptz-interface
Implement an ONVIF Profile S/T conformant PTZ service (SOAP 1.2 over HTTP): Device, Media and PTZ services with their operations, WS-Discovery on UDP 3702, HTTP digest and WS-Security UsernameToken (PasswordDigest) authentication, generic pan/tilt/zoom coordinate spaces (-1..1 /… - 100ptz-docs
Search and fetch docs for PTZ camera control protocols: Sony VISCA (Command List v2.00, BRC-H900, SRG-300H, PTZOptics VISCA over IP) — byte-level serial or UDP:52381 with payload-wrapped VISCA, and ONVIF (onvif.org profiles — S streaming deprecated, T successor with… - 100ptz-onvif
Discover and control ONVIF IP cameras via SOAP/XML with WS-Security UsernameToken digest: onvif-util (libonvif github.com/sr99622/libonvif), onvif-cli (github.com/gardere/onvif-cli), python-onvif-zeep (PyPI onvif-zeep), onvif_control (bash + WS-Security), gonvif (Go).… - 100wsdiscovery
WS-Discovery protocol scanner for discovering and enumerating ONVIF cameras and IoT devices on the network. Use when you need to discover ONVIF devices, cameras, or WS-Discovery enabled equipment on a network. - 100esp32-modbus-conformance-testing
Use when reviewing or implementing esp32 modbus conformance testing on an ESP32 target.