Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 29 12311 ... LastLast
Results 1 to 10 of 287
  1. #1
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,437

    piCorePlayer 6.x.x - Bluetooth

    Bluetooth has grown into its own animal, so I would like to separate the conversation regarding Bluetooth stuff. If you have problems, please paste the whole bluetooth log. There is information in the log header that is critical for diagnosis.

    Current Capabilities.

    Set the device type here
    Name:  7-27-2020 4-37-57 PM.png
Views: 1029
Size:  37.4 KB

    • Speaker - A2DP Source - Play from piCorePlayer to a bluetooth connected speaker.
    • Player - A2DP Sink - Play directly from your phone or other bluetooth music sourc to pCP. pCP is now a speaker for your device. In this mode settings for sound output come from the squeezlite page. The Output setting is critical.
    • Streamer - A2DP Sink - Play from your phone to a web stream. LMS can play that stream to any number of LMS connected devices/groups.


    Note: When pCP is playing direct from your phone. A2DP volume control is implemented for certain devices (iPhones work, but Android may not) If your DAC on your pCP device supports hardware volume control, that is the volume that will be adjusted. Android based devices will control the volume before bluetooth transmission.


    Current Versions: Please note the screenshots may not reflect the most recent version.
    pCP web Pages: v0011 How to see current version
    Name:  2020-04-11_12-21_1.png
Views: 2298
Size:  6.4 KB
    How to upgrade web page extensions
    Name:  2020-04-11_12-22.png
Views: 2282
Size:  26.0 KB

    Bluetooth: v0013 How to see current version
    Name:  2020-04-11_12-21.png
Views: 2274
Size:  21.6 KB

    How to upgrade bluetooth.
    Name:  2020-04-11_12-22_1.png
Views: 2276
Size:  27.3 KB
    Last edited by paul-; 2020-10-09 at 19:27.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  2. #2

    Bluetooth Direct Play - No output

    Hi, I have been running PcP since version 4 on a RPi1B+ and a DAC card and had no issues at all using it as a squeezebox. I am trying to add Bluetooth Direct Play to this and have upgraded to PcP6.0.0.006 but not having any joy.

    I have completed a clean install of PcP-6.0.0 and then followed the instructions in this thread to make the patch update to 6.0.0.006. I run WiFi through an Edimax 11n USB adapter (which has worked for several years) and now added Bluetooth through a USB adapter from piHut (CSR 4.0). I am trying to send audio from an Asus Nexus 7 tablet.

    I've also completed the patch from the main PcP 6.0.0 announcement thread.

    I can stream audio from LMS to PcP without issue
    I can pair and connect PcP to the tablet without issue.
    The tablet can pair and direct play audio to a soundbar in another room.

    My only issue seems to be that I get no audio when playing a source on the tablet. I can see from the PcP logs that an a2dpsink connection is open.

    From /var/log/pcp_bt.log
    Code:
    pCP Bluetooth extension build:0006
    Starting BT Controller
    USB Bluetooth Hardware Address: 00:1A:7D:DA:71:11
    Starting pCP BT Pairing Agent
    BT Controller Ready
    04-10 15:16 BST INFO     ------------Starting pCP BT Speaker Daemon v6.0.0.0006------------
    04-10 15:16 BST INFO     Resetting asound.conf.
    04-10 15:16 BST INFO        Removing bt_ from asound.conf
    04-10 15:16 BST INFO     Current contents of /usr/local/etc/pcp/pcp-bt.conf.
    04-10 15:16 BST INFO        30:85:A9:E1:A7:0A#Nexus 7#10000#2
    04-10 15:16 BST INFO     Starting connection signal handlers.
    04-10 15:16 BST INFO     ---- Caught Connect signal ----
    04-10 15:16 BST INFO        MAC:30:85:A9:E1:A7:0A
    04-10 15:16 BST INFO        TRANSPORT:a2dpsnk
    I've also tried stopping Squeezelite completely before making the bluetooth connection but this made no difference. All help greatly appreciated.

    If there's any other logs you'd like adding let me know which ones please.

    Setup:
    RPi B+: USB WiFI adapter, USB Bluetooth Adapter, "HiFiBerry DAC+ Light" compatible DAC
    Last edited by pulpitculprit; 2020-04-11 at 07:38.

  3. #3
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,437
    Please upgrade to the latest versions.....see first post.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  4. #4
    Name:  pcp_version_11042020.png
