Max2Play Home › Forums › SD-Card Imaging and getting started › M2P : Audio Receiver for DLNA / Airplay / Spotify / Bluetooth
- This topic has 4 replies, 2 voices, and was last updated 6 years, 5 months ago by Heiner premium.
-
Posted in: SD-Card Imaging and getting started
-
11. Juni 2018 at 8:08 #36144
I saw a cross post over on the Axiom website about M2P and it looks good so I’ve purchased the 1 year licence…. but it looks like I need some help in setting up M2P on an Axiom Air (Portable speaker run by a Pi2 with a Audiophonics I-Sabre-V3 DAC). What I’d like to achieve is a stable configuration that can accept connections over DLNA, Airplay, Spotify Connect, & Bluetooth (to pair with a google home). I will never need to serve music from the Axiom Air. Just want it as an Audio Receiver.
I did have it playing music initially with DLNA, Airplay, and Spotify but now as I newbie… I seem to have „broken“ something 🙁 and I’m not getting any audio. Here is my Debug info
#### SQUEEZELITE VERSION #### Squeezelite Max2Play v1.0.2 based on v1.8.4-726, Copyright 2012-2015 Adrian Smith, 2015-2016 Ralph Irving. #### SQUEEZELITE BUILDOPTIONS #### Build options: LINUX ALSA EVENTFD RESAMPLE FFMPEG VISEXPORT IR GPIO DSD CONTROLSBS ALSASYNC BLUETOOTHSYNC #### AUDIOPLAYER CONFIG #### ### Configuration of Audioplayers SQUEEZELITE_PARAMETER=-o sysdefault:CARD=sndrpihifiberry -a 80:4:: -C 5 SQUEEZESLAVE_PARAMETER=-n plugequal SHAIRPORT_PARAMETER=-d sysdefault:CARD=sndrpihifiberry USE_USB_DAC=0 USE_EQUALIZER=0 SYSTEM_USER=pi YMPD_PARAMETER=--webport 8081 GMEDIARENDERER_ALSA_DEVICE=sysdefault:CARD=sndrpihifiberry SPOTIFYCONNECT_PARAMETER=--username **removed** --password **removed** --device hw:sndrpihifiberry BLUEALSA_PLAY_AUDIOCARD=hw:0,0 BLUEALSA_PLAY_MIXER=Digital #### SQUEEZELITE -l #### Output devices: null - Discard all samples (playback) or generate zero samples (capture) equal plugequal - Equalizer for plughw:0,0 bluetooth - Your Bluetooth device 48:D6:D5:D1:96:DD default:CARD=sndrpihifiberry - snd_rpi_hifiberry_dac, - Default Audio Device sysdefault:CARD=sndrpihifiberry - snd_rpi_hifiberry_dac, - Default Audio Device dmix:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dac, - Direct sample mixing device dsnoop:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dac, - Direct sample snooping device hw:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dac, - Direct hardware device without any conversions plughw:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dac, - Hardware device with all software conversions default:CARD=ALSA - bcm2835 ALSA, bcm2835 ALSA - Default Audio Device sysdefault:CARD=ALSA - bcm2835 ALSA, bcm2835 ALSA - Default Audio Device dmix:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct sample mixing device dmix:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct sample mixing device dsnoop:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct sample snooping device dsnoop:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct sample snooping device hw:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct hardware device without any conversions hw:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct hardware device without any conversions plughw:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Hardware device with all software conversions plughw:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Hardware device with all software conversions #### SHAIRPORT (SYNC) VERSION #### 3.1.1-OpenSSL-Avahi-ALSA-soxr-sysconfdir:/usr/local/etc #### OUTPUT SOUND DETAILS CARD 0 #### closed #### OUTPUT SOUND DETAILS CARD 1 #### closed #### Bluetooth Installation #### #### Bluetooth Dongle #### hci0: Type: Primary Bus: USB BD Address: 00:1A:7D:DA:71:11 ACL MTU: 310:10 SCO MTU: 64:8 UP RUNNING PSCAN RX bytes:1250 acl:0 sco:0 events:77 errors:0 TX bytes:3292 acl:0 sco:0 commands:77 errors:0 #### DEVICE Deck speaker #### [48:D6:D5:D1:96:DD] Name: Deck speaker Alias: Deck speaker [rw] Address: 48:D6:D5:D1:96:DD Icon: audio-card Class: 0x240400 Paired: 1 Trusted: 1 [rw] Blocked: 0 [rw] Connected: 0 UUIDs: [AudioSink, AVRemoteControlTarget, AVRemoteControl, PnPInformation, 00001800-0000-1000-8000-00805f9b34fb, 00001801-0000-1000-8000-00805f9b34fb, 0000fea0-0000-1000-8000-00805f9b34fb] #### BLUEALSA RUNNING #### 1 #### Librespot Output #### INFO:librespot: librespot 431be9e (2018-05-18). Built on 2018-05-30. Build ID: YlMJ8i49 WARN:librespot_core::apresolve: Failed to resolve Access Point: HTTP error WARN:librespot_core::apresolve: Using fallback "ap.spotify.com:443" INFO:librespot_core::session: Connecting to AP "ap.spotify.com:443" thread 'main' panicked at 'called <code>Result::unwrap()</code> on an <code>Err</code> value: Custom { kind: Other, error: StringError("failed to lookup address information: Temporary failure in name resolution") }', libcore/result.rs:945:5 stack backtrace: 0: 0x95c9ab - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h9a3642c9f6f9c72d at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49 1: 0x965b47 - std::sys_common::backtrace::print::h857488e4ca7f183a at libstd/sys_common/backtrace.rs:71 at libstd/sys_common/backtrace.rs:59 2: 0x94b3c7 - std::panicking::default_hook::{{closure}}::h69d8f4842e718136 at libstd/panicking.rs:211 3: 0x94b057 - std::panicking::default_hook::h6dcc687f188bf47f at libstd/panicking.rs:227 4: 0x94badb - std::panicking::rust_panic_with_hook::hc321908595307e8d at libstd/panicking.rs:463 5: 0x94b617 - std::panicking::begin_panic_fmt::hc982e1fd1fa0bf7c at libstd/panicking.rs:350 6: 0x94b5df - rust_begin_unwind at libstd/panicking.rs:328 7: 0x9ab3b3 - core::panicking::panic_fmt::h604cff786c7fe009 at libcore/panicking.rs:71 8: 0x60c7e3 - core::result::unwrap_failed::h215d3efa27dc1831 9: 0x598f7b - librespot_core::connection::connect::hba6cc8f74297a0a3 10: 0x5b87af - <futures::future::and_then::AndThen<A, B, F> as futures::future::Future>::poll::h4c95b08eadacc347 11: 0x61b7fb - <futures::future::map::Map<A, F> as futures::future::Future>::poll::h2397357a8d62b609 12: 0x48c1eb - <librespot::Main as futures::future::Future>::poll::hd784d32b459a1f62 13: 0x48fdbb - <futures::task_impl::Spawn<T>>::poll_future_notify::hb09e0a807b592470 14: 0x48f9bf - <futures::task_impl::Spawn<T>>::poll_future_notify::h35554a4aa8660b54 15: 0x49a4cb - <std::thread::local::LocalKey<T>>::with::hc9c6b513da038823 16: 0x49bf2b - <tokio::executor::current_thread::Entered<'a, P>>::block_on::haee7851e29f34e60 17: 0x49a207 - <std::thread::local::LocalKey<T>>::with::h7558512d8e05d646 18: 0x499c47 - <std::thread::local::LocalKey<T>>::with::h508677388b4fe305 19: 0x499ea7 - <std::thread::local::LocalKey<T>>::with::h53c15eb19b12382e 20: 0x49828b - <scoped_tls::ScopedKey<T>>::set::h387b89c354beab01 21: 0x4942cb - tokio_core::reactor::Core::run::ha4d6f8476bb012d1 22: 0x48e57f - librespot::main::h95a6d9f6a736a6db 23: 0x4ad1bf - std::rt::lang_start::{{closure}}::ha1ba30460373e372 24: 0x94b51f - std::panicking::try::do_call::h7e51fbf12cacd474 at libstd/rt.rs:59 at libstd/panicking.rs:310 25: 0x96caab - __rust_maybe_catch_panic at libpanic_unwind/lib.rs:105 26: 0x94bd4b - std::rt::lang_start_internal::h407c85f0b0630649 at libstd/panicking.rs:289 at libstd/panic.rs:374 at libstd/rt.rs:58 27: 0x48f1bf - main 28: 0x76d81677 - __libc_start_main #### Librespot Command Line Options #### error: Required option 'name' missing Usage: /opt/spotifyconnect/librespot [options] Options: -c, --cache CACHE Path to a directory where files will be cached. --disable-audio-cache Disable caching of the audio data. -n, --name NAME Device name --device-type DEVICE_TYPE Displayed device type -b, --bitrate BITRATE Bitrate (96, 160 or 320). Defaults to 160 --onevent PROGRAM Run PROGRAM when playback is about to begin. -v, --verbose Enable verbose output -u, --username USERNAME Username to sign in with -p, --password PASSWORD Password --proxy PROXY HTTP proxy to use when connecting --disable-discovery Disable discovery mode --backend BACKEND Audio backend to use. Use '?' to list options --device DEVICE Audio device to use. Use '?' to list options if using portaudio --mixer MIXER Mixer to use --initial-volume VOLUME Initial volume in %, once connected (must be from 0 to 100) --zeroconf-port ZEROCONF_PORT The port the internal server advertised over zeroconf uses. --enable-volume-normalisation Play all tracks at the same volume --normalisation-pregain PREGAIN Pregain (dB) applied by volume normalisation --linear-volume increase volume linear instead of logarithmic. #### BOOT CONFIG TXT #### # For more options and information see # http://rpf.io/configtxt # Some settings may impact device functionality. See link above for details # uncomment if you get no picture on HDMI for a default "safe" mode #hdmi_safe=1 # uncomment this if your display has a black border of unused pixels visible # and your display can output without overscan #disable_overscan=1 # uncomment the following to adjust overscan. Use positive numbers if console # goes off screen, and negative if there is too much border #overscan_left=16 #overscan_right=16 #overscan_top=16 #overscan_bottom=16 # uncomment to force a console size. By default it will be display's size minus # overscan. #framebuffer_width=1280 #framebuffer_height=720 # uncomment if hdmi display is not detected and composite is being output #hdmi_force_hotplug=1 # uncomment to force a specific HDMI mode (this will force VGA) #hdmi_group=1 #hdmi_mode=1 # uncomment to force a HDMI mode rather than DVI. This can make audio work in # DMT (computer monitor) modes #hdmi_drive=2 # uncomment to increase signal to HDMI, if you have interference, blanking, or # no display #config_hdmi_boost=4 # uncomment for composite PAL #sdtv_mode=2 #uncomment to overclock the arm. 700 MHz is the default. #arm_freq=800 # Uncomment some or all of these to enable the optional hardware interfaces #dtparam=i2c_arm=on #dtparam=i2s=on #dtparam=spi=on # Uncomment this to enable the lirc-rpi module #dtoverlay=lirc-rpi # Additional overlays and parameters are documented /boot/overlays/README # Enable audio (loads snd_bcm2835) dtparam=audio=on gpu_mem=128 dtoverlay=hifiberry-dac disable_overscan=1
Can I please clarify what the minimum services I need running, eg:
– Audio Player: Shairport (Airplay)
– Audio Player: DLNA-Client Audio (gmediarender)
– Bluetooth
– Spotify Connect…and that I don’t need running
– Music Player MPD
– Kodi
– SqueezeliteThanks
Nathan11. Juni 2018 at 10:08 #36150I’ve got a bit further! Did clean install as just an Airplay (tested worked), then installed DLNA (tested worked), then installed Spotify (tested worked). The install for Bluetooth is not working as well. I installed it, scanned and connected the google home (name Deck Speaker in the log) just fine. But when I try to press „start Bluetooth-Speaker“ under Stream directy to Max2Play Soundcard, the Msg is „Trying to launch…Not successful“ and the „Click here to show detailed information“ does nothing. I also tried from Google Home buy making the M2P-Blutooth connection the Default Music Player output but there is no sound when it plays. There is not much in the Log:
#### Bluetooth Installation #### #### Bluetooth Dongle #### hci0: Type: Primary Bus: USB BD Address: 00:1A:7D:DA:71:11 ACL MTU: 310:10 SCO MTU: 64:8 UP RUNNING RX bytes:952056 acl:4556 sco:0 events:143 errors:0 TX bytes:4268 acl:42 sco:0 commands:85 errors:0 #### DEVICE Deck speaker #### [48:D6:D5:D1:96:DD] Name: Deck speaker Alias: Deck speaker [rw] Address: 48:D6:D5:D1:96:DD Icon: audio-card Class: 0x2c0400 Paired: 1 Trusted: 1 [rw] Blocked: 0 [rw] Connected: 1 UUIDs: [AudioSource, AudioSink, AVRemoteControlTarget, AdvancedAudioDistribution, AVRemoteControl, PnPInformation, 00001800-0000-1000-8000-00805f9b34fb, 00001801-0000-1000-8000-00805f9b34fb, 0000fea0-0000-1000-8000-00805f9b34fb] #### BLUEALSA RUNNING #### 1
11. Juni 2018 at 11:54 #36152FYI – Wile I can not get “start Bluetooth-Speaker“ to work, I can get it working via LMS with the BT Plugin and Squeeselite
11. Juni 2018 at 13:18 #36153Oh well – lost all audio again. Will have to have more of a play again next weekend.
13. Juni 2018 at 14:12 #36182Hi Nathan,
Please make sure your other players are not impeding. try adding „-C 5“ to your Squeezelite if you have it running.
-
You must be logged in to reply to this topic.