IMDTouchKnowledge BaseShop main store

How-to

Updating HMI Display Files Remotely From Linux Over SSH

HMI and touchscreens Published 7 min read

Short answer

Yes — provided the display family documents a Linux or command-line downloader or an authorized protocol. SSH reaches the tester, not the display; develop the GUI in the vendor's Windows editor, copy the release to the Linux tester, verify the checksum, and let the panel's own completion status and version screen decide whether the update shipped.

On this page
  1. Separate development from deployment
  2. The three documented Linux paths
  3. Identify the display before you build anything
  4. Running the update over SSH, step by step
  5. Counting the three gates for a Raspberry Pi tester
  6. Qualify the update on the bench before you trust it remotely
  7. Questions asked

Updating an HMI display file from a Linux command line over SSH is practical, but only for a display family that documents a path for it. SSH terminates at your Linux tester; it does not speak the display's download protocol. So the decision comes before any scripting: choose a display series that ships a Linux build of its downloader, publishes its protocol with a supported command-line tool, or manages updates through the Linux system on the panel itself. Develop the screens in the vendor's Windows editor — a Windows VM is fine — because editing and deployment are separate jobs. Then stage the deployment in gates: copy the release, verify the checksum, run the documented downloader, and let the panel's own completion status and version screen decide whether the update shipped. A display that documents none of these paths cannot be fixed by a script; it is a hardware choice.

Separate development from deployment #

Windows stays where the editing is. The compiled display file still has to be downloaded into the panel and loaded before an edit goes live — the same rule behind why an HMI edit needs a new runtime download. What the tester needs is a transfer mechanism for that compiled file that runs on Linux, driven from the shell your SSH session lands in.

Every remote update is therefore two transfers: the file from your build machine to the tester, which SSH and a checksum handle, and the file from the tester into the display, which only the manufacturer's documented tool or protocol can do. Design the deployment around that split and the failure points become visible one at a time.

The three documented Linux paths #

Prefer a manufacturer-supported path over anything you write from scratch.

Path What the vendor must document Where it fits
Linux downloader A utility supported for the exact display series and for your host architecture; x86-64 and Raspberry Pi-class ARM are separate builds First choice when published — it runs in scripts with no protocol code of your own
Documented protocol with a command-line interface Protocol specifications you are licensed to build against, the output file format for the exact model, and a documented recovery method Workable when the vendor truly documents the interface; adds your own implementation and maintenance
Device-side updater Update management through the panel's own Linux system Applies when the display is an embedded Linux computer rather than a terminal that only stores a screen file

Analog Devices' application note AN-1074 shows the standard to demand: it documents a serial download protocol and states that its Windows serial downloader, WSD, can be driven from a command line with the file to download entered on the command. Where a vendor guards the protocol behind an NDA, that is not a documented path; ask for a supported interface or change hardware, and do not reverse-engineer the wire.

For panels that are embedded Linux devices, firmware can travel through the OS itself: fwupd and its command-line tools apply firmware the vendor publishes for the device, and some devices document a shell updater that stages an image in /tmp and then activates and starts it. These paths carry device firmware, not your compiled screen file, which still moves by one of the first two rows.

A graphical Windows downloader remains a service-bench fallback; it never meets a Windows-free requirement. If a maintenance task ever forces a graphical tool onto a remote Linux host, the options for putting its window on your screen are covered in the guide on running GUI programs via SSH with X11 forwarding.

Identify the display before you build anything #

  • The series and exact model, from the label and the documented information screen. A display sold as an HMI may store an application file, draw whatever the host sends, or manage content another way; only the model documentation says which, and only a stored application gives you a file to download.
  • The host connection, the Linux device name it takes on the tester, and its documented electrical interface, checked before anything is plugged together.
  • The GUI editor and its version, and the file type it outputs for your exact model and firmware.
  • Each tester's processor architecture, because a Linux binary built for x86-64 will not run on an ARM board and the reverse does not hold either.
  • The documented completion indication and the documented recovery procedure for an interrupted download. You need both before the first scripted run, not after the first failed one.

Running the update over SSH, step by step #

  1. Build the release in the supported editor for the recorded target model and keep it as the known-good file.
  2. Copy it to the tester over your approved SSH path and compute a checksum at both ends, for example sha256sum release.bin on the build machine and on the tester. Any difference means the copy is bad, and the deployment stops before the display is touched.
  3. Confirm the account running the update has access to the display's connection and that no other process holds it open.
  4. Move the tester into a controlled maintenance state and release the display interface through the application's supported shutdown. Run the update in a maintenance window with the process in a safe state: a panel mid-download cannot show operator status or alarms.
  5. Run the documented downloader with the documented settings, and capture its output and exit status beside the release identity.
  6. Bring the tester back by the documented steps and restore the application's access to the display.
  7. In the script, treat every failure as a stopped deployment that needs diagnosis — not as permission to reboot the tester and retry blind into a panel that has not confirmed the new file.

