Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BD6A20S10P doesn't respond using UART-TTL #633

Open
DominikZL opened this issue Dec 6, 2024 · 1 comment
Open

BD6A20S10P doesn't respond using UART-TTL #633

DominikZL opened this issue Dec 6, 2024 · 1 comment
Labels

Comments

@DominikZL
Copy link

DominikZL commented Dec 6, 2024

BD6A20S10P HW 11A SW 11.52, I can't estabilish communication on GPS port. Tested on ESP2866 NodeMCU v3 with esp8266-example.yaml. Here is log:

INFO ESPHome 2024.10.3
INFO Reading configuration /config/jk-bms.yaml...
INFO Updating https://github.com/syssi/esphome-jk-bms.git@main
INFO Starting log output from 192.168.1.100 using esphome API
INFO Successfully connected to jk-bms @ 192.168.1.100 in 0.006s
INFO Successful handshake with jk-bms @ 192.168.1.100 in 0.013s
[16:27:38][I][app:100]: ESPHome version 2024.10.3 compiled on Dec  5 2024, 17:10:14
[16:27:38][I][app:102]: Project syssi.esphome-jk-bms version 2.1.0
[16:27:38][C][wifi:600]: WiFi:
[16:27:38][C][wifi:428]:   Local MAC: 24:D7:EB:C8:FC:31
[16:27:38][C][wifi:433]:   SSID: 'Obornicka 253'[redacted]
[16:27:38][C][wifi:436]:   IP Address: 192.168.1.100
[16:27:38][C][wifi:439]:   BSSID: B0:4E:26:88:FC:F4[redacted]
[16:27:38][C][wifi:441]:   Hostname: 'jk-bms'
[16:27:38][C][wifi:443]:   Signal strength: -65 dB ▂▄▆█
[16:27:38][C][wifi:447]:   Channel: 11
[16:27:38][C][wifi:448]:   Subnet: 255.255.255.0
[16:27:38][C][wifi:449]:   Gateway: 192.168.1.1
[16:27:38][C][wifi:450]:   DNS1: 192.168.1.1
[16:27:38][C][wifi:451]:   DNS2: 8.8.8.8
[16:27:38][C][logger:185]: Logger:
[16:27:38][C][logger:186]:   Level: DEBUG
[16:27:38][C][logger:188]:   Log Baud Rate: 0
[16:27:38][C][logger:189]:   Hardware UART: UART0
[16:27:38][C][uart.arduino_esp8266:118]: UART Bus:
[16:27:38][C][uart.arduino_esp8266:119]:   TX Pin: GPIO1
[16:27:38][C][uart.arduino_esp8266:120]:   RX Pin: GPIO3
[16:27:38][C][uart.arduino_esp8266:122]:   RX Buffer Size: 384
[16:27:38][C][uart.arduino_esp8266:124]:   Baud Rate: 115200 baud
[16:27:38][C][uart.arduino_esp8266:125]:   Data Bits: 8
[16:27:38][C][uart.arduino_esp8266:126]:   Parity: NONE
[16:27:38][C][uart.arduino_esp8266:127]:   Stop bits: 1
[16:27:38][C][uart.arduino_esp8266:129]:   Using hardware serial interface.
[16:27:38][C][jk_modbus:113]: JkModbus:
[16:27:38][C][jk_modbus:114]:   RX timeout: 50 ms
[16:27:38][C][jk_bms:545]: JkBms:
[16:27:38][C][jk_bms:546]:   Address: 0x4E
[16:27:38][C][jk_bms:547]: Minimum Cell Voltage 'jk-bms min cell voltage'
[16:27:38][C][jk_bms:547]:   Device Class: 'voltage'
[16:27:38][C][jk_bms:547]:   State Class: 'measurement'
[16:27:38][C][jk_bms:547]:   Unit of Measurement: 'V'
[16:27:38][C][jk_bms:547]:   Accuracy Decimals: 3
[16:27:38][C][jk_bms:548]: Maximum Cell Voltage 'jk-bms max cell voltage'
[16:27:38][C][jk_bms:548]:   Device Class: 'voltage'
[16:27:38][C][jk_bms:548]:   State Class: 'measurement'
[16:27:38][C][jk_bms:548]:   Unit of Measurement: 'V'
[16:27:38][C][jk_bms:548]:   Accuracy Decimals: 3
[16:27:38][C][jk_bms:549]: Minimum Voltage Cell 'jk-bms min voltage cell'
[16:27:38][C][jk_bms:549]:   State Class: 'measurement'
[16:27:38][C][jk_bms:549]:   Unit of Measurement: ''
[16:27:38][C][jk_bms:549]:   Accuracy Decimals: 0
[16:27:38][C][jk_bms:549]:   Icon: 'mdi:battery-minus-outline'
[16:27:38][C][jk_bms:550]: Maximum Voltage Cell 'jk-bms max voltage cell'
[16:27:38][C][jk_bms:550]:   State Class: 'measurement'
[16:27:38][C][jk_bms:550]:   Unit of Measurement: ''
[16:27:38][C][jk_bms:550]:   Accuracy Decimals: 0
[16:27:38][C][jk_bms:550]:   Icon: 'mdi:battery-plus-outline'
[16:27:38][C][jk_bms:551]: Delta Cell Voltage 'jk-bms delta cell voltage'
[16:27:38][C][jk_bms:551]:   Device Class: 'voltage'
[16:27:38][C][jk_bms:551]:   State Class: 'measurement'
[16:27:38][C][jk_bms:551]:   Unit of Measurement: 'V'
[16:27:38][C][jk_bms:551]:   Accuracy Decimals: 3
[16:27:38][C][jk_bms:552]: Average Cell Voltage 'jk-bms average cell voltage'
[16:27:38][C][jk_bms:552]:   Device Class: 'voltage'
[16:27:38][C][jk_bms:552]:   State Class: 'measurement'
[16:27:38][C][jk_bms:552]:   Unit of Measurement: 'V'
[16:27:38][C][jk_bms:552]:   Accuracy Decimals: 3
[16:27:38][C][jk_bms:553]: Cell Voltage 1 'jk-bms cell voltage 1'
[16:27:38][C][jk_bms:553]:   Device Class: 'voltage'
[16:27:38][C][jk_bms:553]:   State Class: 'measurement'
[16:27:38][C][jk_bms:553]:   Unit of Measurement: 'V'
[16:27:38][C][jk_bms:553]:   Accuracy Decimals: 3
[16:27:38][C][jk_bms:554]: Cell Voltage 2 'jk-bms cell voltage 2'
[16:27:38][C][jk_bms:554]:   Device Class: 'voltage'
[16:27:38][C][jk_bms:554]:   State Class: 'measurement'
[16:27:38][C][jk_bms:554]:   Unit of Measurement: 'V'
[16:27:38][C][jk_bms:554]:   Accuracy Decimals: 3
[16:27:38][C][jk_bms:555]: Cell Voltage 3 'jk-bms cell voltage 3'
[16:27:38][C][jk_bms.switch:068]: JkBms Switch 'jk-bms charging'
[16:27:38][C][jk_bms.switch:070]:   Icon: 'mdi:battery-charging-50'
[16:27:38][C][jk_bms.switch:090]:   Restore Mode: always OFF
[16:27:38][C][jk_bms.switch:068]: JkBms Switch 'jk-bms discharging'
[16:27:38][C][jk_bms.switch:070]:   Icon: 'mdi:battery-charging-50'
[16:27:38][C][jk_bms.switch:090]:   Restore Mode: always OFF
[16:27:38][C][mdns:116]: mDNS:
[16:27:38][C][mdns:117]:   Hostname: jk-bms
[16:27:38][C][esphome.ota:073]: Over-The-Air updates:
[16:27:38][C][esphome.ota:074]:   Address: jk-bms.local:8266
[16:27:38][C][esphome.ota:075]:   Version: 2
[16:27:38][C][safe_mode:018]: Safe Mode:
[16:27:38][C][safe_mode:019]:   Boot considered successful after 60 seconds
[16:27:38][C][safe_mode:021]:   Invoke after 10 boot attempts
[16:27:38][C][safe_mode:022]:   Remain in safe mode for 300 seconds
[16:27:38][C][api:140]: API Server:
[16:27:38][C][api:141]:   Address: jk-bms.local:6053
[16:27:38][C][api:145]:   Using noise encryption: NO
[16:27:41][D][uart_debug:114]: >>> 4E:57:00:13:00:00:00:00:06:02:00:00:00:00:00:00:68:00:00:01:28
[16:27:46][D][uart_debug:114]: >>> 4E:57:00:13:00:00:00:00:06:02:00:00:00:00:00:00:68:00:00:01:28
[16:27:51][D][uart_debug:114]: >>> 4E:57:00:13:00:00:00:00:06:02:00:00:00:00:00:00:68:00:00:01:28
[16:27:56][D][uart_debug:114]: >>> 4E:57:00:13:00:00:00:00:06:02:00:00:00:00:00:00:68:00:00:01:28
[16:28:01][D][uart_debug:114]: >>> 4E:57:00:13:00:00:00:00:06:02:00:00:00:00:00:00:68:00:00:01:28
[16:28:06][D][uart_debug:114]: >>> 4E:57:00:13:00:00:00:00:06:02:00:00:00:00:00:00:68:00:00:01:28
[16:28:11][D][uart_debug:114]: >>> 4E:57:00:13:00:00:00:00:06:02:00:00:00:00:00:00:68:00:00:01:28
[16:28:16][D][uart_debug:114]: >>> 4E:57:00:13:00:00:00:00:06:02:00:00:00:00:00:00:68:00:00:01:28
@syssi
Copy link
Owner

syssi commented Dec 25, 2024

Could you assign GPIO4 and GPIO5 to the uart component and connect the GPS port of the BMS to these pins and give it another try? There is probably a USB-to-TTL converter attached to GPIO1/GPIO3 of your devboard and the JK-BMS is pretty picky here. Furthermore I recommend to use a ESP32 because of the large amont of sensors and better accessible hardware UART.

@syssi syssi linked a pull request Dec 25, 2024 that will close this issue
@syssi syssi changed the title BD6A20S10P not working BD6A20S10P doesn't respond using UART-TTL Dec 25, 2024
@syssi syssi added the uart-ttl label Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants