From 648f2e6f271f744baa8b968e3f1ca824e18e6bff Mon Sep 17 00:00:00 2001 From: Arnaud Quette Date: Thu, 21 Dec 2023 17:54:06 +0100 Subject: [PATCH] Put traces to investigate USB instability Signed-off-by: Arnaud Quette --- smartnut/rootfs/usr/bin/dstate-nut2mqtt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/smartnut/rootfs/usr/bin/dstate-nut2mqtt b/smartnut/rootfs/usr/bin/dstate-nut2mqtt index 473f0ac..104be0e 100755 --- a/smartnut/rootfs/usr/bin/dstate-nut2mqtt +++ b/smartnut/rootfs/usr/bin/dstate-nut2mqtt @@ -191,6 +191,10 @@ do if [ $? -eq 1 ]; then echo "no communication..." + # FIXME: USB tends to disconnect! Investigate and try to reconnect + ls -la /var/run/nut/ + echo "---" + lsusb fi dump_device "$curdevice" process_dump "$curdevice"