Auto-use fails after a random time

Hi Michael,

I have to bother you again with another question. I am using Virtualhere on 10 Raspberry Pis. Seven are RasPis 2B+ and the other three are RasPis 3 B 1.2. All are connected fine over a VPN to a windows machine. All are on auto-use, to enable a scheduled task on the windows machine to download data once an hour. That works absolutely fine for the Raspberry Pi 2. But all three Raspberry Pi 3 are losing the "auto-use" option after a while, and therefore no data is downloaded.
Do you have an idea what could cause this and how I might be able to fix that?

Thanks,
BallerNacken

#2

The Auto-Use will be turned off if there is an error using the device. This is to prevent an infinite loop.

Take a look in the syslog of the raspberrypi 3's and see what the error says. It might be "BIND ERROR" or error resetting.. or something similar.

My guess is the vpn connection drops, the device is stopped being used server side, the connection comes back up and the client requests to use the device because of its "Auto-Use..." setting and that causes an error on the pi3 server side and hence the client turns that setting off.

#3

You might be right here. Just found that in dmesg:

[32508.184686] usb 1-1.4: reset full-speed USB device number 4 using dwc_otg
[32569.933958] brcmfmac: brcmf_sdio_hdparse: seq 177: sequence number error, expect 176
[32569.934076] brcmfmac: brcmf_sdio_hdparse: seq 176: sequence number error, expect 178
[32569.934509] brcmfmac: brcmf_sdio_hdparse: seq 178: sequence number error, expect 177
[32581.993993] brcmfmac: brcmf_sdio_hdparse: seq 206: sequence number error, expect 205
[32581.994114] brcmfmac: brcmf_sdio_hdparse: seq 205: sequence number error, expect 207
[32581.995000] brcmfmac: brcmf_sdio_hdparse: seq 207: sequence number error, expect 206
[32588.033825] brcmfmac: brcmf_sdio_hdparse: seq 94: sequence number error, expect 93
[32588.033936] brcmfmac: brcmf_sdio_hdparse: seq 93: sequence number error, expect 95
[32588.034363] brcmfmac: brcmf_sdio_hdparse: seq 95: sequence number error, expect 94
[32600.109565] brcmfmac: brcmf_sdio_hdparse: seq 163: sequence number error, expect 162
[32600.109692] brcmfmac: brcmf_sdio_hdparse: seq 162: sequence number error, expect 164
[32600.110139] brcmfmac: brcmf_sdio_hdparse: seq 164: sequence number error, expect 163
[33281.244815] brcmfmac: brcmf_sdio_hdparse: seq 60: sequence number error, expect 59
[33281.244923] brcmfmac: brcmf_sdio_hdparse: seq 59: sequence number error, expect 61
[33281.245356] brcmfmac: brcmf_sdio_hdparse: seq 61: sequence number error, expect 60

It looks like the onboard WiFi is losing connection due to packets not coming in in the correct order and that comfuses the wifi driver. I will switch to a WiFi dongle and see if that fixes the issue.