roleoroleo / yi-hack-Allwinner-v2

Custom firmware for Yi 1080p camera based on Allwinner platform
MIT License
817 stars 93 forks source link

ONVIF motion detection on HIK nvr #937

Open piot84zet opened 1 day ago

piot84zet commented 1 day ago

Hello, thank you for the great job. I got problem with my hik nvr. I want to start records based on motion detection. Is any way to make it work? my yi home 2k pro (y623) is detected by nvr, got streams, can continuous record. Want to change the continuous record to record when motion is detected. When changes options in my nvr, always shows cam doesn't suport motion detection. I can resign lot from fw, just need to cam work with nvr and record when motion is detected. Thank you for any help.

roleoroleo commented 1 day ago

The cam supports event handling through ONVIF. When the cam detects a motion, it sends a message to the onvif client (nvr). So the NVR can handle the event as it wants. The cam supports both Pullpoint Subscription and WS Base. It depends on the client. You can try this feature with Onvif Device Manager.

piot84zet commented 1 day ago

Thank you for replay. What is strange, ODM does not see my cam. others cams (hik) are visiable. Will try to reformat sd and start everything from begining. Is it nessesary to start with official app? I just opened box after shippment arrived and inserted sd with your fw.

Will be back soon.

piot84zet commented 1 day ago

Ok, ODM can see yi hacked cam, but events shows very late, or not. Well...no matter what I try to set on yi hack web, and after try to turn on motion detection for this cam in nvr, I just get "incorrect operation" from my nvr website.

roleoroleo commented 1 day ago

I recently fixed some bugs. Please try this version: y623_0.3.2.tgz

piot84zet commented 23 hours ago

Thank you for new image. On this image webapi works faster I think so. For motion detection, I changed all options related to rtsp and onvif and unfortunately I still get the "incorrect operation" message. I tried to change the RTSP server program to "alternative" or "go2rtc" but after reboot it returns to "standard". In ODM when clik "Events" get "Error during events subscripion: Subscribe creation failed fault".

Any sugestion? Should I turn on/off anything in yi app? i didnt even instaled it, just started with yi hack on brand new cam.

roleoroleo commented 8 hours ago

For motion detection, I changed all options related to rtsp and onvif and unfortunately I still get the "incorrect operation" message.

RTSP is not related to onvif events.

I tried to change the RTSP server program to "alternative" or "go2rtc" but after reboot it returns to "standard".

Maybe you need to clear the cache of the browser, I changed js code.

In ODM when clik "Events" get "Error during events subscripion: Subscribe creation failed fault".

This is strange. Check the option, are you using PullPoint or WS-Base? immagine

Should I turn on/off anything in yi app? i didnt even instaled it, just started with yi hack on brand new cam.

No, if the wifi is running properly, the app is not necessary.