Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • 18. Juli 2017 at 12:02 #29942

    Well its a bit hit and miss but I finally managed to get my echo to connect as sink.
    I rebooted Echo, clicked remove on Bluetooth Max2Play tab.
    In a terminal window I ran bluetoothctl then scan on, then prepared the command to connect ready to hit return. Then quickly said Alexa Pair and immediately hit return to issue connect command in terminal.
    To my surprise, this time it connected as a2dp sink. And of course I can now play music.
    Has survived disconnect/connect and pi reboot.

    It’s like if you give Echo too long to think it will assert itself as source and pi lets it.

    18. Juli 2017 at 11:21 #29941

    Still can’t use Amazon Echo (not Dot) as Bluetooth speaker with Max2Play.
    Problem is Echo connects as a2dp_source-, is not listed as an available sink, and the set card profile commands (my card listed as no 1) fail as follows:
    pactl set-card-profile 1 a2dp
    Failure: Input/Output error
    pacmd set-card-profile 1 a2dp
    Failed to set card profile to ‚a2dp‘

    Has anyone solved this yet?

    #### Bluetooth Installation ####

    #### Bluetooth Dongle ####
    hci0: Type: BR/EDR Bus: USB
    BD Address: 00:1A:7D:DA:71:0A ACL MTU: 310:10 SCO MTU: 64:8
    RX bytes:250252 acl:837 sco:0 events:119 errors:0
    TX bytes:2746 acl:34 sco:0 commands:61 errors:0

    #### DEVICE Echo-3WS ####
    Name: Echo-3WS
    Alias: Echo-3WS [rw]
    Address: 40:B4:CD:2A:94:BB
    Icon: audio-card
    Class: 0xc0414
    Paired: 1
    Trusted: 1 [rw]
    Blocked: 0 [rw]
    Connected: 1
    UUIDs: [AudioSource, AudioSink, AVRemoteControl, PnPInformation, 4e72b490-1d0f-bf92-0e47-a84e01000000]

    #### DEVICE [Samsung] Office ####
    Name: [Samsung] Office
    Alias: [Samsung] Office [rw]
    Address: CC:B1:1A:8C:45:E6
    Icon: audio-card
    Class: 0x240404
    Paired: 1
    Trusted: 1 [rw]
    Blocked: 0 [rw]
    Connected: 0
    UUIDs: [SerialPort, AudioSink, AVRemoteControlTarget, AVRemoteControl, 00001801-0000-1000-8000-00805f9b34fb]

    #### PACMD LIST | grep active ####
    active port: <analog-output>
    active port: <speaker-input>
    active profile: <output:analog-stereo>
    active profile: <a2dp_source>

    #### PACMD LIST | grep sink ####
    Default sink name: alsa_output.platform-soc_audio.analog-stereo
    name: <module-null-sink>
    module.description = „Clocked NULL sink“
    module.description = „When a bluetooth sink or source is added, load module-loopback“
    module.description = „Automatically restore the default sink and source“
    name: <module-always-sink>
    module.description = „Always keeps at least one sink loaded even if it’s a null one“
    module.description = „When a sink/source is idle for too long, suspend it“
    module.description = „Load filter sinks automatically when needed“
    module.description = „BlueZ 5 Bluetooth audio sink and source“
    argument: <source=“bluez_source.40_B4_CD_2A_94_BB“ source_dont_move=“true“ sink_input_properties=“media.role=music“>
    module.description = „Loopback from source to sink“
    2 sink(s) available.
    driver: <module-null-sink.c>
    driver: <module-null-sink.c>
    1 sink input(s) available.
    sink: 1 <alsa_output.platform-soc_audio.analog-stereo> = „sink-input-by-media-role:music“

    #### X-SERVER RUNNING ####

    1 S 1000 1166 1 4 80 0 – 28101 – ? 00:00:01 pulseaudio

    2 card(s) available.
    index: 0
    name: <alsa_card.platform-soc_audio>
    driver: <module-alsa-card.c>
    owner module: 7
    alsa.card = „0“
    alsa.card_name = „bcm2835 ALSA“
    alsa.long_card_name = „bcm2835 ALSA“
    alsa.driver_name = „snd_bcm2835“
    device.bus_path = „platform-soc:audio“
    sysfs.path = „/devices/platform/soc/soc:audio/sound/card0“
    device.string = „0“
    device.description = „bcm2835 ALSA“
    module-udev-detect.discovered = „1“
    device.icon_name = „audio-card“
    output:analog-mono: Analog Mono Output (priority 100, available: unknown)
    output:analog-stereo: Analog Stereo Output (priority 6000, available: unknown)
    off: Off (priority 0, available: unknown)
    active profile: <output:analog-stereo>
    alsa_output.platform-soc_audio.analog-stereo/#1: bcm2835 ALSA Analog Stereo
    alsa_output.platform-soc_audio.analog-stereo.monitor/#1: Monitor of bcm2835 ALSA Analog Stereo
    analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)

    index: 1
    name: <bluez_card.40_B4_CD_2A_94_BB>
    driver: <module-bluez5-device.c>
    owner module: 27
    device.description = „Echo-3WS“
    device.string = „40:B4:CD:2A:94:BB“
    device.api = „bluez“
    device.class = „sound“
    device.bus = „bluetooth“
    device.form_factor = „speaker“
    bluez.path = „/org/bluez/hci0/dev_40_B4_CD_2A_94_BB“
    bluez.class = „0x0c0414“
    bluez.alias = „Echo-3WS“
    device.icon_name = „audio-speakers-bluetooth“
    a2dp_source: High Fidelity Capture (A2DP Source) (priority 10, available: yes)
    a2dp: High Fidelity Playback (A2DP Sink) (priority 10, available: unknown)
    off: Off (priority 0, available: yes)
    active profile: <a2dp_source>
    bluez_source.40_B4_CD_2A_94_BB/#2: Echo-3WS
    speaker-output: Speaker (priority 0, latency offset 0 usec, available: no)

    speaker-input: Bluetooth Input (priority 0, latency offset 0 usec, available: yes)

    14. Juli 2017 at 8:51 #29911

    Hi. Ive got my m2p on pi3 working with latest beta as LMS server and local squeezelite player sending output via bt usb dongle and m2p bluetooth plugin to a bluetooth speaker. Works very well since i switched to a usb bt dongle and disabled pi 3 bt (with built in bt, audio would randomly cut out after 10 mins – 1 hour, requiring pi reboot) and added a power on/off script) with squeezelite -S option to connect/disconnect to speaker on player on/off in ipeng (see previous post).
    I now want to use an Amazon echo as the bt speaker in this set up. I can get bt connected with max2play but so far no audio coming out. Has anyone managed this? Im aware of hab-tunes initiative but wanted to get echo working with m2p as basic bluetooth speaker (audio receiver) in meantime.

    6. Juli 2017 at 13:36 #29838

    In case anyone is interested, I managed to solve this myself.
    I had to:
    1) Via Max2Play web UI, Update to Beta, then Update Squeezelite
    – this was necessary to get the GPIO squeezelite build option that -S command line option depends on.
    2) In Squeezelite advanced options, set Command Line Options to -B -S /opt/squeezelite/
    – this tells squeezelite to run my script passing a 1 or 0 command line arg when player is switched on or off via iPeng / OrangeSqueeze.
    3) Create the script below (and make executable) at /opt/squeezelite/
    – the script just runs bluetoothctl and either issues a connect or disconnect command to my BT speaker.

    if [ „$power_state“ = „1“ ]
    # echo $(date) “ $power_state Power switch on “ >> /opt/squeezelite/log/btrecon.log
    bluetoothctl <<EOF
    connect CC:B1:1A:8C:45:E6

    # echo $(date) “ $power_state Power switch off “ >> /opt/squeezelite/log/btrecon.log
    bluetoothctl <<EOF
    disconnect CC:B1:1A:8C:45:E6

    Works a treat!

Viewing 4 posts - 1 through 4 (of 4 total)