Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STAR TSP100III not printing #410

Closed
ropraet opened this issue Sep 21, 2020 · 8 comments
Closed

STAR TSP100III not printing #410

ropraet opened this issue Sep 21, 2020 · 8 comments

Comments

@ropraet
Copy link

ropraet commented Sep 21, 2020

I have a STAR TSP100III LAN that is connected to my local network at IP 192.168.0.144.

The device is correctly installed and is available (I'm able to ping to it).

printer = Network("192.168.0.144")
printer.text("Hello World\n")
printer.cut()

When I execute the previous code, unfortunately nothing is printing. I am not getting any errors. Is there a way to fix this? Or at least get some more information about what is going wrong?

Setup:

  • python-escpos==2.2.0
  • Python 3.7.4
@patkan
Copy link
Member

patkan commented Sep 28, 2020

I don't know about the printer whether it is able to be controlled through the network with escpos. But surely you have checked this.

What you could do is, one the one hand send commands directly to the printer with some console-tool or even netcat.
On the other hand you could try to update to the current alpha release. I don't remember whether the network code has been changed significantly but maybe this could help.

@geftactics
Copy link

geftactics commented Sep 29, 2020

I'm currently having a similar problem with bringing a TSP100 (USB version) to life. My contact at Star told me the following:

The TSP100 is a raster only printer. i.e it does not have any fonts or barcodes internally. Instead, they are all generated by our command emulator, which runs on the host OS. Sending plain text or ESC/POS commands directly will not produce anything.

You should be able to do a cut by sending d0 or open the drawer with <07h> but that is about it.

Everything else will need to be turned into a raster image with the commands here: https://www.starmicronics.com/Support/download.aspx?type=5&tabText=Star%20Graphic%20Mode%20Command%20Specifications%20&path=../support/Mannualfolder/star_graphic_cm_en.pdf&referrer=http://www.starmicronics.com/support/Manual.aspx&id=0

Is python-escpos able to perform the sending of just a raster as above? Or am I right in thinking that this device is not supported in this scenario?

@DavisGoglin
Copy link
Member

I could only get my TSP100 working in the way described by Star in their response. python-escpos works for this printer if you configure the software in ESC/POS mode as described in the link below and use their software to proxy the commands, but not otherwise.

https://www.starmicronics.com/help-center/knowledge-base/configure-tsp100-series-printers-esc-pos-mode/

@stephyswe
Copy link

stephyswe commented Feb 13, 2021

I could only get my TSP100 working in the way described by Star in their response. python-escpos works for this printer if you configure the software in ESC/POS mode as described in the link below and use their software to proxy the commands, but not otherwise.

https://www.starmicronics.com/help-center/knowledge-base/configure-tsp100-series-printers-esc-pos-mode/

We got a TSP100. Thanks so much for the ECO/POS tutorial.

Anyone with some small example code what to write in python ( django ) to get the thing workin? :)

@geftactics
Copy link

Hey! You are in luck! Only a few days ago I made a python library to print direct to a TSP100 https://pypi.org/project/StarTSPImage/

as you suggested, the TSP100 only supports a raster/graphical image - for the ESC/pos support the windows drivers are converting this into a graphical output.

my library takes an image file and converts to the right format to send directly to the printer. You could also use something like Pillow or imgkit libraries alongside it to make text->image-> raster-> printer

@aayushbasnet012
Copy link

Hey How did you got your printer working?
could you share your code base, I am trying to work with the same printer and the printer is not responding to the print command.
Would be a massive help.

@geftactics
Copy link

See the python repo I linked above. Example code there

@aayushbasnet2050
Copy link

Does this print within LAN connection?
I was looking for the Network printer connection, i did see through the examples provided but did not find anything for network printing.
Any suggestions would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants