-
Notifications
You must be signed in to change notification settings - Fork 4
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
connection failed: Input/output error #5
Comments
Have you tried the bmsinfo.py? It works for me. |
Thanks for your reply. Now I am able to connect to the BMS's (I got 3 of them) But the other 2, seem not to work. The script is freezing. pi@raspberrypi: ...and.... pi@raspberrypi: |
I have the same problem, sometimes the communication freezes: Currently I am working on making the script more robust, so as to repeat the request. Also I am looking to get more data from the BMS like SOC and other values. |
I have discovered that it makes sense to wait a second before writing to the device. This makes communication much more stable. Note that you need to import time for that. |
I had the same stability issues and added a sleep between connection and write statement. This helps a lot. But, sometimes it still freezes. I increased the sleep to 2 seconds. This seems to fix this problem. |
Hi,
I try to connect to my SmartBMS the way you mention but I reciev an error:
sudo python3 bmstcp.py A4:C1:38:06:BC:A6 9998
[A4:C1:38:06:BC:A6] Connecting
[A4:C1:38:06:BC:A6] Connection failed: Input/output error
I am able to connect using gatttool:
sudo gatttool -i hci0 -b A4:C1:38:06:BC:A6 -I
[A4:C1:38:06:BC:A6][LE]> connect
Attempting to connect to A4:C1:38:06:BC:A6
Connection successful
Any idea what I could do?
Thanks
Maarten
The text was updated successfully, but these errors were encountered: