Skip to content

About

Share a USB, Bluetooth or Sunmi receipt printer on the LAN as a raw 9100 and Epson ePOS-Print network printer. Windows 8+ exe and Android 5+ APK.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESC/POS Printer Bridge

Share a receipt printer on the network. A USB, Bluetooth or built-in POS printer becomes a network printer that tills, POS apps and PCs print to by IP address, exactly as they would print to a networked Epson.

Two apps do the same job from different hosts:

Windows Android
Runs on Windows 8, 8.1, 10, 11 Android 5.0 and newer, every CPU type
Shares any printer installed in Windows USB over OTG, Bluetooth, Sunmi built-in, or a network printer
Raw / JetDirect port 9100 port 9100
Epson ePOS-Print HTTP 80 and 8008, HTTPS 443 and 8043 HTTP 8080, HTTPS 8443
Ships as one .exe, no installer one .apk
Written in C#, .NET Framework 4.5, WinForms Java, plain Android framework
Source windows branch android branch

Download

Prebuilt apps are on the Releases page: tags starting windows- carry the exe, tags starting android- carry the APK.

How it works

 till / POS app / PC                     bridge                              printer
 ───────────────────        ───────────────────────────────        ───────────────────────
 raw ESC/POS  ──TCP 9100──▶ forwards bytes unchanged          ──▶  USB, Bluetooth, Sunmi
 ePOS SDK app ──HTTP(S)───▶ ePOS-Print XML → ESC/POS          ──▶  built-in, or another
                            answers status/identity queries        network printer
                            the way a real Epson does

Most POS software checks it is talking to a real printer before it prints. The bridge answers those checks with bytes captured from a genuine Epson TM-T20II, including the GS ( H process-id echo that Epson's SDK waits for to confirm a job finished. Without that reply, SDK-based apps report the printer as not found. Because the ePOS XML is converted to ESC/POS by the bridge, any generic ESC/POS printer works, not just an Epson.

Both apps also carry a NO CUT emergency switch, which strips every cutter command from every ticket to a printer (per printer on Windows) and feeds the paper to the tear bar instead, for a jammed or broken cutter; and both show each ticket as it went to the printer, line by line, in their logs. The Android app is also an Android print service, so the phone's own Print menu lists its printers.

Both have device cards: USB, Wi-Fi, Bluetooth, processor, RAM, video and temperatures as tiles and 60-second graphs, with every printer event (a ticket printed, a cut removed, a printer not answering, a failed job) marked on the same timeline; a battery card that flips over to everything the system reports; and a cooling control (fans to maximum or a CPU cap on Windows, a self-throttle on Android) for a set number of minutes. Everything is logged to a telemetry CSV. Both let you set the ePOS device id a POS app names, and copy the ePOS link and the certificate link a client device visits once to trust the bridge's HTTPS.

Every card, and every block inside one, is an accordion section: fold it with a click on its heading, which then shows a one-line summary, and drag its grip to reorder cards or the blocks within a card. Both apps remember what was folded and the order.

Repository layout

The two apps share a protocol but no code, one being C# and the other Java, so each is a complete project on its own.

Branch Contents
main both apps side by side, in windows/ and android/
windows the Windows app alone, with its project at the root
android the Android app alone, with its Gradle project at the root

main is where changes are made. The two app branches are generated from its folders with git subtree split, so each carries only its own source and history:

git subtree split --prefix=windows -b windows
git subtree split --prefix=android -b android

Build instructions are in each app's README: Windows, Android.

What has been verified

  • The Windows bridge prints from Loyverse by IP address alone, and passes its 68-check self-test suite, which also renders the main window and the Device tab to screenshots.
  • The weighing scale (/scale) is covered by desktop checks on both apps: the parser, the exact EU/US unit conversion, and the TCP reader with the /scale endpoint end to end (68/68 on Windows, 55/55 on Android). The Android app with the scale card builds and installs on the phone. It has not yet been tested against a physical scale.
  • Every reply the bridges send was captured from a real Epson TM-T20II, not taken from documentation.
  • The Android app runs on a real phone (Android 10), starts from its screen, forwards tickets from a PC to an Epson TM printer on the LAN with NO CUT verified on that path, prints over ePOS http and https from a PC with its own certificate, refuses another device id, shows its device cards and folds and reorders them on that phone, and writes its telemetry CSV there; its responder passes 24 checks, its core 93 desktop checks, and its ePOS server 21 desktop checks over both http and https, including a TLS handshake against its own certificate.

Still waiting on hardware: printing through the Android app's Sunmi, Bluetooth and USB-OTG routes, a page printed through its print service, a phone or tablet browser opening the phone's https certificate page, and running the Windows exe on ARM64 Windows. Each README says precisely what is and is not tested.

License

MIT, see LICENSE. Epson, ePOS and TM-T20 are trademarks of Seiko Epson Corporation, and Sunmi is a trademark of its owner. This project is not affiliated with either; it implements the published protocols and contains no vendor SDK code.

About

Share a USB, Bluetooth or Sunmi receipt printer on the LAN as a raw 9100 and Epson ePOS-Print network printer. Windows 8+ exe and Android 5+ APK.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages