Coder Social home page Coder Social logo

printserver-esp8266's People

Contributors

gianluca-nitti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

printserver-esp8266's Issues

problemas to connect to de print server

I am using the only way windows does not complains fo the host name

image

but the serial monitors reports this.

Received IPP request; Version: 0x0100, OperationId: 0x000B, RequestId: 0x0000000B
Unsupported IPP version
Closing connection!

sketch compilation error

Greetings!
I need help.
I have WinXP, Arduino IDE 1.8.9, ESP8266 by ESP8266 community version 2.7.1 and Wemos D1 mini Pro.
I am trying to compile the printserver.ino sketch without any changes (installed the CH375 and
CH375USBPrinter libraries from the ZIP ).
I get an error:
"fork/exec C:\Documents and Settings\Admin\Local Settings\Application Data\Arduino15\packages\esp8266\tools\python3\3.7.2-post1/python3.exe: %1 is not a valid Win32 application.
Error compiling for board LOLIN(WEMOS) D1 R2 & mini."
How to fix this error?

And another question: I need to connect the printer as direct parallel. To do this, you will only need to include the appropriate section in the sketch, or will you need to do someone else?

Print client for ipp

I know this library is for creating a print server.

How about creating a print client from esp32/8266. I want to make a print request from esp itself to a network printer using the native protocol.

RAW print for ESC/POS printers

Hello!

Thank you for this great lib!

I am trying to print on a RS232 ESC/POS Thermal printer, I was successful printing with a RS232<=>TTL adapter (MAX3232 chip) on a dedicated basic program for learning.

Now I am trying to use printserver-esp8266 to open the printer to the wifi network.

What I've made:

Created a new softwareSerial port:
SoftwareSerial swSerial(D7,D8,false,32);
SerialPortPrinter printer2("SoftwareSerial", &swSerial);

Changed this in this lib:
Printer* printers[] = {&printer2};

And when I send some lines:
echo "HELLO WORLD" > /dev/tcp/10.0.2.180/9100
on a remote computer, I receive only the first characters, and nothing more.

I think this is something related to buffer, because this type of printer just receive RAW HEX commands and plain texts, and not the usual graphical print files.

Anyone can help on that? Thanks :D

executable?

So 'printserver.ino' is the executable that I load onto the esp8266 ?

Thanks,

Brian H.

ESP doesn't power

Hello,

I used direct connection to printer, using 10 GPIO.

ESP8266 doesn't power on, when it is connected to printer HP LaserJet 1100 MS.

Question 3.3V vs 5V

Hi,

You are using only 3.3 volts? The esp8266 works with 3.3V and the parallel port with 5V.

I mean instead of sending 5V on the parallel port you send 3.3V ... because anything above 2.8 volts is considered positive ?

I do not see any voltage regulator.

Missing labels and connections on fritzing-usb-ch375.fzz

On the fritzing file for the USB connection using CH375, "fritzing-usb-ch375.fzz", some of the pins on the CH375 do not have labels. There is also no indication on the connection for the pins between the USB socket and the CH375. Please help to clarify these.

image

display?

se passi ad una versione con coda di stampa si può pensare ad aggiungere un display lcd/oled

*.fzz files could not be opened

The fritzing-*.fzz files could not be opened by fritzing 0.9.3 with windows 10 64bit and manjaro-linux 64-bit.
Please provide *.pdf files, so that anyone can view the content.

CH375-Arduino does not work with EspSoftwareSerial

can't compile because of the line in the source code:
SoftwareSerial ch375swSer(CH375_RX, CH375_TX, false, 32);

printserver:47:56: error: no matching function for call to 'SoftwareSerial::SoftwareSerial(const uint8_t&, const uint8_t&, bool, int)'
47 | SoftwareSerial ch375swSer(CH375_RX, CH375_TX, false, 32);
| ^
In file included from C:\Users\garik\Downloads\printserver-esp8266-master\printserver\printserver.ino:21:
C:\Users\garik\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\espsoftwareserial-main\src/SoftwareSerial.h:93:5: note: candidate: 'SoftwareSerial::SoftwareSerial(int8_t, int8_t, bool)'
93 | SoftwareSerial(int8_t rxPin, int8_t txPin = -1, bool invert = false);
| ^~~~~~~~~~~~~~
C:\Users\garik\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\espsoftwareserial-main\src/SoftwareSerial.h:93:5: note: candidate expects 3 arguments, 4 provided
C:\Users\garik\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\espsoftwareserial-main\src/SoftwareSerial.h:89:5: note: candidate: 'SoftwareSerial::SoftwareSerial()'
89 | SoftwareSerial();
| ^~~~~~~~~~~~~~
C:\Users\garik\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\espsoftwareserial-main\src/SoftwareSerial.h:89:5: note: candidate expects 0 arguments, 4 provided
Используем библиотеку ESP8266WiFi версии 1.0 из папки: C:\Users\garik\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\ESP8266WiFi
Используем библиотеку espsoftwareserial-main версии 6.15.2 из папки: C:\Users\garik\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\espsoftwareserial-main
Используем библиотеку CH375-Arduino-master версии 0.1.0 из папки: C:\Users\garik\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\CH375-Arduino-master
exit status 1
no matching function for call to 'SoftwareSerial::SoftwareSerial(const uint8_t&, const uint8_t&, bool, int)'

