atc1441 / ATC_RF03_Ring

Findings and custom firmware for the Colmi R02 (and similar) Smart Ring with RF03 BlueX SoC
GNU General Public License v3.0
272 stars 14 forks source link

[INFO] Latest Firmware Version R02_3.00.17_240903 #15

Closed wrcrooks closed 2 months ago

wrcrooks commented 2 months ago

Scraped the OTA site and got the latest firmware version URL if anyone wants it. I'm planning on immediate customization. https://api2.qcwxkjvip.com/download/ota/R02_V3.0/R02_3.00.17_240903.bin I'll upload my bash script for downloading too, if anyone is interested.

wrcrooks commented 2 months ago
#!/bin/bash

download_file() {
        yymmdd="$1"
        wget "http://api2.qcwxkjvip.com/download/ota/R02_V3.0/R02_3.00.17_$yymmdd.bin" -O "R02_3.00.17_$yymmdd.bin"
        if [[ $? -ne 0 ]]; then
                echo "Failed to download file $yymmdd"
        fi
}

for (( day=1; day <= 366; day++ )); do
        yymmdd=$(date -d "2024-01-01 + $((day-1)) days" +%y%m%d)
        download_file "$yymmdd"
done

-Courtesy of Google Gemini

Then simply delete all the files with a size of 0 bytes and you should have one binary with a larger size. There's probably a wget flag to not create a file when a 404 is received but I didn't take it that far.

wrcrooks commented 2 months ago

Closing this non-issue :+1: