AntonHakansson / m365py

A lightweight python library to receive parsed BLE Xiaomi M365 scooter(Version=V1.3.8) messages using bluepy
46 stars 11 forks source link

No response #1

Closed freekode closed 4 years ago

freekode commented 4 years ago

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

oroelipas commented 3 years ago

same issue, same output

It looks like the function "handle_message" from class "M365Delegate" is never called because nothing is recieved

oroelipas commented 3 years ago

ok, my mistake: I had firmware version 1.5.x

Now I have updated to V138 but still not working.

This is my M365 conf:

Is the BLE version importat? maybe you can share which version the repo is tested.

Thaks you! :)

oroelipas commented 3 years ago

Ok, again I answer myself:

Everything finally worked flashing a new BLE: 0.91 -> 0.72

The final configauration I have is:

Thanks you for this amazing project!!