-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add TDT BSM support #102
Comments
It looks as if the TDT BMS uses a similar protocol to the Seplos v2.0. Thus, I will first try to finish #101 and then come back to your request. Maybe it's solved with one implementation. |
Yep, looks it very similar if compare it by rs-485 part. I hope it will be similar for bluetooth proto. |
Hi @goblinmaks, just checking, still interested? I would have soon time to try an implementation ... |
Still interested, I will support with all that I can. |
Hey! I started to look at what the BT app does, but for me it looks not really similar to a Seplos v2 BMS, but maybe I'm to tired. Are you able to capture the Bluetooth traffic when using the app with the battery? That would be the simplest way for me to get it running. |
Captured |
Excellent, thanks. Confirms my thoughts, but now I have some real data I can implement against, great! |
@goblinmaks first version available on the branch. If you can provide me a debug log and check values against the app, it would be great. |
Please have a look at the troubleshooting section of the README. I can help more later today. Most interesting is the output of |
Ok, for some reason the device changes it's name. Which is strange. Can you provide me the |
Looks like after first connect device changed name to XDZN*, is very similar to janvda/balena-pulseaudio#10 Automatically detects with latest changes, but not received any values. |
Did you check if you need to pair the device, i.e. UPDATE: I did a fake battery here that works with the app. This "battery" also works with the integration. So in principle it should work. Did you leave it running for at least 5-10 minutes? Probably the connection takes a while to get stable. |
@goblinmaks I checked your recording and saw that there is an enable code. I added it, can you try again? |
ok, will try it now. |
@patman15 Excellent! |
Hi @patman15 ! |
@andreitoma-github right not this integration works but have some problem with initial connection. I suspect that it can be a problem with my local setup only. Could you please try to install integration from the branch and check with your battery ? |
Looks like your device was not correctly discovered, i.e. it has not announced the name via Bluetooth. That raises the error. |
Hi @andreitoma-github! Thanks for the input. The issue is that the current implementation can only handle 16 cell batteries since I did not exactly know how the responses would look like for a different cell count. Thanks to you I now know, I can fix that quite easily. |
@andreitoma-github fixed 4S version, @goblinmaks there was something wrong with yesterdays version. Tests did not pass, probably try again with current one. |
@patman15 re-adding works good with adapter. Some problem with one of my instance of bluetooth_proxy |
Hi @patman15 |
@andreitoma-github thanks for the feedback, will soon merge the code and include it with the next release. |
Checklist
Please describe the enhancement you would like to have.
Additional context
https://www.tdtbms.com/products-category/smart-bms.html
https://www.tdtbms.com/download.html
AndroidApp https://www.tdtbms.com/download-category/bluetooth-app.html
The text was updated successfully, but these errors were encountered: