I need to be able to print using either the terminal or Python (or any other programming language) but the problem is that the printer is only printing a limited quantity of characters.
If I send for instance "0123456789abcdef" (sometimes less, sometimes more) it works, but if I try to print "0123456789abcdefghijklmnopqrst..." or any other long text It stops working or it starts printing random characters.
The printer's test page prints just fine and this issue doesn't appear.
This is the tutorial I used to set it up: https://learn.adafruit.com/networked-thermal-printer-using-cups-and-raspberry-pi/connect-and-configure-printer
These are the commands I'm using to print:
echo "This is a test." | lpr
Sendind a text to the serial port directly:
echo -e "This is a test.\\n\\n\\n" > /dev/serial0
I hope there's enough information. Thanks for your help :) .