BOX BASEN 280 ah BMS Tianpower
Closed this issue · 11 comments
Hi,
I installed the project on HA, changed the mac address, the BT of the box is TP_123456, the log cannot connect.
The BOX BASEN 280/300 ah is as follows
https://www.basengreen.com/it/PRODOTTI/custodia-fai-da-te-per-accessori-per-contenitori-per-batterie-48v-300ah/
I attach the log.
logs_esp32-bms-basen_logs.txt
Thanks for your answer
Could you increase the log level and provide another log? Thanks in advance!
https://github.com/syssi/esphome-tianpower-bms?tab=readme-ov-file#debugging
hi,
the debugger log has been increased, the BT does not connect to the BMS, I attach the updated log.
last night it was connected for a few minutes, then it disconnected, see image.
Thanks in advance!
logs_esp32-bms-basen_logs (1).txt
would there be the possibility of connecting the BMS with the RS485 port and therefore with the modbus? I have already connected the inverter this way.
Some details from the log:
The BMS is advertised as
[09:45:35][VV][esp32_ble_tracker:427]: Parse Result:
[09:45:35][VV][esp32_ble_tracker:444]: Address: B0:0C:9D:1F:FD:70 (PUBLIC)
[09:45:35][VV][esp32_ble_tracker:446]: RSSI: -96
[09:45:35][VV][esp32_ble_tracker:447]: Name: 'TP_123456'
[09:45:35][VV][esp32_ble_tracker:455]: Ad Flag: 5
[09:45:35][VV][esp32_ble_tracker:477]: Adv data: 02.01.05.0A.09.54.50.5F.31.32.33.34.35.36 (14)
The ble_client
tries to establish a connection but doesn't succeed:
[09:47:12][D][esp32_ble_client:110]: [0] [B0:0C:9D:1F:FD:70] Found device
[09:47:13][I][esp32_ble_client:067]: [0] [B0:0C:9D:1F:FD:70] 0x00 Attempting BLE connection
[09:47:42][VV][esp-idf:000]: W (36533395) BT_APPL: gattc_conn_cb: if=3 st=0 id=3 rsn=0x100
[09:47:42][V][esp32_ble_client:121]: [0] [B0:0C:9D:1F:FD:70] gattc_event_handler: event=41 gattc_if=3
[09:47:42][D][esp32_ble_client:172]: [0] [B0:0C:9D:1F:FD:70] ESP_GATTC_DISCONNECT_EVT, reason 256
[09:47:42][V][esp32_ble_client:121]: [0] [B0:0C:9D:1F:FD:70] gattc_event_handler: event=2 gattc_if=3
[09:47:42][D][esp32_ble_client:110]: [0] [B0:0C:9D:1F:FD:70] ESP_GATTC_OPEN_EVT
[09:47:42][W][esp32_ble_client:143]: [0] [B0:0C:9D:1F:FD:70] Connection failed, status=133
What's the distance between the BMS and the ESP32? Which ESP32 model/version do you use? Could you try to replace the ESP32 or change some more parameter (f.e. more distance vs. less distance to the BMS).
Note for myself:
Tianpower TP-LT55AT used in BASEN 48V 280Ah Bluetooth battery bank
Advertised via BLE as TP_123456
would there be the possibility of connecting the BMS with the RS485 port and therefore with the modbus? I have already > connected the inverter this way.
I must admit: I don't know much about this BMS. Could you ask your seller about some RS485 protocol details? Do you have a RS485 converter and could you sniff some data?
What's the distance between the BMS and the ESP32? Which ESP32 model/version do you use? Could you try to replace the ESP32 or change some more parameter (f.e. more distance vs. less distance to the BMS).
I purchased an ESP32-WROOM-32D board purchased on AliExpress, I can try to install the integration on another ESP32, for now I have tried moving it further away (always in the same room) but it cannot connect.
I must admit: I don't know much about this BMS. Could you ask your seller about some RS485 protocol details? Do you have a RS485 converter and could you sniff some data?
the seller of the box basically mounts the Tianpower BMS but doesn't know anything else.
I have a RS485 converter and I could read the parameters, if you tell me which program to use, I can try to sniff the data.
What's the distance between the BMS and the ESP32? Which ESP32 model/version do you use? Could you try to replace the ESP32 or change some more parameter (f.e. more distance vs. less distance to the BMS).
I purchased an ESP32-WROOM-32D board purchased on AliExpress, I can try to install the integration on another ESP32, for now I have tried moving it further away (always in the same room) but it cannot connect.
I did the test with another ESP32 but it still doesn't connect to the BT of the BMS, at this point I think the problem is with the BT card and for this reason I would like to try to read the data with the RS485 port.
In general your device should be supported but I've no idea what's the root cause of your issue.
HI
I wanted to let you know that I was able to make the integration work.
I used an ESP32 board with CP2102 and restarted the box in order to associate the BT of the BMS.
There are some parameters that give me zero and small things to fix, if you want I'm available to send you the logs, you could make an integration calling it specific for the BASEN bms installed on the BOXES.
Cool! Thanks for your feedback. Feel free to create a new issue and provide some logs + contribute improvements if you can.