Wifi-usb ssh connection drops when connecting more then 3 Azure Kinekts, multiple Azures connection to Jetson

Hello! I have a Jetson nano dev board with nvidia-jetpack 4.5.1-b17 and Ubuntu 18.04.5 LTS and 5V 4A Power Supply Charger Adapter. My goal is to connect 4 Azure Kinekts and do a frame capture - it does not need to be a real-time, so I have created a code that turns on and off each of the Kinekts one by one and captures a frame.

I have set up a headless ssh connection and patched with this updates my TP-Link AC600 usb-wifi stich and in addition runned sudo iw dev wlan0 set power_save off GitHub - cilynx/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959: rtl88x2bu driver updated for current kernels.

After connecting to Jetson via ssh i set export DISPLAY=:0

Now, I can capture frames remotely via ssh when 3 azures are plugged in +usbwifi stick. When I connect 4th azure, the ssh connection drops/freezes.

I have tried beforehand connecting all 4 azures and ethernet cable and everything worked just fine. Is this a specific problem related to the weird power consumptions of USB-wifi? Any help would be appreciated!

Hi,
The performance of USB dongle is possibly dominated by CPU capability. May be similar to this topic:
The speed of 5G dongle - #27 by DaneLLL

The same USB ethernet dongle provides difference performance result on Xavier and Jetson Nano. Please execute sudo tegrastats to check if you see high CPU loading with the USB-wifi device.

Hi,
Here is output of sudo tegrastats:
RAM 943/3964MB (lfb 569x4MB) SWAP 0/1982MB (cached 0MB) IRAM 0/252kB(lfb 252kB) CPU [1%@1224,0%@1224,0%@1224,0%@1224] EMC_FREQ 0%@1600 GR3D_FREQ 0%@76 VIC_FREQ 0%@192 APE 25 PLL@27C CPU@32.5C PMIC@100C GPU@29.5C AO@34.5C thermal@31.25C POM_5V_IN 1559/1559 POM_5V_GPU 0/0 POM_5V_CPU 155/155
RAM 944/3964MB (lfb 569x4MB) SWAP 0/1982MB (cached 0MB) IRAM 0/252kB(lfb 252kB) CPU [2%@1224,0%@1224,3%@1224,0%@1224] EMC_FREQ 0%@1600 GR3D_FREQ 0%@76 VIC_FREQ 0%@192 APE 25 PLL@27.5C CPU@32.5C PMIC@100C GPU@29.5C AO@34.5C thermal@31.25C POM_5V_IN 1559/1559 POM_5V_GPU 0/0 POM_5V_CPU 155/155
RAM 944/3964MB (lfb 569x4MB) SWAP 0/1982MB (cached 0MB) IRAM 0/252kB(lfb 252kB) CPU [1%@1224,0%@1224,0%@1224,0%@1224] EMC_FREQ 0%@1600 GR3D_FREQ 0%@76 VIC_FREQ 0%@192 APE 25 PLL@27.5C CPU@32.5C PMIC@100C GPU@29.5C AO@34.5C thermal@31C POM_5V_IN 1598/1572 POM_5V_GPU 0/0 POM_5V_CPU 155/155
RAM 944/3964MB (lfb 569x4MB) SWAP 0/1982MB (cached 0MB) IRAM 0/252kB(lfb 252kB) CPU [1%@1224,0%@1224,0%@1224,0%@1224] EMC_FREQ 0%@1600 GR3D_FREQ 8%@76 VIC_FREQ 0%@192 APE 25 PLL@27.5C CPU@33C PMIC@100C GPU@29.5C AO@34.5C thermal@31C POM_5V_IN 1789/1626 POM_5V_GPU 77/19 POM_5V_CPU 233/174
RAM 944/3964MB (lfb 569x4MB) SWAP 0/1982MB (cached 0MB) IRAM 0/252kB(lfb 252kB) CPU [1%@1224,0%@1224,0%@1224,0%@1224] EMC_FREQ 0%@1600 GR3D_FREQ 0%@76 VIC_FREQ 0%@192 APE 25 PLL@27C CPU@32.5C PMIC@100C GPU@29.5C AO@34.5C thermal@31C POM_5V_IN 1559/1612 POM_5V_GPU 0/15 POM_5V_CPU 155/170