go2rtc icon indicating copy to clipboard operation
go2rtc copied to clipboard

Roborock - mse: connection is shut down, can't get device SDP

Open nicedevil007 opened this issue 2 years ago • 16 comments

As the title says, that is what my roborock S7 Max V Ultra cam tells me in your addon. I tested it with and without a pin, nothing seems to work.

sometimes it tells just: mse: unexpected EOF

here my yaml file:

streams:
  camera.vacuum:
    - roborock://mqtt-eu-5.roborock.com:8883?u=5UkE0eG52&s=OydxZE&k=dqdjXdoi&did=HRvKlMKbK6DMW&key=kxGHbm&pin=14569

If I click the info button I can see this output:

{
  "producers": [
    {
      "url": "roborock://mqtt-eu-5.roborock.com:8883?u=5UkE0eG52&s=OydxZE&k=dqdjXdoi&did=HRvKlMKbK6DMW&key=kxGHbm&pin=14569"
    }
  ],
  "consumers": null
}

nicedevil007 avatar May 21 '23 12:05 nicedevil007

Please delete your post. It's not very smart to put all your credentials in public

AlexxIT avatar May 21 '23 15:05 AlexxIT

At least you should know that this can't be real credentials ;)

That is just a random generated one and remove string at random locations... thought it is best to give an idea on how it looks to me right now in the config.

nicedevil007 avatar May 21 '23 17:05 nicedevil007

You can't get video if the vacuum cleaner is on the base. Try connecting to the vacuum cleaner from the mobile app and then from go2rtc.

AlexxIT avatar May 25 '23 04:05 AlexxIT

Just to make no error here, I start a zone/room cleaning and after the vaccuum left the station I click on the streaming link of this addon right? This leads to this here:

image

If the robot stands still on a place, I can hear the sounds from the mic on my PC but no video.

nicedevil007 avatar May 29 '23 11:05 nicedevil007

I get the same error on S6maxV even if it worked before. I'm thinking the Roborock API might have changed somehow?

barrelltitor avatar May 30 '23 10:05 barrelltitor

I don't have this vacuums to check.

AlexxIT avatar May 30 '23 10:05 AlexxIT

If I can somehow offer you information to help let me know @AlexxIT . It's the least I could do in return for this amazing software 🙏

barrelltitor avatar May 30 '23 11:05 barrelltitor

As the title says, that is what my roborock S7 Max V Ultra cam tells me in your addon. I tested it with and without a pin, nothing seems to work.

sometimes it tells just: mse: unexpected EOF

here my yaml file:

streams:
  camera.vacuum:
    - roborock://mqtt-eu-5.roborock.com:8883?u=5UkE0eG52&s=OydxZE&k=dqdjXdoi&did=HRvKlMKbK6DMW&key=kxGHbm&pin=14569

If I click the info button I can see this output:

{
  "producers": [
    {
      "url": "roborock://mqtt-eu-5.roborock.com:8883?u=5UkE0eG52&s=OydxZE&k=dqdjXdoi&did=HRvKlMKbK6DMW&key=kxGHbm&pin=14569"
    }
  ],
  "consumers": null
}

Hello,

I'm facing same issue as you

what do you call with and without "pin"? Thanks

olivierbrager avatar May 30 '23 12:05 olivierbrager

#393 seems to be the same thing, though initially it was caused by a lack of pin

Some interesting information that might help: If I remote view on my phone and try to watch the stream from go2rtc it will disconnect the stream from my phone and say "Loading Failed. Retry (error -114)"

It started working out of a sudden again without me changing anything though, maybe it needs to keep retrying until it works?

Took me about 10mins of letting it sit there and retry until it worked

barrelltitor avatar May 31 '23 14:05 barrelltitor

Just for making things clear: I already tested it with and without a pin and it is not working. But for people that use a PIN to access this feature must keep in mind that the 9 dots for a drawing of the access code is the same as having numbers for each dot in this order:

1  2  3
4  5  6
7  8  9

So for example if you draw a "access" like a letter L you have the access PIN as 14789

image

nicedevil007 avatar May 31 '23 14:05 nicedevil007

Looks like stream works for some users: https://github.com/AlexxIT/go2rtc/issues/465 So I don't know what it could be in your case. Of course if you have right pin code, like @nicedevil007 described.

AlexxIT avatar Jun 07 '23 14:06 AlexxIT

Maybe this will help figure this out, or at least help others struggling.

When you login from go2rtc, you get a roborock://URL which contains your user information, login session token(probably not the right wording but you get what I mean), and the pin.

If I try to login now and use the new URL provided it does not work for some reason, but older ones will work just fine.

If you can get an older URL you still have laying around somewhere, it might work!

One thing to note is that when I had this issue there was a bit of a problem playing the actual remote view in the app too, it had to retry a bunch of times to actually connect, so maybe there's a robot or internet issue. Other steps I took were to reset the robot entirely & also disable & re enable live viewing.

I hope this information is somewhat helpful

barrelltitor avatar Jun 10 '23 13:06 barrelltitor

Just a thought: The go2rtc add stream from Roborock it's generating the url without pin ( no pin configured ) I add the generated url to the temp, but when trying to see it, it's showing me : image Reason: the lack of the PIN into url. using: Roborock Q7 Max go2rtc version Version: 1.8.2, Config: /dev/shm/go2rtc.yaml

tbutiu avatar Nov 16 '23 07:11 tbutiu

Does the Q7 Max have a camera?

AlexxIT avatar Nov 16 '23 07:11 AlexxIT

I can get the Map from Ha for it ( proxy camera). Thought it's a way of .. but yes, it does not have any camera. :)

tbutiu avatar Nov 16 '23 07:11 tbutiu

Hi, another S6maxV began to suddenly fail. I haven't touched anything and it was working fine. Also, I don't have a pin configured in the app or pattern. I tried to remove and add again the camera but the same. Here is the log:

11:32:28.708 INF go2rtc version 1.8.5 linux/amd64 11:32:28.711 INF [rtsp] listen addr=:8554 11:32:28.711 INF [api] listen addr=:1984 11:32:28.712 INF [webrtc] listen addr=:8555 11:49:07.915 ERR github.com/AlexxIT/go2rtc/internal/mjpeg/init.go:166 > error="streams: wrong login"

Thanks.

songochain avatar Apr 10 '24 09:04 songochain

Please let me know if the problem is relevant

AlexxIT avatar May 28 '24 14:05 AlexxIT