-
Notifications
You must be signed in to change notification settings - Fork 151
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
Heltec balancer support #511
Comments
im adding this support in the powermon code at the moment - not sure if I'll backport to mppsolar (as the BLE code is a mess and quite specific to the JK BMS) |
Hey, thanks for your reply. If you need help in testing i can offer you access to my RaspberryPI where you can check everything. |
Can i ask to keep compatibility with python3.9 ? Most likely we all trying to use old hardware for monitoring devices and powermon uses match and its not compatible with python < 3.11 |
@B4rtOl0 try Alpine linux native |
@jblance OK thanks got it working on chroot but seems like neey protocol is not finished yet. I'll wait and if you need me to test anything feel free to ask :-) |
@jblance I've made some tests with ble_neey and it is working quite good:Command: cell_info - information about the cellsParameter Value Unit One thing - its not disconnecting properly from the device so before next request i have to power off/power on bluetooth device. |
Can you post a info run `-I`
Powermon is very wip atm
…On Tue, Sep 10, 2024, 01:19 B4rtOl0 ***@***.***> wrote:
@jblance <https://github.com/jblance> I've made some tests with ble_neey
and it is working quite good: Command: cell_info - information about the
cells
Parameter Value Unit
cell_01_voltage 3.2806 V
cell_02_voltage 3.2818 V
cell_03_voltage 3.2811 V
cell_04_voltage 3.2814 V
cell_05_voltage 3.2817 V
cell_06_voltage 3.2827 V
cell_07_voltage 3.2822 V
cell_08_voltage 3.2816 V
cell_09_voltage 3.2854 V
cell_10_voltage 3.2807 V
cell_11_voltage 3.2804 V
cell_12_voltage 3.2833 V
cell_13_voltage 3.2816 V
cell_14_voltage 3.2824 V
cell_15_voltage 3.2825 V
cell_16_voltage 3.2804 V
cell_01_resistance 0.19512 Ω
cell_01_resistance 0.19829 Ω
cell_01_resistance 0.20327 Ω
cell_01_resistance 0.20662 Ω
cell_01_resistance 0.21115 Ω
cell_01_resistance 0.21643 Ω
cell_01_resistance 0.22186 Ω
cell_01_resistance 0.22466 Ω
cell_01_resistance 0.23357 Ω
cell_01_resistance 0.23647 Ω
cell_01_resistance 0.23175 Ω
cell_01_resistance 0.22627 Ω
cell_01_resistance 0.22366 Ω
cell_01_resistance 0.21768 Ω
cell_01_resistance 0.21257 Ω
cell_01_resistance 0.20499 Ω
total_voltage 52.5097 V
average_cell_voltage 3.2819 V
delta_cell_voltage 0.0051 V
max_voltage_cell 9
min_voltage_cell 11
operation_status Low_battery_voltage_balancing_stopped
balancing_current 0.0 A
temperature_1 22.739999771118164 °C
temperature_2 22.739999771118164 °C
cell_detection_failed 0x00 0x00 0x00
cell_overvoltage_failed 0x00 0x00 0x00
cell_undervoltage_failed 0x00 0x00 0x00
cell_polarity_error 0x00 0x00 0x00
excessive_line_resistance 0x00 0x00 0x00
overheating 0x0
charging_fault 0x0
discharge_fault 0x0
read_write_error 0x0
One thing - its not disconnecting properly from the device so before next
request i have to power off/power on bluetooth device.
—
Reply to this email directly, view it on GitHub
<#511 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJVKNROPYRIXNDJS2YZBDLZVWN7BAVCNFSM6AAAAABNUGTFS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZYGEYDONJVHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@jblance Sure.
Attached log as well. Let me know if you need debug or anything more. |
@jblance
|
Can you try |
@jblance bluez 5.60-0ubuntu2.2 |
I updated the logging on the bleport, can you get the latest source from github and post a |
Done, attached two files. |
It is in chroot environment so couldnt use bluetoothctl. Ill try to fix it. |
2024-09-10 08:54:00,195:INFO:bleport:disconnect@152: bluetoothctlcommunicate - outs: b'Waiting to connect to bluetoothd...\r\x1b[22P\x1b[0;94m[bluetooth]\x1b[0m# \r\x1b[0;94m[GW-24S4EB]\x1b[0m# \r\x1b[KAgent registered\n\x1b[0;94m[GW-24S4EB]\x1b[0m# \r\x1b[K[\x01\x1b[0;93m\x02CHG\x01\x1b[0m\x02] Controller 04:42:1A:57:2A:50 Pairable: yes\n\x1b[0;94m[GW-24S4EB]\x1b[0m# disconnect 00:E4:4C:21:DB:9C\nAttempting to disconnect from 00:E4:4C:21:DB:9C\n\x1b[0;94m[GW-24S4EB]\x1b[0m# \r\x1b[K', errs: None It is working fine now after installing bluez in chroot environment. I didnt know and havent noticed you are using bluetoothctl to manage connection. |
Good to hear.
Yeah for some reason the python package disconnect doesn't seem to work at
all, the code is their in bleport.py if you want to try it and see if it
works for you
…On Tue, Sep 10, 2024, 20:55 B4rtOl0 ***@***.***> wrote:
2024-09-10 ***@***.***:
bluetoothctlcommunicate - outs: b'Waiting to connect to
bluetoothd...\r\x1b[22P\x1b[0;94m[bluetooth]\x1b[0m#
\r\x1b[0;94m[GW-24S4EB]\x1b[0m# \r\x1b[KAgent
registered\n\x1b[0;94m[GW-24S4EB]\x1b[0m#
\r\x1b[K[\x01\x1b[0;93m\x02CHG\x01\x1b[0m\x02] Controller 04:42:1A:57:2A:50
Pairable: yes\n\x1b[0;94m[GW-24S4EB]\x1b[0m# disconnect
00:E4:4C:21:DB:9C\nAttempting to disconnect from
00:E4:4C:21:DB:9C\n\x1b[0;94m[GW-24S4EB]\x1b[0m# \r\x1b[K', errs: None
It is working fine now after installing bluez in chroot environment. I
didnt know and havent noticed you are using bluetoothctl to manage
connection.
—
Reply to this email directly, view it on GitHub
<#511 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJVKNVW3PT2MIMHCOJ7B3TZV2XX5AVCNFSM6AAAAABNUGTFS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBQGA3DKMJWGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
It's all good, thank you very much ! |
@jblance If you need me to test anything just tag me anytime and forgive me please for making this thread in wrong project :(((( |
resistance descriptions should be fixed in git code now |
Hello,
Is there any chance to add Heltec/Neey balancers over BLE ? As far as i know ESPhome already support those devices:
https://github.com/syssi/esphome-jk-bms/blob/main/components/heltec_balancer_ble/heltec_balancer_ble.cpp
syssi/esphome-jk-bms#384
The text was updated successfully, but these errors were encountered: