-
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
Specify minimum BT version #125
Comments
I just see now this topic and probably it is late for the answer but I had the same issue at the time when it appeared. Did wrote to |
I appreciate the update and link to the Tesla update thanks. Looks like 5.0 is the minimum |
5.0 zero is minimum since August '24 just because Tesla changed in vehicle-command/pkg/connector/ble/device_linux.go |
Thanks @BogdanDIA and nice find. Recompiling vehicle-command on the fly might be difficult for this module. I suggest finding a way to force supported bluetooth version > 5.0 for the device. @iainbullock what do you think about recompiling? Not sure if worth the hassle, or maybe just a note in the readme and suggesting to manually adapt the Dockerfile |
Hi @raphmur,
Files to check: Happly New Year |
I think we could compile these changes into vehicle-command during the build; everyone would get ScanningFilterPolicy = 0. To have it as a setting in Dockerfile is also possible but it's something most people won't do. My RPi3b+ is using BT4.2 and seems to still work fine without changing ScanningFilterPolicy to 0. @BogdanDIA do you know what ScanningFilterPolicy does and what happens if it's set to 2 with a BT<5. |
@iainbullock I have seen people mentioning that it works on rpi3, don't know why, maybe the controller has some early implementation from 5.x. ScanFilterPolicy sets the rules for getting the scan advertising data from the car. Value 2 refers to directed advertising directly to the host but I don't see the car sending this kind of directed advertising. It just sends undirected advertising which is enough for having ScanFilterPolicy=0 |
Thanks for the explanation. I will try your approach to patching during the build via the Dockerfile and report back |
I managed to incorporate your patch into the build, thanks for sharing. As I'm on a RPi3b+ I can't actually test it as things already work for me. I will experiment with the ability to set the hci number _docker#patch-vehicle-command /~https://github.com/tesla-local-control/tesla_ble_mqtt_docker/tree/patch-vehicle-command |
I have implemented improvements into v0.4.3b-dev which is on DockerHub, including the patch to allow bluetooth <5.0. Main changes are robustness improvements, see the CHANGELOG. /~https://github.com/tesla-local-control/tesla_ble_mqtt_docker/blob/iain-dev/CHANGELOG.md |
I believe @guyank has got it working.
I will keep the thread open for now as I think @HiFuGa still has issues.
Originally posted by @iainbullock in tesla-local-control/tesla-local-control-addon#116 (comment)
The text was updated successfully, but these errors were encountered: