Bluetooth Speaker Plugin

As suggested by chsims1 in the old topic https://volumio.org/forum/how-add-more-alsa-sinks-cards-json-t6427.html I started a new topic for the resulting bluetooth plugin.

! CAUTION - this is a early stage plugin please backup you system before you install it !

Here you can find a first preview of the bt plugin:
plugin: https://www.dropbox.com/s/uu8wncyz22vmmw6/bluetooth_controller.zip?dl=0
ui https://www.dropbox.com/s/gs748pet0351lys/ui.zip?dl=0

First you need to copy the content of the ui.zip to /volumio/http/www
Restart and afterwards you can install the plugin by drop the bluetooth_controller.zip into the plugin upload.

Installation could take a while because the bluetooth library needs to be compiled on the device till now.

Feel free to test it, report bugs or supply translations.

— Update —

  • needs at least Volumio 2.296
  • added initial support of avrcp (prev track, next track, play, pause)
  • improved handling of avrcp devices ( no crash on disconnect)

Thx

Hi

Maybe an early stage for a newbie to try !? but i’m a bit curious :wink:
I can’t connect to any of my devices , nothing happens when I click “Connect” and I recive an error when I click play

Not: also unable to uninstall the plugin
alsaerror-blue.png

Could you send the log output ?

  1. Enable SSH if not already done using volumio.local/DEV
  2. Login with user volumio and password volumio
  3. type sudo journalctl -f
  4. try to connect / play music
  5. copy the generated output from ssh session

Play:

