I have some problems setting up my Epson TM-T20II POS printer. My goal is to be able to have a webpage on an external hosted webserver and print from that webpage some php code to my POS printer.
I downloaded the ePOS SDK JavaScript (v2.6.0) (downloaded via this URL to make the connection from the webserver towards the Epson printer. In the SDK, there is also a test folder which contains some test webpages to test the functionality.
When I open the printer_sample.html webpage locally, I can make a successfull connection to the printer: connected to ePOS Device Service Interface. You can use printer.
When I upload the complete folder to my hosting company and try the same, I get the following error message: connected to ePOS Device Service Interface is failed. [ERROR_TIMEOUT] . Off course, I did filled in my public IP address correctly.
I did checked my router which is connected to the router of my ISP. (My router is placed in the ISP routers's DMZ zone). Here you find a tcpdump of my router:
So you can see in the tcpdump that the request is send properly to the ticket printer, and the ticket printer is sending a reply but the handshake isn't finished.
Does anybody has an idea on how to solve this issue?
Thanks in advance Sven
I am stuck in the JS SDK here, I successfully connected printer and I can print wirelessly but when I try to print via ePOS JS SDK it gives me two lines of junk character
my conclusion :
A printer connected properly it detects IP & port properly but I don't know why it prints junk.
I used the ePOS JS sample file so I am sure the code is not wrong.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.