Bluetooth Speaker Plugin

Discuss, contribute and orient Volumio development!

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

Bluetooth Speaker Plugin

Postby geeks-r-us » Sat Aug 26 2017 21:24

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
Last edited by geeks-r-us on Sat Jan 06 2018 00:23, edited 3 times in total.
Visit my blog about this and other DIY projects: http://www.geeks-r-us.de
If you like my plugins you can support me by buying me some coffee: https://www.buymeacoffee.com/YdV7B1rex
Random avatar
geeks-r-us
Serious Listener
Serious Listener
 
Posts: 61
Joined: Tue Apr 18 2017 22:28

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


Bluetooth Speaker Plugin

Postby SonosKiller » Sun Aug 27 2017 13:48

Hi

Maybe an early stage for a newbie to try !? but i'm a bit curious ;)
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
Attachments
alsaerror-blue.png
alsaerror-blue.png (412.73 KiB) Viewed 17178 times
Random avatar
SonosKiller
Objectivist
Objectivist
 
Posts: 242
Joined: Sun Jun 26 2016 11:41


Bluetooth Speaker Plugin

Postby geeks-r-us » Sun Aug 27 2017 19:19

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
Visit my blog about this and other DIY projects: http://www.geeks-r-us.de
If you like my plugins you can support me by buying me some coffee: https://www.buymeacoffee.com/YdV7B1rex
Random avatar
geeks-r-us
Serious Listener
Serious Listener
 
Posts: 61
Joined: Tue Apr 18 2017 22:28


Bluetooth Speaker Plugin

Postby SonosKiller » Sun Aug 27 2017 20:13

Play:
Code: Select all
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:

Code: Select all
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
Random avatar
SonosKiller
Objectivist
Objectivist
 
Posts: 242
Joined: Sun Jun 26 2016 11:41


Bluetooth Speaker Plugin

Postby SonosKiller » Sun Aug 27 2017 20:24

Add this to the Play file

Code: Select all
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
Last edited by SonosKiller on Sun Aug 27 2017 20:32, edited 1 time in total.
Random avatar
SonosKiller
Objectivist
Objectivist
 
Posts: 242
Joined: Sun Jun 26 2016 11:41


Bluetooth Speaker Plugin

Postby geeks-r-us » Sun Aug 27 2017 20:28

Code: Select all
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
Visit my blog about this and other DIY projects: http://www.geeks-r-us.de
If you like my plugins you can support me by buying me some coffee: https://www.buymeacoffee.com/YdV7B1rex
Random avatar
geeks-r-us
Serious Listener
Serious Listener
 
Posts: 61
Joined: Tue Apr 18 2017 22:28


Bluetooth Speaker Plugin

Postby SonosKiller » Sun Aug 27 2017 20:35

Have restarted many many times :)

Code: Select all
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:~$
Random avatar
SonosKiller
Objectivist
Objectivist
 
Posts: 242
Joined: Sun Jun 26 2016 11:41


Bluetooth Speaker Plugin

Postby SonosKiller » Sun Aug 27 2017 20:43

With sudo systemctl status bluezalsa.service -l

Code: Select all
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:~$
Random avatar
SonosKiller
Objectivist
Objectivist
 
Posts: 242
Joined: Sun Jun 26 2016 11:41


Bluetooth Speaker Plugin

Postby geeks-r-us » Sun Aug 27 2017 20:45

something went wrong on start of the service.

please get the log of it.

sudo journalctl -u bluezalsa.service
Visit my blog about this and other DIY projects: http://www.geeks-r-us.de
If you like my plugins you can support me by buying me some coffee: https://www.buymeacoffee.com/YdV7B1rex
Random avatar
geeks-r-us
Serious Listener
Serious Listener
 
Posts: 61
Joined: Tue Apr 18 2017 22:28


Bluetooth Speaker Plugin

Postby SonosKiller » Sun Aug 27 2017 20:55

Code: Select all
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.
Random avatar
SonosKiller
Objectivist
Objectivist
 
Posts: 242
Joined: Sun Jun 26 2016 11:41

Next

Return to Development talks

Who is online

Users browsing this forum: No registered users and 0 guests