escpos-php
escpos-php copied to clipboard
Star TSP654 Connection Timeout
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!
Google "Setting Up RAW Printing for macOS / OS X" and "lpr -P printername"
@bobwurtz how are you accessing the printer from your docker container?
@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.