volumio@sk6-kontor:~$ sudo journalctl -f
-- Logs begin at Sun 2017-08-27 20:01:17 UTC. --
Aug 27 20:02:28 sk6-kontor volumio[950]: info: Stopping bluetooth device scan
Aug 27 20:02:42 sk6-kontor sshd[1236]: Accepted password for volumio from 192.168.1.101 port 49318 ssh2
Aug 27 20:02:42 sk6-kontor sshd[1236]: pam_unix(sshd:session): session opened for user volumio by (uid=0)
Aug 27 20:02:42 sk6-kontor systemd[1]: Starting Session c2 of user volumio.
Aug 27 20:02:42 sk6-kontor systemd-logind[569]: New session c2 of user volumio.
Aug 27 20:02:42 sk6-kontor systemd[1]: Started Session c2 of user volumio.
Aug 27 20:02:42 sk6-kontor sshd[1236]: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory
Aug 27 20:02:42 sk6-kontor sshd[1236]: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory
Aug 27 20:03:06 sk6-kontor sudo[1488]: volumio : TTY=pts/1 ; PWD=/home/volumio ; USER=root ; COMMAND=/bin/journalctl -f
Aug 27 20:03:06 sk6-kontor sudo[1488]: pam_unix(sudo:session): session opened for user root by volumio(uid=0)
Aug 27 20:03:10 sk6-kontor volumio[950]: info:
Aug 27 20:03:10 sk6-kontor volumio[950]: [1503864190000] ---------------------------- Client requests Volumio play
Aug 27 20:03:10 sk6-kontor volumio[950]: info: CoreCommandRouter::volumioPlay
Aug 27 20:03:10 sk6-kontor volumio[950]: UNSET VOLATILE
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190007] CoreStateMachine::play index undefined
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190010] CoreStateMachine::setConsumeUpdateService undefined
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190013] CorePlayQueue::getTrack 0
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190016] CoreStateMachine::startPlaybackTimer
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190017] CorePlayQueue::getTrack 0
Aug 27 20:03:10 sk6-kontor volumio[950]: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa[object Object]
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190021] ControllerWebradio::clearAddPlayTrack
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190024] ControllerMpd::sendMpdCommand stop
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190057] sending command...
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190061] ------------------------------ 61ms
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190071] parsing response...
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190074] ControllerMpd::sendMpdCommand clear
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190075] sending command...
Aug 27 20:03:10 sk6-kontor volumio[950]: info:
Aug 27 20:03:10 sk6-kontor volumio[950]: [1503864190080] ---------------------------- MPD announces system state update
Aug 27 20:03:10 sk6-kontor volumio[950]: info: Mpd Status Update: playlist
Aug 27 20:03:10 sk6-kontor volumio[950]: info:
Aug 27 20:03:10 sk6-kontor volumio[950]: [1503864190084] ---------------------------- MPD announces state update
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190087] parsing response...
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190089] ControllerMpd::getState
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190091] ControllerMpd::sendMpdCommand status
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190093] ControllerMpd::sendMpdCommand load "http://cabhs30.sonixcast.com:9968/"
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190095] sending command...
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190097] sending command...
Aug 27 20:03:10 sk6-kontor volumio[950]: info:
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190104] ------------------------------ 25ms
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190106] parsing response...
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190114] ControllerMpd::parseState
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190116] ControllerMpd::pushState
Aug 27 20:03:10 sk6-kontor volumio[950]: info: CoreCommandRouter::servicePushState
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190130] CoreStateMachine::syncState
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190131] CorePlayQueue::getTrack 0
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190138] Received update from a service different from the one supposed to be playing music. Skipping notification.Current webradio Received mpd
Aug 27 20:03:10 sk6-kontor volumio[950]: info: [1503864190141] ------------------------------ 58ms
Aug 27 20:03:10 sk6-kontor nmbd[792]: [2017/08/27 20:03:10.168699,  0] ../lib/util/debug.c:603(reopen_logs_internal)
Aug 27 20:03:10 sk6-kontor nmbd[792]: Unable to open new log file '/var/log/samba/log.nmbd': No such file or directory
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193825] ControllerMpd::sendMpdCommand add "http://cabhs30.sonixcast.com:9968/"
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193827] sending command...
Aug 27 20:03:13 sk6-kontor volumio[950]: info:
Aug 27 20:03:13 sk6-kontor volumio[950]: [1503864193829] ---------------------------- MPD announces system state update
Aug 27 20:03:13 sk6-kontor volumio[950]: info: Mpd Status Update: playlist
Aug 27 20:03:13 sk6-kontor volumio[950]: info:
Aug 27 20:03:13 sk6-kontor volumio[950]: [1503864193832] ---------------------------- MPD announces state update
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193834] parsing response...
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193835] ControllerMpd::getState
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193846] ControllerMpd::sendMpdCommand status
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193848] CoreStateMachine::setConsumeUpdateService mpd
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193850] ControllerMpd::sendMpdCommand play
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193852] sending command...
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193854] sending command...
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193872] ------------------------------ 43ms
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193874] parsing response...
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193875] parsing response...
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193877] ControllerMpd::parseState
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193885] ControllerMpd::pushState
Aug 27 20:03:13 sk6-kontor volumio[950]: info: CoreCommandRouter::servicePushState
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193888] CoreStateMachine::syncState
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193889] CorePlayQueue::getTrack 0
Aug 27 20:03:13 sk6-kontor volumio[950]: info: STATE SERVICE {"status":"stop","position":null,"seek":null,"duration":null,"samplerate":null,"bitdepth":null,"channels":null,"random":false,"updatedb":false,"repeat":false,"isStreaming":false,"title":null,"artist":null,"album":null,"uri":null}
Aug 27 20:03:13 sk6-kontor volumio[950]: info: CURRENT POSITION 0
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193894] CoreStateMachine::syncState   stateService stop
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193895] CoreStateMachine::syncState   currentStatus stop
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193896] CoreStateMachine::pushState
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193898] CoreStateMachine::getState
Aug 27 20:03:13 sk6-kontor volumio[950]: info: CoreCommandRouter::volumioPushState
Aug 27 20:03:13 sk6-kontor volumio[950]: info: CoreCommandRouter::executeOnPlugin: volumiodiscovery , saveDeviceInfo
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193904] interfaceApi::pushState
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193905] InterfaceWebUI::pushState
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193959] No code
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193960] CoreStateMachine::pushState
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193961] CoreStateMachine::getState
Aug 27 20:03:13 sk6-kontor volumio[950]: info: CoreCommandRouter::volumioPushState
Aug 27 20:03:13 sk6-kontor volumio[950]: info: CoreCommandRouter::executeOnPlugin: volumiodiscovery , saveDeviceInfo
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193966] interfaceApi::pushState
Aug 27 20:03:13 sk6-kontor volumio[950]: info: [1503864193968] InterfaceWebUI::pushState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194033] ------------------------------ 202ms
Aug 27 20:03:14 sk6-kontor volumio[950]: info: Pushing Favourites {"service":"mpd","favourite":false}
Aug 27 20:03:14 sk6-kontor volumio[950]: info: Pushing Favourites {"service":"mpd","favourite":false}
Aug 27 20:03:14 sk6-kontor volumio[950]: info: Mpd Status Update: player
Aug 27 20:03:14 sk6-kontor volumio[950]: info:
Aug 27 20:03:14 sk6-kontor volumio[950]: [1503864194370] ---------------------------- MPD announces state update
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194373] ControllerMpd::getState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194374] ControllerMpd::sendMpdCommand status
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194376] sending command...
Aug 27 20:03:14 sk6-kontor volumio[950]: info: Mpd Status Update: player
Aug 27 20:03:14 sk6-kontor volumio[950]: info:
Aug 27 20:03:14 sk6-kontor volumio[950]: [1503864194381] ---------------------------- MPD announces state update
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194390] parsing response...
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194408] ControllerMpd::sendMpdCommand clearerror
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194409] ControllerMpd::getState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194410] ControllerMpd::sendMpdCommand status
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194412] sending command...
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194414] ControllerMpd::parseState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194416] ControllerMpd::sendMpdCommand playlistinfo
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194418] sending command...
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194420] sending command...
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194424] parsing response...
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194425] parsing response...
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194427] parsing response...
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194428] ControllerMpd::parseState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194430] ControllerMpd::sendMpdCommand playlistinfo
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194434] ControllerMpd::parseTrackInfo
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194437] sending command...
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194439] ControllerMpd::pushState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: CoreCommandRouter::servicePushState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194441] CoreStateMachine::syncState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194442] CorePlayQueue::getTrack 0
Aug 27 20:03:14 sk6-kontor volumio[950]: info: STATE SERVICE {"status":"pause","position":0,"seek":0,"duration":0,"samplerate":"44.1 KHz","bitdepth":"24 bit","channels":2,"random":false,"updatedb":false,"repeat":false,"isStreaming":false,"title":"","artist":null,"album":null,"uri":"http://cabhs30.sonixcast.com:9968/","trackType":"com:9968/"}
Aug 27 20:03:14 sk6-kontor volumio[950]: info: CURRENT POSITION 0
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194447] CoreStateMachine::syncState   stateService pause
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194448] CoreStateMachine::syncState   currentStatus stop
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194449] CoreStateMachine::pushState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194451] CoreStateMachine::getState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: CoreCommandRouter::volumioPushState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: CoreCommandRouter::executeOnPlugin: volumiodiscovery , saveDeviceInfo
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194455] interfaceApi::pushState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194456] InterfaceWebUI::pushState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194537] ------------------------------ 168ms
Aug 27 20:03:14 sk6-kontor volumio[950]: info: Pushing Favourites {"service":"mpd","favourite":false}
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194571] parsing response...
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194573] ControllerMpd::parseTrackInfo
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194575] ControllerMpd::pushState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: CoreCommandRouter::servicePushState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194577] CoreStateMachine::syncState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194578] CorePlayQueue::getTrack 0
Aug 27 20:03:14 sk6-kontor volumio[950]: info: STATE SERVICE {"status":"pause","position":0,"seek":0,"duration":0,"samplerate":"44.1 KHz","bitdepth":"24 bit","channels":2,"random":false,"updatedb":false,"repeat":false,"isStreaming":false,"title":"","artist":null,"album":null,"uri":"http://cabhs30.sonixcast.com:9968/","trackType":"com:9968/"}
Aug 27 20:03:14 sk6-kontor volumio[950]: info: CURRENT POSITION 0
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194581] CoreStateMachine::syncState   stateService pause
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194582] CoreStateMachine::syncState   currentStatus stop
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194583] CoreStateMachine::pushState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194584] CoreStateMachine::getState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: CoreCommandRouter::volumioPushState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: CoreCommandRouter::executeOnPlugin: volumiodiscovery , saveDeviceInfo
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194592] interfaceApi::pushState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194593] InterfaceWebUI::pushState
Aug 27 20:03:14 sk6-kontor volumio[950]: info: [1503864194650] ------------------------------ 270ms
Aug 27 20:03:14 sk6-kontor volumio[950]: info: Pushing Favourites {"service":"mpd","favourite":false}

