Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 9 of 9
  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    18

    Getting PCP to work as a streamer from Bluetooth

    I have attempted to get my LMS to stream content from the Bluetooth input on my PCP, but I am not succeeding. I have got Bluetooth working and paired a streaming device:

    Name:  Screenshot_2021-03-26 pCP - Bluetooth Settings.png
Views: 278
Size:  15.5 KB

    ...but in the Tweaks section, no choices are showing up as input devices:

    Name:  Screenshot_2021-03-26 pCP - Tweaks.png
Views: 273
Size:  21.8 KB

    When I play the stream, my player shows "PCP line input" as the name (rather than Bluetooth), and it's just quiet (which makes sense, since I have nothing connected to any line input on the PCP).

    What am I missing?

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    4,198
    I just tried the same thing and it worked.
    However, the progress bar/timer stays at 0:00 and the sound was very very quiet ... I had to boost it a lot in the player.
    So perhaps it was working but needed a big slide on the volume.
    Paul Webster
    http://dabdig.blogspot.com
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland

  3. #3
    Junior Member
    Join Date
    Apr 2013
    Posts
    18
    Quote Originally Posted by Paul Webster View Post
    I just tried the same thing and it worked.
    Thanks...do you see any devices listed in the Tweaks interface?

    Name:  Screenshot_2021-03-26 pCP - Tweaks 1.png