Counting the three gates for a Raspberry Pi tester #

The case is the one that motivates the whole setup: testers built on Raspberry Pi-class boards and other embedded Linux computers, deployed where no Windows machine exists, reachable only over SSH.

Inputs, and where each comes from:

  • Gate 1, the staged copy (from the deployment workflow in step 2): the release file reaches the tester and the two-ended checksum matches.
  • Gate 2, the download session (from the downloader's documented output in step 5): the vendor tool runs against the display and reports success.
  • Gate 3, the panel's confirmation (from the qualification rule): the display reports completion and shows the new version on screen.

Rule in words: the three gates pass or fail independently, so the number of possible outcomes is 2 × 2 × 2, and exactly one of them — all three green — is a shipped update.

Arithmetic: 2 × 2 × 2 = 8 outcomes. 8 - 1 = 7 outcomes stop the script. Only 1 of 8 combinations verifies, and the proof of that one is the version on the screen, not the downloader's exit code.

Result: seven of the eight combinations — checksum mismatch, downloader failure, a silent panel, or any mix of them — are aborted deployments to diagnose.

Decision, with its threshold: a display family that offers no completion status and no version indication can never clear more than 2 of the 3 gates, and 2 of 3 is below the line for unattended work — do not script updates to that panel. Pick a family that documents gate 3, or move the application onto a computer-class operator panel: industrial panel PCs run your HMI software on a touchscreen computer your update script can reach over SSH, which puts all three gates under your control.

Qualify the update on the bench before you trust it remotely #

A success message from the downloader is necessary, not sufficient. Before the first remote run, on hardware you can touch:

  • Confirm the release identity on screen. A version indication built into the application is the cheapest unambiguous proof, checked the way described in how to verify the HMI project version running on a panel.
  • Exercise navigation and every touch input, and open each page operators use.
  • Compare displayed values against the controller or host values that supply them — a transfer can be perfect while a binding is still wrong.
  • Restart the tester and power-cycle it, then confirm the new application is the one that loads.
  • Run the documented recovery procedure for an interrupted download on this bench before any remote site depends on it.

Qualify with the same script production will run, not by hand, so the captured output you trust remotely is the output the script actually produces.

Questions asked

Can I write my own downloader when the vendor only offers the protocol under NDA?

No. Without documented protocol specifications you are licensed to build against, a self-written downloader is unsupported and untestable. Ask the vendor for a Linux build of its downloader, a supported command-line interface, written integration documentation, and the host architectures each tool supports. If none exists, that display family cannot meet a Windows-free remote update requirement and the hardware choice has to change.

Does a matching checksum prove the new application is running?

No. A matching checksum proves only that the staged file on the tester is bit-identical to the build machine's release. The download session, the panel's flash write and the load of the new application are separate steps after it. The proof is the panel's own completion status plus the version indication on screen after a restart.

The screen did not change but the script reported success. Where is the fault?

Split the layers in order: the staged file's checksum on the tester, the downloader's captured output and exit status, then the panel's completion report. An old layout with a reported success usually means the panel never accepted the file or the build targeted the wrong model. A new layout with wrong values is a data binding or driver problem, and downloading the same file again will not fix it.

Is running the vendor's Windows editor in a VM on the tester a simpler answer?

It can work at the build desk, but it defeats the goal of Windows-free remote deployment. Each tester then needs a licensed, patched Windows image, and restarting that VM becomes part of every display update over SSH. Keep the Windows VM where the editing happens and keep the testers Linux-only with a documented command-line path.

Keep reading

  • How-to

    Making Remote HMI Access Read-Only Over RDP

    RDP forwards keyboard and pointer input, so no setting inside the remote session makes a PanelView read-only. Replace the launch chain: publish a read-only FactoryTalk ViewPoint client, or enforce view-only mode in the VNC server, then verify from the operator account that every visible control leaves the controller untouched.

    HMI and touchscreens

  • Selection guide

    Running Third-Party HMI Software on a Marine Display Host

    Keep the marine monitor: it only displays what the industrial PC host draws, so the software decision belongs on the host. Test whether the installed Infilink runtime can deliver the graphics and the smartphone or tablet access; where it cannot, select a replacement runtime with documented operating-system support, licensing and a Modbus TCP driver, and prove it on an isolated bench before rebuilding screens.

    HMI and touchscreens

  • Troubleshooting

    Why an HMI Fails USB Transfer From a USB 1.0 PC

    The panel never receives the project because Weintek terminals expose a USB 2.0 client for direct download, and a PC with only USB 1.0 falls outside that boundary. Load the compiled xob file from a FAT32 pen drive on the panel's USB host port, from SD card where fitted, or over Ethernet, and leave the DIP switches alone: boot loader mode updates firmware, it does not load projects.

    HMI and touchscreens