pBluetooth 3.2 - the bluetooth manager

Configuration wizards, scanners, remote desktop, etc.
Message
Author
mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

pBluetooth 3.2 - the bluetooth manager

#1 Post by mistfire »

This a fork of the abandoned PuppyBT by fr33land. It manages almost the whole bluetooth adapters and its connectivity. It is improved and more user friendly than PuppyBT

This app requires the following packages:
- bluez (https://drive.google.com/open?id=0B2FRk ... VBhaDgwUzA)
- bluez-tools (https://drive.google.com/open?id=0B2FRk ... lpXZTFBS1U)
- obexd
- openobex
- obexftp
- a2dp-alsa by jamesbond (already included in the package, Source code: http://www.lightofdawn.org/wiki/wiki.cg ... 02.tar.bz2)

New features:
* Adaptive daemon. If there is no bluetooth adapter detected. all bluetooth daemons will not run. If they are running, they will kill automatically. This will save more ram
* With paired device management
* With serial communication

Currently tested:
* Streaming sounds on bluetooth speaker (Set the sound output of a player to alsa)
* Basic pairing and device management
* Establishing serial port communication on bluetooth
* Receiving files over bluetooth
* Sending files over bluetooth

Need to be tested:
* Bluetooth tethering
* Receive sound input from the mic of the bluetooth headset
* Sound input from bluetooth headset
* a2dp audio stearming

Need to be added or change in the future:
* Bluetooth FTP
* Shift user interface from dialog to Xdialog

If you want to contribute on this project just upload your changes here (in PET package format)
Attachments
pbluetooth-3.2.png
(35.33 KiB) Downloaded 5519 times
pBluetooth-3.2.pet
Smart detection of bluetooth devices
Sending file over bluetooth works
(51.69 KiB) Downloaded 1957 times
Last edited by mistfire on Thu 30 May 2019, 08:12, edited 6 times in total.

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#2 Post by keniv »

@mistfire
This app requires the following packages:
- bluez
- bluez-alsa
- bluez-compat
- bluez-tools
- obexd
- a2dp-alsa by jamesbond (Source code: http://www.lightofdawn.org/wiki/wiki.cg ... 02.tar.bz2)
I used fr33lands version with some success but needed quite a lot of help along the way (see from page two of thread). I'm using the most up to date version of lucid 287s2. I'd like to try your pet but have one question. Are the above packages available as pets?

Regards,

Ken.

mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

#3 Post by mistfire »

keniv wrote: Are the above packages available as pets?
- bluez (yes, version 4.99)
- bluez-alsa (already included in the package)
- bluez-tools (as deb file)
- obexd (yes)

PuppyBT thread was deleted because fr33land withdrew the project. If you are currently using PuppyBT then the pBluetooth should work. It is already stated on the first post of this thread which component is not yet tested. I already tested its functionality.

UPDATE:
I repacked bluez-tools into pet package complete with its dependencies
Download here: https://drive.google.com/open?id=0B2FRk ... lpXZTFBS1U

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#4 Post by keniv »

I made a new save file to test this as I remember it took quite a lot for me to get fr33lands to work and I don't want to remove it until I have yours working. However I cannot find a pet for bluez 4.99.
Can you please post a link to it. Do I still need this?

Code: Select all

- a2dp-alsa by jamesbond (Source code: http://www.lightofdawn.org/wiki/wiki.cgi/files/a2dp-alsa-2016-01-02.tar.bz2)
If this is source code do I have to compile this. I don't know how to do this. I have installed the other packages.

Regards,

Ken.

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#5 Post by keniv »

@ mistfire
I gave up trying to find a suitable copy of bleuz and deleted the test save file I made to try it.
If you are currently using PuppyBT then the pBluetooth should work. It is already stated on the first post of this thread which component is not yet tested. I already tested its functionality.
I then tried pBluetooth with PuppyBT installed. It ran and detected the external bt dongle and external bt speakers that had paired without a problem before but would not pair. I uninstalled pBluetooth. This appeared to break PuppyBT as well as remove the icons. I reinstalled PuppyBT and all is well again. I think I'll wait to see how others get on.

Regards,

Ken.

mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

#6 Post by mistfire »

@keniv
keniv wrote:@ mistfire
I then tried pBluetooth with PuppyBT installed. It ran and detected the external bt dongle and external bt speakers that had paired without a problem before but would not pair. I uninstalled pBluetooth. This appeared to break PuppyBT as well as remove the icons. I reinstalled PuppyBT and all is well again. I think I'll wait to see how others get on.
Regards,
Ken.
Thats strange, pBluetooth uses the same component and files as PuppyBT

a2dp-alsa is already included in the package
Here is the bluez-4.99 package. I repacked it from slackware
Download link: https://drive.google.com/open?id=0B2FRk ... VBhaDgwUzA

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#7 Post by keniv »

Thanks for the bluez pet. I will make a new test lucid save file to test. This will give it a chance without another BT manager in the save file. I'll report back and let you know how it goes.

Ken.

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#8 Post by keniv »

keniv wrote:I will make a new test lucid save file to test. I'll report back and let you know how it goes.
I still have problems. If I click on pBluetooth in the network menu the window appears. If I select "Adapter" then "Check local bluetooth device" then click OK nothing happens but the app freezes. Mouse still works but nothing can be clicked. Have to shut machine off using Cnrl-Alt-BkSp then poweroff to shut down. If I don't click OK I can shut the window by clicking "x". The only thing I'm using that you have not provided is obexd-0.21-i485.pet. Is this OK?

Ken.

mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

#9 Post by mistfire »

Yes thats ok

blu.js7914
Posts: 4
Joined: Wed 19 Apr 2017, 12:28

#10 Post by blu.js7914 »

Hello,

Thank you for your hard work with this bluetooth manager.
I am currently running tahr6.0.5. I have installed all the pets that you included.

My bluetooth dongle is recognized however I still cant get it to work.
It says that it is paired with my bluetooth speaker but I dont hear anything out of the bluetooth speaker.

I was able to connect my bluetooth keyboard and gamepad.

Any help is appreciated.

Thanks
Blu.js7914

mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

#11 Post by mistfire »

@blu.js7914 set your sound output of your player to alsa in order to get sound on bluetooth speaker. I tested it on gnome-mplayer

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#12 Post by Argolance »

Bonjour mistfire,
As I didn't succeed in making pBluetooth work on my Puppy, I noticed that the /root/Startup/bluetooth and the /usr/sbin/pbluetooth scripts both exit:

Code: Select all

if [ "$(lsusb | grep bluetooth)" == "" ] && [ "$(lsusb | grep Bluetooth)" == "" ][...]
"My" command lsusb currently returns:

Code: Select all

Bus 001 Device 002: ID 04f2:b14e Chicony Electronics Co., Ltd 
Bus 006 Device 002: ID 0b05:17cb ASUSTek Computer, Inc. 
Bus 007 Device 002: ID 1267:0210 Logic3 / SpectraVideo plc LG Optical Mouse 3D-310
[...]
and...

Code: Select all

Bus 006 Device 002: ITheD 0b05:17cb ASUSTek Computer, Inc. 
... is my adapter: duly present/identified, but not described as "bluetooth" or "Bluetooth" device...
So, replacing these lines with:

Code: Select all

if [ "`rfkill list | grep luetooth`" = "" ];
makes the scripts both work, I should rather say, makes my device to be taken into account and the main interface be displayed.
Now, everything remains to be done! :wink:

I thought it was important to point this out.

Cordialement.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#13 Post by Argolance »

Hello, is there anyone on the plane? :roll:

mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

#14 Post by mistfire »

Thanks argolance I will try to make some changes based on your observation.

Sorry for the long reply. I have a limited internet connection today.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#15 Post by Argolance »

Bonsoir et merci!
Is it possible to have some explanations about the "Comm" tab?
What are "Network" and "Serial" used for? Please, what does it mean exactly?

[EDIT]:
Shift user interface from dialog to Xdialog
I just discover this point... and I previously took the liberty to do it for an adapted version of :arrow: pBlutooth for Puppy Precise/ToOpPy users, with some "cosmetics" to make the interface match with ToOpPy...

Cordialement.
Attachments
180126_191547_566x385_easyshot.jpg
(22.77 KiB) Downloaded 4694 times

matchpoint
Posts: 168
Joined: Fri 26 Jan 2018, 20:54

#16 Post by matchpoint »

mistfire, thanks for this set of packages.

I managed to pair my bluetooth speaker with the Xenial32 devx, bluez and bluez-tools loaded. DeaDBeeF was a little finicky until I made this asound.conf edit, then the connection went through. It's good because I've been struggling with this for a few days now until I decided to try with a clean save file, then low and behold, "sound!" Now, thanks to your time investment, I can get back to more favorable activities.


mp

mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

#17 Post by mistfire »

@matchpoint, youre welcome.

@Argolance

Network - Bluetooth can establish networking to other bluetooth device like LAN called Personal Area Network (PAN)

Serial - Serial communication via bluetooth. It is used for accessing the contents of an feature phone or smartphone. It is sometimes used to sync between pc and the phone

Nice interface that you made

matchpoint
Posts: 168
Joined: Fri 26 Jan 2018, 20:54

#18 Post by matchpoint »

mistfire,

The routine is not the same running 32b Tahr 6.0.5.

Once I go to pair with my discovered device, I make the selection, then hit enter leaving the passkey blank. At this point it instantaneously goes to "Pairing... Done." and there is no conformation or connection.

My previous setup utilized bluez-simple-agent. Which binary of your package is trying to connect?

mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

#19 Post by mistfire »

@matchpoint try other version of bluez-tools or bluez

matchpoint
Posts: 168
Joined: Fri 26 Jan 2018, 20:54

#20 Post by matchpoint »

Okay. This pairs my device:

Code: Select all

bt-audio -c <dev-mac-address>
I'll invest some time and give it a closer look.

Post Reply