Skip to content

qawsed55/printserver-esp8266

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

printserver-esp8266

  • This project allows you to use an ESP8266 as a Wi-Fi print server.
  • It works with the IPP protocol; the connected printers are accessible at ipp://esp-ip-address:631/printer-name, where the printer names can be configured in the printserver/printserver.ino file. By default, two printers are available, "parallel" which points to a real printer with the parallel port connected to the board's GPIOs and "serial" which prints the data to the serial UART (for debugging purposes).
  • The "AppSocket" or "HP JetDirect" protocol is also supported (on the TCP port 9100), but only for the first printer.
  • If a new connection arrives while a print job is being processed, the new job is stored in the SPIFFS filesystem (must fit in ~3MB, otherwise it's discarded due to lack of space) and printed as soon as the printer is ready. Unfortunately this feature has poor performance due to the very low speed of the SPIFFS filesystem.
  • It's mainly aimed at parallel port printers, which can be connected in two different ways:
    • Directly (uses 10 GPIO pins - one for BUSY, one for STROBE and 8 for the data lines)
    • Using a shift register, which reduces the amount of required pins to 5 (BUSY, STROBE, and 3 to drive the shift register to which the data lines are connected; currently tested with a 74HC595)
  • Experimental support for serial printers (not tested with real ones, only with the serial monitor)
  • If the device fails to connect to the latest used WiFi network (for example the first time you flash the sketch), it will start an access point you can connect to. The web interface can then be used to select the network you want to connect the device to.

Useful links

Wiring diagram for parallel port printer with 74HC595 shift register

Image

Photo with HP DeskJet 840C

Image

Class diagram

Image

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.3%
  • C 1.7%