morrolinux / mpradio

Morrolinux's Pirate radio (PiFmRDS / PiFmAdv implementation with Bluetooth and mp3 support) - Stream music to your car's FM radio or use it as a Bluetooth speaker via headphone jack
GNU General Public License v3.0
108 stars 17 forks source link

Bluetooth problem #60

Open mihaiola opened 5 years ago

mihaiola commented 5 years ago

Hello, i have install version 1.1 on a Raspberry B model and add a bluetooth dongle to it. From USB is playing on all the song and stuff. When i try to conect from my phone to it i found it as mpradio device, pair with it with pin code 0000, so far, so good. When i play music from Spotify or other media i get no sound on radio. When i check the console and everything i found this error

Jun 04 19:01:43 raspberrypi systemd[1]: Started Bluetooth service. Jun 04 19:01:43 raspberrypi bluetoothd[327]: Starting SDP server Jun 04 19:01:43 raspberrypi bluetoothd[327]: Bluetooth management interface 1.14 initialized Jun 04 19:01:43 raspberrypi bluetoothd[327]: Failed to obtain handles for "Service Changed" characteristic Jun 04 19:01:43 raspberrypi bluetoothd[327]: Sap driver initialization failed. Jun 04 19:01:43 raspberrypi bluetoothd[327]: sap-server: Operation not permitted (1) Jun 04 19:01:44 raspberrypi bluetoothd[327]: Endpoint registered: sender=:1.4 path=/A2DP/SBC/Source/1 Jun 04 19:01:44 raspberrypi bluetoothd[327]: Endpoint registered: sender=:1.4 path=/A2DP/SBC/Sink/1 Jun 04 19:06:25 raspberrypi bluetoothd[327]: Endpoint registered: sender=:1.4 path=/A2DP/SBC/Sink/2 Jun 04 19:06:37 raspberrypi bluetoothd[327]: Unable to get io data for Hands-Free unit: getpeername: Transport endpoint is not connected (107)

and the response for systemctl status mpradio is: pi@raspberrypi:/etc $ systemctl status mpradio ● mpradio.service - Morrolinux Pirate Radio Loaded: loaded (/etc/systemd/system/mpradio.service; enabled; vendor preset: enabled) Active: inactive (dead) since Mon 2018-06-04 19:06:29 UTC; 14min ago Process: 334 ExecStart=/bin/bash -l -c /bin/mpradio (code=killed, signal=TERM) Main PID: 334 (code=killed, signal=TERM)

Jun 04 19:06:29 raspberrypi bash[334]: PS set to: "- GEMITA" Jun 04 19:06:29 raspberrypi bash[334]: PS set to: "TAIZ MAD" Jun 04 19:06:29 raspberrypi bash[334]: PS set to: "ADMAN 16" Jun 04 19:06:29 raspberrypi bash[334]: PS set to: "16 I Don" Jun 04 19:06:29 raspberrypi bash[334]: PS set to: "on t car" Jun 04 19:06:29 raspberrypi bash[334]: PS set to: "are Kepl" Jun 04 19:06:29 raspberrypi bash[334]: Terminating: cleanly deactivated the DMA engine and killed the carrier. Jun 04 19:06:29 raspberrypi bash[334]: sox FAIL sox: -' error writing output file: Broken pipe Jun 04 19:06:29 raspberrypi bash[334]: sox WARN sox:-' output clipped 148 samples; decrease volume? Jun 04 19:06:29 raspberrypi systemd[1]: Stopped Morrolinux Pirate Radio.

Hurricos commented 5 years ago

Sounds like some Bluetooth management failing? What's your bluez-alsa version?

If you have a moment, try repeating the setup with a radio and poke around with hciconfig a bit. It's happened in the past that changes in bluezalsa have caused issues here.