Add JK-B2A16S support #48
Replies: 62 comments 84 replies
-
I would like to support the device. Do you know some protocol details already? I assume it's the legacy protocol ( |
Beta Was this translation helpful? Give feedback.
-
sorry don't know protocol details, I'm a total newbie. I will be able to test the poc. |
Beta Was this translation helpful? Give feedback.
-
I flashed 2 different ESP32 boards and the bms wont work. led will blink and beep once per second. if I press and keep holding the reset button in the ESP32 the BMS will boot. ttl to bt is JDY-18, https://usermanual.wiki/Innovation-technology/JDY-18/pdf I have the black wire to GND, red to VCC and white from TX to GPIO16 bms.mp4best regards, |
Beta Was this translation helpful? Give feedback.
-
I don't have a RS485 connector and my BLE module is set to UART instead of IIC as per the manual that I sent you. best regards, |
Beta Was this translation helpful? Give feedback.
-
ok I uploaded some pics the CPU is an ST32F. that chip does not support RS485 communication just UART I2C and SPI. communication to the BT is UART. |
Beta Was this translation helpful? Give feedback.
-
I uploaded a few pics yesterday |
Beta Was this translation helpful? Give feedback.
-
ok. chip next to CPU is a serial eeprom PN 24c02A https://pdf1.alldatasheet.com/datasheet-pdf/view/74863/MICROCHIP/24C02A.html USART3 goes to the serial eeprom 24c02a and is I2C communications USART1 goes to an empty heather next to the eeprom I don't have an RS485 converter :) |
Beta Was this translation helpful? Give feedback.
-
so whats the next step should I connect the ESP32 with the code that you send me or should I wait for a new code? |
Beta Was this translation helpful? Give feedback.
-
will do as soon as I get home. just to make sure TX from cpu goes to GPIO 16 and RX from cpu goes to 17. not crossover... |
Beta Was this translation helpful? Give feedback.
-
im using this module |
Beta Was this translation helpful? Give feedback.
-
ok will do thanks and hope to find you on the air sometime |
Beta Was this translation helpful? Give feedback.
-
"I flashed 2 different ESP32 boards and the bms wont work. led will blink and beep once per second. if I press and keep holding the reset button in the ESP32 the BMS will boot." I powered the ESP32 using a microUSB cable and here are the results and they are not good. GPIO16 to last pad and GPIO17 to the one before the last: GPIO17 to last pad and GPIO16 to the one before the last:: GPIO16 to TX, GPIO17 to RX on BLE module: GPIO17 to TX, GPIO16 to RX on BLE module: 73 de KP4MI |
Beta Was this translation helpful? Give feedback.
-
same issue as last time |
Beta Was this translation helpful? Give feedback.
-
@sshoecraft Sorry for bothering you. Do you know this hardware version (JK-B2A16S, v3.0) and do you have an idea about possible connectivity next to bluetooth? We've identified a second USART1 connected to some empty header but the device doesn't respond to known requests/protocols. |
Beta Was this translation helpful? Give feedback.
-
ill give this a try again, im using a 8266 (ran out of esp32s) or does it has to be changed? |
Beta Was this translation helpful? Give feedback.
-
sorry for the delay will try tonight been busy with my mom lately |
Beta Was this translation helpful? Give feedback.
-
here are some logs this one is with balance off in the app: this other one is with the balance on in the app: fist byte does change from x01 00 when enabled to x00 00 when disable. |
Beta Was this translation helpful? Give feedback.
-
I added the following to my yaml
[20:04:43][D][switch:017]: 'jk-bms balancer' Turning OFF. RPReplay-Final1650932095.mp4 |
Beta Was this translation helpful? Give feedback.
-
as soon as a press "retrieve settings button" the balancing switch turns on RPReplay-Final1650978154.MP4will try to sniff BLE traffic later had to undust the android tablet and is charging now and my laptop is old had to wait a long time to install SDK Platform Tool |
Beta Was this translation helpful? Give feedback.
-
nevermind got it, had to restart the tablet. well , it's time to visit ( deal ) with my mom will get back later on tonight hope this help and if you get anything will try after 20:00 my local time |
Beta Was this translation helpful? Give feedback.
-
compiled the new changes and it works thanks, I even added a binary switch and it does works too:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
`aa5590eb2004000040405601329fbccccc5f352e: 0x20 0x04 0x00004040 (3.0) # Power off voltage?? aa5590eb6804000000405601329fbccccc5f3536: 0x68 0x04 0x00000040 (2.0) # Max balance current?
|
Beta Was this translation helpful? Give feedback.
-
I don't want to change the naming from "Idle" to "Waiting". You could use a template text sensor to use custom texts: https://esphome.io/components/text_sensor/template.html#text-sensor-template-publish-action |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
esphome was up to date, cleaning the build files and compiling again did the trick |
Beta Was this translation helpful? Give feedback.
-
hi Senastian, after adding control BT connections , im experiencing the esp32 to go offline every so often do you think is something with my code or my esp32 might be going bad? I have 2 others esp32 in the same room 1 for the inverter and 1 for the bms. I ran out of esp32 spares. do yo think the code can be added to any of the other 2? they both are using serial coms and not using the ble as last resort I could use an esp 8266 for my inverter and use that esp32 for the bms thanks |
Beta Was this translation helpful? Give feedback.
-
will try that next time it happends. I havent read this until today an I have been unplugin the esp32. I also try as button instead of switch and it wont compile either thank you |
Beta Was this translation helpful? Give feedback.
-
hello Sebastian, Hi all I’m having some trouble creating an automation.
and I’m getting this error: thanks in advanced |
Beta Was this translation helpful? Give feedback.
-
Hi, were you able to change the value for "Start Balance Volt"? Is the rest now then with the current version? |
Beta Was this translation helpful? Give feedback.
-
any plans to support JK-B2A16S, hardware version 3.0, software version 3.3.0?
thanks.
best regards,
Miguel
Beta Was this translation helpful? Give feedback.
All reactions