Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 8 of 8
  1. #1

    Keep Bluetooth Connection alive

    Hello,
    i am using piCorePlayer v8.1.0 on a Raspberry Zero together with LMS Server 8.2.0 on a Raspberry PI4.
    When i connect via Bluetooth to my Speaker everything runs fine. But when i Stop the Music with the "Pause" button after a minute the Playermode goes to "Stop".
    And when the Player is in Stop the Bluetooth gets disconnected after about an hour.
    Does anyone have an idea how to keep the Bluetooth connected all the time, even in Pause or Stop mode?
    This is part of my log:
    Code:
    12-12 16:47 CET INFO     ---- Caught Disconnect signal ----
    12-12 16:47 CET DEBUG       HCI: hci0
    12-12 16:47 CET INFO        MAC: F4:4E:FC:FC:A2:96
    12-12 16:47 CET INFO        TRANSPORT: hfpag
    12-12 16:47 CET INFO     ---- Caught Disconnect signal ----
    12-12 16:47 CET DEBUG       HCI: hci0
    12-12 16:47 CET INFO        MAC: F4:4E:FC:FC:A2:96
    12-12 16:47 CET INFO        TRANSPORT: hfpag
    12-12 16:47 CET INFO     ---- Caught Disconnect signal ----
    12-12 16:47 CET DEBUG       HCI: hci0
    12-12 16:47 CET INFO        MAC: F4:4E:FC:FC:A2:96
    12-12 16:47 CET INFO        TRANSPORT: a2dpsrc
    12-12 16:47 CET INFO        Sending Poweroff command for ZK606 to LMS at 192.168.1.197
    12-12 16:47 CET DEBUG       Command returned: {}
    12-12 16:47 CET INFO        Disconnected ZK606
    12-12 16:47 CET INFO        Removing bt_ZK606 from asound.conf

  2. #2
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,597
    There is nothing in pCP that would make a device disconnect. Is the device is going to sleep with nothing being transmitted?
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  3. #3
    Thanks for your reply
    ok, good to know its not a feature/bug from picorePlayer.
    So it must be the speaker...
    There is nothing in the instruction of the speaker about something like this. I dont know exactly. I also tried to keep them alive with sending a 2 second stream with silence every 20 minutes.

    Did not work.

    greetings Patrick

  4. #4
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,597
    Not a feature, but certainly could be a bug. I'm assuming if you are playing music, the connection stays live well longer than 30 minutes.

    How did you play a 2second stream?
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  5. #5
    i played the 2 second stream via Iobroker Adapter (Homeautomation System). The Homeautomation System set a command "cmdPlayFavorite" every 10 minutes.
    Now i'm using a 10 second mp3 created with Audacity. That stream includes 5 seconds silence, then a tiny "klick" and 4 seconds silence. Sent the same way like before every 8 minutes via IoBroker to keep the connection open.
    At the beginning it looked good, but connection is closed again. Now i' reducing the pause between the Signal from 8 to 5 minutes and start to monitor.

    greetings Patrick

  6. #6
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,597
    Bluetooth is probably prone to disconnections over time, you could always monitor dbus and reconnect the device if it sees it disconnect.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  7. #7
    Thanks for your help.
    I think you are right, its to prone.
    I think i follow my original Plan to use speakers by wire. RaspberryZero->AmpHat->Speaker. So i must wait till the JustBoomAmp Zero is available again.
    Thanks Patrick

  8. #8
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,597
    I've not seen those boards in stock for a while. Good luck.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •