Page 1 of 1

Guide for streaming audio to DietPi via Bluetooth?

Posted: Sun Sep 08, 2019 12:01 am
by notherNewbie
Is there a guide for how to use the built in bluetooth to stream audio?


1. I've turned BT on via the DietPi software
2. Ran

Code: Select all

$ sudo bluetoothctl 
in a terminal
3. Turned on an agent, set it as a default, and paired my phone


However,
1. I can't reconnect once the link is closed
2. The entry for my phone indicates the connection is only for contact sharing (which isn't what I want).

within bluetoothctl, I get

Code: Select all

[bluetooth]# show
Controller B8:27:EB:4E:27:99
        Name: kitchen
        Alias: kitchen
        Class: 0x000000
        Powered: yes
        Discoverable: no
        Pairable: yes
        UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        Modalias: usb:v1D6Bp0246d052B
        Discovering: no
        
And now I'm lost. Is there an easier way to do this via the DietPi interface?

Re: Guide for streaming audio to DietPi via Bluetooth?

Posted: Tue Apr 07, 2020 9:55 pm
by Jimbroze
There's a few guides around the net which shouldn't take much tweaking to work with DietPi. Have a look at this one:

https://www.raspberrypi.org/forums/view ... p?t=235519

The first thing you'll need to do is change your device class in the bluetooth config file which tells you phone that the pi is an audio device