-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Bluetooth support #517
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
base: master
Are you sure you want to change the base?
Bluetooth support #517
Conversation
|
Could you summarize a bit what this does? Is there any particular reason why you choose to integrate it into the main app instead of into termux-api? |
|
From the long press menu it opens the paired bluetooth devices. Once a bluetooth device has been selected it tries to open a bluetooth connection using SPP. This is useful with devices such as the Raspberry Pi 3 which can be setup to have a shell in the bluetooth RFCOMM socket. It was necessary to integrate it to the main app because I wanted to be able to use the vt-100 terminal emulator. To my knowledge this is not possible from the termux-api. This enables to use all the Linux cli applications over the Bluetooth connection because of the vt-100 terminal emulator can interpret the escape characters and display the shell environment correctly. |
|
Long press for bluetooth isn't working for me |
|
@Kaosxlinus It does work, but this has not been merged with the master so it is no included in the Play Store version. If you want to use the Bluetooth functionality then you have to clone my repo and build it your self and then upload it via debug mode to your phone. Naturally you will then be using an older version of the Termux app from the time of my fork but with bluetooth. |
|
@mjarvisal Ah okay, my bad. Thank you |
|
HI @mjarvisal , it'd be great if you could let us know when this will be available on the playstore version. Thanks. Blueterm just doesn't cut it. Termux rules! Bluetooth to Pi is handy when you're moving around and don't have Wifi set up yet where you are. W/o this functionality I'm bound to my laptop & puTTY to execute sudo raspi-config on the serial BT connection. |
|
Fork downloaded and Bluetooth branch built in Android Studio to create a signed APK. I've installed this on my GT-I9505 running CM 12.1. (Uninstalled the Playstore release first). Termux seems to be working as normal. I could even hit the context (i.e. menu) button quickly to bring up the context menu and connect to my Pi. This was all successful. I'd usually only use Bluetooth before setting up Wifi wherever I am, so the next step for me is:
After which Termux died ("Unfortunately, Termux has stopped"). Any ideas? If there are any logs you'd like to see, please let me know where to find them.
Cheers |
|
HI @mjarvisal, I've fixed the error on the Bluetooth Session. I'll e-mail you the details. Cheers. |
ArrayIndexOutOfBoundsException fixed in BluetoothSession
Hi @Grimler91 If you can give us some pointers on how this should be added to termux-api, I'll see what I can do to refactor it out of the main app. Cheers. |
|
Hi @DoomyDwyer, We want to keep the permission list short for termux-app and let users that want these additional features install addon apps. If it isn't possible to implement it through an addon app then it this might not be merged unless a lot of users request it. Still, really nice work by @mjarvisal. |
|
Hi @Grimler91, I'll look into getting this done when I have a few free moments. Cheers |
|
Seems like a nice feature. I would not mind the extra permissions needed. |
I've packaged up a release for those who don't want to build it themselves in Android Studio: https://github.com/DoomyDwyer/termux-app/releases/tag/v0.59_bt Please read the accompanying notes with the release. |
Will then be possible to allow USB/BT access to third party apps inside termux like: noble ? Ideally allowing even USB OTG BT dongles from the phone? |
No idea mate. |
|
Would be great if the device was opened as a device file (so I could use a program that expects serial) |
|
Any progress on this? |
|
While interesting, this is a rather niche use case for only a few users which adds additional permissions. Perhaps the best way forward would be to create something like a "Termux:Bluetooth" standalone application which could reuse the terminal handling from this app, just like the Termux:Float app does. Anyone interested in doing that or helping out with testing? |
I do plan to pick this up at some point, but am very busy with study at the moment, alongside working full-time, so I can't really commit to it until I'm further down the road with the study and have some free time on my hands. I'm even studying throughout the summer so it's really full on, I'm afraid. In the meantime however, Termux v0.59 has been built by myself with the Bluetooth functionality added. The APK is available for download here: https://github.com/DoomyDwyer/termux-app/releases/tag/v0.59_bt Hopefully this should meet most people's needs and tide them over until something more permanent comes along. |
|
Has there been any progress on this? I'm very interested in having Bluetooth functionality in the official release. |
I'll be finishing off my study in a couple of weeks - hope to spend some time on mobile development after that. Thanks for your patience everybody. |
|
Hey @DoomyDwyer, just wanted to ask if you've been able to find some time to work on this. :) |
105a19a to
b950efe
Compare
21804bc to
3f7a939
Compare
|
what is missing here? |
Fixes issue #367
Bluetooth connectivity is accessible from long press context menu.