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

    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
    7
    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
    7
    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,350
    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

Posting Permissions

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