Skip to content

VibeCoded an application which shares the internal Thermal printer over the network #29

Description

@Freak4915

I only recently purchased one of these devices hoping to print labels, however, found that the only real option from stories online was to pay money to a website which didn't work, reach out to a whatsapp to purchase, only for it not to work until to reached out again to get the application to activate.

Thought F that, so created my own app free for anyone to use, install and upon opening tap start printer share.

This connects to the internal printer via serial and shares it out via RAW protocol on port 9100.
Connect to it from your computer and pick the appropriate ESC/POS driver.

In my case Linux CUPS, create printer via CLI to create a RAW printer:

Replace PRINTER_NAME with preferred name of new printer.
Replace ANDROID_IP with the IP of the citaq H10.

sudo lpadmin -x PRINTER_NAME 2>/dev/null
sudo lpadmin -p PRINTER_NAME -E -v socket://ANDROID_IP:9100 -m raw

Now you can print from any client to the printer directly. Link below

https://github.com/Freak4915/CitaqPrinterShare

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions