Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

ONVIF Camera Discovery

A Qt6 application for discovering ONVIF-compliant IP cameras on a local network using WS-Discovery protocol.

Features

  • Discovers ONVIF devices via multicast and unicast probes
  • Configurable subnet (CIDR notation), listen times, and probe rate
  • Displays discovered cameras with IP, port, name, discovery method, and XAddrs
  • Real-time logging of discovery progress

Requirements

Build Dependencies

  • Qt 6.2+ (Core, Network, Widgets modules)
  • C++17 compatible compiler (GCC 10+, Clang 12+, MSVC 2019+)
  • CMake 3.16+ or qmake (Qt 6)

Runtime Dependencies

  • Qt 6 libraries (Core, Network, Widgets, GUI)

Building

Using qmake (recommended for Qt 6)

<path-to-qt6>/bin/qmake onvif_camera_discovery.pro
make

Using CMake

cmake -B build
cmake --build build

Usage

./onvif_camera_discovery
  1. Enter the target subnet in CIDR notation (e.g., 192.168.1.0/24)
  2. Adjust discovery parameters if needed:
    • Multicast Listen (sec): Time to wait for multicast responses (default: 3)
    • Unicast Listen (sec): Time to wait for unicast responses per IP (default: 2)
    • Unicast Rate (ms): Delay between unicast probes (default: 20, set to 0 for no delay)
  3. Click Start Discovery
  4. Results appear in the table with camera details
  5. Log output shows real-time discovery progress

Network Requirements

  • The application sends UDP probes to ports 3702 (multicast) and target device ports
  • Firewall must allow outbound UDP and inbound responses
  • Works on IPv4 networks only

Project Structure

├── MainWindow.h/.cpp/.ui    # Main UI and discovery logic
├── CameraDiscovery.h/.cpp   # WS-Discovery implementation
├── CameraInfo.h             # Camera data structure
├── main.cpp                 # Entry point
├── onvif_camera_discovery.pro  # qmake project file
└── CMakeLists.txt           # CMake project file

Protocol

Implements WS-Discovery (DPWS) for ONVIF device discovery:

  • Sends Probe messages to multicast address 239.255.255.250:3702
  • Sends unicast Probe to each IP in subnet range
  • Parses ProbeMatches responses for device XAddrs
  • Extracts camera info from device service WSDL

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages