SmartOn printer link
SmartOn Printer Link
A lightweight background agent that runs on a client's Windows computer and bridges MQTT print jobs to physical POS printers. Runs silently in the system tray, starts on every boot, and registers itself with the SmartOn master so device status and logs are always visible remotely.
How It Works
Master → MQTT Broker → SmartOn Printer Link → POS Printer
- The app runs in the background (system tray) — no window is visible unless you open settings
- It connects to the MQTT broker and subscribes to each configured printer's topic
- When a print job arrives on a topic, it forwards the raw ESC/POS data directly to the printer
- On every startup and config change, it reports status and device info to the master
Installation on a Client PC
Download: SmartOn-Printer-Link-Setup-1.0.0.exe
- Download the installer using the link above and copy it to the client machine
- Run the installer — it installs to
Program Filesand creates a system tray icon - The app starts immediately after installation — look for the SmartOn icon in the system tray (bottom-right near the clock)
- The app is added to Windows startup automatically and will run on every boot
First Launch & Settings Window
To open settings: Double-click the SmartOn tray icon.
The settings window has two tabs:
- MQTT — broker connection, password, and Client ID
- Printers — list of configured printers (add, edit, delete)
To save and apply changes: Click Save & Reconnect at the bottom of the window.
The status dot in the top-right corner turns green when connected to the MQTT broker.
Configuring MQTT
The MQTT tab is PIN-protected to prevent accidental changes.
- Open the settings window (double-click tray icon)
- Go to the MQTT tab
- Enter PIN: 0509
- Fill in the connection settings:
| Field | Default value | Notes |
|---|---|---|
| Host | (provided by SmartOn) | Do not change unless instructed |
| Port | (provided by SmartOn) | Do not change unless instructed |
| Username | (provided by SmartOn) | Do not change unless instructed |
| Password | (provided by SmartOn) | Enter the client's MQTT password |
- Click Test Connection — you should see ✓ Connected successfully
- Click Save & Reconnect
Configuring Printers
Go to the Printers tab and click + Add Printer.
Network Printer (TCP/IP)
Used for most POS printers connected via ethernet or Wi-Fi.
| Field | Example | Notes |
|---|---|---|
| Name | Receipt Printer | Display name only |
| MQTT Topic | devices/receipt/printing | Must match what the master sends to |
| Connection Type | Network (TCP/IP) | |
| IP Address | 192.168.1.100 | Use Scan Network to discover automatically |
| Port | 9100 | Standard port for POS printers |
IP scanning: Click Scan Network next to the IP field. The app scans the local subnet for devices on port 9100 and shows clickable results. Select a discovered IP or enter one manually.
USB Printer (Windows only)
Used for printers connected via USB cable. The printer driver must be installed in Windows first.
| Field | Example | Notes |
|---|---|---|
| Name | Kitchen Printer | Display name only |
| MQTT Topic | devices/kitchen/printing | Must match what the master sends to |
| Connection Type | USB (Windows Printer) | |
| Windows Printer | select from dropdown | Lists all printers installed in Windows |
MQTT Topic Naming Convention
All printer topics must follow this format: devices/{printer-identifier}/printing
Examples: devices/receipt/printing devices/kitchen/printing devices/bar/printing
Topics are case-sensitive. The topic configured here must match exactly what the master is sending to.
Client ID
Each installation has a unique Client ID — an 8-character hex code (e.g. b0ff01ec).
- Visible in the MQTT tab — no PIN required
- Assigned automatically on first launch and never changes
- Used for all remote control commands from the master
- Reported to the master automatically on every startup
Always note down the Client ID when setting up a new client. The master needs it to send remote commands to this specific device. Use the Copy button next to the Client ID field.
Master Integration
Device Registration
The app automatically registers with the master on every startup and after every config change. No manual action required.
Endpoint: POST https://master.proman.lt/api/public/devices/register
1. Remote Config Update
Topic: devices/{clientId}/config
Updates the app's settings without touching the physical machine. Only include the fields you want to change — everything else stays as-is.
| Rule | Detail |
|---|---|
mqtt | Supports partial updates — e.g. password only |
printers | Replaces the entire printer list when provided |
restartApp: true | App relaunches after applying — use when changing MQTT credentials |
restartApp: false | Default — reconnects immediately, no reboot needed |
Change MQTT password only:
{ "mqtt": { "password": "newpass123" }, "restartApp": true }Update a printer IP:
{
"printers": [
{
"id": "p1",
"name": "Receipt Printer",
"topic": "devices/receipt/printing",
"type": "network",
"ip": "192.168.1.55",
"port": 9100
}
]
}Replace with a USB printer:
{
"printers": [
{
"id": "p1",
"name": "Kitchen Printer",
"topic": "devices/kitchen/printing",
"type": "usb",
"windowsPrinterName": "Epson TM-T20III"
}
]
}Note: windowsPrinterName must match the exact name shown in Windows → Settings → Printers & scanners. It is case-sensitive.
Mixed network + USB setup:
{
"printers": [
{
"id": "p1",
"name": "Receipt Printer",
"topic": "devices/receipt/printing",
"type": "network",
"ip": "192.168.1.100",
"port": 9100
},
{
"id": "p2",
"name": "Kitchen Printer",
"topic": "devices/kitchen/printing",
"type": "usb",
"windowsPrinterName": "Epson TM-T20III"
}
]
}Full config payload:
{
"mqtt": {
"broker": "mqtt.proman.app",
"port": 1883,
"username": "mqtt",
"password": "newpassword"
},
"printers": [
{
"id": "p1",
"name": "Receipt Printer",
"topic": "devices/receipt/printing",
"type": "network",
"ip": "192.168.1.100",
"port": 9100
}
],
"restartApp": false,
"reason": "config_update"
}2. Restart App
Topic: devices/{clientId}/restart-app
Restarts the application. Useful after system changes or if the app becomes unresponsive.
{ "reason": "manual_restart" }An empty message "" also works — the reason field is optional.
3. Request Logs
Topic: devices/{clientId}/logcat
Triggers the app to upload its full log history to the master. Logs are kept for 30 days and survive app restarts and internet outages.
{ "reason": "debug" }The app POSTs to https://master.proman.lt/api/public/devices/logcat
What the logs contain:
- App startup and MQTT connection events
- Every print job — success or failure with error details
- Printer IP changes detected and corrected automatically
- Remote config updates received and applied
- Device registration results and any errors
Send a Print Job
Topic: devices/{printer-topic}/printing
Send raw ESC/POS binary data directly to the printer topic. The app forwards the payload byte-for-byte to the printer — no JSON wrapping.
Printer IP Auto-Recovery
Network printers can change IP when the router reassigns DHCP leases. SmartOn Printer Link handles this automatically.
- First successful print — the printer's MAC address is saved silently
- Print fails (IP unreachable) — the app searches the ARP cache for the saved MAC address
- Found at a new IP — the job is retried automatically and the new IP is saved. No user action needed.
- Not found in ARP cache — the app scans the entire local subnet (192.168.x.1–254) for port 9100, then tries again
- Still not found — a notification appears on the client screen and the failure is logged to the master
In most cases the printer is found automatically and the job goes through without anyone noticing.
Troubleshooting
| Problem | What to check |
|---|---|
| Tray icon is grey / disconnected | Open settings → MQTT tab → enter PIN 0509 → Test Connection. Check the MQTT password and network. |
| Print jobs not arriving | Confirm the printer topic matches exactly what the master is sending to. Topics are case-sensitive. |
| Printer unreachable notification | The printer may have changed IP. The app tries to find it automatically. If it keeps failing, check the printer's IP and update it via remote config from the master. |
| App not starting on boot | Windows: open Task Manager → Startup tab — SmartOn Printer Link should be enabled. |
| Need to see what's happening | Send a logcat command from the master and review the uploaded logs. |
| Remote settings not applying | Send a restart-app command, or set "restartApp": true in the config payload. |
| Client ID changed | This should never happen. If it did, re-register the device on the master with the new ID. |
Powered by Froala Editor
English