roleoroleo / yi-hack-MStar

Custom firmware for Yi 1080p camera based on MStar platform
GNU General Public License v3.0
830 stars 110 forks source link

4FUSY ONVIF not working for Synology Surveillance Station (9.1.4-11002) #540

Closed lightxx closed 3 months ago

lightxx commented 3 months ago

So, I flashed my YI Cam (4FUSY) with 0.5.4, and I can't get it to work with Surveillance Station. I can add it, get its capabilities, get a still image, but after activation Surveillance Station says it's disconnected.

Works with VLC and Onvif Manager of course.

The issue seems to be that Surveillance Station wants to create a profile called SynoTestProfile which fails.

It seems this was already addressed and solved here: https://github.com/roleoroleo/yi-hack-MStar/issues/88 Maybe a regression?

POST /onvif/media_service HTTP/1.1
Host: 192.168.178.82
Accept: */*
Content-Type: application/xml; charset=UTF-8
Content-Length: 339

<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<CreateProfile xmlns="http://www.onvif.org/ver10/media/wsdl"><Name>SynoTestProfile</Name></CreateProfile></s:Body>
</s:Envelope>
HTTP/1.1 500 Internal Server Error
Content-type: application/soap+xml
Content-Length: 1416

<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:wsrf-rw="http://docs.oasis-open.org/wsrf/rw-2" xmlns:wsntw="http://docs.oasis-open.org/wsn/bw-2" xmlns:ter="http://www.onvif.org/ver10/error">
  <SOAP-ENV:Header>
    <wsa5:MessageID>"urn:uuid:76931fac-dab2-46c2-8b87-6ae33f9a62d7"</wsa5:MessageID>
    <wsa5:ReplyTo SOAP-ENV:mustUnderstand="true">
      <wsa5:Address>http://192.168.178.82/onvif</wsa5:Address>
    </wsa5:ReplyTo>
    <wsa5:To SOAP-ENV:mustUnderstand="true">http://192.168.178.82/onvif/ptz_service</wsa5:To>
    <wsa5:Action SOAP-ENV:mustUnderstand="true">http://www.w3.org/2005/08/addressing/soap/fault"</wsa5:Action>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
      <SOAP-ENV:Code>
        <SOAP-ENV:Value>SOAP-ENV:Receiver</SOAP-ENV:Value>
        <SOAP-ENV:Subcode>
          <SOAP-ENV:Value>ter:Action</SOAP-ENV:Value>
          <SOAP-ENV:Subcode>
            <SOAP-ENV:Value>ter:ActionFailed</SOAP-ENV:Value>
          </SOAP-ENV:Subcode>
        </SOAP-ENV:Subcode>
      </SOAP-ENV:Code>
      <SOAP-ENV:Reason>
        <SOAP-ENV:Text xml:lang="en">Action failed</SOAP-ENV:Text>
      </SOAP-ENV:Reason>
      <SOAP-ENV:Node>http://www.w3.org/2003/05/soap-envelope/node/ultimateReceiver</SOAP-ENV:Node>
      <SOAP-ENV:Role>http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver</SOAP-ENV:Role>
      <SOAP-ENV:Detail>
        <SOAP-ENV:Text>The requested SOAP action failed: error -1</SOAP-ENV:Text>
      </SOAP-ENV:Detail>
    </SOAP-ENV:Fault>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
roleoroleo commented 3 months ago

Maybe a regression?

I completely changed the onvif daemon. If you tell me your model suffix, I will send a beta for testing.

lightxx commented 3 months ago

Thank you so much. y203c

roleoroleo commented 3 months ago

Here it is: LINK REMOVED

UPDATE

Sorry, there was a bug in the startup script. Try this new beta: y203c_0.5.4.tar.gz

lightxx commented 3 months ago

Awesome. Great job. Works. Thank you so much dude!

roleoroleo commented 3 months ago

Which onvif option do you use to make it work?

lightxx commented 3 months ago

Uhm… I just flashed your version and added the cam in surveillance station. Defaults everywhere. Worked out of the box.

lightxx commented 3 months ago

Is there any information I can provide you with?

lightxx commented 3 months ago

Resolved

roleoroleo commented 3 months ago

I don't understand. I added a special option to improve compatibility with Synology. Screenshot_20240321_185507_Samsung Internet.jpg

But it works without settings this option.

lightxx commented 3 months ago

I don’t understand it either then. The beta you provided me with works out of the box with surveillance station. I didn’t set any options.