NEW: Start my new Ultimate Portfolio App course with a free Hacking with Swift+ trial! >>

Connecting and printing from fiscal printer

Forums > Swift


Hello guys, I'm new here and I've been following Paul's tutorials. I already managed to create a software for my shop to keep track of orders. Now I would like to interface with the fiscal printer and be able to print receipts. I looked over the internet and didn't found much to start from.

The printer is an RCH Printf and is connected via ethernet. Does anyone know where can i start?

Thank you in advance.


Hi, without a bit more context it is hard to offer pointers.

Do you have macOS app? iOS app? If you have a macOS app then you could use system dialog possibly to print?

I am not at all familiar with this type of printer so I have no idea if it works natively or if you need some kind of special software.



Hi thank you for your time, the app is a macOS app, the printer is connected via Ethernet cable, and i think i have to send the printer some specific command, to understand better, this is the protocol structure, as shown in the pdf i downloaded from the manufacturer:


  • <STX>

  • <ADDS>

  • <LUNGH>

  • <PROT-ID> - <DATI>

  • <PACK-ID> - <CHK>

  • <ETX> = 02h -> start packet = xx -> address = yyy -> data length = z -> primary protocol identifier = p -> packets identifier = ww -> message checksum = 03h -> end packet


Hi @Cryv

For iOS I think it to with "Share" framework. Because if you look a the native app (eg Photos) when you tap the share button you can print so look at the reciept and look at sharing then should get the print option (as well as email etc) maybe the person want e copy!

For macOS

Maybe have the reciept to PDF file then should be able to print from there




Thank you Nigel for your answer, but that doesn't work, cause it's not a standard printer, it's a fiscal printer so it means that the printer itself needs to receive the command cause it registers every receipt and then sends it to the "goverment" automatically. So instead of just printing i need to tell the printer "ok i have a receipt for 5€ create a printint receipt", then it prints it and stores it in memory

Sorry english is not my main language, I hope it is clear


Hacking with Swift is sponsored by Emerge

SPONSORED Emerge helps iOS devs write better, smaller apps by profiling binary size on each pull request and surfacing insights and suggestions. Companies using Emerge have reduced the size of their apps by up to 50% in just the first day. Built by a team with years of experience reducing app size at Airbnb.

Set up a demo!

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.