Connect:

volumio@sk6-kontor:~$  sudo journalctl -f
-- Logs begin at Sun 2017-08-27 20:01:17 UTC. --
Aug 27 20:08:48 sk6-kontor volumio[950]: info: [1503864528909] CoreStateMachine::pushState
Aug 27 20:08:48 sk6-kontor volumio[950]: info: [1503864528909] CoreStateMachine::getState
Aug 27 20:08:48 sk6-kontor volumio[950]: info: CoreCommandRouter::volumioPushState
Aug 27 20:08:48 sk6-kontor volumio[950]: info: CoreCommandRouter::executeOnPlugin: volumiodiscovery , saveDeviceInfo
Aug 27 20:08:48 sk6-kontor volumio[950]: info: [1503864528912] interfaceApi::pushState
Aug 27 20:08:48 sk6-kontor volumio[950]: info: [1503864528913] InterfaceWebUI::pushState
Aug 27 20:08:48 sk6-kontor volumio[950]: info: [1503864528992] ------------------------------ 260ms
Aug 27 20:08:48 sk6-kontor volumio[950]: info: Pushing Favourites {"service":"mpd","favourite":false}
Aug 27 20:09:19 sk6-kontor sudo[4222]: volumio : TTY=pts/1 ; PWD=/home/volumio ; USER=root ; COMMAND=/bin/journalctl -f
Aug 27 20:09:19 sk6-kontor sudo[4222]: pam_unix(sudo:session): session opened for user root by volumio(uid=0)
Aug 27 20:09:23 sk6-kontor volumio[950]: info: [{"prettyName":"Bluetooth Manager","name":"bluetooth_controller","category":"audio_interface","version":"1.0.0","icon":"fa-bluetooth","enabled":true,"active":true}]
Aug 27 20:09:25 sk6-kontor volumio[950]: info: CoreCommandRouter::getUIConfigOnPlugin
Aug 27 20:09:25 sk6-kontor volumio[950]: info: Discoverable: true
Aug 27 20:09:25 sk6-kontor volumio[950]: info: CALLMETHOD: audio_interface bluetooth_controller getBluetoothDevices [object Object]
Aug 27 20:09:25 sk6-kontor volumio[950]: info: CoreCommandRouter::executeOnPlugin: bluetooth_controller , getBluetoothDevices
Aug 27 20:09:25 sk6-kontor volumio[950]: info: Starting bluetooth device scan
Aug 27 20:09:25 sk6-kontor volumio[950]: info: Found bluetooth devices: {
Aug 27 20:09:25 sk6-kontor volumio[950]: "message": "pushBluetoothDevices",
Aug 27 20:09:25 sk6-kontor volumio[950]: "payload": {
Aug 27 20:09:25 sk6-kontor volumio[950]: "hasBluetooth": true,
Aug 27 20:09:25 sk6-kontor volumio[950]: "devices": [
Aug 27 20:09:25 sk6-kontor volumio[950]: {
Aug 27 20:09:25 sk6-kontor volumio[950]: "mac": "FC:A8:9A:92:E7:1A",
Aug 27 20:09:25 sk6-kontor volumio[950]: "name": "HK Onyx Studio 3",
Aug 27 20:09:25 sk6-kontor volumio[950]: "signal": 0,
Aug 27 20:09:25 sk6-kontor volumio[950]: "paired": "yes",
Aug 27 20:09:25 sk6-kontor volumio[950]: "trusted": "yes",
Aug 27 20:09:25 sk6-kontor volumio[950]: "icon": "audio-card",
Aug 27 20:09:25 sk6-kontor volumio[950]: "class": "0x240414",
Aug 27 20:09:25 sk6-kontor volumio[950]: "blocked": "no",
Aug 27 20:09:25 sk6-kontor volumio[950]: "connected": "no",
Aug 27 20:09:25 sk6-kontor volumio[950]: "trycount": 1
Aug 27 20:09:25 sk6-kontor volumio[950]: },
Aug 27 20:09:25 sk6-kontor volumio[950]: {
Aug 27 20:09:25 sk6-kontor volumio[950]: "mac": "F8:77:B8:B7:B7:03",
Aug 27 20:09:25 sk6-kontor volumio[950]: "name": "[AV] Samsung Soundbar K550 K-Series",
Aug 27 20:09:25 sk6-kontor volumio[950]: "signal": 0,
Aug 27 20:09:25 sk6-kontor volumio[950]: "paired": "yes",
Aug 27 20:09:25 sk6-kontor volumio[950]: "trusted": "yes",
Aug 27 20:09:25 sk6-kontor volumio[950]: "icon": "audio-card",
Aug 27 20:09:25 sk6-kontor volumio[950]: "class": "0x000414",
Aug 27 20:09:25 sk6-kontor volumio[950]: "blocked": "no",
Aug 27 20:09:25 sk6-kontor volumio[950]: "connected": "no",
Aug 27 20:09:25 sk6-kontor volumio[950]: "trycount": 3
Aug 27 20:09:25 sk6-kontor volumio[950]: },
Aug 27 20:09:25 sk6-kontor volumio[950]: {
Aug 27 20:09:25 sk6-kontor volumio[950]: "mac": "FC:A8:9A:C8:45:7F",
Aug 27 20:09:25 sk6-kontor volumio[950]: "name": "HK Onyx Studio 3",
Aug 27 20:09:25 sk6-kontor volumio[950]: "signal": 0,
Aug 27 20:09:25 sk6-kontor volumio[950]: "paired": "yes",
Aug 27 20:09:25 sk6-kontor volumio[950]: "trusted": "yes",
Aug 27 20:09:25 sk6-kontor volumio[950]: "icon": "audio-card",
Aug 27 20:09:25 sk6-kontor volumio[950]: "class": "0x240414",
Aug 27 20:09:25 sk6-kontor volumio[950]: "blocked": "no",
Aug 27 20:09:25 sk6-kontor volumio[950]: "connected": "no",
Aug 27 20:09:25 sk6-kontor volumio[950]: "trycount": 1
Aug 27 20:09:25 sk6-kontor volumio[950]: }
Aug 27 20:09:25 sk6-kontor volumio[950]: ]
Aug 27 20:09:25 sk6-kontor volumio[950]: }
Aug 27 20:09:25 sk6-kontor volumio[950]: }
Aug 27 20:09:30 sk6-kontor volumio[950]: info: CALLMETHOD: audio_interface bluetooth_controller connectBluetoothDevice [object Object]
Aug 27 20:09:30 sk6-kontor volumio[950]: info: CoreCommandRouter::executeOnPlugin: bluetooth_controller , connectBluetoothDevice
Aug 27 20:09:30 sk6-kontor volumio[950]: info: Connecting bluetooth devices: FC:A8:9A:92:E7:1A
Aug 27 20:09:30 sk6-kontor bluetoothd[754]: a2dp-sink profile connect failed for FC:A8:9A:92:E7:1A: Protocol not available
Aug 27 20:09:30 sk6-kontor volumio[950]: info: Change softmixer device for audio device to:FC:A8:9A:92:E7:1A
Aug 27 20:09:30 sk6-kontor volumio[950]: info: Starting bluetooth device scan
Aug 27 20:09:30 sk6-kontor volumio[950]: info: Found bluetooth devices: {
Aug 27 20:09:30 sk6-kontor volumio[950]: "message": "pushBluetoothDevices",
Aug 27 20:09:30 sk6-kontor volumio[950]: "payload": {
Aug 27 20:09:30 sk6-kontor volumio[950]: "hasBluetooth": true,
Aug 27 20:09:30 sk6-kontor volumio[950]: "devices": [
Aug 27 20:09:30 sk6-kontor volumio[950]: {
Aug 27 20:09:30 sk6-kontor volumio[950]: "mac": "FC:A8:9A:92:E7:1A",
Aug 27 20:09:30 sk6-kontor volumio[950]: "name": "HK Onyx Studio 3",
Aug 27 20:09:30 sk6-kontor volumio[950]: "signal": 0,
Aug 27 20:09:30 sk6-kontor volumio[950]: "paired": "yes",
Aug 27 20:09:30 sk6-kontor volumio[950]: "trusted": "yes",
Aug 27 20:09:30 sk6-kontor volumio[950]: "icon": "audio-card",
Aug 27 20:09:30 sk6-kontor volumio[950]: "class": "0x240414",
Aug 27 20:09:30 sk6-kontor volumio[950]: "blocked": "no",
Aug 27 20:09:30 sk6-kontor volumio[950]: "connected": "no",
Aug 27 20:09:30 sk6-kontor volumio[950]: "trycount": 1
Aug 27 20:09:30 sk6-kontor volumio[950]: },
Aug 27 20:09:30 sk6-kontor volumio[950]: {
Aug 27 20:09:30 sk6-kontor volumio[950]: "mac": "F8:77:B8:B7:B7:03",
Aug 27 20:09:30 sk6-kontor volumio[950]: "name": "[AV] Samsung Soundbar K550 K-Series",
Aug 27 20:09:30 sk6-kontor volumio[950]: "signal": 0,
Aug 27 20:09:30 sk6-kontor volumio[950]: "paired": "yes",
Aug 27 20:09:30 sk6-kontor volumio[950]: "trusted": "yes",
Aug 27 20:09:30 sk6-kontor volumio[950]: "icon": "audio-card",
Aug 27 20:09:30 sk6-kontor volumio[950]: "class": "0x000414",
Aug 27 20:09:30 sk6-kontor volumio[950]: "blocked": "no",
Aug 27 20:09:30 sk6-kontor volumio[950]: "connected": "no",
Aug 27 20:09:30 sk6-kontor volumio[950]: "trycount": 3
Aug 27 20:09:30 sk6-kontor volumio[950]: },
Aug 27 20:09:30 sk6-kontor volumio[950]: {
Aug 27 20:09:30 sk6-kontor volumio[950]: "mac": "FC:A8:9A:C8:45:7F",
Aug 27 20:09:30 sk6-kontor volumio[950]: "name": "HK Onyx Studio 3",
Aug 27 20:09:30 sk6-kontor volumio[950]: "signal": 0,
Aug 27 20:09:30 sk6-kontor volumio[950]: "paired": "yes",
Aug 27 20:09:30 sk6-kontor volumio[950]: "trusted": "yes",
Aug 27 20:09:30 sk6-kontor volumio[950]: "icon": "audio-card",
Aug 27 20:09:30 sk6-kontor volumio[950]: "class": "0x240414",
Aug 27 20:09:30 sk6-kontor volumio[950]: "blocked": "no",
Aug 27 20:09:30 sk6-kontor volumio[950]: "connected": "no",
Aug 27 20:09:30 sk6-kontor volumio[950]: "trycount": 1
Aug 27 20:09:30 sk6-kontor volumio[950]: }
Aug 27 20:09:30 sk6-kontor volumio[950]: ]
Aug 27 20:09:30 sk6-kontor volumio[950]: }
Aug 27 20:09:30 sk6-kontor volumio[950]: }
Aug 27 20:09:30 sk6-kontor volumio[950]: info: asoundrc file written
Aug 27 20:09:30 sk6-kontor sudo[4309]: volumio : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/mv /home/volumio/.asoundrc /var/lib/mpd/.asoundrc
Aug 27 20:09:30 sk6-kontor sudo[4309]: pam_unix(sudo:session): session opened for user root by (uid=0)
Aug 27 20:09:30 sk6-kontor sudo[4309]: pam_unix(sudo:session): session closed for user root
Aug 27 20:09:30 sk6-kontor volumio[950]: info: CALLMETHOD: audio_interface bluetooth_controller getBluetoothDevices [object Object]
Aug 27 20:09:30 sk6-kontor volumio[950]: info: CoreCommandRouter::executeOnPlugin: bluetooth_controller , getBluetoothDevices
Aug 27 20:09:30 sk6-kontor volumio[950]: info: Starting bluetooth device scan
Aug 27 20:09:30 sk6-kontor volumio[950]: info: Found bluetooth devices: {
Aug 27 20:09:30 sk6-kontor volumio[950]: "message": "pushBluetoothDevices",
Aug 27 20:09:30 sk6-kontor volumio[950]: "payload": {
Aug 27 20:09:30 sk6-kontor volumio[950]: "hasBluetooth": true,
Aug 27 20:09:30 sk6-kontor volumio[950]: "devices": [
Aug 27 20:09:30 sk6-kontor volumio[950]: {
Aug 27 20:09:30 sk6-kontor volumio[950]: "mac": "FC:A8:9A:92:E7:1A",
Aug 27 20:09:30 sk6-kontor volumio[950]: "name": "HK Onyx Studio 3",
Aug 27 20:09:30 sk6-kontor volumio[950]: "signal": 0,
Aug 27 20:09:30 sk6-kontor volumio[950]: "paired": "yes",
Aug 27 20:09:30 sk6-kontor volumio[950]: "trusted": "yes",
Aug 27 20:09:30 sk6-kontor volumio[950]: "icon": "audio-card",
Aug 27 20:09:30 sk6-kontor volumio[950]: "class": "0x240414",
Aug 27 20:09:30 sk6-kontor volumio[950]: "blocked": "no",
Aug 27 20:09:30 sk6-kontor volumio[950]: "connected": "no",
Aug 27 20:09:30 sk6-kontor volumio[950]: "trycount": 1
Aug 27 20:09:30 sk6-kontor volumio[950]: },
Aug 27 20:09:30 sk6-kontor volumio[950]: {
Aug 27 20:09:30 sk6-kontor volumio[950]: "mac": "F8:77:B8:B7:B7:03",
Aug 27 20:09:30 sk6-kontor volumio[950]: "name": "[AV] Samsung Soundbar K550 K-Series",
Aug 27 20:09:30 sk6-kontor volumio[950]: "signal": 0,
Aug 27 20:09:30 sk6-kontor volumio[950]: "paired": "yes",
Aug 27 20:09:30 sk6-kontor volumio[950]: "trusted": "yes",
Aug 27 20:09:30 sk6-kontor volumio[950]: "icon": "audio-card",
Aug 27 20:09:30 sk6-kontor volumio[950]: "class": "0x000414",
Aug 27 20:09:30 sk6-kontor volumio[950]: "blocked": "no",
Aug 27 20:09:30 sk6-kontor volumio[950]: "connected": "no",
Aug 27 20:09:30 sk6-kontor volumio[950]: "trycount": 3
Aug 27 20:09:30 sk6-kontor volumio[950]: },
Aug 27 20:09:30 sk6-kontor volumio[950]: {
Aug 27 20:09:30 sk6-kontor volumio[950]: "mac": "FC:A8:9A:C8:45:7F",
Aug 27 20:09:30 sk6-kontor volumio[950]: "name": "HK Onyx Studio 3",
Aug 27 20:09:30 sk6-kontor volumio[950]: "signal": 0,
Aug 27 20:09:30 sk6-kontor volumio[950]: "paired": "yes",
Aug 27 20:09:30 sk6-kontor volumio[950]: "trusted": "yes",
Aug 27 20:09:30 sk6-kontor volumio[950]: "icon": "audio-card",
Aug 27 20:09:30 sk6-kontor volumio[950]: "class": "0x240414",
Aug 27 20:09:30 sk6-kontor volumio[950]: "blocked": "no",
Aug 27 20:09:30 sk6-kontor volumio[950]: "connected": "no",
Aug 27 20:09:30 sk6-kontor volumio[950]: "trycount": 1
Aug 27 20:09:30 sk6-kontor volumio[950]: }
Aug 27 20:09:30 sk6-kontor volumio[950]: ]
Aug 27 20:09:30 sk6-kontor volumio[950]: }
Aug 27 20:09:30 sk6-kontor volumio[950]: }
Aug 27 20:09:45 sk6-kontor volumio[950]: info: Stopping bluetooth device scan
Aug 27 20:09:50 sk6-kontor volumio[950]: info: Stopping bluetooth device scan
Aug 27 20:09:50 sk6-kontor volumio[950]: info: Stopping bluetooth device scan

