Dropped wifi brewblox

is there a preferred way for me to configure my raspberrypi/brewblox to reconnect to wifi if the signal has been dropped? I know on the old brewpi I used a wifi checker script or something like that. I have a spark V2 connected to raspberry pi via usb.

This should not be necessary. It should all reconnect automatically.

The WiFi checker script was a workaround for when the pi had trouble with this, but I think this has been resolved.

Hmm. Ok. For some reason I am not seeing the pi on my network anymore and it is not Reconnecting automatically.

Unplugged and plugged back in then. Ssh into pi and rerun brewblox-ctl up.

Would be nice not have to go through these steps in the future. If anyone can think of a workaround let me know.

Is it possible that it connected to an unknown wifi network?

BrewBlox already is configured to restart when you unplug/reboot the Pi without explicitly running ctl down.

It is theoretically possible that the Pi picked a different Wifi network, but this would require there is an (unsecured) wifi network nearby the Pi earlier connected to.

Ok. Good to know that brewblox launches when the pi reboots.

I’m kind of at a loss on the wifi issue. It should only have ever connected to my home network.

Problem with the wifi dongle?

Are you running a recent version of raspbian?

Next time try only unplugging the dongle. Unplugging the power without shutting down can cause file system corruption.

Maybe this will help for your dongle:

That’s a good thought. Might be my problem there. That link has some instructions to edit /etc/network/interfaces file however: mine looks like this which is quite a bit different from the example in that particular guide:

# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

So, I am not sure how to disable the power management since it looks like the guide was written for a different configuration. Any help would be greatly appreciated.


iwconfig | grep “Power Management”

showed that power management is off

In the directory interfaces.d you will have a file that looks like that I think.

Your file just includes all files in that directory.

What is the output of iwconfig?

This command will disable power save if it is enabled.

sudo /sbin/iw dev wlan0 set power_save off

eth0 no wireless extensions.

vethab4d0bc no wireless extensions.

veth8c31024 no wireless extensions.

lo no wireless extensions.

vethdce34c5 no wireless extensions.

docker0 no wireless extensions.

veth471900f no wireless extensions.

wlan0 IEEE 802.11 ESSID:“Matt’s Network”
Mode:Managed Frequency:2.442 GHz Access Point: 92:3B:AD:2B:7D:89
Bit Rate=150 Mb/s Tx-Power=20 dBm
Retry short limit:7 RTS thr=2347 B Fragment thr:off
Power Management:off
Link Quality=54/70 Signal level=-56 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:1066 Missed beacon:0

veth49b5f5a no wireless extensions.

vethe8978ba no wireless extensions.

br-98994979fe5e no wireless extensions.

vethfdcfd22 no wireless extensions.

so, power management not the cause for losing wifi correct?

No, looks fine. Link quality also looks fine.

If you can, disable automatic channel switching on your router and choose a fixed channel.
And make sure the country is configured correctly on your pi.

The tool wicd-curses might help with configuring all the settings.