Hi all - I’m working on an application that needs the RPI3 Bluetooth chip enabled on startup. I’ve followed the example from here but am getting exceptionally mixed results.
Typically, the first time I deploy the Resin application to a device, it starts up correctly, but when I deploy updates to the device, the results start to get very mixed.
About 75% of the time, when I run /usr/bin/hciattach /dev/ttyAMA0 bcm43xx 921600 noflow -, the result is:
If I restart the newly deployed application, it works about 75% of the time after the restart, and almost always works eventually with enough restarts.
Any idea what the root cause of this might be and how we might attempt to resolve?
The thinking is to add this to the host, users don’t have to initialise it. However, I wasn’t aware that the example wasn’t working I thought it always worked the second attempt always caught it, we should update the example to only proceed after a success.
I’ll create an issue and try get it fixed asap. PRs welcome ofc
@rmoore do you mind sharing more info, like the base image you are starting from and the Bluetooth related packages / dependencies you are installing in your Dockerfile?