christian-kramer / JieLi-AC690X-Familiarization

Adventures in figuring out how this incredibly ubiquitous, yet incredibly mysterious integrated circuit works.
299 stars 57 forks source link

KT1025 / BT201 #4

Open sbridger opened 2 years ago

sbridger commented 2 years ago

I assume that this is a custom firmware with BT (and usb) audio + serial. A very useful combo. Its datasheet has some info about updating the firmware.

I am still trying to find the document about serial referred to in the datasheet: "26_Detailed instructions on Bluetooth data transmission and AT instructions. pdf" (Added file in case link disappears) BT201 Module _KT1025A_B_User Manual _V2.3.pdf

das-Sourav commented 2 years ago

YOU CAN CONNECT IT THROUGH ARDUINO FOR AT COMMENTS

christian-kramer commented 2 years ago

YOU CAN CONNECT IT THROUGH ARDUINO FOR AT COMMENTS

Do you mean AT Commands?

das-Sourav commented 2 years ago

YOU CAN CONNECT IT THROUGH ARDUINO FOR AT COMMENTS

Do you mean AT Commands?

Yes sorry about my spelling mistakes

christian-kramer commented 2 years ago

YOU CAN CONNECT IT THROUGH ARDUINO FOR AT COMMENTS

Do you mean AT Commands?

Yes sorry about my spelling mistakes

No problem at all, I was just making sure I understood. Do you have more information about how to use AT Commands with AC690X chips? I didn't know they had support for this.

sbridger commented 2 years ago

I assume that KT1025A is a custom firmware for the AC690X chip, and that the AT commands are a feature of that firmware.

My question is: has anyone found the document referred to.

It is a pretty useful firmware, at least for me as I need both audio in/out and a serial control channel.

KhairanarBharat commented 2 years ago

Did anyone found the "updata.bfu" file somewhere?

sottoalberi commented 1 year ago

The official Jieli updater tool has a serial interface to get onto the device but the AT command set is a mystery ..for experimentation. Start with just AT+ or AT help. KT1025A = AC6925A

The .bfu file should be in the post build folder of the SDK. It will be a specific bfu file based on how the chip has been configured by the original designer. They are basically the full .bin file loaded into the device.

https://www.aliexpress.com/item/1005004688181549.html

sottoalberi commented 1 year ago

YOU CAN CONNECT IT THROUGH ARDUINO FOR AT COMMENTS

Do you mean AT Commands?

Yes sorry about my spelling mistakes

No problem at all, I was just making sure I understood. Do you have more information about how to use AT Commands with AC690X chips? I didn't know they had support for this.

Check this from GitHub re using AT commands on BT201 module https://youtu.be/ca2di44stXk https://github.com/MooreSound/code/blob/master/BT201_Simple.ino

timetofly06 commented 1 year ago

Hi everyone !

Searched for hours and didn't find anywhere the last 2.3 firmware for the BT201 module. Can someone send the updata.bfu file to me or post the link to it ?

Thanks you so much guys

moss-maurice commented 8 months ago

Section 13 of the documentation states that you can customize sounds. You need to place the BT.mp3 and other files in the root of the TF card. The file size should not exceed 17kb. I did so, but the files are not customizable. Tell me, what am I doing wrong?

Victossom commented 7 months ago

Hello, good morning, has anyone managed to change the Bluetooth name?

hakangucyetmez commented 5 months ago

Hello, good morning, has anyone managed to change the Bluetooth name?

Yes I did , use lightblue and the adress is fff3 to write the at'bdxxxx xxx is the new name then reboot.First connect to spp ssid

dou uou have uddata.bfu file ples I must flash my board...

hakangucyetmez commented 5 months ago

I need updata.bfu file please send to me hakan.gucyetmez@hotmail.com

Akashsujanapal commented 5 months ago

I need the file pls mail akashsujanapal1977@gmail.com

uastudiopro commented 5 months ago

I made such a program https://www.youtube.com/shorts/Q_M81AoFDSg Mobile auto answer and it helps to login, where a login it's a number of phone

PhuocBull commented 1 month ago

