Home of the Squeezebox™ & Transporter® network music players.
Page 28 of 34 FirstFirst ... 182627282930 ... LastLast
Results 271 to 280 of 335
  1. #271
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,155
    Start pigpiod with the -t 0 option.

    http://abyz.me.uk/rpi/pigpio/pigpiod.html
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  2. #272
    Junior Member
    Join Date
    Nov 2019
    Posts
    2
    Self-update:

    I found this https://forums.pimoroni.com/t/issue-...oode-6-3/11875

    I did what they sort of recommended, issuing the pigpiod command with -t 0, which turns the clock from PCM to PWM. This solved all of my previous issues and sound now plays normally across all devices, buttons & encoders work, etc. YAY!

    Note that unlike the user in that post, i don't utilize an IR remote, so that issue is of no impact to me.

    However, i'm not sure if this has other repercussions or was the intended behavior? Someone with more knowledge than me may be able to answer. I just got a little worried when i read the final comment: "Iĺm thinking the use of any DAC for sound is going to have the same problem, they all use i2s, as far as I know anyway." (and i'm pretty sure the vast majority of the DAC options use i2s).

  3. #273
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,155
    All i2s dacs are going to use PCM. Those using the internal RPI audio are using PWM. Not sure if USB is affected by either clock.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  4. #274
    Junior Member
    Join Date
    Jan 2019
    Posts
    3

    It works!

    Quote Originally Posted by Krazystar View Post
    I did what they sort of recommended, issuing the pigpiod command with -t 0, which turns the clock from PCM to PWM. This solved all of my previous issues and sound now plays normally across all devices, buttons & encoders work, etc. YAY!
    Thanks Krazystar & paul - that did the trick. Now everything works again. (I also had to change the command from VOLM to VOLU - when did that change?)

  5. #275
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,155
    Quote Originally Posted by DOliana View Post
    (I also had to change the command from VOLM to VOLU - when did that change?)
    I think I changed it as I needed to keep some code separated, then when I merged it, I changed everything to the new value......as that was the easier change at that time.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  6. #276
    Junior Member
    Join Date
    Jan 2020
    Posts
    3

    More than one rotary encoder?

    Is it possible to run more than one rotary encoder with spbd? I need to control volume and want to step through a menue.

  7. #277
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,155
    It should work fine. I think Chill did some tests with 2.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  8. #278
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    1,652
    Quote Originally Posted by paul- View Post
    It should work fine. I think Chill did some tests with 2.
    Not me - Jursi.

  9. #279
    Member
    Join Date
    Apr 2019
    Location
    Finland
    Posts
    62
    Quote Originally Posted by jofland View Post
    Is it possible to run more than one rotary encoder with spbd? I need to control volume and want to step through a menue.
    Yes, it is possible!

  10. #280
    Junior Member
    Join Date
    Feb 2020
    Posts
    6

    Server timeout?

    Hi there,
    I am trying to get this working on a Pi zero. I used chills script and when looking on verbose output, I can see the button is registered and a command seems to be send to the server.

    Code:
    1581350083.4460 6 sbpd.c,307: Options parsing: Set verbose mode
    1581350083.4475 6 sbpd.c,342: Options parsing: Manually set http address 192.168.2.9
    1581350083.4482 6 sbpd.c,496: Using builtin button configuration
    1581350083.4490 6 control.c,108: Adding Command PLAY: Fragment ["pause"]
    1581350083.4511 6 control.c,108: Adding Command VOL+: Fragment ["button","volup"]
    1581350083.4526 6 control.c,108: Adding Command VOL-: Fragment ["button","voldown"]
    1581350083.4560 6 control.c,108: Adding Command PREV: Fragment ["button","rew"]
    1581350083.4573 6 control.c,108: Adding Command NEXT: Fragment ["button","fwd"]
    1581350083.4574 6 control.c,108: Adding Command POWR: Fragment ["button","power"]
    1581350083.4575 6 GPIO.c,312: Initializing GPIO
    1581350083.4768 6 control.c,262: Button defined: Pin 11, BCM Resistor: up, Short Type: LMS, Short Fragment: ["pause"] , Long Type: unused, Long Fragment: (null), Long Press Time: 3000
    1581350083.4904 6 discovery.c,385: MAC address found: b8:22:eb:45:bc:3e
    1581350083.4919 6 servercomm.c,176: Initializing CURL
    1581350083.5676 6 sbpd.c,255: Starting main loop polling
    1581350091.4959 6 GPIO.c,107: Short PRESS: 316
    1581350091.4960 6 control.c,134: Button CB set for button #:0, gpio pin 11
    1581350091.5851 6 control.c,276: Button pressed: Pin: 11, Press Type:Short
    1581350091.5852 6 servercomm.c,74: Send Command:0, Fragment:["pause"]
    However nothing happens. Sometimes I got a timeout error message:
    Code:
    1581347930.8281 6 servercomm.c,134: Curl Error: (28) 
    1581347930.8282 6 servercomm.c,136: Connection timed out after 5001 milliseconds
    The command I use to start sbpd is
    Code:
    sbpd -v -A 192.168.2.9 b,11,PLAY,2,0
    Is there a way to see the curl command being generated? Or has anyone another idea why this is not working?
    Chris

Posting Permissions

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