Views: 2172
Size:  5.0 KB

    Code:
    pCP Bluetooth extension build:0008
    Starting BT Controller
    USB Bluetooth Hardware Address: 00:1A:7D:DA:71:11
    Starting pCP BT Pairing Agent
    BT Controller Ready
    04-10 18:12 BST INFO     ------------Starting pCP BT Speaker Daemon v6.0.0.0006------------
    04-10 18:12 BST INFO     Resetting asound.conf.
    04-10 18:12 BST INFO        Removing bt_ from asound.conf
    04-10 18:12 BST INFO     Current contents of /usr/local/etc/pcp/pcp-bt.conf.
    04-10 18:12 BST INFO        30:85:A9:E1:A7:0A#Nexus 7#10000#2
    04-10 18:12 BST INFO     Starting connection signal handlers.
    04-10 18:16 BST INFO     ---- Caught Connect signal ----
    04-10 18:16 BST INFO        MAC:30:85:A9:E1:A7:0A
    04-10 18:16 BST INFO        TRANSPORT:a2dpsnk
    Still no audio. Thanks.

  5. #5
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,437
    Just curious how you are getting a log from yesterday?

    I just pushed a new update for bluetooth, I'm going to turn on debug output. There is something crashing the speaker daemon.


    Make 100% sure that you are not playing to this player with LMS and the power button is turned off in LMS. As if squeezelite has the audio port open, bluetooth playback will fail. Also make sure the -c option is set to 5 on the squeezelite page.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  6. #6
    The previous log was from yesterday when I did all of the steps in the other thread. I just C&P over to here.

    Today:
    Double Checked the player is "off" under LMS, confirmed Squeezelite -c option is set to 5 and updated bluetooth as requested. pcp_bt.log contents:

    Code:
    pCP Bluetooth extension build:0009
    Starting BT Controller
    USB Bluetooth Hardware Address: 00:1A:7D:DA:71:11
    Starting pCP BT Pairing Agent
    BT Controller Ready
    04-11 22:25 BST INFO     ------------Starting pCP BT Speaker Daemon v6.0.0.0009------------
    04-11 22:25 BST INFO     Resetting asound.conf.
    04-11 22:25 BST INFO        Removing bt_ from asound.conf
    04-11 22:25 BST INFO     Current contents of /usr/local/etc/pcp/pcp-bt.conf.
    04-11 22:25 BST INFO        30:85:A9:E1:A7:0A#Nexus 7#10000#2
    04-11 22:25 BST DEBUG    PCM Devices found dbus.Dictionary({}, signature=dbus.Signature('oa{sv}'))
    04-11 22:25 BST INFO     Starting connection signal handlers.
    04-11 22:27 BST INFO     ---- Caught Connect signal ----
    04-11 22:27 BST DEBUG    /org/bluealsa/hci0/dev_30_85_A9_E1_A7_0A/a2dpsnk/source
    04-11 22:27 BST DEBUG       HCI:hci0
    04-11 22:27 BST INFO        MAC:30:85:A9:E1:A7:0A
    04-11 22:27 BST INFO        TRANSPORT:a2dpsnk
    04-11 22:27 BST DEBUG       pCP OUTPUT="hw:CARD=sndrpihifiberry"
    04-11 22:27 BST DEBUG       pCP ALSAVOLUME=""
    04-11 22:27 BST DEBUG       pCP Card Conf:"hifi_dac+_light.conf"
    No audio output.

  7. #7
    Junior Member
    Join Date
    Mar 2020
    Posts
    14
    Quote Originally Posted by paul- View Post
    Bluetooth has grown into its own animal, so I would like to separate the conversation regarding Bluetooth stuff.

    Current Capabilities.

    Speaker - A2DP Source - Play from piCorePlayer to a bluetooth connected speaker.
    Player - A2DP Sink - Play directly from your phone or other bluetooth music sourc to pCP. pCP is now a speaker for your device
    Streamer - A2DP Sink - Play from your phone to a web stream. LMS can play that stream to any number of LMS connected devices/groups.

    When pCP is playing direct from your phone. A2DP volume control is implemented for certain devices (iPhones work) If your DAC on your pCP device supports hardware volume control, that is the volume that will be adjusted. Android based devices will control the volume before bluetooth transmission.
    What is the default PIN when the piCorePlayer is in Discover mode. I've tried 0000 and 1234 from my phone and neither will work.

  8. #8
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,437
    There is no pin.

    Thanks for the current log pulpitculprit, that gives me something to dig into. There is no sound, because the sound application is not getting launched.........
    Last edited by paul-; 2020-04-11 at 17:41.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  9. #9
    Junior Member
    Join Date
    Mar 2020
    Posts
    14
    Quote Originally Posted by paul- View Post
    There is no pin.
    Hmm my phone requires a PIN in order to connect.

    I've managed to connect on the command line via bluetoothctl and configure the device as a player. I also can't get audio to play through the pCP speakers.

  10. #10
    Junior Member
    Join Date
    Mar 2020
    Posts
    14
    Here is the debug output from the bluetooth logs

    Code:
    04-12 14:01 NZST INFO     Found a2dp sink XXXXXXXXX connected.
    04-12 14:01 NZST INFO     No bluealsa-aplay process for device XXXXXXXXX.  Starting......
    04-12 14:01 NZST DEBUG       pCP OUTPUT=""
    04-12 14:01 NZST DEBUG       pCP ALSAVOLUME=""
    04-12 14:01 NZST DEBUG       pCP Card Conf:"USB.conf"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •