Add me to the list of people needing Bluetooth connectivity on Android devices. I have several devices which I’d like to connect to my phone via their various Android apps.
It’d make me be able to leave Android 100%… I’d be able to use my watch, my crypto wallet, and a few other things. NFC Passthough and Bluetooth Passthrough are musts… With these implemented ((even as a patch with patchmanager 4 (if it ever exists)) then I could guarantee that I’d never use Android by itself again. I’d be only using FOSS apps and such
If you could toggle bluetooth passthrough as well, it’d be perfect.
I also miss Bluetooth (LE) Support. I would use the German Corona tracing app. In f-droid there is a version who don’t need the Google play service to run. One problem less. But without Bluetooth (LE) Support the app not work.
As a replacement of the official German CoronaWarnApp you could use Contrac by @flypig et.al. https://openrepos.net/content/flypig/contrac which is an implementation of the tracing in Sailfish. It has its glitches but works more or less reliably.
I Test it.
My girlfriend does have a gene-defect (Cystrical Fibrosis) which causes several chronical defects. One of them is diabetes and she does have an small hardware token on her arm that scans her blood sugar and gives an alarm if its too high or low.
This Hardware Pushes its Alarms using Bluetooth and uses NFC for Scanning the Blood Sugar Level. It comes with an very very crappy and limited hardware device as the recommended way to use it, is an smartphone app.
But this Smartphone App, sadly, does not work on SailfishOS because neither the Bluetooth, nor the NFC Features are there.
3 weeks ago I got myself a Lego remote-controlled through an Android application. The latter communicates with the model using Bluetooth which in turn means I can’t use my Sailfish to play with it. I’d be forced to use an Android device which makes me extremely sad and disappointed and would totally ruin my pleasure. Please add Bluetooth support for Android, it’s been years now since you’ve started offering Sailfish for external devices.
What are the technical problems preventing you from doing so anyway?
Hi @ddobrev. Following the community meeting, I just had a quick play around with pylgbst which provides a python interface for PoweredUp devices, which you mentioned might apply to your LEGO model. I was able to get pylgbst installed to my Sailfish XA2 using the following steps from the console:
devel-su zypper install bluez5-libs-devel make gcc glib2-devel python3 -m venv venv source venv/bin/activate pip install bluepy pip install -U pylgbst
I then created this file (following the readme on github):
from pylgbst.hub import MoveHub from pylgbst import get_connection_bluepy conn = get_connection_bluepy(hub_mac='AA:BB:CC:DD:EE:FF') hub = MoveHub(conn) for device in hub.peripherals: print(device)
Which seemed to work when I execute it with
devel-su python3 listdevs.py. I say “seemed” because unfortunately I don’t have a LEGO PoweredUp device to test it with, but I could see it scanning for Bluetooth devices, which is encouraging.
I want to be clear that I understand this isn’t a solution to the original question posed about Bluetooth, and I can understand your desire to use the official LEGO app, but I just thought you might like to know in case this gives you something to at least play with (I understand how disappointing it must be not to be able to). I’d be happy to discuss further, but if so we should probably create a separate topic.
I don’t know if this still works, but it may be worth a try:
Also, if someone is up to taking on the development/maintenance.
I don’t really know if this is applicable but there was some news VirtIO Bluetooth Driver On The Way To The Linux Kernel - Phoronix would this be a possible way in the future?
Thank you for trying to help. I had found this same library myself but it has the same problem as the JS one I posted at the meeting: it’s a library. That is, one would have to actually write an application on top in order to use it. I wish I had the time for it but at present I don’t. Still, I was quite detailed at the meeting, so I hope I’ve stirred them enough to spring into action.
Thank you, I have electric scooter from Xiaomi (older model M365) with bluetooth and with your commands (without pylgbst of course) and this python library I can connect to the scooter from terminal in Sailfish and see state of battery, temperature etc. I had to downgrade bluetooth firmware in the scooter because the python library works only with older one.
That’s very neat indeed; nice! I have a Xiaomi Ninebot C with Bluetooth and I never got around to trying to connect it up (I was too busy figuring out how to ride it!). I must give that a try.
Thanks for the tip !
I’ve tested it with pybluez and I can connect to a Bluetooth monitoring device I have with my Linux script.
If I may, I’ll copy some of the commands you mentioned to the readme of my script on gitlab.
You are of course very welcome to. It’s great to hear that you had success connecting. There seem to be many python scripts out there for connecting to specific proprietary bluetooth devices. They can be a bit fiddly, but open up loads of possibilities when they work.
It would be really exciting to see full Bluetooth support for the Android subsystem. I have to use a proprietary program for work that uses BLE and it doesn’t seem to be possible for me to reverse engineer the whole thing then make a native alternative. Hopefully, the support would land soon!
No Bluetooth and NFC Support for Android Apps is the only reason not to use Sailfishos.
I need NFC and Bluetooth for my Diabetes App and some other Apps.
Im a real burning Linux fan, i use it on my Business PC, Laptops, Servers.
Hi, on Sailfish OS Verla 18.104.22.168 we still don’t have full Android Bluetooth support.
There are many apps e.g. Wahoo Element, Corona Warn App that need bluetooth enablement/passthrough. Same is with NFC, e.g. for banking apps.
Please can you consider making this possible.
I am very near of switching back to an Android Device because for some Android Apps there is no workaround and the Sailfish OS powered phone becomes more and more useless in real life.
Trying to pair a Xiaomi device using Mi Home app, and that’s not working. Ran into the same issue with several apps that deal with IoT devices already.
Looks like WiFi control access is somewhat broken too, because that’s a Xiaomi backup solution and it isn’t working either.
Is there any plans to get either one to work?