Home of the Squeezebox™ & Transporter® network music players.
Page 27 of 27 FirstFirst ... 17252627
Results 261 to 268 of 268
  1. #261
    Junior Member
    Join Date
    Dec 2017
    Posts
    12

    PiCorePlayer 5.0 fresh install with sbpd

    Hi,

    after two trials with fresh PiCorePlayer 5.0 setup and sbpd (from piCorePlayer repository) - cannot get it working:

    sudo /usr/local/sbin/sbpd -d -s b,24,POWR,2,0,NEXT,300

    Command returns without error, but button is not working. Same command line with PiCorePlayer 4.1 is working fine.

    Next try: Upgrade Install from 4.1 ... Tried: No good way (squeezlite not starting).

    Any help?

    thanks and regards
    Aki
    Last edited by Aki7; 2019-10-04 at 04:31.

  2. #262
    Quote Originally Posted by Aki7 View Post
    Hi,

    after two trials with fresh PiCorePlayer 5.0 setup and sbpd (from piCorePlayer repository) - cannot get it working:

    sudo /usr/local/sbin/sbpd -d -s b,24,POWR,2,0,NEXT,300

    Command returns without error, but button is not working. Same command line with PiCorePlayer 4.1 is working fine.

    Next try: Upgrade Install from 4.1 ... Tried: No good way (squeezlite not starting).

    Any help?

    thanks and regards
    Aki
    Maybe you could try to run the command with verbose (-v) to see if the button presses are actually registered.

    sudo /usr/local/sbin/sbpd -d -v -s b,24,POWR,2,0,NEXT,300

    Br Jursi

  3. #263
    Junior Member
    Join Date
    Dec 2017
    Posts
    12
    Hi Jursi,

    thanks.

    tc@pcTest5:~$ sudo /usr/local/sbin/sbpd -v b,24,POWR,2,0,NEXT,300
    ...
    1570738211.9278 6 GPIO.c,312: Initializing GPIO
    1570738211.9287 3 sbpd.c,202: Could not connect to pigpiod. Is it running?

    Seems pigpiod is missing. Tried installing pigpio-dev.tcz from the pcp-repository without success (after reboot):

    ..
    1570738751.0564 6 GPIO.c,312: Initializing GPIO
    1570738751.0578 3 sbpd.c,202: Could not connect to pigpiod. Is it running?

    Ok, just found your script in this threat, tested, but seems to accept the POWR button only once - switches off.
    Long keypress is working (NEXT) and short keypress (POWR) is working after it. But after this no more acceptance of any key press.
    Can switch back to "On" via browser interface, but audio is at very slow speed after it (low pitch).
    So something special happens after POWR-button (off) with pcp 5.0

    Regards Aki
    Last edited by Aki7; 2019-10-10 at 13:40.

  4. #264
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Posts
    1,222
    Quote Originally Posted by Aki7 View Post
    1570738211.9287 3 sbpd.c,202: Could not connect to pigpiod. Is it running?

    Seems pigpiod is missing. Tried installing pigpio-dev.tcz from the pcp-repository without success (after reboot):
    It's not missing, but you have to load it before you call sbpd. See this post above.

  5. #265
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Posts
    1,222
    Quote Originally Posted by Aki7 View Post
    Ok, just found your script in this threat, tested, but seems to accept the POWR button only once - switches off.
    Long keypress is working (NEXT) and short keypress (POWR) is working after it. But after this no more acceptance of any key press.
    Can switch back to "On" via browser interface, but audio is at very slow speed after it (low pitch).
    So something special happens after POWR-button (off) with pcp 5.0
    That doesn't seem right. The default sbpd_commands.cfg has an entry for the POWR command that simply toggles the player's 'soft' power. Is it possible that you are instead calling a shutdown script? What does your sbpd_commands.cfg look like?

  6. #266
    Junior Member
    Join Date
    Dec 2017
    Posts
    12
    chill,

    thanks.

    justed started again with fresh pcp 5.0
    installed pcp-sbpd.tcz from pcp-repo, reboot.
    sudo pigpiod - this time player stops playing
    soft power on via browser - playing again, but with low pitch (slow) sound

    sudo vi sbpd_commands.cfg - seems to be empty
    Do i have to copy it from .. ?

    give up for tonight.

    regards Aki

  7. #267
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,159
    Quote Originally Posted by Aki7 View Post
    soft power on via browser - playing again, but with low pitch (slow) sound
    This sounds like you have interfaced a button with a GPIO that is being used by your DAC. What DAC are you running ?
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  8. #268
    Junior Member
    Join Date
    Dec 2017
    Posts
    12
    Paul,

    Thanks, same HW-setup is running fine with pcp 4.1

    Pi 3b+
    Allo boss

    Regards Aki

Posting Permissions

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