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

    Experimental: Bluetooth Speaker support in piCorePlayer 3.22

    EXPERIMENTAL Yes, I'm trying to emphasize this.

    When I noticed the bluez-alsa project was re-implementing the support for alsa that was dropped from Bluez 5.x. I figured I would see how squeezelite and bluetooth would work. It worked better than I expected.

    Requirements
    1. piCorePlayer 3.22
    2. rpi3 or rpi0W
    3. A little linux skillz to install manual portions of support, and to do some debugging if needed
    4. Hardwired Ethernet connection to your player. Rpi onboard wifi for sure wont work. Some USB wifi devices will work, but no promises (EDIMaX 7811Un is one the won't work)


    Do the following steps
    • Download Extension pcp-bt from the extension browser. Using the piCorePlayer Sourceforge repo.
    • Disable onboard wifi from the web interface (Do not reboot yet)
    • Manually edit config.txt comment out dtoverlay=pi3-disable-bt

    Code:
    m1
    vicfg
    u1
    • edit /opt/bootlocal.sh Add /usr/local/bin/pcp-bt-start-controller 2>&1 | tee -a /var/log/pcp_bt.log before the pCPstart
    • Backup - pcp bu
    • Reboot - pcp rb
    • edit /opt/.filetool.lst and add var/lib/bluetooth at the end of the file.
    • When the system reboots, open a ssh session and run pcp-bt-pair
    • Setup Squeezelite per the attached image. (The Power Script is /usr/local/bin/pcp-bt-reconnect.sh)
    • Restart Squeezelite......
    • Check the mixer setting

    Code:
    tc@picoreplayer:~$ . ~/.pcp-bt-device
    tc@picoreplayer:~$ sudo amixer -D bluealsa sset "$BTMIXER" 100%
    A couple of tips.
    • When rebooting your player, power cycle your BT speaker.
    • If you turn off the power on the player, you can shut off your speaker. But be sure to turn your speaker back on and give it time to start before turning the power back on the player.



    Name:  Screenshot from 2017-09-23 15-59-04.png
Views: 1268
Size:  102.6 KB
    Last edited by paul-; 2017-12-16 at 13:11.

  2. #2
    Senior Member
    Join Date
    Dec 2015
    Posts
    124
    Wow
    I was just wondering about this two days ago ...
    I wont have a chance to try for a little while, but many thanks in advance
    rPi 3 + rasPi 7" LCD + HiFiBerry DiGi+ | rPi 2 + IQaudio DAC+ |rPi 2 + HiFiBerry DAC+ | Squeeze Box Touch | LMS + XPenology on HP Gen 8 |


  3. #3
    Senior Member Tony T's Avatar
    Join Date
    Nov 2009
    Posts
    843
    I was also just thinking about a BT Speaker as I wanted Stereo….
    ….then I remembered that I can configure my 2 SB radios to Left Output and Right Output and sync, and wala… Stereo!

    Still, great to see this experimental support for BT in pCP
    Tony
     SBTouch ♪ SBRadio ♬

  4. #4
    Junior Member
    Join Date
    Jul 2017
    Posts
    7
    Hi, This is working great so far and looks like the perfect solution for me. I used your guide and everything worked out flawlessly. Thank you so much!

  5. #5
    Quote Originally Posted by paul- View Post
    When I noticed the bluez-alsa project was re-implementing the support for alsa that was dropped from Bluez 5.x. I figured I would see how squeezelite and bluetooth would work. It worked better than I expected.
    Paul, Would this also allow us to add BT-input ?
    It would be a great addition to be able to play an occasional tune from my phone over the PCP managed amp and speakers .

    Greetz MH

  6. #6
    Junior Member
    Join Date
    Dec 2017
    Posts
    22

    Can you show a beginer how to do this?

    [*]A little linux skillz to install manual portions of support, and to do some debugging if needed

    I don't know how to "ĽDownload Extension pcp-bt from the extension browser. Using the piCorePlayer Sourceforge repo." Can you explain how to do this?

    Will WI-FI work using an external WI-FI adapter?

    Thanks!

  7. #7
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    1,126
    Thais is still experimental, as I was looking to see if folks had luck with various Bluetooth devices. If you have never looked at bluez, you will need to read up on that.

    Read point 4 in the opening post.

    The extension can be installed from the extension button in the main menu.

  8. #8
    Junior Member
    Join Date
    Dec 2017
    Posts
    22

    How do I ĽManually edit config.txt

    I tried Putty/SSH $ sudo nano config.txt but got "sudo: nano: command not found".

    I am sorry but I really am a Noob!

  9. #9
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    1,126
    nano is not included in our distro. Just use vi.

  10. #10
    Junior Member
    Join Date
    Dec 2017
    Posts
    22

    is this file " /boot/config.txt"?

    Quote Originally Posted by paul- View Post
    nano is not included in our distro. Just use vi.
    tc@PiCore31LAN:~$ vi /boot/config.txt shows no information

    all lines are just - except the bottom one which is "- /boot/config.txt 1/1 100%"

Posting Permissions

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