built-in BLE on rpi 3 #199
Comments
I know @josephroberts did some work on this. |
Ah yes, I remember it needed a patch. Thanks @josephroberts |
In other words, the magic command is I think this should be part of the base image. |
@agherzan was this already included in https://github.com/resin-os/resin-raspberrypi ? |
I'm not sure what's the problem. Can someone clarify what's the problem and/or what's expected? |
@agherzan the problem is anytime you want to use the built-in ble on rpi3 you have to run I think @josephroberts is suggesting we put that command in our base images and @cskiraly is suggesting adding it to the host? |
The serial device /dev/ttyAMA0 is dependent what what serial is used for bluetooth. It can be either AMA0 or S0 depending on the overlay used. |
I believe in the official Raspbian distro, "some mechanism" (dunno whether this is firmware / kernel / devicetree / udev) is in place that sets up |
Sure, we can definitely do that too. |
I'm currently using hassio which is built on top of resinos and I'm running into a/the bluetooth problem. No hci0 device. I've tried the instructions here but didn't get very far.
I tried running it again as suggested but then I just got:
I'm hoping to use bluetooth inside the docker container running on this system (if that it as all possible). Also, not at all clear whether the https://github.com/resin-os/resin-raspberrypi link is relevant to my situation. Thank you in advance. Regards, |
Hi @mihalski On resin.io we currently run the containers with the |
Yes they run with --net=host. The problem is the host doesn't have working bluetooth by default. I found that I could get it working with the following commands:
Is there any chance that this could be integrated within resinos for raspberrypi3? |
@mihalski I never needed the modprobe. Otherwise I agree, +1 for having this already on in the image! |
@cskiraly For me the btusb module is not loading automatically. It loads for you or you have a different type of bluetooth? Or a different device? |
@mihalski I don't have an SD with resin.os with me, but looking at a device with an other OS, I see hci0 up, and the following modules: bluetooth, bnep, btbcm, hci_uart. |
@cskiraly I think you are right. It's just the
that is required. |
Any word on this? Could it be integrated into the next resinos release? |
@shaunmulligan @lurch From 2.0.2, raspberrypi images provide device symlinks (https://github.com/resin-os/resin-raspberrypi/blob/master/CHANGELOG.md#v202rev1---2017-04-24) . |
Does that mean that the above mentioned commands can be performed WITHIN a container to provide bluetooth functionality? |
@craig-mulligan , this sounds to me like an issue when using bluetooth on resinOS unmanaged. Did you manage to get to any conclusion since you opened this bug? @mihalski No. That would help if we decide to bring in the hostOS the bluetooth initialisation. |
Just like @mihalski, I'm a hassio user with a similar problem, although slightly different. I'm disabling BT using an overlay ( What am I missing here? Do I need to mount |
@andreipopovici yeah, I think you would need to do something like |
@shaunmulligan That's what the |
We create now a hass.io docker that are able to manage bluetooth from a container to other containers: https://github.com/home-assistant/hassio-addons/tree/master/bluetooth_bcm43xx . I think this topic os now close for hassio users. Thanks for giving support to us. |
Hi all, can this be closed now? Is there any further action needed here @pvizeli @andreipopovici @mihalski @cskiraly @craig-mulligan ? |
@floion the topic is not hassio specific, therefore no, it is not solved. We know there are workarounds. The question is whether resinOS wants to expose the hci0 directly when it is available on the platform, or prefers to leave this to the user. As an OS user, I would expect hci0 to be exposed directly by the OS. |
In the past we have't done this because the serial device for Bluetooth could have been configured though a dtb overlay. Now we are using udev aliases which are persistent no matter the actual serial device is the Bluetooth working on (serial0/serial1). I think given this, we can start having this provided by the OS. @shaunmulligan @petrosagg Any comments against this? Otherwise, @cskiraly would you be able to push a PR towards resin-raspberrypi? |
@agherzan why doesn't the presence of the DTB automatically trigger loading of the kernel module and enablement of hci0? |
The hciattach binary attaches a serial device to the Bluez Stack. I don't think you can do that from a dtb automatically. |
could we use a udev rule then? |
Presumably such a udev rule would need to query the loaded DTBs, to determine whether either of the UARTs are connected to the Bluetooth module or not? |
@shaunmulligan @agherzan Just adding |
1 similar comment
@shaunmulligan @agherzan Just adding |
We will have ble enabled by default for rpi3 in the near future |
@floion was this change committed? |
No. Once this gets fixed this ticket will get updated |
@floion any update on this? |
not yet |
I'm having the exact issue as @mihalski:
|
We will have this hopefully fixed in the following week or two |
Should be fixed by balena-os/balena-raspberrypi#156 |
@floion is this already available in production? if not - do you know when? |
Not yet deployed to production. A conservative estimate would be sometimes next week |
@floion this has now been deployed in resinOS 2.9.3 on the rpi3 correct? |
Yes @shaunmulligan |
version: 2.0.0-beta.1
Has anyone tested built-in wifi on rpi3 with resinos?
@cskiraly has reported Agile-IoT/agile-stack#9 that it is not working.
I'll try test later today when I have a device on hand. Unless @agherzan @floion are already aware potential problems?
The text was updated successfully, but these errors were encountered: