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.


  Name Size Description
[] COPYING 2011-03-02 07:32 1.40 KiB
[] README 2011-03-02 07:32 1.66 KiB
[.GZ] ewsgateway-1.0.tar.gz 2011-03-02 07:32 5.60 KiB
[.PY] ewsgateway.py 2011-03-02 07:32 14.98 KiB