I have a raspberry pi/openhab installation that will become unresponsive. After a day or so I cannot log into the raspberry pi using putty. I was thinking it was the wireless chip so I added a cron job to reset the wlan but it did not help at all.
if [ “$ret” == “0” ]; then
sudo ifdown wlan0 && sudo ifup wlan0
echo “Try Reconnect: $?, $time” | tee -a $LogFile
else
if [ “$LogAll” == “true” ]; then
echo “Network is ok, ret = $ret, $time” | tee -a $LogFile
fi
fi
Try a better power source. This behavior is often, though not always, caused by a power source that is not quite as clean or powerful enough to keep the RPi going.
I switched over to an ethernet connection and the problem seems to be fixed. The wireless could ping and connect to the outside world but nothing could connect into the raspberry pi. It is a really odd problem with the wireless driver