Comments (2)
That's an interesting one.. I've never actuallt tried this yet, but here are my thoughts:
I'm not sure if you can connect two devices to the same bluetooth adapter, but if you're using the dongle to connect the phone, then you can use the Pi's built in bluetooth adapter to connect to the speaker.
If you enter the bluetooth tool bluetoothctl
and give it the list
command it should give you a list of all available adpaters, then select the adapter with the select MAC-ADDRESS-OF-ADAPTER
. After that you can try pairing the speaker as normal:
(from the arch wiki) https://wiki.archlinux.org/index.php/Bluetooth#Pairing
bluetoothctl
[NEW] Controller 00:10:20:30:40:50 pi [default]
[bluetooth]# agent KeyboardOnly
Agent registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# power on
Changing power on succeeded
[CHG] Controller 00:10:20:30:40:50 Powered: yes
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:10:20:30:40:50 Discovering: yes
[NEW] Device 00:12:34:56:78:90 myLino
[CHG] Device 00:12:34:56:78:90 LegacyPairing: yes
[bluetooth]# pair 00:12:34:56:78:90
Attempting to pair with 00:12:34:56:78:90
[CHG] Device 00:12:34:56:78:90 Connected: yes
[CHG] Device 00:12:34:56:78:90 Connected: no
[CHG] Device 00:12:34:56:78:90 Connected: yes
Request PIN code
[agent] Enter PIN code: 1234
[CHG] Device 00:12:34:56:78:90 Paired: yes
Pairing successful
[CHG] Device 00:12:34:56:78:90 Connected: no
[bluetooth]# connect 00:12:34:56:78:90
Attempting to connect to 00:12:34:56:78:90
[CHG] Device 00:12:34:56:78:90 Connected: yes
Connection successful
Let me know if some of this is not working. Might have a bluthoot speaker somewhere, but not tried this yet.
from headunit-desktop.
Basically a headset Victor that is all they are https://www.ebay.co.uk/itm/Luminous-Lights-Rechargeable-Wireless-Bluetooth-Speaker-Portable-Mini-Super-Bass/402115969460?
Works on windows / android and pairing is no problem.
index: 1
name: <bluez_card.9B_FD_D5_6E_01_CA>
driver: <module-bluez5-device.c>
owner module: 23
properties:
device.description = "A10"
device.string = "9B:FD:D5:6E:01:CA"
device.api = "bluez"
device.class = "sound"
device.bus = "bluetooth"
device.form_factor = "headset"
bluez.path = "/org/bluez/hci0/dev_9B_FD_D5_6E_01_CA"
bluez.class = "0x240404"
bluez.alias = "A10"
device.icon_name = "audio-headset-bluetooth"
device.intended_roles = "phone"
profiles:
a2dp_sink: High Fidelity Playback (A2DP Sink) (priority 40, available: unknown)
headset_head_unit: Headset Head Unit (HSP/HFP) (priority 30, available: no)
off: Off (priority 0, available: yes)
active profile: <a2dp_sink>
sinks:
bluez_sink.9B_FD_D5_6E_01_CA.a2dp_sink/#1: A10
sources:
bluez_sink.9B_FD_D5_6E_01_CA.a2dp_sink.monitor/#1: Monitor of A10
ports:
headset-output: Headset (priority 0, latency offset 0 usec, available: unknown)
properties:
headset-input: Headset (priority 0, latency offset 0 usec, available: no)
properties:
With PA 12 they changed the priority and because many would stick in HSP/HFP profile,
They have swapped it round and now I can not seem to get it out of A2DP profile.
Thanks for the reply it was just on the off chance as thought you might know.
from headunit-desktop.
Related Issues (20)
- DAB+ does not work with welle.io HOT 15
- [Feature Request] Apple Carplay Support HOT 1
- Build Guide still needed HOT 10
- FM radio
- delete me - opened by mistake
- Android Auto audio output is not correct
- Android Auto randomly crashing HOT 2
- Android Auto not connecting HOT 3
- Settings Loader not loading certain types of default settings HOT 7
- The application does not start properly. HOT 1
- can't Build the Headunit HOT 1
- Will it work on arm based ubuntu? Such as jetson tx2? HOT 1
- [Question] Android Auto client HOT 1
- build error HOT 5
- [Bug] Pullin phonebook over bluetooth makes phone reconnect
- USB Connection Listener eats CPU
- Segmentation fault? HOT 1
- Undeclared QMutableListIterator HOT 5
- Add AA WiFi support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from headunit-desktop.