NetworkDir / MIScooterPy

Python code for communicating with Xiaomi M365 Scooter over GATT using bluepy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MIScooterPy

Python code for communicating with Xiaomi M365 Scooter over GATT using bluepy. Based on the profound reversing work of Camilo Ruiz and others.

Final goal is to have Firmware(s) update using other than the currently available Android apps, from devices such as PC, RPi and others. The project is WIP and currently supports a few 'get' commands, but is being updated with more commands progressively.

Feel free to contribute :)

Installation

No installation is required except for the BluePy python library. Installation instructions can be found on bluepy's github page

Code is targeting Python 3 Tested on Raspberry Pi 3 Model B

Usage

myMAC='AA:AA:AA:AA:AA:AA'
com=CommManager(myMAC)
com.connect()
com.send('GetSerial')
# Response will be printed to console
com.send('GetFirmware')
com.send('GetPincode')

About

Python code for communicating with Xiaomi M365 Scooter over GATT using bluepy


Languages

Language:Python 100.0%