Part #/ Keyword
All Products

HY-254101 Marvel: Arduino Magic & Encryption Mastery

2023-09-07 11:55:12Mr.Ming
twitter photos
twitter photos
twitter photos
HY-254101 Marvel: Arduino Magic & Encryption Mastery

To program the HY-254101 module for ESYB charging boards, start by configuring the Arduino IDE for the esp8266. Then, flash the CCLoader.ino file from the project onto your nodemcu device and connect it to the HY254101 module. These steps will prepare you for the programming process.

HY-254101 Flashing Factory Firmware for ESYB Charging Board Programming Interface

image.png

First, set up the Arduino IDE for the esp8266, and search for it. Then burn the \Arduino\CCLoader\CCLoader.ino from the project onto the nodemcu. Next, connect the nodemcu and the HY254101 module.

image.png

Open a cmd window. Navigate to the windows directory within the project. Depending on your system, choose the 64-bit or 32-bit ccloader.exe.

CCLoader_x86_64.exe 1 CC2541_SBL.bin 0 The red "1" here is the serial port number after you plug in the nodemcu to your computer, for example, if it's COM10, write 10. After hitting enter, You'll see Waiting for a response from Arduino...

Uploading firmware...

1 2 3 4 Upload successfully! File closed! Comport closed! This indicates a successful upload. If it gets stuck at Waiting for a response from Arduino... Or shows Waiting for a response from Arduino...

No chip detected! Upload Failed! File closed! Comport closed!

It means there is a problem with the connection, so check it.

After a successful download, you can use BleConfig for serial burning. Get a USB to serial converter like CP2102 (it must support 3.3V).

image.png

Make sure to connect the 6th pin on the right to GND; it's the module's WAKEUP pin, and without it, you can't burn. After connecting, open BleConfig.exe

image.png

1 Choose your port (the USB to TTL serial port, not the nodemcu) with a baud rate of 115200. 2 Click SBL. 3 Choose the TC41_MS_SBL_20180122_V2.84_SBL.bin in the directory. 4 Click local burn. If everything is fine, the progress bar will start moving, and once it's done, you can use it.

Because this firmware doesn't enable communication encryption, and the Sound Art app by default enables it, the original app won't work, so you need to modify the app to turn off communication encryption. Also, because encrypted and non-encrypted communication have different lengths, it can cause issues with data received by the app. This needs to be modified too.

If you don't have a nodemcu, you can also use Arduino.

* Solemnly declare: The copyright of this article belongs to the original author. The reprinted article is only for the purpose of disseminating more information. If the author's information is marked incorrectly, please contact us to modify or delete it as soon as possible. Thank you for your attention!