Hate to sound like a complainer but there still is a problem with version control of this printer from Adafruit's standpoint. I just received version 2.68 on three printers as of last week. Someone else here mentioned having a version 2.64 that worked well and a version 2.69 (later than what I have) that is problematic.
Due to little activity on this forum, I will need to go through the "adafruit_thermal.cpp" source line by line and try to determine what printer functions work and which don't. Inverse and upside down don't seem to. There seem to be many more quirks also. I am now looking at two different manufacturers manuals (terribly translated) and debugging this thing. Is no one else buying this printer???
Bob
Mini Thermal Receipt Printer Issues
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit2
- Posts: 22111
- Joined: Fri Mar 11, 2005 7:36 pm
Re: Mini Thermal Receipt Printer Issues
Hi we'll email the factory again to ask for an updated firmware manual. Much of the functionality thats in the library was hand-tweaked for the firmware we originally received - once we get a manual we will post it up and look at whether it's possible to adjust the library.
If the thermal printers aren't doing what you need - email support@adafruit for a refund and ask for a return label. Thanks!
If the thermal printers aren't doing what you need - email support@adafruit for a refund and ask for a return label. Thanks!
- ulich
- Posts: 1
- Joined: Tue Aug 12, 2014 6:00 am
Re: Mini Thermal Receipt Printer Issues
Hi all
I just got and built the IoT thermal printer (v2.69) and noticed that everything but the inverse command was working perfectly. I went through the manual (posted by pburgess) and the Adafruit_Thermal.py library to try to figure out what was wrong. Having done some testing, I now think that the bitmask used with the "ESC-!" command only works for bold, double height and double width, but not for inverse, upside down or strike.
I can get inverse, upsidedown and sideways text to work. Unfortunately strike doesn't seem to work at all (I tried "27,33,64" and "27,71,1" commands - no luck).
To get them working, replace the existing functions (inverseOn, inverseOff, upsideDownOn, upsideDownOff) with the following in Adafruit_Thermal.py (around line 321):
You may also want to add self.upsideDownOff() and self.sidewaysOff() to the setDefault function (line 231).
Hope this helps.
I just got and built the IoT thermal printer (v2.69) and noticed that everything but the inverse command was working perfectly. I went through the manual (posted by pburgess) and the Adafruit_Thermal.py library to try to figure out what was wrong. Having done some testing, I now think that the bitmask used with the "ESC-!" command only works for bold, double height and double width, but not for inverse, upside down or strike.
I can get inverse, upsidedown and sideways text to work. Unfortunately strike doesn't seem to work at all (I tried "27,33,64" and "27,71,1" commands - no luck).
To get them working, replace the existing functions (inverseOn, inverseOff, upsideDownOn, upsideDownOff) with the following in Adafruit_Thermal.py (around line 321):
Code: Select all
def inverseOn(self):
self.writeBytes(29, 66, 1)
def inverseOff(self):
self.writeBytes(29, 66, 0)
def upsideDownOn(self):
self.writeBytes(27, 123, 1)
def upsideDownOff(self):
self.writeBytes(27, 123, 0)
def sidewaysOn(self):
self.writeBytes(27, 86, 1)
def sidewaysOff(self):
self.writeBytes(27, 86, 0)
Hope this helps.
-
- Posts: 1
- Joined: Fri Jun 14, 2013 2:57 pm
Re: Mini Thermal Receipt Printer Issues
Hi,
Could anyone who's fixed the problems with inverse and barcode printing give a step-by-step walk through of what they did? I bought the Mini Thermal Receipt Printer Starter Pack from Adafruit, followed all of the instructions in the tutorial, and am using the power supply they sent (5v, 2a). Unfortunately, I'm pretty lost at this point.
Thanks so much!
Could anyone who's fixed the problems with inverse and barcode printing give a step-by-step walk through of what they did? I bought the Mini Thermal Receipt Printer Starter Pack from Adafruit, followed all of the instructions in the tutorial, and am using the power supply they sent (5v, 2a). Unfortunately, I'm pretty lost at this point.
Thanks so much!
- LaRhondaR
- Posts: 1
- Joined: Mon May 04, 2015 4:36 pm
Re: Mini Thermal Receipt Printer Issues
Hello,
I'm thinking about buying this printer, but I need to know if it is compatible with apple/android devices (iphone, ipad, tablets, etc.)?
I'm thinking about buying this printer, but I need to know if it is compatible with apple/android devices (iphone, ipad, tablets, etc.)?
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Mini Thermal Receipt Printer Issues
This is a TTL serial printer. You can't access it from phones and tablets.
- joemouk
- Posts: 8
- Joined: Sat May 26, 2012 1:26 pm
Re: Mini Thermal Receipt Printer Issues
Hi.
Getting upside down text from thermal printer using Arduino and Adafruit thermal library.
Just in case anyone else is looking for this as we were today, the current library did not seem to work.
Using info in the previous posts we changed the upsideDownOn() and upsideDownOff() around line 323 on the Adafruit_Thermal.cpp to
we now have upside down printing from an Arduino Uno.
atb
Jon
Getting upside down text from thermal printer using Arduino and Adafruit thermal library.
Just in case anyone else is looking for this as we were today, the current library did not seem to work.
Using info in the previous posts we changed the upsideDownOn() and upsideDownOff() around line 323 on the Adafruit_Thermal.cpp to
Code: Select all
void Adafruit_Thermal::upsideDownOn(){
#if PRINTER_FIRMWARE >= 268
writeBytes(ASCII_ESC, '{', 1);
#else
setPrintMode(UPDOWN_MASK);
#endif
}
void Adafruit_Thermal::upsideDownOff(){
#if PRINTER_FIRMWARE >= 268
writeBytes(ASCII_ESC, '{', 0);
#else
unsetPrintMode(UPDOWN_MASK);
#endif
}
atb
Jon
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Mini Thermal Receipt Printer Issues
Thanks for the update!
- vishal_jogi
- Posts: 9
- Joined: Mon Sep 14, 2015 8:12 am
Re: Mini Thermal Receipt Printer Issues
Hello Team,
Its over a year a bought this printer! I am facing issue with its printing now. It is skipping printing Logo image and also few lines of content (refer attached image) and it annoys me. I haven't used it much as I am still using the first printing roll comes bundled with printer. Kindly let me know what to do as I had bought it to demo POC and I am helpless now.
Regards,
Vishal
Its over a year a bought this printer! I am facing issue with its printing now. It is skipping printing Logo image and also few lines of content (refer attached image) and it annoys me. I haven't used it much as I am still using the first printing roll comes bundled with printer. Kindly let me know what to do as I had bought it to demo POC and I am helpless now.
Regards,
Vishal
- vishal_jogi
- Posts: 9
- Joined: Mon Sep 14, 2015 8:12 am
Re: Mini Thermal Receipt Printer Issues
Hi Team,
Sorry, I missed to attach the file in earlier comment, kindly find attached here. You will note the difference clearly.
Regards,
Vishal
Sorry, I missed to attach the file in earlier comment, kindly find attached here. You will note the difference clearly.
Regards,
Vishal
- Attachments
-
- 20150914_180745.jpg (105.47 KiB) Viewed 1597 times
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Mini Thermal Receipt Printer Issues
What are you using for a power supply? Can you try a different one?
How does the printer behave with the standard Adafruit example code? Can you post a picture?
What about the built-in self-test. Can you post a picture of that?
How does the printer behave with the standard Adafruit example code? Can you post a picture?
What about the built-in self-test. Can you post a picture of that?
- vishal_jogi
- Posts: 9
- Joined: Mon Sep 14, 2015 8:12 am
Re: Mini Thermal Receipt Printer Issues
Hi Team,
Thank you so much for your response! Kindly find my response below:
1. I am using 5V 2A power supply, supplied via power bank. I tried with Romoss and Xiaomi power bank and the result is same.
2. Kindly refer attached image which has 2 different output. a. When button on printer is pressed, it prints "CP437". b. The other part shows the o/p from Adafruits sample "printertest" example code.
3. Built in test results o/p is "CP437".
Hope this information helps.
Regards,
Vishal
Thank you so much for your response! Kindly find my response below:
1. I am using 5V 2A power supply, supplied via power bank. I tried with Romoss and Xiaomi power bank and the result is same.
2. Kindly refer attached image which has 2 different output. a. When button on printer is pressed, it prints "CP437". b. The other part shows the o/p from Adafruits sample "printertest" example code.
3. Built in test results o/p is "CP437".
Hope this information helps.
Regards,
Vishal
- Attachments
-
- 20150915_111418.jpg (83.39 KiB) Viewed 1576 times
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Mini Thermal Receipt Printer Issues
The repeated "CP437" lines suggest a power problem...that the printer is continually resetting due to a brownout. What sort of wiring are you using between the power supply and the power plug on the printer?
You said you've tried two different power supplies. But maybe you have a bad connection or a bad wire?
You said you've tried two different power supplies. But maybe you have a bad connection or a bad wire?
These are battery-powered devices? Do you have a regular mains power supply?vishal_jogi wrote:I tried with Romoss and Xiaomi power bank
- vishal_jogi
- Posts: 9
- Joined: Mon Sep 14, 2015 8:12 am
Re: Mini Thermal Receipt Printer Issues
Hi Team,
Thank you for your response!
I will check with mains power supply and get back with test results soon.
Regards,
Vishal
Thank you for your response!
I will check with mains power supply and get back with test results soon.
Regards,
Vishal
- vishal_jogi
- Posts: 9
- Joined: Mon Sep 14, 2015 8:12 am
Re: Mini Thermal Receipt Printer Issues
Hi Team,
I tried with power adapter o/p rating 5V 2A and the result is still the same "CP437". Please refer attached image for more details.
Let me assure you that connection (as well as power bank) was not an issue as the same thing worked for me earlier. It just happened that its not working now!
Regards,
Vishal
I tried with power adapter o/p rating 5V 2A and the result is still the same "CP437". Please refer attached image for more details.
Let me assure you that connection (as well as power bank) was not an issue as the same thing worked for me earlier. It just happened that its not working now!
Regards,
Vishal
- Attachments
-
- 20150915_195717.jpg (89.8 KiB) Viewed 1568 times
Please be positive and constructive with your questions and comments.