Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Map Data in Access Point Mode #201

Closed
noscript opened this issue Apr 5, 2020 · 5 comments
Closed

No Map Data in Access Point Mode #201

noscript opened this issue Apr 5, 2020 · 5 comments
Labels
impossible this can't be fixed or implemented

Comments

@noscript
Copy link

noscript commented Apr 5, 2020

This fork claims to work cloud free, yet I cannot get the maps working without connecting to Internet.

How to Reproduce

  1. Flash vacuum_valetudo_re_2008.pkg on a Gen2/S5 cleaner.
  2. Connect to the cleaner's AP roborock-vacuum-s5_miapXXXX
  3. Open http://192.168.8.1/ in browser
  4. Start the cleaning
  5. Go to Map view

Expected behavior
Map being updated in real time.

Actual behavior
Seeing "NO_MAP_DATA".

Vacuum Model: Gen2/S5

Valetudo Version: 0.9.2

@pidator
Copy link
Contributor

pidator commented Apr 5, 2020

You'll have to differentiate between "cloud free" and "unprovisioned mode".
If you do not connect the robot after flashing the firmware to a Wifi, it will stay in "unprovisioned mode". I've never tested the behaviour of the robot in this state yet, because everyone in reach of the signal could so easily connect to the robot, but it could be possible, that there are no map updates in this state. If you've connected it successfully to a Wifi (even a Wifi without internet connectivity) everything will work like expected! All connections to xiaomi cloud are blocked and the robot will run "cloud free".

@rand256
Copy link
Owner

rand256 commented Apr 5, 2020

Actually, device's firmware just doesn't send any map data when the robot is in AP mode, since it thinks there's no reason to try doing that when it's not connected to the internet, as obviously it doesn't know that with valetudo we're working locally.

Probably this can be changed with binary patching some manufacturer's services running on the robot, but generally trying using the device in AP mode is a bad idea from the security point of view, and also the device would shut down the AP after a while anyway, it won't be up forever.

@noscript
Copy link
Author

noscript commented Apr 5, 2020

My bad. Connecting to a WiFi without internet connectivity actually makes the maps working.

Is there a workaround to use maps in AP mode?

@noscript
Copy link
Author

noscript commented Apr 5, 2020

trying using the device in AP mode is a bad idea from the security point of view

Why would it be the case if I set a password to for AP?

the device would shut down the AP after a while anyway

I think that could be changed to keep it permanently on.

@rand256
Copy link
Owner

rand256 commented Apr 5, 2020

Then the only thing you need is to learn how to patch ARM executables, find the condition where it checks whether it's in AP mode, and disable it to make the maps uploaded regardless of Wifi mode. Unfortunately I have literally zero experience in this.

Btw it will require no changes from valetudo - only a patch of, most likely, /opt/rockrobo/cleaner/bin/AppProxy.

@rand256 rand256 changed the title No Map Data No Map Data in Access Point Mode Apr 11, 2020
@rand256 rand256 added the impossible this can't be fixed or implemented label May 17, 2020
@rand256 rand256 closed this as completed May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impossible this can't be fixed or implemented
Projects
None yet
Development

No branches or pull requests

3 participants