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

  1. The app runs in the background (system tray) — no window is visible unless you open settings
  2. It connects to the MQTT broker and subscribes to each configured printer's topic
  3. When a print job arrives on a topic, it forwards the raw ESC/POS data directly to the printer
  4. 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

  1. Download the installer using the link above and copy it to the client machine
  2. Run the installer — it installs to Program Files and creates a system tray icon
  3. The app starts immediately after installation — look for the SmartOn icon in the system tray (bottom-right near the clock)
  4. 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.

  1. Open the settings window (double-click tray icon)
  2. Go to the MQTT tab
  3. Enter PIN: 0509
  4. Fill in the connection settings:
FieldDefault valueNotes
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
  1. Click Test Connection — you should see ✓ Connected successfully
  2. 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.

FieldExampleNotes
NameReceipt PrinterDisplay name only
MQTT Topicdevices/receipt/printingMust match what the master sends to
Connection TypeNetwork (TCP/IP)
IP Address192.168.1.100Use Scan Network to discover automatically
Port9100Standard 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.

FieldExampleNotes
NameKitchen PrinterDisplay name only
MQTT Topicdevices/kitchen/printingMust match what the master sends to
Connection TypeUSB (Windows Printer)
Windows Printerselect from dropdownLists 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.

RuleDetail
mqttSupports partial updates — e.g. password only
printersReplaces the entire printer list when provided
restartApp: trueApp relaunches after applying — use when changing MQTT credentials
restartApp: falseDefault — 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.

  1. First successful print — the printer's MAC address is saved silently
  2. Print fails (IP unreachable) — the app searches the ARP cache for the saved MAC address
  3. Found at a new IP — the job is retried automatically and the new IP is saved. No user action needed.
  4. Not found in ARP cache — the app scans the entire local subnet (192.168.x.1–254) for port 9100, then tries again
  5. 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

ProblemWhat to check
Tray icon is grey / disconnectedOpen settings → MQTT tab → enter PIN 0509 → Test Connection. Check the MQTT password and network.
Print jobs not arrivingConfirm the printer topic matches exactly what the master is sending to. Topics are case-sensitive.
Printer unreachable notificationThe 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 bootWindows: open Task Manager → Startup tab — SmartOn Printer Link should be enabled.
Need to see what's happeningSend a logcat command from the master and review the uploaded logs.
Remote settings not applyingSend a restart-app command, or set "restartApp": true in the config payload.
Client ID changedThis should never happen. If it did, re-register the device on the master with the new ID.

Powered by Froala Editor