-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
SP16S020L16S100A: device communication timed out #58
Comments
I the logfile we can also see, that the integration uses this hci1 device, when we look at the source definition: 2024-09-30 09:18:11.413 DEBUG (MainThread) [custom_components.bms_ble] device data: {'name': 'DWCE00531J-029', 'address': '10:A5:62:23:B8:B5', 'rssi': -127, 'manufacturer_data': {}, 'service_data': {}, 'service_uuids': ['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000ff00-0000-1000-8000-00805f9b34fb', '00010203-0405-0607-0809-0a0b0c0d1912'], 'source': '00:E0:12:37:43:91', 'advertisement': AdvertisementData(local_name='DWCE00531J-029', service_uuids=['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000ff00-0000-1000-8000-00805f9b34fb', '00010203-0405-0607-0809-0a0b0c0d1912'], rssi=-127), 'device': BLEDevice(10:A5:62:23:B8:B5, DWCE00531J-029), 'connectable': True, 'time': 35937.157562589, 'tx_power': None} |
Hi! I have checked the log (thanks for providing) and it's definitely no BT issue. I can see the BMS flooding the integration with answers. It responds with 30 times the same message for unknown reason. I don't know why it behaves that strange. According to the specification there should be one answer per one request. |
It is a Vatrer Power 51.2v 100ah LiFePo4 battery - the BMS should be Jiabaida / JBD SP16S020 Informations from Overkill Solar App: In the meantime, I also tested with EspHome-JBD-BMS-Project and is works also somehow better. I get almost all Data, but not all. I also uploaded a communication dump there - maybe it provides more information. |
Well as said, the integration does receive all data, the BMS just sends it 30 times instead of once. So parsing is messed up because there is some protocol issue. I could work around it, but the actual problem is the repetitive transmission which makes no sense and will drain battery and block othe Bluetooth devices ... |
Hi, I just want to reported back - I think it has something todo with the usbip connection. I just bought me a other USB-BT stick (Cambridge Silicon Radio (CSR) -based adapter), which was recommended from the HA bluethooth integration docs. I also saw, that the Realtek had reset problems, and I thought that those are the described problems from the HA BT Docs. On the server / adapter side:
on the client side:
I think maybe the different kernel version / distibutions dont work well together - dont know. But I think there is no option for me, when the usbip connection is not working. EDIT: after researching more, I am not sure any more... that was also the point where I reported the issure:
maybe we just close the issue - I am mostly happy with the ESP - I mean I don't wanted to use any extra ESP, because I already have that raspberry pi there... but at least, when I need it, it runs better (with more details and the option to switch discharge on/off) with the Esphome project. |
That's up to you. I would be interested of I have an issue in the protocol implementation, although I can't think of any reason that would lead to a multiplication of messages, especially because I compared the protocol implementations l, but you never know ...
The integration uses the provided BT stack of Home Assistant so there is no modification by me. Thus, I would still suspect a BT stack issue in lower levels. Are you using a HASS installation (or could you try one?) or a different installation method of Home Assistant? So, depends on your motivation on how to proceed, either way thanks for reporting back and giving some hints in case somebody else suffers the same issue! |
@ThomasCr I think by accident I stumbled over the problem you described and currently I'm able to reproduce it. Will let you know if I can fix it, maybe you are willing to test a fix? 🖕 |
Issue fixed (to be confirmed) with v1.7.1. |
Checklist
Describe the issue
I am also new to the integration and most time, I get the error "DWCE00531J-029: device communication timed out"
My Stick is near the BMS, to I hope it is not a wireless problem.
Also there is a special constellation, because the stick I use is connected to a raspberry-pi close to the BMS and at least is connected to my HA installation with usbip.
I also tested to deleted the device in the integration and could find it again. But at least the same error pops up.
Reproduction steps
how I already told, I mostly always get this error.
Debug logs
The text was updated successfully, but these errors were encountered: