Giter VIP home page Giter VIP logo

Comments (3)

weichou1229 avatar weichou1229 commented on August 16, 2024

@ajcasagrande
The modification can be done with the following steps:

  1. Parse the EndpointReference from the probe response. https://github.com/IOTechSystems/onvif/blob/master/ws-discovery/networking.go#L43-L56
  2. Replace the serial number with EndpointReference when discovering the device. https://github.com/edgexfoundry-holding/device-onvif-camera/blob/main/internal/driver/driver.go#L328

from device-onvif-camera.

cloudxxx8 avatar cloudxxx8 commented on August 16, 2024

@ajcasagrande do you agree with Bruce's solution?

from device-onvif-camera.

weichou1229 avatar weichou1229 commented on August 16, 2024

@ajcasagrande

I can get the EndpointReference from probe message as below two cameras:

TAPO C200

<wsdd:ProbeMatch>
  <wsa:EndpointReference>
    <wsa:Address>uuid:3fa1fe68-b915-4053-a3e1-c006c3afec0e</wsa:Address>
     <wsa:ReferenceProperties></wsa:ReferenceProperties><wsa:PortType>ttl</wsa:PortType>
  </wsa:EndpointReference>
  <wsdd:XAddrs>http://192.168.12.128:2020/onvif/device_service</wsdd:XAddrs>
  ...
</wsdd:ProbeMatch>

HIKVISION

<d:ProbeMatch>
 <wsadis:EndpointReference>
    <wsadis:Address>urn:uuid:cea94000-fb96-11b3-8260-686dbc5cb15d</wsadis:Address>
 </wsadis:EndpointReference>
 <d:XAddrs>http://192.168.12.123/onvif/device_service</d:XAddrs>
 ...
</d:ProbeMatch>

So we need to extract the uuid value 3fa1fe68-b915-4053-a3e1-c006c3afec0e and cea94000-fb96-11b3-8260-686dbc5cb15d to replace the serial number. Is that correct?

The PRs opened, could you help verify that?
#7
IOTechSystems/onvif#8

from device-onvif-camera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.