Update xiaomi-ble.md

Improvements to structure
This commit is contained in:
lekrsu 2024-07-14 19:42:22 +02:00 committed by GitHub
parent f57b1f715f
commit 8dc4d1b7e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,18 +13,23 @@ This guide will walk you through the process of reflashing the BLE module on you
### 1. Preparation ### 1. Preparation
1. **Remove the dash cover**: Begin by taking off the dash cover to access the dash. 1. **Remove the dash cover**: Begin by taking off the dash cover to access the dash.
<img src="xiaomi-cover.png" alt="Xiaomi Dash Cover" height="500"/> <img src="xiaomi-cover.png" alt="Xiaomi Dash Cover" height="500"/>
2. **Gather all required tools**: Ensure you have an ST-Link V2, male to female Dupont cables, and a Windows PC. 2. **Gather all required tools**: Ensure you have an ST-Link V2, male to female Dupont cables, and a Windows PC.
<img src="stlink.jpg" alt="ST-Link V2" height="500"/> <img src="stlink.jpg" alt="ST-Link V2" height="500"/>
<img src="dupont.png" alt="Dupont Cables" height="500"/> <img src="dupont.png" alt="Dupont Cables" height="500"/>
3. **Download the reflasher tool**: [Download the reflasher tool from ScooterHacking](https://www.scooterhacking.org/forum/viewtopic.php?t=676). 3. **Download the reflasher tool**: [Download the reflasher tool from ScooterHacking](https://www.scooterhacking.org/forum/viewtopic.php?t=676).
### 2. Connecting the Hardware ### 2. Connecting the Hardware
1. **Scrape the coating on the BLE debug pads**: The BLE module has a slight coating on its debug pads. Use a knife or anything else and gently scrape away the coating to ensure a good contact. 1. **Scrape the coating on the BLE debug pads**: The BLE module has a slight coating on its debug pads. Use a knife or anything else and gently scrape away the coating to ensure a good contact.
<div style="display: flex;">
<img src="LITE_1S_MI3_PRO2-BLE.png" alt="BLE Module" height="600"/> <img src="LITE_1S_MI3_PRO2-BLE.png" alt="BLE Module" height="600"/>
<img src="PRO-BLE.jpg" alt="BLE Module Connection" height="600"/> <img src="PRO-BLE.jpg" alt="BLE Module Connection" height="600"/>
</div>
2. **Attach Dupont cables to the BLE module**: Bend the pins inward so that they can physically touch the pads. Secure the connection by taping the ends together side by side and hold the pins in place when flashing. 2. **Attach Dupont cables to the BLE module**: Bend the pins inward so that they can physically touch the pads. Secure the connection by taping the ends together side by side and hold the pins in place when flashing.
3. **Turn on the dash**: When ready to flash, ensure the dash is turned on. If the dash does not turn on, remove it completely and supply 5V as shown in the images. 3. **Turn on the dash**: When ready to flash, ensure the dash is turned on. If the dash does not turn on, remove it completely and supply 5V as shown in the images.
@ -32,6 +37,7 @@ This guide will walk you through the process of reflashing the BLE module on you
1. **Run the reflasher tool**: Open the reflasher tool on your Windows PC. Ensure the console is visible so you can monitor the process. 1. **Run the reflasher tool**: Open the reflasher tool on your Windows PC. Ensure the console is visible so you can monitor the process.
2. **Start the flashing process**: Hold the three pins in place on the BLE module and press the start button in the reflasher tool. It may take a few tries to get it right. 2. **Start the flashing process**: Hold the three pins in place on the BLE module and press the start button in the reflasher tool. It may take a few tries to get it right.
3. **Monitor the reflasher console**: Watch the console output. It will indicate when the process is complete with a message saying "All done". 3. **Monitor the reflasher console**: Watch the console output. It will indicate when the process is complete with a message saying "All done".
<img src="Reflasher.png" alt="Reflasher Tool Output" width="600"/> <img src="Reflasher.png" alt="Reflasher Tool Output" width="600"/>
### 4. Troubleshooting ### 4. Troubleshooting