I followed the tutorial to setup the Raspberry pi 3 running on Raspbian Jessie as a bluetooth speaker: https://raspberrypi.stackexchange.com/a/48055
After setting it up, it actually worked for a few seconds. My smartphone could pair to the raspberry pi 3 and I could actually stream music to the 3.5mm audio jack output on the raspberry pi, but a few seconds after I started streaming the music, it suddenly stopped playing music.
It started playing the music again when I restarted everything, but it stopped playing the music just a few seconds after it started playing the music again. So this was very unreliable!
The error shown in dmesg was
Bluetooth: hci0: Frame reassembly failed (-84)
This turns out to be a reproducible error: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=151633
1) Does anyone have an idea of how to make the raspberry pi 3 a more reliable bluetooth speaker that does not stop playing music after just a few seconds?
2) Does anyone know how to make it a dedicated bluetooth speaker, that just works when you boot up the raspberry pi without needing to type in command line commands (such as to start bluetooth, start pulseaudio, confirm the passkey, etc.)