Essential tools for camera setup, diagnostics, and troubleshooting.
First-time setup on Windows:
SETUP_WINDOWS.batHaving issues? Run troubleshooter:
python tools/troubleshoot.py| Tool | Purpose | When to Use |
|---|---|---|
SETUP_WINDOWS.bat |
Complete first-time setup wizard | First time on new computer |
troubleshoot.py |
All-in-one diagnostic & troubleshooting | Camera not working, need help |
install_driver.py |
WinUSB driver installation | Need to install/fix driver |
That's it! Just 3 tools that do everything you need.
Complete automated setup for Windows
Runs from the command line and guides you through:
- Checking Python installation
- Building the package (if needed)
- Checking for camera hardware
- Installing WinUSB driver
- Testing the camera
Usage:
# From project root
setup.bat
# Or directly from tools/
tools\SETUP_WINDOWS.batWhen to use: First time setting up on a new computer
All-in-one diagnostic and troubleshooting tool
Interactive menu with options to:
- Quick Diagnostics - Check everything at once
- Check Driver Status - Verify WinUSB driver (Windows)
- Test Camera - Try to connect to camera
- Install/Fix Driver - Launch driver installer
- Generate Bug Report - Create detailed report for GitHub issues
- Open GitHub Issues - Submit a bug report
Usage:
python tools/troubleshoot.pyWhen to use:
- Camera not working
- Need to diagnose issues
- Want to report a bug
- Need guided troubleshooting
Features:
- Interactive menu system
- Comprehensive diagnostics
- Automated bug report generation
- Direct integration with GitHub issues
- Platform-aware (Windows/Linux)
WinUSB driver installation tool
Automates driver installation:
- Downloads Zadig automatically
- Checks current driver status
- Launches Zadig with step-by-step instructions
- Verifies installation
- Provides troubleshooting guidance
Usage:
python tools/install_driver.pyWhen to use:
- First time setup (driver needed)
- Switching from libusbK to WinUSB
- Driver installation failed
- Camera detected but can't open
Requires: Administrator privileges (will prompt for elevation)
Platform: Windows only (Linux doesn't need this)
# Just run this!
setup.batThe batch script handles everything automatically.
Step 1: Run troubleshooter
python tools/troubleshoot.pySelect option 1 (Quick Diagnostics) - it will:
- Check your Python environment
- Verify package installation
- Check driver status (Windows)
- Test camera connection
- Tell you exactly what's wrong
Step 2: Follow the recommendations
The troubleshooter will suggest specific fixes, like:
- Install package if missing
- Install WinUSB driver if needed
- Check USB connection if camera not found
Quick method:
python tools/install_driver.pyFollows these steps:
- Checks if camera is detected
- Checks current driver
- Downloads Zadig
- Guides you through installation
- Verifies installation succeeded
Step 1: Generate report
python tools/troubleshoot.pySelect option 5 (Generate Bug Report)
Step 2: Review the report
The tool creates thermal_camera_bug_report.txt with:
- System information
- Package status
- Driver status (Windows)
- Camera test results
Step 3: Submit to GitHub
From troubleshooter, select option 6 (Open GitHub Issues)
Or manually visit GitHub and attach the report file.
SETUP_WINDOWS.batOptions: None (fully automated)
Output:
- Success: Camera ready to use
- Failure: Specific error message with next steps
python tools/troubleshoot.pyInteractive Menu:
- Quick Diagnostics - Run all checks
- Check Driver Status - Windows driver verification
- Test Camera Connection - Try to open camera
- Install/Fix WinUSB Driver - Launch installer
- Generate Bug Report - Create diagnostic report
- Open GitHub Issues - Submit bug report
Options: Menu-driven (no command-line arguments)
Output Files:
thermal_camera_bug_report.txt- Bug report (option 5)
python tools/install_driver.pyRequirements:
- Windows only
- Administrator privileges
- Internet connection (downloads Zadig)
What it does:
- Checks admin privileges (elevates if needed)
- Detects camera and current driver
- Downloads Zadig (~2MB)
- Launches Zadig with instructions
- Verifies WinUSB installation
Exit codes:
- 0: Success (driver installed)
- 1: Failure (see error message)
- Start with setup.bat - Handles everything automatically
- If issues arise, use troubleshoot.py - Interactive diagnostics
- Read the messages - Tools provide specific guidance
- Check driver first:
python tools/troubleshoot.py→ Option 2 - If wrong driver, fix it:
python tools/install_driver.py - Verify after install: Run troubleshooter again
- Generate report first: Use troubleshoot.py option 5
- Include all details: Attach the
.txtfile - Add screenshots: Device Manager, error messages, etc.
If these tools don't solve your problem:
-
Run full diagnostics:
python tools/troubleshoot.py # Select option 1 (Quick Diagnostics) -
Generate bug report:
python tools/troubleshoot.py # Select option 5 (Generate Bug Report) -
Create GitHub issue:
- Use troubleshooter option 6, or
- Manually visit GitHub Issues
- Attach the bug report file
- Include any screenshots
-
Provide:
- Bug report file
- Device Manager screenshot (Windows)
- Python version:
python --version - OS version
- What you were trying to do
- Main README - Full project documentation
- Windows Setup Guide - Detailed Windows instructions
- Quick Reference - One-page cheat sheet
These tools are part of the Tiny-1C-Python-Bindings project.
Contributing:
- Tools are written in Python 3.7+
- Should work cross-platform (Windows/Linux)
- Follow existing error message style
- Test on fresh Windows install if possible
Questions? Open an issue on GitHub.