Ideal Point Of Sale IdealPoint Of Sale Support
← Support

HiStone HK528: the built-in receipt printer on Windows

The HiStone HK528 all-in-one has an 80 mm receipt printer built in, a HiStone PM362 on the unit's internal USB. HiStone publishes no Windows driver for it, and IdealPOS needs none: IdealPOS sends the printer its own commands (ESC/POS) through a plain Windows printer. A script sets that printer up in about a minute.

You need:

The label on the back of the unit: HiStone POS computer, Model HK528. The serial number is covered.
The label on the back: Model HK528 (serial number covered).

The setup scripts

One zip with two files: RUN_ME_Setup_HiStone_Printer.bat, the one you run, and Setup-HiStoneReceiptPrinter.ps1, the script it starts.

  1. 1Extract the zip on the HK528

    Download the zip on the HK528, or copy it over. Right-click it and choose Extract All…, then use the extracted folder: the script does not run from inside the zip.

  2. 2Run the setup

    Double-click RUN_ME_Setup_HiStone_Printer.bat and answer Yes when Windows asks for administrator rights. If Windows first warns about a file from the internet, choose Run (or More info → Run anyway).

    In a window that stays open, the script:

    • finds the printer by its USB ID (2AAF:2010);
    • restarts the printer's USB device when Windows made no USB port for it. Both units set up so far needed this, so the yellow lines are normal;
    • adds the Generic / Text Only printer on that port (USB001) as ReceiptUSB;
    • prints a test slip, cut at the end.
    The setup script's window: print spooler running, USB Printing Support found, USB port USB001 after restarting the printer's USB device, driver Generic / Text Only, printer ReceiptUSB added on USB001, test slip sent, then the next steps in IdealPOS.
    A full run. Press Enter to close the window.
  3. 3Check ReceiptUSB in IdealPOS

    In IdealPOS on the HK528, open Terminal Settings → Peripherals (Printer, Cash Drawer, …). In the POS Terminal #… Devices window, click the receipt printer box. The device list opens: press the green refresh arrows so ReceiptUSB (Windows) appears, then press Check next to it.

    IdealPOS prints its own test page, which ends with a QR code.

    POS Terminal #2 Devices: the device list with ReceiptUSB (Windows) selected, its Check button, and the green refresh arrows at the top right.
    The device list: ReceiptUSB (Windows) with its Check button; refresh is at the top right.
    IdealPOS's test page coming out of the HK528's printer, ending with a QR code and SCAN HERE.
    IdealPOS's test page on the HK528.
  4. 4Make it the receipt printer

    Choose ReceiptUSB (Windows) in the list so it becomes this POS's receipt printer, and add it to the printer groups that should print on it.

    Keep the receipt printer code page on 437 or 858 (Support Settings → Devices). The PM362 has no code page 1252, so with 1252 the € sign and accented letters come out wrong; 858 has the € sign, 437 does not. It is one setting for the whole site, so after changing it check that the site's other receipt printers still print correctly.

  5. 5Restart the HK528 once

    Restart the PC and press Check next to ReceiptUSB again. If it prints, you are done. If nothing comes out after the restart, see the first point below.

If something goes wrong

Without the script: the commands by hand

For when the script cannot run. In PowerShell, run as administrator:

# 1. the printer: note its InstanceId (USB\VID_2AAF&PID_2010\...)
Get-PnpDevice -PresentOnly | Where-Object InstanceId -like 'USB\VID_2AAF&PID_2010*' | Format-List FriendlyName, InstanceId, Status

# 2. its USB port: is there a USB001?
Get-PrinterPort | Where-Object Name -like 'USB*'

# 3. no USB port: restart the printer's USB device (your InstanceId), then run step 2 again
pnputil /restart-device "USB\VID_2AAF&PID_2010\966"

# 4. the printer on that port
Add-PrinterDriver -Name "Generic / Text Only"
Add-Printer -Name "ReceiptUSB" -DriverName "Generic / Text Only" -PortName "USB001"
Get-PrinterPort after the restart of the printer's USB device: the COM, LPT and FILE ports, and USB001, Virtual printer port for USB.
After the restart of the USB device, USB001 is there.

Then carry on from step 3.