-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
MarkoV edited this page Oct 12, 2025
·
1 revision
This guide will help you set up and start using BenchMesh.
- Python 3.8+ - For the backend service
- Node.js 16+ - For Node-RED (optional, for automation)
- Serial Devices - Lab instruments connected via USB-to-Serial or RS232
The easiest way to start all components:
# From repository root
./start.shThis starts:
- Backend API on port 57666
- Frontend UI (served by backend)
- Node-RED on port 1880
After starting, access:
- Main UI: http://localhost:57666
- API Documentation: http://localhost:57666/docs
- Node-RED: http://localhost:1880
-
Click ⚙️ Configuration in the top bar
-
Click Add Device
-
Fill in device details:
-
ID: Unique identifier (e.g.,
psu-1) -
Name: Display name (e.g.,
Tenma PSU) - Driver: Select from available drivers
-
Port: Serial port path (e.g.,
/dev/ttyUSB0orCOM3) -
Baud Rate: Device baud rate (e.g.,
9600) -
Serial Format: Usually
8N1(8 data bits, no parity, 1 stop bit)
-
ID: Unique identifier (e.g.,
-
Click Save Configuration
After saving, the device should appear on the main dashboard with:
- Green status indicator if connected
-
Device identification (from
*IDN?command) - Real-time status updates every 2 seconds
Depending on the device class, you'll see:
- PSU: Voltage/current controls, output on/off
- DMM: Real-time measurements
- AWG: Waveform settings and controls
-
Check port permissions:
# Linux: Add user to dialout group sudo usermod -a -G dialout $USER # Log out and back in for changes to take effect
-
Verify port path:
# Linux ls -l /dev/ttyUSB* # Windows # Check Device Manager > Ports (COM & LPT)
-
Check baud rate: Ensure it matches your device specifications
-
View logs: Check console output for connection errors
- Device may be reconnecting (automatic retry every ~2s)
- Check physical cable connection
- Verify no other software is using the serial port
- Check device is powered on
- Configuration requires backend restart
- Stop the service and run
./start.shagain
- Learn about Configuration options
- Set up Automation workflows with Node-RED
- Explore the API Reference for programmatic control