EWS Gateway allows you to access the Embedded Web Server (EWS) on several models of HP printers via USB under Linux.

HP printers have good driver support on Linux, but some models, like the LaserJet Pro P1102w, have no way to set up wireless access without connecting via USB to a Windows or Mac system. HPLIP has a tool called hp-wificonfig, but it does not work on the P1102w.

The USB EWS interface is simple: The printer has an extra interface with class 255 (Vendor specific) and an interface name of "HP EWS". This interface has two bulk endpoints: You write an HTTP request to one endpoint, and read a response on the other. The gateway script only needs to provide a listening TCP socket and determine the boundaries of the request and response. It only accepts one connection at a time and does not support HTTP keep-alive.

Requirements:

  Name Size Description
[] COPYING 2022-08-30 02:45 1.39 KiB License
[] README 2011-03-02 07:32 1.66 KiB
[.GZ] ewsgateway-1.0.tar.gz 2021-04-17 20:34 5.60 KiB Archive of latest version
[.PY] ewsgateway.py 2022-08-30 02:45 14.97 KiB EWS Gateway script