Skip to content

Printing of receipts via bluetooth printer

Martin Horák edited this page Feb 4, 2022 · 2 revisions

How to print receipts via bluetooth printer

Linux

Tested with:
Printer: Cashino PTP-II
OS: Ubuntu 20.04 (Focal Fossa)

  1. Pair printer via standard bluetooth GUI tool (someone can describe CLI procedure here)
  2. Determine BDADDR of the printer:
hcitool scan
 Scanning ...
	DC:0D:30:8F:3A:B8	PTP-II
	D4:9D:C0:43:68:C5	[TV] Samsung 7 Series (55)
  1. Set up RFCOMM communication (RS-232 serial port emulation):
sudo rfcomm connect /dev/rfcomm0 DC:0D:30:8F:3A:B8
Connected /dev/rfcomm0 to DC:0D:30:8F:3A:B8 on channel 1
Press CTRL-C for hangup
  1. In QE set in Receipts -> Printer:
    Character printer,
    LPT device: /dev/rfcomm0,
    Line length: 32 characters,
    Text encoding: ASCII7

Windows

  1. Pair bluetooth printer
  2. Click printer settings, select Ports, determine port for writing
  3. Use that port as LPT device in QE printer settings, e.g.: \\.\COM5 (step 4. above)