Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Nov 2019
    Posts
    9

    Reconnect wifi if connection lost

    Hi,
    I'm running PcP on a PiZero as a client.
    There are 2 servers available running the LMS.

    I set up the wpa_supplicant.conf for multiple networks and assigned different priorities for the Zero to connect to.
    Code:
    network={
            ssid="Network1"
            psk="password1"
            key_mgmt=WPA-PSK
            auth_alg=OPEN
                    priority=2
    }
    network={
            ssid="Network2"
            psk="password2"
            key_mgmt=WPA-PSK
            auth_alg=OPEN
                    priority=1
    }
    network={
            ssid="Network3"
            psk="password3"
            key_mgmt=WPA-PSK
            auth_alg=OPEN
                    priority=3
    }
    This works, but if the primary WiFi is lost, the Zero will not connect to the other available net.
    It will also not reconnect if the primary net is available once again.

    Is this the intended behavior or is something going wrong?

    There are many solutions to force a reconnect but I can't determine if they're necessary any more.
    Last edited by H34dl3ss; 2019-11-28 at 04:31.

  2. #2
    Junior Member
    Join Date
    Nov 2019
    Posts
    9
    I worked myself through the man of wpa_supplicant.conf.
    The options I found most promising were:
    Code:
    autoscan=<autoscan module name>:<module parameters>
    and
    Code:
    sched_scan_plans=<interval:iterations>
    Unfortunately they didn't help in reestablishing a lost connection.

    Then I found this post about WiFi roaming.
    Setting up the wpa_supplicant.conf is OK, but I can't find
    Code:
    /etc/network/interfaces

  3. #3
    Junior Member
    Join Date
    Nov 2019
    Posts
    9
    Nobody???

    Where is /etc/network/interfaces in pCP?

  4. #4
    Junior Member
    Join Date
    Jun 2016
    Location
    Bretagne
    Posts
    5
    Quote Originally Posted by H34dl3ss View Post
    Nobody???

    Where is /etc/network/interfaces in pCP?
    In Tinycore Linux I believe its done that is static stuff in /opt/eth0.sh

    maybe this is of some use:
    https://iotbytes.wordpress.com/assig...re-tiny-linux/

  5. #5
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,359
    There is not a network manager in pCP.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  6. #6
    Junior Member
    Join Date
    Nov 2019
    Posts
    9
    Thanks for your replies!
    Knowing that, I tried to find some answers to the problem.

    Considering the findings, it seems, nobody cares about reconnecting.
    This guy says, that wpa_supplicant will automatically try to reconnect.

    Paul-, you wrote the same in the other thread.

    For me, it does not.
    How can I troubleshoot this?
    Where, in what log, would I find errors from unsuccessful reconnecting attempts?

    Edit:
    Maybe some of you guys can verify if your devices do an automatic reconnect?
    Just to confirm wether it's a fault on my side or a general issue. Maybe another implementation in pCP.
    Last edited by H34dl3ss; 2019-12-12 at 04:07.

  7. #7
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,359
    What wifi stick are you using? or RPI internal wifi?
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  8. #8
    Junior Member
    Join Date
    Nov 2019
    Posts
    9
    It is the internal WiFi of the RPi zero.

Posting Permissions

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