antonhakansson / m365py Goto Github PK
View Code? Open in Web Editor NEWA lightweight python library to receive parsed BLE Xiaomi M365 scooter(Version=V1.3.8) messages using bluepy
A lightweight python library to receive parsed BLE Xiaomi M365 scooter(Version=V1.3.8) messages using bluepy
Hi,
It fails when connecting to m365 pro 2. Same codes do not work on M365 Pro 2? Firmware version is 2.2.4
Hi, just tried library, it connects well, sends commands, but no receives no response.
Logs:
pi@raspberrypi:~/m365 $ python main.py
2019-12-21 21:35:08,561 - m365py - INFO - Attempting to indefinitely connect to Scooter: -------
2019-12-21 21:35:08,777 - m365py - INFO - Successfully connected to Scooter: -------
2019-12-21 21:35:09,704 - m365py - DEBUG - Sending message: ['U\xaa\x03"\x014\x02\xa3\xff', 34, 65443, 52, 1, '\x02']
2019-12-21 21:35:09,705 - m365py - DEBUG - Sending bytes: 55aa0322013402a3ff
2019-12-21 21:35:09,893 - m365py - DEBUG - Sending message: ['U\xaa\x03"\x013\x02\xa4\xff', 34, 65444, 51, 1, '\x02']
2019-12-21 21:35:09,894 - m365py - DEBUG - Sending bytes: 55aa0322013302a4ff
2019-12-21 21:35:10,039 - m365py - DEBUG - Sending message: ['U\xaa\x03"\x012\x02\xa5\xff', 34, 65445, 50, 1, '\x02']
2019-12-21 21:35:10,040 - m365py - DEBUG - Sending bytes: 55aa0322013202a5ff
2019-12-21 21:35:10,332 - m365py - DEBUG - Sending message: ['U\xaa\x03"\x01@\x1b~\xff', 34, 65406, 64, 1, '\x1b']
2019-12-21 21:35:10,333 - m365py - DEBUG - Sending bytes: 55aa032201401b7eff
2019-12-21 21:35:10,478 - m365py - DEBUG - Sending message: ['U\xaa\x03"\x011\n\x9e\xff', 34, 65438, 49, 1, '\n']
2019-12-21 21:35:10,478 - m365py - DEBUG - Sending bytes: 55aa032201310a9eff
2019-12-21 21:35:10,575 - m365py - DEBUG - Sending message: ['U\xaa\x03 \x01\x10\x16\xb5\xff', 32, 65461, 16, 1, '\x16']
2019-12-21 21:35:10,576 - m365py - DEBUG - Sending bytes: 55aa0320011016b5ff
(venv) pi@raspberrypi:~/m365 $
I'm using simple example, just added few more requests, none of them works.
Xiaomi M365, firmware v1.5.6
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.