Add this to the Play file

Aug 27 20:21:58 sk6-kontor volumio[950]: info: Stopping bluetooth device scan Aug 27 20:21:58 sk6-kontor volumio[950]: info: Stopping bluetooth device scan Aug 27 20:22:26 sk6-kontor systemd[1]: mpd.service stop-sigterm timed out. Killing. Aug 27 20:22:26 sk6-kontor systemd[1]: mpd.service: main process exited, code=killed, status=9/KILL Aug 27 20:22:26 sk6-kontor systemd[1]: Unit mpd.service entered failed state. Aug 27 20:22:26 sk6-kontor systemd[1]: Starting Music Player Daemon... Aug 27 20:22:26 sk6-kontor sudo[9058]: pam_unix(sudo:session): session closed for user root Aug 27 20:22:26 sk6-kontor systemd[1]: Started Music Player Daemon.

May also add that I have changed values in Playback Options , back and forth , back and forth
Before I took the logfiles I restored the values for my dac and rebooted

Aug 27 20:09:30 sk6-kontor bluetoothd[754]: a2dp-sink profile connect failed for FC:A8:9A:92:E7:1A: Protocol not available

sounds as if bluezalsa service is not running. Have you restated your system after installation?
Could you check the state of it with:

sudo systemctl status bluezalsa.service