Views: 130
Size:  43.6 KB

  4. #4
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    4,198
    I do, but that is because I have a USB input device plugged in so that I can use the record deck as an input.
    Paul Webster
    http://dabdig.blogspot.com
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland

  5. #5
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,063
    Bluetooth won’t show up on the input device line, as it is a software device.

    Take a look at the logs....both Bluetooth and the streamer log.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  6. #6
    Junior Member
    Join Date
    Apr 2013
    Posts
    18

    Log results

    Quote Originally Posted by paul- View Post
    Bluetooth wonĺt show up on the input device line, as it is a software device.

    Take a look at the logs....both Bluetooth and the streamer log.
    OK... this is the BT log:

    Code:
    03-27 14:21 CET INFO     ------------Starting pCP BT Speaker Daemon v7.0.0.0015------------
    03-27 14:21 CET INFO     Resetting asound.conf.
    03-27 14:21 CET INFO        Removing bt_ from asound.conf
    03-27 14:21 CET INFO     Current contents of /usr/local/etc/pcp/pcp-bt.conf.
    03-27 14:21 CET INFO        24:46:C8:3E:D1:34#motorola one zoom#10000#3
    03-27 14:21 CET DEBUG    PCM Devices found dbus.Dictionary({}, signature=dbus.Signature('oa{sv}'))
    03-27 14:21 CET INFO     Starting connection signal handlers.
    03-27 18:39 CET INFO     ---- Caught Connect signal ----
    03-27 18:39 CET DEBUG    /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source
    03-27 18:39 CET DEBUG       HCI:hci0
    03-27 18:39 CET INFO        MAC:24:46:C8:3E:D1:34
    03-27 18:39 CET INFO        TRANSPORT:a2dpsnk
    03-27 18:39 CET INFO        Writing device string for motorola one zoom for pcp-streamer
    And this is the streamer log:

    Code:
    Connect: 20210327184117
    GET /S16_LE/44100/2/F HTTP/1.0
    Connection: close
    Cache-Control: no-cache
    Accept: */*
    Host: 192.168.1.87:9100
    User-Agent: iTunes/4.7.1 (Linux; N; piCore; armv7l-linux; EN; utf8) SqueezeCenter, Squeezebox Server, Logitech Media Server/8.1.1/1610364019
    Icy-Metadata: 1
    
    HTTP/1.0 200 OK
    Content-Type: audio/x-flac
    icy-br: 917280
    icy-name: pCP pCP line-in (flac)
    icy-metadata: 0
    D: ../../../src/asound/bluealsa-pcm.c:1004: Getting BlueALSA PCM: CAPTURE 24:46:C8:3E:D1:34 a2dp
    D: ../../../src/asound/bluealsa-pcm.c:876: /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source: Setting constraints
    Recording raw data 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
    D: ../../../src/asound/bluealsa-pcm.c:443: /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source: Initializing HW
    D: ../../../src/asound/bluealsa-pcm.c:466: /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source: FIFO buffer size: 16384 frames
    D: ../../../src/asound/bluealsa-pcm.c:471: /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source: Selected HW buffer: 4 periods x 4408 bytes <= 17640 bytes
    D: ../../../src/asound/bluealsa-pcm.c:489: /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source: Initializing SW
    D: ../../../src/asound/bluealsa-pcm.c:489: /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source: Initializing SW
    D: ../../../src/asound/bluealsa-pcm.c:526: /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source: Prepared
    D: ../../../src/asound/bluealsa-pcm.c:489: /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source: Initializing SW
    D: ../../../src/asound/bluealsa-pcm.c:356: /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source: Starting
    D: ../../../src/asound/bluealsa-pcm.c:213: /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source: Starting IO loop: 7
    Disconnect: 20210327184231
    
    Connect: 20210327184231
    GET /S16_LE/44100/2/F HTTP/1.0
    Connection: close
    Cache-Control: no-cache
    Accept: */*
    Host: 192.168.1.87:9100
    User-Agent: iTunes/4.7.1 (Linux; N; piCore; armv7l-linux; EN; utf8) SqueezeCenter, Squeezebox Server, Logitech Media Server/8.1.1/1610364019
    Icy-Metadata: 1
    
    HTTP/1.0 200 OK
    Connect: 20210327184232
    GET /S16_LE/44100/2/F HTTP/1.0
    Connection: close
    Cache-Control: no-cache
    Accept: */*
    Host: 192.168.1.87:9100
    User-Agent: iTunes/4.7.1 (Linux; N; piCore; armv7l-linux; EN; utf8) SqueezeCenter, Squeezebox Server, Logitech Media Server/8.1.1/1610364019
    Icy-Metadata: 1
    
    HTTP/1.0 200 OK
    Connect: 20210327184232
    GET /S16_LE/44100/2/F HTTP/1.0
    Connection: close
    Cache-Control: no-cache
    Accept: */*
    Host: 192.168.1.87:9100
    User-Agent: iTunes/4.7.1 (Linux; N; piCore; armv7l-linux; EN; utf8) SqueezeCenter, Squeezebox Server, Logitech Media Server/8.1.1/1610364019
    Icy-Metadata: 1
    
    HTTP/1.0 200 OK
    Connect: 20210327184232
    GET /S16_LE/44100/2/F HTTP/1.0
    Connection: close
    Cache-Control: no-cache
    Accept: */*
    Host: 192.168.1.87:9100
    User-Agent: iTunes/4.7.1 (Linux; N; piCore; armv7l-linux; EN; utf8) SqueezeCenter, Squeezebox Server, Logitech Media Server/8.1.1/1610364019
    Icy-Metadata: 1
    
    HTTP/1.0 200 OK
    Connect: 20210327184232
    GET /S16_LE/44100/2/F HTTP/1.0
    Connection: close
    Cache-Control: no-cache
    Accept: */*
    Host: 192.168.1.87:9100
    User-Agent: iTunes/4.7.1 (Linux; N; piCore; armv7l-linux; EN; utf8) SqueezeCenter, Squeezebox Server, Logitech Media Server/8.1.1/1610364019
    Icy-Metadata: 1
    
    HTTP/1.0 200 OK
    Connect: 20210327184232
    GET /S16_LE/44100/2/F HTTP/1.0
    Connection: close
    Cache-Control: no-cache
    Accept: */*
    Host: 192.168.1.87:9100
    User-Agent: iTunes/4.7.1 (Linux; N; piCore; armv7l-linux; EN; utf8) SqueezeCenter, Squeezebox Server, Logitech Media Server/8.1.1/1610364019
    Icy-Metadata: 1
    
    HTTP/1.0 200 OK
    Connect: 20210327184232
    GET /S16_LE/44100/2/F HTTP/1.0
    Connection: close
    Cache-Control: no-cache
    Accept: */*
    Host: 192.168.1.87:9100
    User-Agent: iTunes/4.7.1 (Linux; N; piCore; armv7l-linux; EN; utf8) SqueezeCenter, Squeezebox Server, Logitech Media Server/8.1.1/1610364019
    Icy-Metadata: 1
    
    HTTP/1.0 200 OK
    Connect: 20210327184232
    GET /S16_LE/44100/2/F HTTP/1.0
    Connection: close
    Cache-Control: no-cache
    Accept: */*
    Host: 192.168.1.87:9100
    User-Agent: iTunes/4.7.1 (Linux; N; piCore; armv7l-linux; EN; utf8) SqueezeCenter, Squeezebox Server, Logitech Media Server/8.1.1/1610364019
    Icy-Metadata: 1
    
    HTTP/1.0 200 OK
    Content-Type: audio/x-flac
    icy-br: 917280
    icy-name: pCP pCP line-in (flac)
    icy-metadata: 0
    D: ../../../src/asound/bluealsa-pcm.c:1004: Getting BlueALSA PCM: CAPTURE 24:46:C8:3E:D1:34 a2dp
    D: ../../../src/asound/bluealsa-pcm.c:876: /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source: Setting constraints
    Recording raw data 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
    D: ../../../src/asound/bluealsa-pcm.c:443: /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source: Initializing HW
    D: ../../../src/asound/bluealsa-pcm.c:466: /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source: FIFO buffer size: 16384 frames
    D: ../../../src/asound/bluealsa-pcm.c:471: /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source: Selected HW buffer: 4 periods x 4408 bytes <= 17640 bytes
    D: ../../../src/asound/bluealsa-pcm.c:489: /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source: Initializing SW
    D: ../../../src/asound/bluealsa-pcm.c:489: /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source: Initializing SW
    D: ../../../src/asound/bluealsa-pcm.c:526: /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source: Prepared
    D: ../../../src/asound/bluealsa-pcm.c:489: /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source: Initializing SW
    D: ../../../src/asound/bluealsa-pcm.c:356: /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source: Starting
    D: ../../../src/asound/bluealsa-pcm.c:213: /org/bluealsa/hci0/dev_24_46_C8_3E_D1_34/a2dpsnk/source: Starting IO loop: 7
    Disconnect: 20210327184323
    I am not sure what to make of that. After the final "Disconnect" in the log, the BT menu still shows the device as connected, and the player is showing the stream as playing (it hasn't stopped or paused) - but it's dead quiet.

  7. #7
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,063
    The disconnect in this case is the Alsa software device, from the stream getting shut down.

    How are you playing the URL in LMS?
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  8. #8
    Junior Member
    Join Date
    Apr 2013
    Posts
    18
    Quote Originally Posted by paul- View Post
    How are you playing the URL in LMS?
    I created a favourite from the URL and tried to play that

  9. #9
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,063
    Iĺve seen that not work sometimes. Can you just try to play the url on the tune in url line.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

Posting Permissions

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