Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Senior Member
    Join Date
    Feb 2013
    Posts
    114

    piCorePlayer & wifi - any way to enforce?

    I have a few pi running picoreplayers with wifi.
    When they boot, they get the wifi dongle on, and try to reach the hotspot

    "trying to discover"

    They try 3 times, then resort to trying wired Ethernet.
    But they are not connected through wire.

    Sometimes it "discover" on 1st or 2nd try, but sometimes I feel they could use 4 or 5. And then they don't reach the server.

    Is there a way to augment the number of tries?

  2. #2
    Is pCP starting rngd at boot by default now? I know I see a lot of boot time wifi flakiness if rngd isn't running before wpa_supplicant, both on rpi's and most recently on a x86_64 laptop I reloaded.

  3. #3
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,513
    No we aren't running rngd, I don't see any flakiness.

    This issue is likely a signal strength issue. Can you connect with ethernet, then run wifi diagnostics?
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  4. #4
    Senior Member
    Join Date
    Feb 2013
    Posts
    114
    Quote Originally Posted by paul- View Post
    No we aren't running rngd, I don't see any flakiness.

    This issue is likely a signal strength issue. Can you connect with ethernet, then run wifi diagnostics?
    To run Ethernet, I'd have to reposition the players. Would that still be interesting tests?

    If so, what diagnostics are we looking for?

  5. #5
    Senior Member M-H's Avatar
    Join Date
    Oct 2016
    Posts
    154
    Marsupial,

    See if you can relocate the wifi based pi players to somewhere near the AP.
    I run 3 wifi players with <3 dollar USB nics and have no issues except I had to wire the main PI with the LMS for BW reasons. ( synchonized HD-audio playback )
    So by eliminating the distance/signal quality we can zoom in on the issue at hand.

    Regards M-H
    Pi based multi-room audio system powered by PiCorePlayer(s):
    Pi3B with Phat-dac in a Rasptouch, 2 pi B+ with Cirrus Logic Audio Card, Pi Zero with Phat-beat , and a few other tests...

  6. #6
    Senior Member
    Join Date
    Feb 2013
    Posts
    114
    Right now, the wifi is in the ceiling/floor in the basement, while the players are on rooms just above. It's already pretty close.

  7. #7
    Quote Originally Posted by paul- View Post
    No we aren't running rngd, I don't see any flakiness.
    Not trying to be argumentative and I realize that lots of people use pCP over wifi with no issues, including yourself, but I've had a bunch of issues with wifi that rngd fixed, starting with hostapd but also with basic client connections so I don't run my pi's without installing rng-tools now. I don't see the downside to including it in pCP?

    Here's a few links that support my position:
    https://www.reddit.com/r/archlinux/c..._more_entropy/
    https://gitlab.alpinelinux.org/alpin...s/issues/10025
    https://www.spinics.net/lists/hostap/msg06116.html
    https://forums.gentoo.org/viewtopic-...0-start-0.html

    To be clear, the wifi problems I've seen weren't on pCP since I don't use it, though the hostapd issue I had was on vanilla piCore.
    Last edited by sodface; 2020-01-03 at 20:24.

  8. #8
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,513
    Never seen the issues talked about there. There is some commentary about that happening with kernels 4.16-4.18.

    But to prove the point, I wrote a script to exhaust all data from /dev/random, and left it trying to get more. Then I started wifi, and connected just fine.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  9. #9
    Senior Member
    Join Date
    Feb 2013
    Posts
    114
    Back to the main topic, is there a way to force the boot-up process to wait for successful wifi, or to increase the number of tries it does before abandoning?

    When it's not on wifi, it won't work so I end up rebooting it. Not that it's a big issue, but I'd like something that works all the time so I don't teach the kids to just reboot the box every time

  10. #10
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,513
    What version of pCP are you using?
    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
  •