Have restarted many many times :slight_smile:

[code]volumio@sk6-kontor:~$ sudo systemctl status bluezalsa.service
● bluezalsa.service - BluezAlsa proxy
Loaded: loaded (/lib/systemd/system/bluezalsa.service; enabled)
Active: failed (Result: exit-code) since Sun 2017-08-27 20:01:26 UTC; 33min ago
Process: 758 ExecStart=/usr/bin/bluealsa --disable-hfp (code=exited, status=203/EXEC)
Main PID: 758 (code=exited, status=203/EXEC)

Aug 27 20:01:26 sk6-kontor systemd[1]: Started BluezAlsa proxy.
Aug 27 20:01:26 sk6-kontor systemd[1]: bluezalsa.service: main process exit…EC
Aug 27 20:01:26 sk6-kontor systemd[1]: Unit bluezalsa.service entered faile…e.
Hint: Some lines were ellipsized, use -l to show in full.
volumio@sk6-kontor:~$
[/code]

With sudo systemctl status bluezalsa.service -l

volumio@sk6-kontor:~$ sudo systemctl status bluezalsa.service -l
● bluezalsa.service - BluezAlsa proxy
   Loaded: loaded (/lib/systemd/system/bluezalsa.service; enabled)
   Active: failed (Result: exit-code) since Sun 2017-08-27 20:01:26 UTC; 40min ago
  Process: 758 ExecStart=/usr/bin/bluealsa --disable-hfp (code=exited, status=203/EXEC)
 Main PID: 758 (code=exited, status=203/EXEC)