Hi fellas, I'm also building a Bluetooth speaker using this module. I found the latest (assuming, V2.4 / 2020-04-17) firmware here. Just put the "updata.bfu" file in USB/SD card (FAT/FAT32, 32GB max), connect the power, wait 10s or something, it's best to hook the module with a 3-5w speaker or amplifier with speakers because you will hear few beeping sound then it stops and the update process is done. "updata.bfu" file location : 20240524154050.zip/99_BT201方案_KT1025A_B_资料_V2.4_20200426/02_用户手册/

umitmorgul commented 1 month ago

@PhuocBull Hello do you know that can we put a limit of the top volume level ?

PhuocBull commented 1 month ago

@PhuocBull Hello do you know that can we put a limit of the top volume level ?

I really don't know what you mean by that. Anyway, this module has 31 volume levels, from 0 to 30, and you can set the volume using push buttons or serial commands. The last volume value will be saved even when powering off. One volume level applies across all modes. For example, if you set the volume to 20 in Bluetooth mode, after switching to USB, it will still be 20.

hakangucyetmez commented 1 month ago

Hi did you test the new firmware mr ümit ? is there any difference about volume limiting ? also any other diffrence on new firmware ?

hakan


Gönderen: BLVDE @.> Gönderildi: 1 Ekim 2024 Salı 17:14 Kime: christian-kramer/JieLi-AC690X-Familiarization @.> Bilgi: hakangucyetmez @.>; Comment @.> Konu: Re: [christian-kramer/JieLi-AC690X-Familiarization] KT1025 / BT201 (Issue #4)

@PhuocBullhttps://github.com/PhuocBull Hello do you know that can we put a limit of the top volume level ?

I really don't know what you mean by that. Anyway, this module has 31 volume levels, from 0 to 30, and you can set the volume using push buttons or serial commands. The last volume value will be saved even when powering off. One volume level applies across all modes. For example, if you set the volume to 20 in Bluetooth mode, after switching to USB, it will still be 20.

— Reply to this email directly, view it on GitHubhttps://github.com/christian-kramer/JieLi-AC690X-Familiarization/issues/4#issuecomment-2386092738, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AT5PJRYKLR6T4NIATYENCVLZZKU6DAVCNFSM5IUMNFE2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMZYGYYDSMRXGM4A. You are receiving this because you commented.Message ID: @.***>

umitmorgul commented 1 month ago

deneme şansı bulamadım şehir dışındayım ancak dökümanlara biraz baktım ve limitlemeye dair bir şey göremedim

5 Eki 2024 Cmt, saat 22:27 tarihinde hakangucyetmez < @.***> şunu yazdı:

Hi did you test the new firmware mr ümit ? is there any difference about volume limiting ? also any other diffrence on new firmware ?

hakan


Gönderen: BLVDE @.> Gönderildi: 1 Ekim 2024 Salı 17:14 Kime: christian-kramer/JieLi-AC690X-Familiarization @.> Bilgi: hakangucyetmez @.>; Comment @.> Konu: Re: [christian-kramer/JieLi-AC690X-Familiarization] KT1025 / BT201 (Issue #4)

@PhuocBullhttps://github.com/PhuocBull Hello do you know that can we put a limit of the top volume level ?

I really don't know what you mean by that. Anyway, this module has 31 volume levels, from 0 to 30, and you can set the volume using push buttons or serial commands. The last volume value will be saved even when powering off. One volume level applies across all modes. For example, if you set the volume to 20 in Bluetooth mode, after switching to USB, it will still be 20.

— Reply to this email directly, view it on GitHub< https://github.com/christian-kramer/JieLi-AC690X-Familiarization/issues/4#issuecomment-2386092738>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AT5PJRYKLR6T4NIATYENCVLZZKU6DAVCNFSM5IUMNFE2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMZYGYYDSMRXGM4A>.

You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/christian-kramer/JieLi-AC690X-Familiarization/issues/4#issuecomment-2395165998, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVDTCFHKAND5IVG7AW4CCVTZ2A4RHAVCNFSM5IUMNFE2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMZZGUYTMNJZHE4A . You are receiving this because you commented.Message ID: @.*** com>

PhuocBull commented 1 month ago

My BT201 on the V2.4 firmware. So technically, nothing had changed. All the serial commands are still the same, and everything else. 31 levels of volume (0 to 30) aren't the problem, guys, It still goes 0 to 100%. They made it in 31 levels so users don't have to click so many times just to adjust the volume. 0 is 0%, 30 is 100%, get it ?

If you're making a bluetooth speaker with B201, I have a few advices :

  1. Don't use the onboard amp, obviously, it's suck, it's a single channel, it's only 3-5W, connect the onboard 3.5mm to some amplifier board with some cables.
  2. If you want to add the AUX input feature, use an audio relay, switch between BT201 3.5mm and AUX input to the amp
  3. Search for AT+CK in the PDF, turn on bluetooth running in background, it'll be useful (more on this below)
  4. When your BT201 already turned on bluetooth in backgound, it'll still send feedback about bluetooth status to serial while in other modes like USB/TF, PC sound card. You can take advanted of this, put some audio files in an SD card and use AT+AF, AT+AJ (READ THE PDF !!!) to play the these audio files as Prompt Tones (AT+CN00 to turn off onboard tones)

I don't have much free time, but will make a complete guide on this module when the project is done.

image

PhuocBull commented 1 month ago

YOU CAN CONNECT IT THROUGH ARDUINO FOR AT COMMENTS

Do you mean AT Commands?

Yes sorry about my spelling mistakes

No problem at all, I was just making sure I understood. Do you have more information about how to use AT Commands with AC690X chips? I didn't know they had support for this.

Check this from GitHub re using AT commands on BT201 module https://youtu.be/ca2di44stXk https://github.com/MooreSound/code/blob/master/BT201_Simple.ino

By the way, fellas, check out his github, very useful to explore this board, it has so much potential.

sbridger commented 1 month ago

... while in other modes like ..., PC sound card.

Does it have USB sound card mode? Does it also have USB-> serial?

If it did, it would be incredibly useful!

PhuocBull commented 1 month ago

Yes, usb sound card is available, use a male to male cable and plug it in your pc. USB -> Serial is uncertain. In USB sound card mode, the name appears to be BT201-AUD1O -BLE and I don't know how to change this name yet, regular Bluetooth and BLE Bluetooth's name are changeable as usual image

Svatochlup commented 1 month ago

Hi, I have tried the MooreSound repo. It is awesome, But i cant figure out how to rename the chip name displayed in bluetooth settings in Phone. I tried writing this code:

#include <SoftwareSerial.h>

SoftwareSerial BT201Serial(4, 3); // RX, TX

int btStatus = 0;

unsigned long previousMillis = 0; 
char BLEname;

void resetBT201(){
  BT201Serial.println("AT+CZ");
   delay(100);
}

int getBTStatus(){
String readStatus;
 BT201Serial.println("AT+TS");
  delay(50);
   while (BT201Serial.available() > 0) {
    char cs = BT201Serial.read();
    if (cs == '+') {
      if (readStatus.length() >0) {
        Serial.println(readStatus); //prints string to serial port out

        int ns = readStatus.toInt();  //convert readString into a number
        if(ns == 2 || ns == 4){
      return 3;
    }else if(ns == 1){
     return 2;
     }else if(ns == 3){
     return 4;
    }else if(ns == 0){
      return 1;
    }

        readStatus=""; //clears variable for new input
      }
    }  
    else {     
      readStatus += cs; //makes the string readString
    }

}
}

void setup() {
 Serial.begin(115200);
 BT201Serial.begin(115200);
    resetBT201();
    btStatus = getBTStatus();
    delay(300);

 BT201Serial.println("AT+BDLOSFAKOSrn");
 delay(500);
 resetBT201();
 delay(3000);
 Serial.println("Renamed done");

}

void loop() {

}

But it didnt changed the name. I hopeless. If anyone could help me I would appreciate it. Thanks a lot! @PhuocBull

PhuocBull commented 1 month ago

@Svatochlup Sorry, late reply. It should be : BT201Serial.println("AT+BDLOSFAKOS"); . Changing Bluetooth's name doesn't change a device's MAC. So try again, after rename your module, go to your phone Bluetooth setting, remove the BT201 from your phone's connected devices list, search again, it should work. And you only need to change the name once, BT201 will save it. Tip : If you don't have a USB to TTL serial adapter to perform a simple rename command or baseline setting on your BT201, you can use an Arduino nano/UNO, etc. Connect (short) GND pin to RST on the Arduino, now you have one. Process to connect Arduino's RX pin to RX and TX to TX on BT201. Yes RX to RX and TX to TX. Plug the Arduino board to your computer, select the port.