Bluetooth + streaming for tahrpup 6.x
Celeron D single core running Tahr 6.0.2 with 6.0.3 patch applied and kernel swapped out for Emsee 4.3.2 (32 bit PAE)
I've no BT headset, but a mobile phone that supports bluetooth so plugged in a USB bluetooth dongle and followed the clear/concise instructions in the first post and managed to pair the phone with puppy OK.
On asking for a password I tried 0000 first and that failed, 1234 next and that worked ok (and opened a window on the phone into which I entered the same).
The cars not in range and outside works are preventing it being brought into range at present, but when I can I'll see if I can pair to the car's bluetooth as that is a form of 'BT headphone' of sorts (I think). That could prove useful i.e. puppy detecting when the car was approaching/at home - as part of home automation.
I've no BT headset, but a mobile phone that supports bluetooth so plugged in a USB bluetooth dongle and followed the clear/concise instructions in the first post and managed to pair the phone with puppy OK.
On asking for a password I tried 0000 first and that failed, 1234 next and that worked ok (and opened a window on the phone into which I entered the same).
The cars not in range and outside works are preventing it being brought into range at present, but when I can I'll see if I can pair to the car's bluetooth as that is a form of 'BT headphone' of sorts (I think). That could prove useful i.e. puppy detecting when the car was approaching/at home - as part of home automation.
You might need this in the distribution, rename to.ko
(lib/modules/kernel version xx/kernel/net/bluetooth)
to get two way voice streaming.
Unless there is a newer way, but the whole BLUEZ bluetooth thing has been sadly UNDOCUMENTED
(lib/modules/kernel version xx/kernel/net/bluetooth)
to get two way voice streaming.
Unless there is a newer way, but the whole BLUEZ bluetooth thing has been sadly UNDOCUMENTED
- Attachments
-
- sco.png
- (16.82 KiB) Downloaded 263 times
Last edited by Smithy on Tue 22 Dec 2015, 18:47, edited 1 time in total.
Where did you get this module? It needs to be compiled against each kernel.
I suspect that the big-boy Linuxes can do this through pulse-audio.
I suspect that the big-boy Linuxes can do this through pulse-audio.
Last edited by rcrsn51 on Tue 22 Dec 2015, 11:24, edited 1 time in total.
I mixed a hybrid of Dpup 3.5.2.11 and Jemimah Fluppy 13 kernel (which contains bt sco.ko she compiled). I saw the sco-bt had loaded, but that was as far as I got.
Just a test.
Yes, as far as I can tell Rcrsn51, that module (compiled) with asound rc should produce an option in voips to send and receive sound over bluetooth. Max 98kbs, telephone quality, we're not talking Apt-X quality but fine for voice. And a good complement to the A2DP streaming.
Like in XP with the Toshiba Suite.
But better because it's a Puppy!
A few links here:
http://blog.encomiabile.it/2010/01/02/s ... bluetooth/
http://www.alsa-project.org/main/index. ... ule-bt-sco
http://www.gargan.org/linux/snd-bt-sco/
I also found these things, not sure if they are any good, but might as well post them before I forget; rename to .deb
Just a test.
Yes, as far as I can tell Rcrsn51, that module (compiled) with asound rc should produce an option in voips to send and receive sound over bluetooth. Max 98kbs, telephone quality, we're not talking Apt-X quality but fine for voice. And a good complement to the A2DP streaming.
Like in XP with the Toshiba Suite.
But better because it's a Puppy!
A few links here:
http://blog.encomiabile.it/2010/01/02/s ... bluetooth/
http://www.alsa-project.org/main/index. ... ule-bt-sco
http://www.gargan.org/linux/snd-bt-sco/
I also found these things, not sure if they are any good, but might as well post them before I forget; rename to .deb
- Attachments
-
- gbtsco_0.1.1-0ubuntu1_all.png
- (5.12 KiB) Downloaded 285 times
-
- bluez-btsco_0.50-0ubuntu6_i386.png
- (45.43 KiB) Downloaded 238 times
Last edited by Smithy on Tue 22 Dec 2015, 18:50, edited 1 time in total.
It looks to me like this bt-sco stuff is obsolete. There is lots of modern information available for using Skype and Bluetooth in Linux. But people are doing it through Pulse Audio. I can't tell if they are using HSP or A2DP headsets.
I own some BT headphones with a built-in mic and I tried to get the mic detected by ALSA, with no luck.
I have taken this project as far as I can/want.
I own some BT headphones with a built-in mic and I tried to get the mic detected by ALSA, with no luck.
I have taken this project as far as I can/want.
I was coming to the same conclusion, I gather that the new method is to use Alsa space for a plugin, geez it is hard to find this undocumented stuff.
So if there was a Pulse Audio based Puppy... there again I don't think Apt-X is supported in Bluez yet, only been going since the 1990's. No rush lol!
If I get two way streaming from Alsa I will let ya know.
So if there was a Pulse Audio based Puppy... there again I don't think Apt-X is supported in Bluez yet, only been going since the 1990's. No rush lol!
If I get two way streaming from Alsa I will let ya know.
http://www.gentoo-wiki.info/Bluetooth_h ... stallation. Hmmm.
Well I gave pulse a good try, but it is very complicated with the bluetooth audio module, gallons of dependencies and I couldn't get that flipping daemon to start up. Leaving that for a while for sure..
Make me wonder if Apulse might be able to accomodate some kind of "Slip in" module for HSP mode. Might be a neater solution for Puppy and voips over bluetooth. Some kind of bridge between the Tempestuous Bluez and Skype.
Well I don't want to divert the thread because I gather this is principally for streaming stereo>> to>> headphones.
I did pick up one of those little bluetooth dongles with CSR chip in it.
This package picks it up just fine and paired ok. Easy Peasy.
Well I gave pulse a good try, but it is very complicated with the bluetooth audio module, gallons of dependencies and I couldn't get that flipping daemon to start up. Leaving that for a while for sure..
Make me wonder if Apulse might be able to accomodate some kind of "Slip in" module for HSP mode. Might be a neater solution for Puppy and voips over bluetooth. Some kind of bridge between the Tempestuous Bluez and Skype.
Well I don't want to divert the thread because I gather this is principally for streaming stereo>> to>> headphones.
I did pick up one of those little bluetooth dongles with CSR chip in it.
This package picks it up just fine and paired ok. Easy Peasy.
No kidding. I have been playing around with ways to stream audio from your phone out your computer speakers over BT. You are supposed to be able to do this via pulse audio but it's like pulling teeth in Puppy.Smithy wrote:Well I gave pulse a good try, but it is very complicated with the bluetooth audio module
[Edit] I have this working using code from a project by jamesbond.
Oh, that's a bit of puppy progress then!
Just a heads up on the beautify aspect. This ping (and scaleable svg) looks clearer and bigger (on a tint 2/ openbox desktop 48x48) than the one in there. I got it from the precise bluez pet, no Off button in there though.
Just a heads up on the beautify aspect. This ping (and scaleable svg) looks clearer and bigger (on a tint 2/ openbox desktop 48x48) than the one in there. I got it from the precise bluez pet, no Off button in there though.
- Attachments
-
- bluetooth.png
- (2.93 KiB) Downloaded 1032 times
Did you try that in Fatdog rcrsn51?rcrsn51 wrote:
I own some BT headphones with a built-in mic and I tried to get the mic detected by ALSA, with no luck.
I noticed a few differences in the Fatdog vs Tahrpup etc/bluetooth/audio.conf.JamesBond wrote: b) supports audio-streaming (bluetooth speakers). After you pair them you need to enable them using Fatdog Default Soundcard settings available in Sound section of Fatdog Control Panel.
Note that I have not tried two-way audio using a bluetooth headset.
I presume this is where some of the action takes place.
Code: Select all
# Configuration file for the audio service
# This section contains options which are not specific to any
# particular interface
[General]
Enable=Socket
# Switch to master role for incoming connections (defaults to true)
#Master=true
# If we want to disable support for specific services
# Defaults to supporting all implemented services
#Disable=Gateway,Source,Socket
# SCO routing. Either PCM or HCI (in which case audio is routed to/from ALSA)
# Defaults to HCI
#SCORouting=PCM
# Automatically connect both A2DP and HFP/HSP profiles for incoming
# connections. Some headsets that support both profiles will only connect the
# other one automatically so the default setting of true is usually a good
# idea.
#AutoConnect=true
# Headset interface specific options (i.e. options which affect how the audio
# service interacts with remote headset devices)
[Headset]
# Set to true to support HFP, false means only HSP is supported
# Defaults to true
HFP=true
# Maximum number of connected HSP/HFP devices per adapter. Defaults to 1
MaxConnected=1
# Set to true to enable use of fast connectable mode (faster page scanning)
# for HFP when incoming call starts. Default settings are restored after
# call is answered or rejected. Page scan interval is much shorter and page
# scan type changed to interlaced. Such allows faster connection initiated
# by a headset.
FastConnectable=false
# Just an example of potential config options for the other interfaces
#[A2DP]
#SBCSources=1
#MPEG12Sources=0
I did try on another 64 bit capable cpu to create a "virtual" default bluetooth sound card in the control panel, but no alsamixer or volume control showed up.
At least it offers that option though.
FatDog Bluetooth did beep some far away external bluetooth equipment though, so something's going on!
- charlie6
- Posts: 1230
- Joined: Mon 30 Jun 2008, 04:03
- Location: Saint-Gérard / Walloon part of Belgium
Hi,
some devices such as recent smartphone are featured with "Bluetooth-4.0 Smart" i.e. having low energy needs. This is no longer compatible with earlier bluetooth version.
To detect such device from a PC, one has to do
instead ( "le" standing for low energy )
This comment
means that the BT adapter (= dongle or built-in) does not support the BT smart or low energy standard.
in such case, doing
does not report anything (= not any comment nor error message)
here a relevant link
http://unix.stackexchange.com/questions ... s-non-root
one also need the option --lescan option with hcitool (coming with bluez_4.101-0ubuntu13.1_i386.deb)
HTH
Charlie
some devices such as recent smartphone are featured with "Bluetooth-4.0 Smart" i.e. having low energy needs. This is no longer compatible with earlier bluetooth version.
To detect such device from a PC, one has to do
Code: Select all
# hcitool lescan
This comment
Code: Select all
# hcitool lescan
Set scan parameters failed: Input/output error
in such case, doing
Code: Select all
# hcitool scan
#
here a relevant link
http://unix.stackexchange.com/questions ... s-non-root
one also need the option --lescan option with hcitool (coming with bluez_4.101-0ubuntu13.1_i386.deb)
HTH
Charlie
Re: PeasyBT Bluetooth Manager
May I give it a try? I am running Arcade Puppy which is slacko 593. I got Bluetooth working with the streaming pet from the first page but I would like to give your Peasy BT GUI a shot.rcrsn51 wrote:Note: This package needs testing and feedback, not anonymous downloads. Please send me a PM.
I tried PMing you but I'm not sure if you got it or not since I am a new member.
RasberryPi latest release indicates a new-better Bluetooth utility.
Simple as it looks, I wonder if it would be adaptable or useful to Puppy Linux users.Raspians wrote:We've just released a new version of our Raspbian image with some (hopefully) useful features. When the Pi 3 launched back in February, we'd not had time to do much in terms of getting access to the new on-board Bluetooth hardware. There was a working software stack, but the UI was non-existent. I'd hoped to be able to use one of the existing Linux Bluetooth UIs, but on trying them all, none were really what I was looking for in terms of usability and integration with the look and feel of the desktop. I really didn't want to write one from scratch, but that ended up being what I did, which meant a fun few weeks trying to make head or tail of the mysteries of BlueZ and D-Bus. After a few false starts, I finally got something I felt was usable, and so there is now a Bluetooth plugin for the LXPanel taskbar."
Hi, Thanks for this thread. I am hoping that by working through this I may be able to get my bluetooth speaker working again.
I say again because it worked briefly and then, I messed around with something and I can't get it going again.
I have installed http://www.smokey01.com/tempestuous/blu ... eaming.pet.
My icon appeared and it was black, I clicked it and it did turn blue. And that was good.
I turned on my bluetooth speaker and entered the following:
this was not good, I read further along your thread...
and tried:
then:
I'm afraid I don't know the driver for my wifi card. I can tell you this though:
Version-
Kernel : Linux 3.14.56 (i686)
Version : #1 SMP PREEMPT Mon Dec 21 14:52:08 GMT 2015
Computer-
Operating System : tahrpup - 6.0.5
I have also posted in the cutting edge thread with a similar issue. I am trying to tackle this problem from two ends at once. So I have 2 sticks with the same tahr pup installed - but different bluetooth software.
I say again because it worked briefly and then, I messed around with something and I can't get it going again.
I have installed http://www.smokey01.com/tempestuous/blu ... eaming.pet.
My icon appeared and it was black, I clicked it and it did turn blue. And that was good.
Code: Select all
root# rfkill list
0: phy0: wlan
Soft blocked: no
Hard blocked: no
1: hci0: bluetooth
Soft blocked: no
Hard blocked: no
Code: Select all
root# hcitool scan
Device is not available: No such device
and tried:
Code: Select all
root# bluez-test-device list
Traceback (most recent call last):
File "/usr/bin/bluez-test-device", line 17, in <module>
manager = dbus.Interface(bus.get_object("org.bluez", "/"), "org.bluez.Manager")
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files
Code: Select all
root# lsusb
Bus 001 Device 004: ID 05e3:0505 Genesys Logic, Inc.
Bus 001 Device 002: ID 0781:5170 SanDisk Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 0b05:b700 ASUSTek Computer, Inc. Broadcom Bluetooth 2.1
Code: Select all
root# lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GSE Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GSE Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 2 (rev 02)
00:1c.3 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 4 (rev 02)
00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 02)
00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 02)
00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 02)
00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 02)
00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7-M Family) SATA Controller [IDE mode] (rev 02)
01:00.0 Network controller: Ralink corp. RT2790 Wireless 802.11n 1T/2R PCIe
03:00.0 Ethernet controller: Qualcomm Atheros AR8121/AR8113/AR8114 Gigabit or Fast Ethernet (rev b0)
Version-
Kernel : Linux 3.14.56 (i686)
Version : #1 SMP PREEMPT Mon Dec 21 14:52:08 GMT 2015
Computer-
Operating System : tahrpup - 6.0.5
I have also posted in the cutting edge thread with a similar issue. I am trying to tackle this problem from two ends at once. So I have 2 sticks with the same tahr pup installed - but different bluetooth software.
I have got to this step, however, my asound.conf looks like thistempestuous wrote:
Open /etc/asound.conf in Geany, and replace "XX:XX:XX:XX:XX:XX" with the bluetooth MAC address of your bluetooth receiver (or headset), which you determined earlier.
Code: Select all
defaults.pcm.card 1
defaults.pcm.device 0
Thanks.
-
- Posts: 5464
- Joined: Fri 10 Jun 2005, 05:12
- Location: Australia
My bluez dotpet definitely provides a custom asound.conf file with the appropriate bluetooth-related entries, and this will definitely be installed to /etc
so it sounds like you may have overwritten this file, possibly by running the ALSA Sound Card wizard.
The simple fix would be to re-install the bluez dotpet.
so it sounds like you may have overwritten this file, possibly by running the ALSA Sound Card wizard.
The simple fix would be to re-install the bluez dotpet.
Thank you for your help.
I couldn't find any file bluez.pet in the Puppy Package Manager. So I'm not sure if I've reinstalled the correct package.
What I did reinstall was bluez 4.101.
After installation and starting bluetoothd, the bluetooth icon appeared in the task bar. I was able to find my speaker, however, when I tried to connect to the audio sink a window popped up saying "Device added successfully but failed to connect".
I tried again, this time there was another error. In the bluetooth manager window it said "Connection failed: stream setup failed".
I went and took another look at /etc/asound.conf. The contents of this file has not changed since reinstalling bluez 4.101.
I couldn't find any file bluez.pet in the Puppy Package Manager. So I'm not sure if I've reinstalled the correct package.
What I did reinstall was bluez 4.101.
After installation and starting bluetoothd, the bluetooth icon appeared in the task bar. I was able to find my speaker, however, when I tried to connect to the audio sink a window popped up saying "Device added successfully but failed to connect".
I tried again, this time there was another error. In the bluetooth manager window it said "Connection failed: stream setup failed".
I went and took another look at /etc/asound.conf. The contents of this file has not changed since reinstalling bluez 4.101.
-
- Posts: 5464
- Joined: Fri 10 Jun 2005, 05:12
- Location: Australia
My software packages are not part of the PPM, and I don't wish them to be so.ktat wrote:I couldn't find any file bluez.pet in the Puppy Package Manager.
Yes, that's the correct dotpet to install, assuming you obtained it from the first post in this thread.ktat wrote:What I did reinstall was bluez 4.101.
And if so, it definitely installs this asound.conf file -
Code: Select all
#/etc/asound.conf
pcm.btheadset {
type plug
slave {
pcm {
type bluetooth
device XX:XX:XX:XX:XX:XX
profile "auto"
}
}
hint {
show on
description "BT Headset"
}
}
ctl.btheadset {
type bluetooth
}
Thank you, again.
Following your instructions, I am now that much closer to having a fully portable OS that meets my needs.
I had, originally downloaded the file from the PPM, and so when you redirected me back to the start of this thread - all became much clearer.
I expect that I will need to have a different asound.conf for evey bluetooth device that I wish to connect. Or, can I just use the first device listed as a template - changing the MAC address and "description" for additional devices, then appending tem to the asound.conf file?
Following your instructions, I am now that much closer to having a fully portable OS that meets my needs.
I had, originally downloaded the file from the PPM, and so when you redirected me back to the start of this thread - all became much clearer.
I expect that I will need to have a different asound.conf for evey bluetooth device that I wish to connect. Or, can I just use the first device listed as a template - changing the MAC address and "description" for additional devices, then appending tem to the asound.conf file?