With BATMON i have monitoring 3x JK-BMS (v15). This is working fine, however if you restart batmon, or some conditions restarts a session BATMON cannot connect to 1 or more batteries and never recovers from that. This is due the JK-BMS only allows 1 connections at the time and still sees BATMON session previously PID connected.
To solve this , stop BATMON, use bluetoothctl to issue a power off / power on. Then start BATMON again. Now everything is back to normal.
Therefor i suggest when batteries cannot connect allow a POWER-OFF/ON . This would be archived with bt_power_cycle (i think , documentation is not really clear) ... but it logs:
15:49:18 INFO [main] Power cycle bluetooth hardware
Unable to open mgmt_socket
Unable to open mgmt_socket
So it is not clear if a power reset actually occured :/
Hi,
With BATMON i have monitoring 3x JK-BMS (v15). This is working fine, however if you restart batmon, or some conditions restarts a session BATMON cannot connect to 1 or more batteries and never recovers from that. This is due the JK-BMS only allows 1 connections at the time and still sees BATMON session previously PID connected.
To solve this , stop BATMON, use bluetoothctl to issue a power off / power on. Then start BATMON again. Now everything is back to normal.
Therefor i suggest when batteries cannot connect allow a POWER-OFF/ON . This would be archived with bt_power_cycle (i think , documentation is not really clear) ... but it logs:
15:49:18 INFO [main] Power cycle bluetooth hardware Unable to open mgmt_socket Unable to open mgmt_socket
So it is not clear if a power reset actually occured :/