escpos-php icon indicating copy to clipboard operation
escpos-php copied to clipboard

Star TSP654 Connection Timeout

Open bobwurtz opened this issue 4 years ago • 3 comments
trafficstars

My setup:

  • Laravel (8.0) app running on Sail (Docker)
  • macOS Catalina 10.15.7
  • Star TSP654II printer
  • USB connection

Error: Failed to print. Command "smbclient '//This-MacBook-Pro/Star_TSP654__STR_T_001_' -c 'print -' -N -m SMB2" failed with exit code 1: do_connect: Connection to This-MacBook-Pro failed (Error NT_STATUS_IO_TIMEOUT)

Has anyone ever encountered this timeout message before? It happens pretty quickly - around five seconds. I was initially getting a smbclient not found error but I fixed that by updating the Dockerfile so I know the client is installed. I've exposed port 9100 from within Docker but that didn't help anything. The drivers for the printer are installed on the Mac and it is visible under System Preferences > Printers and Scanners.

Any advice or feedback would be appreciated.

Thank you!

bobwurtz avatar Mar 19 '21 05:03 bobwurtz

Google "Setting Up RAW Printing for macOS / OS X" and "lpr -P printername"

Muraveiko avatar Mar 30 '21 08:03 Muraveiko

@bobwurtz how are you accessing the printer from your docker container?

sebastianbonilla avatar Feb 28 '24 05:02 sebastianbonilla

@sebastianbonilla Sorry this was years ago and I don't use this setup anymore. And I don't remember how/if I ever got it working. Best of luck.

bobwurtz avatar Feb 28 '24 18:02 bobwurtz