From 8625fc6a5c288cc8045c67f635f9a5ec4a42d4ad Mon Sep 17 00:00:00 2001 From: Sergei Egorov Date: Tue, 25 Feb 2025 12:01:58 -0700 Subject: [PATCH] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi! Thanks for this project, it really helped me to get started 🙌 Since manual firmware can brick the device, I would highly recommend [the Codeless SDK](https://lpccs-docs.renesas.com/UM-140-DA145x-CodeLess/introduction.html) for those who want to get started. --- README.md | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 29ee39d..b3d77f4 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,43 @@ This repo is made together with this explanation video:(click on it) [![YoutubeVideo](https://img.youtube.com/vi/xOw-6uMfOjc/0.jpg)](https://www.youtube.com/watch?v=xOw-6uMfOjc) -Use this Android tool to upload the firmware to the Smart BLE Ring: +# Getting Started +Since manual firmware can brick the device, I would highly recommend [the Codeless SDK](https://lpccs-docs.renesas.com/UM-140-DA145x-CodeLess/introduction.html) for those who want to get started. + +Here is how: +1. Download the AT command set from here: https://www.renesas.com/en/software-tool/smartbond-codeless-commands?srsltid=AfmBOop--fiuu56b0Nhaiu4AnOmSKZ4o7wKGEFxjuRlS4snoNJ8H11cC +2. Patch it using this version of `make_bin_ota.py`: https://gist.github.com/bsideup/a61bb25cb00494d23af00927908d2cbc +3. Flash it as any other firmware. Don't worry, it supports SUOTA. +4. Use SmartConsole (Android/iOS) app to perform AT commands to play with your ring. + +Here is how you can execute "WHO_AM_I" I2C command on the accelerometer: +```at +# Configure I2C using pin 2.3 and 2.4, as per prox_reporter/src/config/user_periph_setup.h +AT+IOCFG=23,7 +AT+IOCFG=24,8 + +AT+I2CSCAN +# Should give you 0x18:0xFE and 0x44:0x27 + +# Send "WHO_AM_I", as per https://www.lcsc.com/datasheet/lcsc_datasheet_2312221743_Hangzhou-Silan-Microelectronics-SC7A20HTR_C19274408.pdf + ChatGPT +AT+i2CREAD=0x18,0x0F + +# Should give 0x11 +``` + +Or turn on the "steps" led: +``` +AT+IOCFG=02,4 +AT+IO=02,1 +``` + + +# Advanced usage (custom firmware) + +Use this Android/iOS tool to upload the firmware to the Smart BLE Ring: https://play.google.com/store/apps/details?id=com.dialog.suota&hl=en +https://apps.apple.com/us/app/renesas-suota/id953141262 Settings as in the OTA_Settings_for_apk.jpg image