gianluca-nitti / printserver-esp8266 Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
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?
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.
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
So 'printserver.ino' is the executable that I load onto the esp8266 ?
Thanks,
Brian H.
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.
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.
se passi ad una versione con coda di stampa si può pensare ad aggiungere un display lcd/oled
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.
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.
va messo anche un richiamo nei file, cfr. https://www.gnu.org/licenses/gpl-howto.html
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.
Could it be possible to use esp32 with scanner as well? Is it powerful enough to handle that?
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)'
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?
La centronics dovrebbe avere anche un +5V, forse si può alimentare il tutto da lì
c'è il componente "connettore centronics" ;)
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.
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.
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.
changed line 47 from:
SoftwareSerial ch375swSer(CH375_RX, CH375_TX, false, 32)
;
to:
EspSoftwareSerial::UART ch375swSer;
changed line 58 from:
ch375swSer.begin(9600);
to:
ch375swSer.begin(BAUD_RATE, EspSoftwareSerial::SWSERIAL_8N1, CH375_RX, CH375_TX, false, 32, 11);
added a line after line 46
#define BAUD_RATE 9600
changed line 22 from:
#include <FS.h>
to:
#include <LittleFS.h>
and changed all SPIFFS references to LittleFS accordingly
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?
Подключил все по приложенной картинке, ESP 12F точку доступа не запоминает, WINDOWS 10 не видит плату. Возможно ли попросить файл в формате bin.? USB не использую.
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. 😘
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.