Aug 27 20:01:26 sk6-kontor systemd[1]: Started BluezAlsa proxy.
Aug 27 20:01:26 sk6-kontor systemd[1]: bluezalsa.service: main process exited, code=exited, status=203/EXEC
Aug 27 20:01:26 sk6-kontor systemd[1]: Unit bluezalsa.service entered failed state.
volumio@sk6-kontor:~$

something went wrong on start of the service.

please get the log of it.

sudo journalctl -u bluezalsa.service

sudo journalctl -u bluezalsa.service -- Logs begin at Sun 2017-08-27 20:01:17 UTC, end at Sun 2017-08-27 20:54:41 UTC. -- Aug 27 20:01:26 sk6-kontor systemd[1]: Starting BluezAlsa proxy... Aug 27 20:01:26 sk6-kontor systemd[1]: Started BluezAlsa proxy. Aug 27 20:01:26 sk6-kontor systemd[1]: bluezalsa.service: main process exited, code=exited, Aug 27 20:01:26 sk6-kontor systemd[1]: Unit bluezalsa.service entered failed state.

ok can you try to start bluezalsa manually:

sudo /usr/bin/bluealsa --disable-hfp

volumio@sk6-kontor:~$ sudo /usr/bin/bluealsa --disable-hfp
[sudo] password for volumio:
sudo: /usr/bin/bluealsa: command not found
volumio@sk6-kontor:~$

