Author Topic: Label printer datasheet  (Read 1578 times)

0 Members and 1 Guest are viewing this topic.

Offline Vindhyachal.taknikiTopic starter

  • Frequent Contributor
  • **
  • Posts: 488
Label printer datasheet
« on: April 18, 2019, 02:25:22 pm »
I got this cheap label printer from market. Need to be interface with arduino.

Any idea where I can find its datasheet. Seller didnt have it, asked to download from internet.

Found some link, but no further info: https://shop.aftabrayaneh.com/LPM_261_Thermal_Label_Printer__AFTAB.html

 

Offline austfox

  • Regular Contributor
  • *
  • Posts: 158
  • Country: au
Re: Label printer datasheet
« Reply #1 on: April 18, 2019, 03:35:26 pm »
Checkout Adafruit’s TTL printer:

https://core-electronics.com.au/tiny-thermal-receipt-printer-ttl-serial-usb.html

Whilst not the same brand, it has the same serial inputs and might help you at least get started.
 

Offline johnkenyon

  • Regular Contributor
  • *
  • Posts: 123
  • Country: gb
Re: Label printer datasheet
« Reply #2 on: April 18, 2019, 05:26:49 pm »
Have you tried using the USB port and seeing what VID/PID is shown? (my money is on a CH34x serial chip., but you never know...)
 

Offline Vindhyachal.taknikiTopic starter

  • Frequent Contributor
  • **
  • Posts: 488
Re: Label printer datasheet
« Reply #3 on: April 19, 2019, 05:42:51 am »
1. I have sent data serially from arduino like Serial. print("text"). Have been able to print without issue.



2. this is label printer, as in attached picture, how to identify the cut in sticker so that data gets printed on label only, now as there is no detection command I know, data gets printed out of label too.



3. connected usb port to PC, it comes out to unidentified harware in device manager.
 

Offline austfox

  • Regular Contributor
  • *
  • Posts: 158
  • Country: au
Re: Label printer datasheet
« Reply #4 on: April 19, 2019, 07:50:56 am »

2. this is label printer, as in attached picture, how to identify the cut in sticker so that data gets printed on label only, now as there is no detection command I know, data gets printed out of label too

Not having written software for a data label printer, I am guessing that your software determines how much data is printed so that it fits within the label, and then a particular ‘ESC’ code is sent to advance the roll to the next label (which it does optically with the use of the black bars on the label roll).

Grab a manual for another label printer because chances are the ESC codes are common amongst most label printers.
 

Offline kjr18

  • Regular Contributor
  • *
  • Posts: 201
  • Country: pl
Re: Label printer datasheet
« Reply #5 on: April 21, 2019, 07:26:41 am »
First thing, get yourself some thermal receipt paper that fits this printer, it will be useful in the beginning. Printers like these supposed to be able to print basic info like codepage, character table, serial port speed, and many other things. Try powering it while holding one of these buttons. If it won't print anything try another one. It might help you get proper serial port settings. My printer is only 9600 baud, but yours is supposed to be 9600 to 115200 baud.

As for usb port, follow answer to this question, and tell us what it shows there. We might be able to find maybe drivers or other useful for you information.

Not having written software for a data label printer, I am guessing that your software determines how much data is printed so that it fits within the label, and then a particular ‘ESC’ code is sent to advance the roll to the next label (which it does optically with the use of the black bars on the label roll).

These might be not black bars but holes, as this printer supposed to have optical end-of-paper detection. I think that printer firmware will send some codes after detecting empty space, and software treats this data as "end of label, repeat printing" or something like that.
 

Offline Vindhyachal.taknikiTopic starter

  • Frequent Contributor
  • **
  • Posts: 488
Re: Label printer datasheet
« Reply #6 on: May 05, 2019, 06:53:25 am »
1. Here is pic of paper I found by taking printout on selftest  (paper is not label, otherwise label printer is used)

2. Selftest pic is attached

3. label paper pic is attached

4. Printer has these pin on it : VH, Gnd , Tx, Rx, DTR, GND.

5. One thing I found on selftest pic, is that hardware flow control is enabled. Now how to do that in arduino?

6. I wam able to print text on printer by normal command:  serial1.println("text") . But this print only of label printer is correctly placed i.e side hole is properly detected.

7. Now I want to that whenever I power on system, I send command to align label properly so thAT i can print on it.
I have tried all commands by this loop:

for(cnt = 0U ; cnt < 255U ; cnt++)
{
    Serial1.write(cnt);
}


only cnt = 14 takes to next label , but only if previous label was properly placed, otherwise this dont work either.

 

Offline stevelup

  • Regular Contributor
  • *
  • Posts: 184
  • Country: gb
Re: Label printer datasheet
« Reply #7 on: May 06, 2019, 10:19:30 am »
A great many thermal printers support Epson's ESC/POS command set.

To test this, send:-

ESC (0x1B) @ (0x40) (this resets everything)
ESC (0x1B) ! (0x21) 8 (0x38) (this should set double height, double width, bold)
SOME TEXT followed by LF (0x0A) followed by FF (0x0C)

If your text comes out big and bold, you know it's ESC/POS compatible and can do some more reading.
 

Offline Vindhyachal.taknikiTopic starter

  • Frequent Contributor
  • **
  • Posts: 488
Re: Label printer datasheet
« Reply #8 on: May 20, 2019, 06:51:15 am »
solved, 

1. send only 14, moves the lbel to next label i.e to start of new label.  I was sending 14,10 together,  which created issues.



2. Rest print text is normal & for barcodes, adafruit library comes handy
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf