Menu

#3 rebootCamera() has no effect

1.0
open
nobody
None
2023-11-09
2023-11-09
Klopp
No

But function return 0 and onvif_data->last_error is empty :(

Discussion

  • Stephen Rhodes

    Stephen Rhodes - 2023-11-09

    Thank you for reaching out, sorry for your troubles. I can pretty much guarantee that this is an issue with the camera. Most cameras have improper implementation of onvif, so it not surprising that some functions don't work properly. As an aside, there is a more developed version of the program on github at https://github.com/sr99622/libonvif that includes a command line program and a GUI program for working with cameras.

    Best Regards,

    Stephen

     
  • Klopp

    Klopp - 2023-11-09

    "reboot" command in onvif-util doesn't work either.
    The rebootCamera() functions in both libraries are identical :)

     
  • Stephen Rhodes

    Stephen Rhodes - 2023-11-09

    Hello,

    Working with Onvif can be a frustrating experience as the standard is not well followed by camera makers. Just out of curiosity, I tested all of my cameras to see the response to the reboot command.

    Dahua - Success
    Hikvision - Success
    Amcrest - Success
    Axis - Success
    Foscam - Success
    Reolink - Success
    Lorex - Success
    HiKam - Success
    Trendnet - Success
    Utalert - Failure

    You could randomly select any Onvif parameter and find in this set of cameras at least one that does not properly implement the feature. In my experience, the Amcrest cameras most closely follow the Onvif specification, and Trendnet is pretty good as well. There's not much you can do if the camera maker has not implemented a feature in Onvif, your best bet is to try accessing the camera through their own web browser interface to use a feature, if they have bothered to implement that.

    Hope this helps, thank you for the response

     
  • Klopp

    Klopp - 2023-11-09

    I tried this library: https://github.com/kqbi/LibOnvifClient. The same thing: the methods I need work with different camera models, except SystemReboot. Apparently, the problem is in the cameras themselves (vstarcam)
    P.S. I need to reboot the camera from a script. Rebooting from the www-interface works.

     

Log in to post a comment.