roleoroleo / sonoff-hack

Custom firmware for Sonoff GK-200MP2B camera
GNU General Public License v3.0
200 stars 45 forks source link

Onvif on synology surveillance station #16

Closed alekslyse closed 1 month ago

alekslyse commented 3 years ago

Have anyone made this work with synology surveillance station onvif. Onvif works on my phone apps so it’s working, but synology say can’t read capabilities. Any suggestions?

Rtsp works in synology, but would need ptz

roleoroleo commented 3 years ago

We will investigate later about event management threads and segfault. The pcap shows 2 problem:

For the 1st problem I could try to create a fake response (but it's not what we should). For the 2nd problem I could try to implement them.

I will start with the 2nd step.

alekslyse commented 3 years ago

yes when you say it I see no reference to the rtsp video files. I did a trace of blue iris too, and that uses the xml file on port 8080 for all its info, so I guess the systems works differently.

If this helps I added a dump from a known camera using the general onvif addon filter: ip.src == 192.168.1.52 or ip.dst == 192.168.1.52

onvif202.pcncap.zip

roleoroleo commented 3 years ago

Ok, implemented GetVideoSourceConfigurationOptions and GetVideoEncoderConfigurationOptions. Try this: onvif_srvd.gz

alekslyse commented 3 years ago

It starts fine, but crashing when trying to get capabilities. Tried to hardcode the ip and password in the start command too, but no luck

P.S It does NOT crash when trying to click try camera, but no rtsp or image is delivered. cant progress the wizard though

wireshark and strace included

Archive.zip

roleoroleo commented 3 years ago

Tested with DS214se, it works: onvif_srvd.gz

alekslyse commented 3 years ago

Then I have no clue. I set the camera back to default hack/hack - tried in vnc worked. load capabilities work and give video profile. test camera give a check, but no video. clicking ok fails.

Two tcpdumps in the attachment 2002 is clicking all the buttons, load capabilities, video profile and next, 2003 is just clicking video test.

Archive 2.zip

Screenshot 2020-10-28 at 21 45 56
alekslyse commented 3 years ago

Tried onvif device manager an that cant show live video eather (vlc can) with hack:hack (works with other onvif cameras) Capture

roleoroleo commented 3 years ago

Probably it's an authentication problem. Try to set a different user or try to use this. User: rtsp Password: 12345678

alekslyse commented 3 years ago

I will try. Could it be differences on the cameras?

From reset of the camera, what did you do? Setup in ewelink (sound pair) no other changes, popped in a formatted sd with 0.7 of the hack and the latest onvif and put onvif to wifi, reboot.

Anything else you done? It makes no sense it works on one cam and not another

roleoroleo commented 3 years ago

From reset of the camera, what did you do? Setup in ewelink (sound pair) no other changes, popped in a formatted sd with 0.7 of the hack and the latest onvif and put onvif to wifi, reboot.

This setup is correct.

Apart from the stream, when you add the camera, does the wizard complete successfully?

alekslyse commented 3 years ago

No luck with other credentials (that works in vlc). The wizard fails at the screenshot above. Cant resume it.

Im very confused if it really worked in the wizard for you. I get no response for stream during the wizard in any way. Anyone else that can try?

I can add the cam rtsp only of course, but i need ptz

roleoroleo commented 3 years ago

Yes. Th wizard completes succesfully and the stream is ok. Using hack/hack credentials.

alekslyse commented 3 years ago

Wired / wireless? Any changes on settings on camera or hack?

What synology surveilance version?

This does not make sense. Took a new camera out of box, .7 on sd and your last onvif link. Wizard does accept tests but cant finish wizard

roleoroleo commented 3 years ago

I'm wired. About version I need to reconnect it.

alekslyse commented 3 years ago

So reset camera, plug in to eth, pair it with app. Upload .7 copy new onvif and add it to Synology as onvif with hack/hack no other changes and preview and everything pops up

roleoroleo commented 3 years ago

Yes, correct.

alekslyse commented 3 years ago

I got it working with ethernet, but no PTZ. Can you confirm you get PTZ?

roleoroleo commented 3 years ago

I'm sorry but I had to return the DE214se to the owner. I forgot to test the PTZ, but with ODM it works.

alekslyse commented 3 years ago

yes, but we need to get ptz working too, or its just as easy using the rtsp stream. I see in the wireshark it get the ptz profile, but dunno where it detects it

piechade commented 2 years ago

How can I figure out why my 200MP2C not working with my DS918+ with the latest updates?

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.