Black Lives Matter - Action and Equality. ... Adafruit joins the Stop Hate for Profit campaign.
0

Mini Thermal Receipt Printer Issues
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: Mini Thermal Receipt Printer Issues

by doctorwhen on Thu Jul 17, 2014 3:19 pm

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

doctorwhen
 
Posts: 9
Joined: Wed Feb 20, 2013 4:05 pm

Re: Mini Thermal Receipt Printer Issues

by adafruit2 on Thu Jul 17, 2014 7:07 pm

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!

adafruit2
Site Admin
 
Posts: 19222
Joined: Fri Mar 11, 2005 7:36 pm

Re: Mini Thermal Receipt Printer Issues

by ulich on Tue Aug 12, 2014 7:44 am

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):

Code: Select all | TOGGLE FULL SIZE
        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)   


You may also want to add self.upsideDownOff() and self.sidewaysOff() to the setDefault function (line 231).

Hope this helps.

ulich
 
Posts: 1
Joined: Tue Aug 12, 2014 6:00 am

Re: Mini Thermal Receipt Printer Issues

by Pingo on Sun Apr 12, 2015 4:16 pm

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!
Pingo
 
Posts: 1
Joined: Fri Jun 14, 2013 2:57 pm

Re: Mini Thermal Receipt Printer Issues

by LaRhondaR on Mon May 04, 2015 4:41 pm

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.)?

LaRhondaR
 
Posts: 1
Joined: Mon May 04, 2015 4:36 pm

Re: Mini Thermal Receipt Printer Issues

by adafruit_support_rick on Mon May 04, 2015 4:54 pm

This is a TTL serial printer. You can't access it from phones and tablets.

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Mini Thermal Receipt Printer Issues

by joemouk on Wed May 20, 2015 4:41 pm

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

Code: Select all | TOGGLE FULL SIZE
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
}



we now have upside down printing from an Arduino Uno.

atb

Jon

joemouk
 
Posts: 8
Joined: Sat May 26, 2012 1:26 pm

Re: Mini Thermal Receipt Printer Issues

by adafruit_support_rick on Thu May 21, 2015 10:03 am

Thanks for the update!

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Mini Thermal Receipt Printer Issues

by vishal_jogi on Mon Sep 14, 2015 8:26 am

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

vishal_jogi
 
Posts: 9
Joined: Mon Sep 14, 2015 8:12 am

Re: Mini Thermal Receipt Printer Issues

by vishal_jogi on Mon Sep 14, 2015 8:41 am

Hi Team,

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
20150914_180745.jpg (105.47 KiB) Viewed 1336 times

vishal_jogi
 
Posts: 9
Joined: Mon Sep 14, 2015 8:12 am

Re: Mini Thermal Receipt Printer Issues

by adafruit_support_rick on Mon Sep 14, 2015 10:27 am

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?

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Mini Thermal Receipt Printer Issues

by vishal_jogi on Tue Sep 15, 2015 1:51 am

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
Attachments
20150915_111418.jpg
20150915_111418.jpg (83.39 KiB) Viewed 1315 times

vishal_jogi
 
Posts: 9
Joined: Mon Sep 14, 2015 8:12 am

Re: Mini Thermal Receipt Printer Issues

by adafruit_support_rick on Tue Sep 15, 2015 10:10 am

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?

vishal_jogi wrote:I tried with Romoss and Xiaomi power bank

These are battery-powered devices? Do you have a regular mains power supply?

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Mini Thermal Receipt Printer Issues

by vishal_jogi on Tue Sep 15, 2015 10:17 am

Hi Team,

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

by vishal_jogi on Tue Sep 15, 2015 10:31 am

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
Attachments
20150915_195717.jpg
20150915_195717.jpg (89.8 KiB) Viewed 1307 times

vishal_jogi
 
Posts: 9
Joined: Mon Sep 14, 2015 8:12 am

Please be positive and constructive with your questions and comments.