Code Monkey home page Code Monkey logo

Comments (11)

vsgit19 avatar vsgit19 commented on June 2, 2024

What type of encryption the map that is being returned from cloud is encrypted ?

from xiaomirobotvacuumprotocol.

marcelrv avatar marcelrv commented on June 2, 2024

see the map folder on the map definitions.
The file is not encrypted when you pull it from the cloud. (outside that the url is using https though)

from xiaomirobotvacuumprotocol.

vsgit19 avatar vsgit19 commented on June 2, 2024

Are u sure ? The response i get starts with "eF6lk9uyqk"(This is a long string)

from xiaomirobotvacuumprotocol.

marcelrv avatar marcelrv commented on June 2, 2024

Maybe your missed The file is gzipped, hence needs to be unzipped before reading.

from xiaomirobotvacuumprotocol.

vsgit19 avatar vsgit19 commented on June 2, 2024

Do you have an example file to upload for map(gzip file) ?
Yes i saw you said it is gzipped since my string does not starts with magic number "1f 8b"

from xiaomirobotvacuumprotocol.

marcelrv avatar marcelrv commented on June 2, 2024

You find example here
https://github.com/marcelrv/XiaomiRobotVacuumProtocol/blob/master/RRMapFile/roboroommap%25252F55512646%25252F6.rrmap

from xiaomirobotvacuumprotocol.

marcelrv avatar marcelrv commented on June 2, 2024

just to check: you download your file from the link you got in the cloud, right?

e.g. sample URL
https://awsde0.fds.api.xiaomi.com/robomap/roboroommap/55512646/8?Expires=1593388044000&GalaxyAccessKeyId=5271733786446&Signature=XjiFJX86cYNtIwuBth+C0PH/I0M=

from xiaomirobotvacuumprotocol.

marcelrv avatar marcelrv commented on June 2, 2024

Suggest to take a look at the openhab miio binding for more details. It has the functionality to show the vacuum map

from xiaomirobotvacuumprotocol.

vsgit19 avatar vsgit19 commented on June 2, 2024

so i have three questions:

  1. To download the map, i need to perform get_map_v1 directly to the robot and then get something like that: "roboroommap%2255512245%2F1". This data i send to the "/getmapfileurl" API that should return me something like that "https://awsde0.fds.api.xiaomi.com/robomap/roboroommap/55512646/8?Expires=1593388044000&GalaxyAccessKeyId=5271733786446&Signature=XjiFJX86cYNtIwuBth+C0PH/I0M=".
    Correct ? as well as the https://awsde0.fds.api.xiaomi.com/robomap/roboroommap/55512646/8 return all map coordinates or there are many like this ?
  2. Is this process support the Vacuum 1C type ?
  3. In the openhab " you said this command related to "Vacuum 1C" -> "MapView | String | map-map-view". What this command do ?

from xiaomirobotvacuumprotocol.

marcelrv avatar marcelrv commented on June 2, 2024
  1. Correct
  2. I don't really know. Most reports are for S5 and s6
    Probably the fastest way to answer is to install openhab, add miio binding and add your cloud credentials. See if it gives you the map. If not, the c1 is different. You have the answer in 10 min
  3. I don't quit understand your question. Is this in the source code?

from xiaomirobotvacuumprotocol.

PiotrMachowski avatar PiotrMachowski commented on June 2, 2024

Hi @marcelrv

Great job decoding map file!
I have a question about rrmap file schema: is it possible that it uses protobuf to encode data? It seems to be really similar

from xiaomirobotvacuumprotocol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.