本文介绍了为什么我无法从支持TCP / IP的打印机收到响应?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的最终目标是通过互联网向打印机发送打印作业。问题是打印机直接连接到路由器,所以我不能指望计算机处理任何东西。

My ultimate goal is to send a print job to a printer over the internet. The catch is that the printer is connected directly to a router, so I can't count on a computer processing anything.

打印作业的路径是:计算机 - >互联网 - >路由器 - >打印机

The path a print job takes is: Computer -> Internet -> Router -> Printer

打印机是带有UB-E02连接模块的Epson TM-T88V(它最初带有25针模块)。

The printer is an Epson TM-T88V with the UB-E02 connect it module (it originally came with the 25-pin module).

路由器是D-Link DIR- 655端口9500重定向到LAN端口9100和打印机的LAN IP地址。通过此设置,我可以在Web浏览器中输入路由器的WAN IP地址+端口9500,打印机会发出它收到的HTTP请求。

The router is a D-Link DIR-655 with port 9500 redirected to LAN port 9100 and the LAN IP address of the printer. With this setup, I can enter the router's WAN IP address + port 9500 in a web browser and the printer spits out the HTTP request it receives.

从终端,如果我使用lpr(特别是lpr -h ip-address:9500 filename.txt),打印机打印它收到的HTTP请求(而不是文件),lpr似乎只是在等待响应。根据UB-E02技术参考指南,Connect-It模块支持lp / lpr。

From the terminal, if I use lpr (specifically lpr -h ip-address:9500 filename.txt), the printer prints the HTTP request it receives (not the file) and lpr appears to just be waiting for a response. According to the UB-E02 Technical Reference Guide, the Connect-It module supports lp/lpr.

为什么打印机打印HTTP请求而不发送回应?

Why is it that the printer prints the HTTP request and doesn't send a response back?

推荐答案

您打开的端口可能是打印机的原始数据转储端口。可能有一个单独的端口说,它将与您的 lpr 客户端。

The port you opened is likely the raw data dump port for the printer. Likely there is a seperate port which speaks RFC1179 that will speak to your lpr client.

您不应该将HTTP控制发送到这些端口中的任何一个。

You should not be sending HTTP control to either of these ports.

这篇关于为什么我无法从支持TCP / IP的打印机收到响应?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 15:45