ping -c pi_address and at times get 0% packet loss. But every minute or so, the same command returns 100% packet loss, leading me to believe that the internet connection is unstable on my unit. When I'm connected via eternet, everything works fine. It's only when I'm using wifi I run into unstable connection. My unit is RPi 4 (8 GB) with latest raspberry pi OS lite 32-bit (Kernal 4.19, Version May 2020).
Another observation is, if I use
ping pi_address to continuously ping my Pi, my wifi connection seems to be stable (?) and typing command on my Pi through SSH terminal seems responsive. Is this an issue of my wifi card going to sleep after
N seconds of inactivity?
Also, as soon as I stop
ping pi_address my SSH connection drops (i.e., I can't type anything in the terminal to my Raspberry Pi). It drops almost immediately.