-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Bulltron battery setup error #85
Comments
Hi! I would need a debug log to tell you more / analyze the issue. Do you know which BMS is used by the battery? (If not, logs will tell anyway.) Thanks. |
Thanks for looking. I think it is Daly BMS though I have no official confirmation from manufacturer. I'll send debug log tomorrow. Can I send it directly to you? Don't like to post it publicly because it might contain sensitive data. |
Sure, there are links in my github profile you can use, e.g. my user on HA community which allows DMs. |
Sent the debug files to your Discord account as I already have an account in Discord. |
Thanks for sending the logs. I had a look at them and there are two possible issues.
A feedback with a log is highly appreciated so I can nail down the issue. Thanks for raising the issue! |
Thanks for looking. I've already tried to pair the device with bluetoothctrl pair MAC but I never get a prompt to enter a PIN and the pairing process just times out with an error. When using the Atom bluetooth proxy pairing is even more problematic as bluetoothctl doesn't work with the proxy. If you can guide me I'd give it another try. I'll try as well your hint 2 with manual installation but this will take some time because the mobile home where the Bulltron is installed will be serviced during the next 2-3 days. |
@PG248 I looked at the logs again and can see a number of Bluetooth errors (indicating that the connection does not work). Have you tried rebooting once? Can you let me know, which HA version you use, what OS, what Bluetooth adapter? Did you ensure that your phone / the app or any other software that could access the battery is disabled? |
Just updated everything: BLE BMS 1.10.0 Bluetooth is via Atom Stack M5 proxy. Still get the following error every few seconds: Can connect to the battery with bluetoothctl connect B4:XX:XX:XX:XX but cannot pair with bluetoothctl pair B4:XX:XX:XX:XX probably because pairing needs a PIN that I cannot enter during the pairing process (no request). Maybe an option to set the PIN in the config file for BLE BMS might be helpful? If you want me to do further testing tell me what you need. |
I'm still not sure what the reason is. I can see that the BMS responds with a frame that looks like from a Daly BMS but only after disconnect. The fastest way to figure out what the issue is would be to capture the Bluetooth traffic when you are using the app. Are you able to do so? |
I use mainly iOS and Mac stuff. I've enabled sysdiagnose on my iPhone according to this document: https://download.developer.apple.com/iOS/iOS_Logs/Bluetooth_Logging_Instructions.pdf Played around with the Bulltron app via Bluetooth, triggered the sysdiagnose and finally transferred the sysdiagnose.tar.gz to my Mac. There are a ton of files and folders inside this archive. Would it be helpful to send you the archive? If not, I have access to an older Android smartphone (Samsung) and could try the Wireshark capture outlined in your link above. Don't know whether I can gain root-level access without changing the system though and probably have to run Windows in a VM to be able to send adb commands to the phone. |
Hi! |
@PG248 please try the version on this branch and send me a debug log so I can finalize the code in case it works or figure out the issue if not. |
Will do but will take a day or two because I'm currently traveling with just an iPhone and I assume I need to manually install the files from the bulltron branch, which is a bit cumbersome to do on iOS. |
Sent the debug log to your Discord account . |
Checked, but the main issue seems to be the PIN code. I need either a BT trace or you could try removing the PIN if that is an option. I have no clue how they do the PIN checking, so I cannot do much without a recording. |
Sent you a Bluetooth traffic capture according to #134 via Discord. |
Key for solving the detection issue was this entry from the
The Bulltron battery only announces name and manufacturer ID / data. No services are announced. |
Checklist
Describe the issue
I try to read entities from a Bulltron LiFePo battery with HA. The battery is automatically recognised but when I confirm to proceed with the automatic setup I get the following error:
device communicating failed: [org.bluez.Error.Failed]
Operation failed with ATT error: 0x0e (Unlikely Error) (BleakDBusError)
In terminal I can connect to the battery (sensitive data changed to XXX) :
I tried to pair the battery with bluetoothctl pair MAC but the pairing process stops after some timeout probably waiting for a pin. Don't get a prompt to enter a PIN
I think pairing with a PIN is not necessary unless I want to change parameters of the battery. At least that's the case with the Bulltron Mobile App. I do not want to change parameters via HA only read actual charging level, voltage, current.
Any help appreciated.
The text was updated successfully, but these errors were encountered: