connection drops every 20 minutes

<p>Hello,
</p>
<p>I am observing a strange behavior on a raspberry pi zero w.
</p>
<p>OS: dietpi
</p>
<p>raspberry pi (A) connects in a IOT WIFI network (192.168.88.x/24).
</p>
<p>My client computer Windows 10 (B) is in a wired network (192.168.10.x/24)<br />
the networks are connected via a PFSense firewall.
</p>
<p>Firewall-Rules B -> A : TCP 22, TCP 7575, ICMP
</p>
<p>Directly after a fresh installation I can connect from the client (A) to the pi (B) via ssh and start a PING from A to B at the same time. The connection is stable, without failures. (tested up to 120 minutes)
</p>
<p>i then start vhusb on (B) and connect on (A) the client. i can use a connected USB stick.
</p>
<p>But from now on the connection breaks exactly every 20 minutes. also the ssh connection / ping are interrupted. after about 10 seconds the connection is re-established.<br />
in the logfile of vhusb it says "timeout". No other logs.
</p>
<p>i realize that it's probably not a problem with vhusb, but since the connection is stable without vhusb and i just have no idea anymore, i'm grateful for any hint.
</p>
<p>Thank you,</p>

#2

Is there anything in dmesg around the time it drops?

Also what is the usb device you are using via virtualhere?

Some things to consider'
-> How much power does the usb device draw? Maybe there is a power supply limiting issue when it performs some function.
-> If the USB device is a radio type device e.g bluetooth dongle, wifi dongle maybe there is radio interference at some point

#3

Thank you for your suggestions!

Just checked again the logs.
Last entry in kernel-log is at 07:41 (probably end of boot). First drop at 08:12

Jan 04 07:53:01 DietPi vhusbdarm[823]: >>> Starting VirtualHere USB Server v4.3.5 (Built: Dec 15 2021, 07:33:18)<<<
Jan 04 07:53:01 DietPi vhusbdarm[823]: Using configuration /opt/config.ini
Jan 04 07:53:01 DietPi vhusbdarm[824]: Server licensed to=unlicensed max_devices=1
Jan 04 07:53:01 DietPi vhusbdarm[824]: Using large URB's
Jan 04 07:53:01 DietPi vhusbdarm[824]: Listening on all network interfaces at TCP port 7575
Jan 04 07:53:02 DietPi vhusbdarm[824]: 192.168.10.24 connected as connection 1
Jan 04 08:12:28 DietPi vhusbdarm[824]: Connection 1 successfully removed (reason:timeout)
Jan 04 08:13:26 DietPi vhusbdarm[824]: 192.168.10.24 connected as connection 2

Also what is the usb device you are using via virtualhere?

at the moment i don't use any usb device. for testing i just start vhusb and connect the client. the client shows an empty usb server.
but i will replace the power supply just to be sure.

#4

to speed this up. i have now alternatively connected the client to the same wifi network as the server.
the connection is now stable. so it has to be some security feature of the firewall.