Dahua DH-SD59225U-HNI problems (but 3 other models work fine)



  • As background, I have four different Dahua models. Three of them are working fine, but this one seems to be different. Below is the log for one of the three attempts that get made. It seems that Monocle gateway is connecting just fine, but the Echo Show 5 gives up and the log shows the client socket closed. Any thoughts?

    Aug 05 09:52:22 mycomputer monocle-gateway[1015]: -------------------------------------------------
    Aug 05 09:52:22 mycomputer monocle-gateway[1015]: INITIALIZE RTSP STREAM:  Roof Camera
    Aug 05 09:52:22 mycomputer monocle-gateway[1015]: -------------------------------------------------
    Aug 05 09:52:22 mycomputer monocle-gateway[1015]:  - NAME  : Roof Camera
    Aug 05 09:52:22 mycomputer monocle-gateway[1015]:  - LABEL : PRIMARY
    Aug 05 09:52:22 mycomputer monocle-gateway[1015]:  - URL   : rtsp://mydomain.com:554/cam/
    realmonitor?channel=1&subtype=1
    Aug 05 09:52:22 mycomputer monocle-gateway[1015]:  - UUID  : STREAM:859fee4c-9f21-4e83-9061-ae3336bae749
    Aug 05 09:52:22 mycomputer monocle-gateway[1015]:  - SESS  : 1062597a-1620-4878-b82f-df4c9471b60e
    Aug 05 09:52:22 mycomputer monocle-gateway[1015]:  - MODIF : Mon Aug 05 2019 09:47:53 GMT-0500 (CDT)
    Aug 05 09:52:22 mycomputer monocle-gateway[1015]:  - TAGS  : @tunnel
    Aug 05 09:52:22 mycomputer monocle-gateway[1015]: -------------------------------------------------
    
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:24.455Z [INFO]  [192.168.1.134:36522 <rJehGTHXH>] RTSP CLIENT SOCKET CONNECTED
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:24.582Z [INFO]  [192.168.1.134:36522 <rJehGTHXH>] RTSP CLIENT ATTACHED TO STREAM: Roof Camera (STREAM:859fee4c-9f21-4e83-9061-ae3336bae749)
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:24.724Z [INFO]  [192.168.1.134:36522 <rJehGTHXH>] RTSP ENDPOINT SOCKET CONNECTED {mydomain.com:554}
    
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:24.724Z [DEBUG] [192.168.1.134:36522 <rJehGTHXH>] [CLIENT REQUEST]  --> [DESCRIBE] rtsp://fdbdb0a1-07ce-423a-a7ea40b9d522fd17.mproxy.io:443/STREAM:859fee4c-9f21-4e83-9061-ae3336bae749?session=1062597a-1620-4878-b82f-df4c9471b60e
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:24.724Z [TRACE] [192.168.1.134:36522 <rJehGTHXH>] [CLIENT REQUEST]  --> [HEADERS] {
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]:   "accept": "application/sdp",
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]:   "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)",
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]:   "cseq": "1"
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]: }
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:24.725Z [DEBUG] [192.168.1.134:36522 <rJehGTHXH>] [ENDPOINT REQUEST]  --> [DESCRIBE] rtsp://mydomain.com:554/cam/realmonitor?channel=1&subtype=1
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:24.725Z [TRACE] [192.168.1.134:36522 <rJehGTHXH>] [ENDPOINT REQUEST]  --> [HEADERS] {
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]:   "accept": "application/sdp",
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]:   "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)",
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]:   "cseq": "1"
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]: }
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:24.874Z [DEBUG] [192.168.1.134:36522 <rJehGTHXH>] [ENDPOINT RESPONSE] <-- [401 (Unauthorized)] <cseq=1> (session=undefined)
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:24.874Z [TRACE] [192.168.1.134:36522 <rJehGTHXH>] [ENDPOINT RESPONSE] <-- [HEADERS] {
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]:   "cseq": "1",
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]:   "www-authenticate": "Digest realm=\"Login to 5GACY9JT3UFE376\", nonce=\"aa2f800e4421def60fc52805f4e21164\""
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]: }
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:24.874Z [INFO]  [192.168.1.134:36522 <rJehGTHXH>] RTSP ENDPOINT REQUIRES AUTHENTICATION: Digest realm="Login to 5GACY9JT3UFE376", nonce="aa2f800e4421def60fc52805f4e21164"
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:24.874Z [INFO]  [192.168.1.134:36522 <rJehGTHXH>] RTSP ENDPOINT ATTEMPTING AUTHENTICATION: DIGEST
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:24.875Z [DEBUG] [192.168.1.134:36522 <rJehGTHXH>] [ENDPOINT REQUEST]  --> [DESCRIBE] rtsp://mydomain.com:554/cam/realmonitor?channel=1&subtype=1
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:24.875Z [TRACE] [192.168.1.134:36522 <rJehGTHXH>] [ENDPOINT REQUEST]  --> [HEADERS] {
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]:   "accept": "application/sdp",
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]:   "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)",
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]:   "cseq": "1",
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]:   "authorization": "Digest username=\"myuser\", realm=\"Login to 5GACY9JT3UFE376\", nonce=\"aa2f800e4421def60fc52805f4e21164\", uri=\"rtsp://mydomain.com:554/cam/realmonitor?channel=1&subtype=1\", response=\"cb5e80874be6770f7691789540723706\""
    Aug 05 09:52:24 mycomputer monocle-gateway[1015]: }
    
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:25.102Z [DEBUG] [192.168.1.134:36522 <rJehGTHXH>] [ENDPOINT RESPONSE] <-- [200 (OK)] <cseq=1> (session=undefined)
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:25.102Z [TRACE] [192.168.1.134:36522 <rJehGTHXH>] [ENDPOINT RESPONSE] <-- [HEADERS] {
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]:   "cseq": "1",
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]:   "x-accept-dynamic-rate": "1",
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]:   "content-base": "rtsp://mydomain.com:554/cam/realmonitor?channel=1&subtype=1/",
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]:   "cache-control": "must-revalidate",
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]:   "content-length": "420",
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]:   "content-type": "application/sdp"
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: }
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:25.103Z [TRACE] [192.168.1.134:36522 <rJehGTHXH>] [ENDPOINT RESPONSE] <-- [BODY]
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]:  v=0
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: o=- 2251958388 2251958388 IN IP4 0.0.0.0
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: s=Media Server
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: c=IN IP4 0.0.0.0
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: t=0 0
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: a=control:*
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: a=packetization-supported:DH
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: a=rtppayload-supported:DH
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: a=range:npt=now-
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: m=video 0 RTP/AVP 96
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: a=control:trackID=0
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: a=framerate:5.000000
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: a=rtpmap:96 H264/90000
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: a=fmtp:96 packetization-mode=1;profile-level-id=64001E;sprop-parameter-sets=Z2QAHq2EAQwgCGEAQwgCGEAQwgCEO1BYHtNwEBAUAAAPoAAAnEIQAA==,aO48sAA=
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: a=recvonly
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:25.103Z [INFO]  [192.168.1.134:36522 <rJehGTHXH>] RTSP ENDPOINT AUTHENTICATION SUCCESSFUL: DIGEST
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:25.104Z [DEBUG] [192.168.1.134:36522 <rJehGTHXH>] [CLIENT RESPONSE] <-- [200 (OK)] <cseq=1> (session=undefined)
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:25.104Z [TRACE] [192.168.1.134:36522 <rJehGTHXH>] [CLIENT RESPONSE] <-- [HEADERS] {
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]:   "cseq": "1",
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]:   "x-accept-dynamic-rate": "1",
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]:   "content-base": "rtsp://mydomain.com:554/cam/realmonitor?channel=1&subtype=1/",
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]:   "cache-control": "must-revalidate",
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]:   "content-length": "420",
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]:   "content-type": "application/sdp"
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: }
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:25.104Z [TRACE] [192.168.1.134:36522 <rJehGTHXH>] [CLIENT RESPONSE] <-- [BODY]
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]:  v=0
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: o=- 2251958388 2251958388 IN IP4 0.0.0.0
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: s=Media Server
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: c=IN IP4 0.0.0.0
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: t=0 0
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: a=control:*
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: a=packetization-supported:DH
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: a=rtppayload-supported:DH
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: a=range:npt=now-
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: m=video 0 RTP/AVP 96
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: a=rtpmap:96 H264/90000
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: a=fmtp:96 packetization-mode=1;profile-level-id=64001E;sprop-parameter-sets=Z2QAHq2EAQwgCGEAQwgCGEAQwgCEO1BYHtNwEBAUAAAPoAAAnEIQAA==,aO48sAA=
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: a=control:trackID=0
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: a=recvonly
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: a=framerate:5.000000
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:25.359Z [INFO]  [192.168.1.134:36522 <rJehGTHXH>] RTSP CLIENT SOCKET CLOSED
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:25.359Z [INFO]  [192.168.1.134:36522 <rJehGTHXH>] RTSP CLIENT DETACHED FROM STREAM: Roof Camera (STREAM:859fee4c-9f21-4e83-9061-ae3336bae749)
    Aug 05 09:52:25 mycomputer monocle-gateway[1015]: 2019-08-05T14:52:25.359Z [INFO]  [192.168.1.134:36522 <rJehGTHXH>] RTSP ENDPOINT SOCKET CLOSED [192.168.1.134:36522 <rJehGTHXH>]
    


  • @carteriii

    There is something about the SDP (stream descriptor) that Alexa does not like and thus she immediately closed the connection. From the log data, its not obvious what the problem is, but I have seen behaviors like this before.

    As a test, lets’ LIE to Alexa and give her some fake data in SDP (descriptor), specifically, the “a=fmtp” line that describes the video codec. All you need to do is add the tag @fake-fmtp alongside your existing @tunnel tag on this camera in the Monocle Web Portal.

    Now ask Alexa for the video stream and see what happens?

    Thanks, Robert



  • That worked perfectly, right away! You’re awesome. Thank you. If you do want to do any other testing, I’m happy to give you a URL with a login to access this camera, but otherwise this is a great fix/solution for me.

    As a reminder to everyone else reading this, you should donate for Robert’s great product and support (as I already have, but perhaps I should now donate a second time).

    I’ll add this solution to a new hardware forum post with the hope that others find it there if they look for info on this camera.



  • @carteriii

    Glad to see this works! You might notice that Alexa shuts down the stream after a few minutes. That does happen on some stream we lie about. If you want to dig deeper, you can try playing with the camera’s H.264 settings, profiles and H.264+ enabled/disabled state depending on what options your camera firmware offers. Its a bit of a guessing game, but you may find a combination that Alexa accepts and you would not have to use the @fake-fmtp tag.

    Thanks, Robert


Log in to reply