dnandha / miauth

Authenticate and interact with Xiaomi devices over BLE
GNU Affero General Public License v3.0
28 stars 10 forks source link

Xiaomi scooters #1

Closed RiccardoCestaro closed 2 years ago

RiccardoCestaro commented 2 years ago

Hello! Actually, I'm trying to connect my Xiaomi Scooter m365 using 55AB protocol from Xiaomi but there are some problems. For example in the authentication phase there isn't any AVDTP uuid available from the scooter. How I can solve this uuid problem?

dnandha commented 2 years ago

Hi @RiccardoCestaro , thanks for testing the lib first of all!

The m365 does not use the Mi EC protocol, this is also why the GATT services you mentioned are missing.

You can try using the Nb Protocol, chances are it might work. For this just run miauth with the --nb flag. Btw, I just pushed a fix for the miauth cli so that this flag is correctly parsed. Either update your package through pip or pull the latest commits from this repo.

Best - D

RiccardoCestaro commented 2 years ago

Thanks!! I confirm that using 5AA5 works well.

Regards

RiccardoCestaro commented 2 years ago

only a question: where came from the FW_DATA? How did you find it?

dnandha commented 2 years ago

@RiccardoCestaro Hey Riccardo, good question! Like stated in the file header my NB lib is based on https://github.com/scooterhacking/NinebotCrypto. This is also where I got the FW_DATA.