NEW: Subscribe to Hacking with Swift+ and accelerate your learning! >>

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 NSSpain

SPONSORED Announcing NSSpain 2020: Remote Edition! An online, continuous conference for iOS developers. We’ll start on Thursday and finish on Friday, with talks, activities, and lots of fun for 36 hours, non-stop. Sound good? Join us!

Find out more

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

Not logged in

Log in

Link copied to your pasteboard.