-
Notifications
You must be signed in to change notification settings - Fork 41
Printing of receipts via bluetooth printer
Martin Horák edited this page Feb 4, 2022
·
2 revisions
Tested with:
Printer: Cashino PTP-II
OS: Ubuntu 20.04 (Focal Fossa)
- Pair printer via standard bluetooth GUI tool (someone can describe CLI procedure here)
- 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)
- 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
- In QE set in Receipts -> Printer:
Character printer
,
LPT device:/dev/rfcomm0
,
Line length:32 characters
,
Text encoding:ASCII7
- Pair bluetooth printer
- Click printer settings, select Ports, determine port for writing
- Use that port as LPT device in QE printer settings, e.g.:
\\.\COM5
(step 4. above)