Files
2025-08-25 13:53:36 +02:00

18 lines
498 B
Bash
Executable File

#!/bin/bash
echo "🔍 Scanning USB devices..."
echo "========================="
echo "All USB devices:"
lsusb
echo ""
echo "ESP32 boards:"
lsusb | grep -iE "(303a|10c4|1a86)" || echo "No ESP32 boards found"
echo ""
# Known UPS vendor IDs for debugging
echo "UPS devices:"
lsusb | grep -iE "(0463|047c|0483|04b3|04d8|050d|051d|0592|05dd|06da|075d|0764|09ae|09d6)" || echo "No UPS devices found"
echo ""
echo "Serial ports:"
ls -la /dev/tty{USB,ACM}* 2>/dev/null || echo "No serial ports found"