maybe the installation went wrong? I did at factory restore and a upgrade to 2.2XX and then to 2.259 and then the UI and plugin

I can do a new installation tomorrow

Which version do you like me to use ?

Ok I’ll check that tomorrow.

I developed it with version 2.118

Hi, how can I copy the content of the ui.zip to the directory /volumio/http/www ? Should I use SSH? I’m not very applied with linux commands (I usually copy and paste the lines in the terminal). Thanks for the answer and sorry for my inexperience.

@

I updated to current volumio image and got same issues like you. I seems alsa version has changed configuration need to be done in an other way.
I will investigate on it.

On Windows extract the zip to an folder an copy the content with a tool like winscp

Hi Geeks

Did a factory restore again to ver 2.185 and tried a new install of the plugin but the install hangs

[code]volumio@sk6-kontor:~$ sudo systemctl status bluezalsa.service
● bluezalsa.service - BluezAlsa proxy
Loaded: loaded (/lib/systemd/system/bluezalsa.service; enabled)
Active: inactive (dead)

Aug 28 20:19:22 sk6-kontor systemd[1]: Dependency failed for BluezAlsa proxy.

volumio@sk6-kontor:~$ sudo journalctl -u bluezalsa.service
– Logs begin at Mon 2017-08-28 20:19:16 UTC, end at Mon 2017-08-28 20:22:57 UTC
Aug 28 20:19:22 sk6-kontor systemd[1]: Dependency failed for BluezAlsa proxy.

volumio@sk6-kontor:~$
volumio@sk6-kontor:~$ sudo /usr/bin/bluealsa --disable-hfp
[sudo] password for volumio:

sudo: /usr/bin/bluealsa: command not found
volumio@sk6-kontor:~$
[/code]
Install-blue.png

Hi Geeks
Did another attempt today , the install went through without any halts or error , but the end result is the same :frowning:

Today I implemented a working solution to connect bt speaker with mpd that works in the 2.259 environment.
I will clean it up and commit a pull request for the changed mpd plugin.
While this is in progress I have a look on the installation issue.

Hi geeks-r-us!

Thanks a lot for your plugin.

I have 2 questions :

  • Once it is configured, how to set the playback option? Should I have a new entry? I configured it, but it plays nothing. I see no noticeable error.

  • Is it possible to play on a hifiberry DAC card and stream to bluetooth speaker in the same time, is it possible? Or is it the DAC, or the bluetooth speaker?
    The use case is to keep my volumio in the living room, and move the bluetooth speaker in a second room to have a kind of multiroom

Best regards