if I remove "32" everything compiles but doesn't work. the program hangs when accessing the printer (getInfo()). there are no messages in serial. just hangs.

I understand EspSoftwareSerial is no longer compatible with CH375-Arduino.
please help to reconcile them. or choose the versions that are suitable for each other.

Can't compile.

Hi, I'm using Arduino v1.8.8 with Win7, NodeMCU 1.0 board and I always have errors during compilation.
I have couple of working projects with NodeMCU 1.0 ( ESP8266 ) board before, so IDE is configured properly.
I also added CH375 library from given in readme link.

The error log is too big to post here.

Shuold I use specific version of some libraries?

Regards.

Scanner version

Could it be possible to use esp32 with scanner as well? Is it powerful enough to handle that?

Error: no matching function for call

Hello,
I try to run this project with an ESP-12e and get this error. How to fix it?
Sorry if my question is too stupid, i'm newbie.

printserver:47:56: error: no matching function for call to 'SoftwareSerial::SoftwareSerial(const uint8_t&, const uint8_t&, bool, int)' 47 | SoftwareSerial ch375swSer(CH375_RX, CH375_TX, false, 32); | ^ In file included from C:\Users\vudin\OneDrive\Desktop\ESP\printserver-esp8266-master\printserver\printserver.ino:21: C:\Users\vudin\OneDrive\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\SoftwareSerial\src/SoftwareSerial.h:93:5: note: candidate: 'SoftwareSerial::SoftwareSerial(int8_t, int8_t, bool)' 93 | SoftwareSerial(int8_t rxPin, int8_t txPin = -1, bool invert = false); | ^~~~~~~~~~~~~~ C:\Users\vudin\OneDrive\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\SoftwareSerial\src/SoftwareSerial.h:93:5: note: candidate expects 3 arguments, 4 provided C:\Users\vudin\OneDrive\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\SoftwareSerial\src/SoftwareSerial.h:89:5: note: candidate: 'SoftwareSerial::SoftwareSerial()' 89 | SoftwareSerial(); | ^~~~~~~~~~~~~~ C:\Users\vudin\OneDrive\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\SoftwareSerial\src/SoftwareSerial.h:89:5: note: candidate expects 0 arguments, 4 provided exit status 1 no matching function for call to 'SoftwareSerial::SoftwareSerial(const uint8_t&, const uint8_t&, bool, int)'

ESP8266 restarts in cycle

I load this programm to ESP8266 D1 mini module and disable USB protocol. It uploads successfully, but ESP don`t boot up and restarts every time. And i have a question: does it work with Samsung ML-4500 printer? It works only for HP printers?

Missing GND connection in diagram

The GND connection to the parallel port is missing in the wiring diagram for parallel port printer with 74HC595 shift register.

The BUSY signal is a 5V output so a resistor divider may be advisable to drive the ESP input that is (not?) 5V tolerant.

printserver-esp8266_mod

Also could power the 74hc595 from 5V to drive the parallel port, and then better to use an 74HCT595 that has TTL compatible inputs that can be properly driven by the 3.3V ESP outputs.

Weird transmission errors can occur without a proper signal ground reference if it works at all.

Finally I was able to compile it

Had to make the following changes in printserver.ino in order to compile it.
Pin defines CH375_TX, CH375_RX D6 and CH375_INT are valid if Board "NodeMCU 1.0 " is selected.
Altough compiled don't know if it is going to work in real life.

  1. changed line 47 from:
    SoftwareSerial ch375swSer(CH375_RX, CH375_TX, false, 32);
    to:
    EspSoftwareSerial::UART ch375swSer;

  2. changed line 58 from:
    ch375swSer.begin(9600);
    to:
    ch375swSer.begin(BAUD_RATE, EspSoftwareSerial::SWSERIAL_8N1, CH375_RX, CH375_TX, false, 32, 11);

  3. added a line after line 46
    #define BAUD_RATE 9600

  4. changed line 22 from:
    #include <FS.h>
    to:
    #include <LittleFS.h>
    and changed all SPIFFS references to LittleFS accordingly

wifi

hello, it connects to the router, but after a reboot it creates an access point again, but it doesn’t automatically connect to the router, what could be the reason?

Не работает подключение по LPT порту.

Подключил все по приложенной картинке, ESP 12F точку доступа не запоминает, WINDOWS 10 не видит плату. Возможно ли попросить файл в формате bin.? USB не использую.

Please, help(

Hello! There is an hp laserjet 1100 printer with lpt. Could you give me a sketch for DirectParallelPortPrinter, but I can't do it. I'm not very good at programming. And tell me what you need to change for esp32. 😘

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.