Skip to content

docs(camera): document Qrevo Master live video support / rearrange video docs - #173

Closed
sakowicz wants to merge 2 commits into
Python-roborock:mainfrom
sakowicz:docs/qrevo-master-camera
Closed

sakowicz wants to merge 2 commits into
Python-roborock:mainfrom
sakowicz:docs/qrevo-master-camera

Conversation

@sakowicz

Copy link
Copy Markdown
Contributor

Why

Live video works on the Qrevo Master (a117, fw 02.28.26), but setting a camera domain as the docs suggest breaks its onboarding. The firmware rejects a hostname in country_domain.

What changed

  • camera.md: tested-models table plus a warning to use a short token.r instead of a camera domain on the a117.
  • README: feature support table, with live video moved there from known limitations as experimental.

@DonSidro

Copy link
Copy Markdown
Contributor

Thanks for documenting this. Do you still have the server log from when the official app activated the camera? I'd like to add the same activation to LocalRock. The exact params of the set_camera_status it sent, and the camera_status from get_status before and after the button press, would be enough. The PIN can stay out of it.

@sakowicz

Copy link
Copy Markdown
Contributor Author

@DonSidro Yes, the logs survived. Qrevo Master roborock.vacuum.a117, fw 02.28.26, official Roborock app, 2026-10-15 (UTC):

camera_status from get_status before the press: 385 (0x181). It had been unchanged since onboarding.

The app then sent two set_camera_status calls back to back, 14 ms apart:

07:52:47.727  set_camera_status  params: [417]    -> ["ok"]   # 385 | 0x20   (bit 5)
07:52:47.741  set_camera_status  params: [4513]   -> ["ok"]   # 417 | 0x1000 (bit 12)

camera_status after:

07:52:48  4513  (0x11A1)
07:52:52  8613  (0x21A5)   # robot cleared bit 12, set bits 13 and 2 on its own

It has stayed at 8613 since.

About 14 s later the app sent set_homesec_password (old/new/enable password; values omitted), then start_camera_preview (client_id, quality: "HD", password) and get_turn_server, and the stream worked. No physical two-button activation on the robot was needed. The robot fetched fwapi/createca via the token.r host.

@DonSidro

Copy link
Copy Markdown
Contributor

Thanks for the a117 logs, they unblocked this for me. Remote view now works on my robot (Qrevo Curv 2 Flow) through the local server, in both the official app and LocalRock. A few findings that might be worth adding to docs/camera.md:

  1. The 15-character createca limit applies to token.r, port included. My first official-app attempts failed with -10014 "request turnserver failed". My token.r was roborock.example.com:555/ (26 characters), and the robot only uses the first 15. I moved the API host to api-r.example.com on port 443, which makes token.r r.example.com/ (exactly 15). DNS for both names points to the server, and an existing *.example.com wildcard certificate covers both. After re-onboarding, createca and TURN worked right away.
  2. Activation wasn't needed on my robot. camera_status already read 8613 (0x21A5), the same value your a117 ended up with. So the [417] then [4513] sequence seems to apply only when bit 2 is still clear.
  3. For third-party clients: the robot is strict about the shape of the WebRTC offer. With an offer as a stock libwebrtc client generates it, the robot accepts start_camera_preview and send_sdp_to_robot, then answers get_device_sdp with {"dev_sdp":"retry"} indefinitely. It never returns an error. That offer had receive-only audio, a full video codec list (VP8, VP9, AV1, H.264, H.265, flexfec) and a=extmap-allow-mixed. It answered within about 250 ms once the offer matched the official app's:
  • m=audio first, a=sendrecv, opus and telephone-event only. A track isn't required: a sendrecv transceiver without one is enough.
  • m=video, a=recvonly, H.264 only (packetization-mode=1), plus rtx, red and ulpfec.
  • No a=extmap-allow-mixed.
  • The offer sent before any ICE candidates.
    The robot answers with H.264 42e01f and sendrecv audio. I haven't isolated which of these changes is the one that matters; I changed them together. Moving audio first and sending the offer before ICE alone did not help.
  1. Server log tip: the console log truncates payloads, but data/runtime/decompiled_mqtt.jsonl has the full decoded offers and answers. Comparing those against the official app was how I found point 3.

@Lash-L Lash-L left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: needs rebase

This PR has merge conflicts with current main, so it hasn't been reviewed yet. Please rebase it onto main, resolve the conflicts, and mark it ready for review again. It will then go through the automated review.

I've converted it to draft until then.


This is an automated review by Claude Code, checked against the decompiled Roborock app (APK + device plugin bundles), python-roborock and a vacuum firmware dump. It can be incorrect, so please reply if any finding looks wrong.

@Lash-L Lash-L added the needs rebase Rebase requested or merge conflicts observed; remove after resolution. label Nov 25, 2026
@Lash-L
Lash-L marked this pull request as draft November 25, 2026 01:38
@sakowicz

Copy link
Copy Markdown
Contributor Author

Closing this: #264 already brought the Qrevo Master findings into docs/camera.md (bootstrap via short token.r, the country_domain onboarding problem, and the set_camera_status sequence), so rebasing would leave almost nothing to merge. Thanks for picking it up.

@sakowicz sakowicz closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: camera Camera activation, live video, audio and TURN/WebRTC. bug Something isn't working documentation Improvements or additions to documentation needs rebase Rebase requested or merge conflicts observed; remove after resolution.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants