Livraison rapide 48-72h | OFFERTE à partir de 65€ d'achats

Update Xiaomi M365 1.5.1 and BLE 0.81 be careful! There is the solution

🇲🇫 Version française ici  🇲🇫

Following the 1.5.1 update of the scooter, the Bluetooth Low Energy (BLE) communication protocol has changed. Named BLE0.81 this version is not usable to modify the firmware of your scooter manually or even to connect you with third party applications like M365 Tools or m365 DownG

There are three ways to go back. From the simplest to the most complicated.

Downgrade via m365_DownG

A new method has just been developed to unlock a scooter that is only not updated with software.

PRO clone card prerequisites (LCD display)

If you follow this tutorial to flash a Pro clone card (LCD display), we recommend that you remove the C2 capacitor to make the flash successful:

Required software

Steps

  • Start the application m365_DownG 

  • Connect to the scooter (on): :
    • Press Connect
    • Choose your scooter from Bluetooth devices
    • The Check Ver button becomes enabled

  • Double-click Check Ver, a new line "got key" is wrote :

  • Click Open Bin to choose the previously downloaded BLE file
  • Click on Flash Bin (the flash starts and displays a percentage):

  • At the end, 3 different beeps will sound, a sign that everything went well. Also, the done line is displayed. :

Here is your scooter is unlockable again with any custom firmware.



The following other methods are kept for archival purposes.

Replacing the BLE card

You can get a 100% compatible BLE card in version 0.72, i.e. the previous version, which does not block third-party applications.

It is available here: Bluetooth ignition card M365 Generic

 

Downgrade by SPZJulien

i can reprogram your card for you

Contact me on this email for the terms and conditions julien@spzjulien.com

 

 

Manual downgrade (New method)

Edit: New and easier method

Many thanks to Nikita🤖 (telegram @nickkee) for his work.

Feel free to encourage him by making a donation on Paypal: https://paypal.me/r1ka

Required files

All files (ST-Link drivers, downgrade file) are in the archive to download here:

ble365rec.rar

Once downloaded, decompress the archive into the folder of your choice.

Required equipment

Procedure

Install the ST Link driver

In order to operate your ST Link, install the STM32 ST-LINK Utility v4.4.0 setup.exe driver located in the folder.

Connect the ST Link

When you connect the ST Link to the usb, the driver completes its installation.

Wiring the ST Link with the BLE

Depending on your scooter model, here is the wiring to be done:

M365 classic:

Note that you must desolder the CMS capacitor named C16. This capacitor is only present to prevent cable updates. So there's no need to put it back on again

M365 Pro :

Run the BAT file

Depending on your scooter, choose the right file:

  • ble365rec.bat for the classic M365
  • blePROrec.bat for the M365 Pro

The BAT file contains all the commands to perform the operation. Once finished, you can check that everything went well:

You can now unsolder the cables and reconnect your BLE to your scooter.

 

 

Manual downgrade (older and deprecated)

NECESSARY FILES

To return to a previous version, you need 2 files:

  1. CODE
  2. UICR

You will find these files in the BLE.zip version 2 archive here

REQUIRED EQUIPMENT

STEPS TO FOLLOW

Connect the card to the ST-LINK


First remove C16:



Then solder pins to slot P3 (SWD BLE) as below:



Finally connect the STLINK as if below ( the power supply is via the Higo connector):

 

Installation of the ST-LINK software

Before connecting the ST-LINK to your machine (Windows or Linux), download the driver here. Scroll down to the bottom of the page to the "GET SOFTWARE" section and download "STSW-LINK009".

After installing the ST-LINK driver, we need OpenOCD. OpenOCD is a great free tool that we will use to talk to the BLE with the ST-LINK. Download the binaries here.

We will use version 20190210, extract the files to a folder, and download the ST-LINK + nRF51 configuration file for OpenOCD. Place this file in the openocd/bin/ folder.

Of course, you need the replacement BLE firmware (link at the top of the article. Download it and put it also in the openocd/bin/ folder.

You will need Telnet to connect to OpenOCD. Follow these instructions to enable Telnet on Windows 10.

For the rest, we will use the control terminal of your machine.

Connection with OpenOCD

It's time to connect your ST-LINK, your BLE and your machine! Your BLE will turn on and it will take Windows a minute to install the drivers.

Open a terminal and navigate to the openocd/bin/ folder (tip: open the folder from the explorer and in the path bar type "cmd", a command prompt opens located on the folder directly). Run the following command to start OpenOCD and connect the ST-LINK:

 openocd -f stlink_nrf51.cfg

On the way out you should have something like this:

Open On-Chip Debugger 0.9.0 (2019-02-10)
[...]
Info: STLINK V2J17S4 (API V2) VID:PID 0483:3748
Info: Target voltage: 3.237541
Info: nrf51.cpu: hardware has 4 breakpoints, 2 watchpoints

Keep OpenOCD running and open a new terminal. We can connect with OpenOCD using this command:

 

telnet 127.0.0.0.1 4444

If all goes well, you should be welcomed with the Open On-Chip Debugger text. Try entering the reset halt command to make sure everything is working properly.

 

Open On-Chip Debugger
> reset halt
target halted due to debug-request, current mode: Thread
xPSR: 0xc100000000 pc: 0x000006d0 msp: 0x000007c0
> mdw 0x4
0x00000004: 00000000

You are now ready to flash your firmware.

Firmware Flashing

Now that you are connected to OpenOCD using telnet, we can execute the following commands to reset the BLE, completely clear its memory and flash:

nrf51 mass_erase
nrf51.cpu curstate
nrf51.cpu arp_halt
nrf51.cpu curstate
nrf51 mass_erase
program CODE 0x0
program UICR 0x10001000
reset

You can read all the orders available here: http://openocd.org/doc/html/Flash-Commands.html.

After the last command, the BLE restarts by itself.

You can disconnect it from the ST-LINK and try it on your M365!