TSC TDP-245

148 views
Skip to first unread message

sil...@gmail.com

unread,
Mar 8, 2015, 6:02:36 AM3/8/15
to qz-p...@googlegroups.com
Hello Guys,
We´ve been using the jzebra for a while on some web applications. Lately, we started working with a TSC TDP-245 thermal printer and despite allowing local printing normally we haven't been able to use the jzebra (nor qz) plugin.
The printer doesn't work if installed as a raw printer and must be installed with TSC TDP-245 driver.
The printers gets listed and the data seems sent to the printer but nothing gets printed. We have found that there is a TSC language that maybe could allow raw printing (at https://www.mediaform.de/fileadmin/support/handbuecher/etikettendrucker/tsc/TSC_TSPL_TSPL2_Programming.pdf)

This is the result when testing from http://demo.qzindustries.com/:

Java Plug-in 11.25.2.18
Using JRE version 1.8.0_25-b18 Java HotSpot(TM) Client VM
User home directory = C:\Users\cardoso
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
mar 08, 2015 8:54:03 AM qz.LogIt log
INFO: QZ-PRINT 1.8.7
mar 08, 2015 8:54:03 AM qz.LogIt log
INFO: ===== JAVASCRIPT LISTENER THREAD STARTED =====
mar 08, 2015 8:54:03 AM qz.LogIt log
INFO: Successfully called JavaScript function
setTimeout(qzReady(), 0)
mar 08, 2015 8:54:05 AM qz.LogIt log
INFO: ===== SEARCHING FOR PRINTER =====
mar 08, 2015 8:54:05 AM qz.LogIt log
INFO: Successfully called JavaScript function
setTimeout(qzDoneFinding(), 0)
mar 08, 2015 8:54:24 AM qz.LogIt log
INFO: Current printer charset encoding: windows-1252
mar 08, 2015 8:54:24 AM qz.LogIt log
WARNING: Copies is unsupported for print()
java.lang.UnsupportedOperationException: Copies attribute for raw data has not yet been implemented
at qz.PrintRaw.setCopies(PrintRaw.java:503)
at qz.PrintRaw.setPrintParameters(PrintRaw.java:523)
at qz.PrintApplet.getPrintRaw(PrintApplet.java:1367)
at qz.PrintApplet.append(PrintApplet.java:1022)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.Trampoline.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
at sun.plugin2.liveconnect.JavaClass$MethodInfo.invoke(Unknown Source)
at sun.plugin2.liveconnect.JavaClass$MemberBundle.invoke(Unknown Source)
at sun.plugin2.liveconnect.JavaClass.invoke0(Unknown Source)
at sun.plugin2.liveconnect.JavaClass.invoke(Unknown Source)
at sun.plugin2.main.client.LiveConnectSupport$PerAppletInfo$DefaultInvocationDelegate.invoke(Unknown Source)
at sun.plugin2.main.client.LiveConnectSupport$PerAppletInfo$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.main.client.LiveConnectSupport$PerAppletInfo.doObjectOp(Unknown Source)
at sun.plugin2.main.client.LiveConnectSupport$PerAppletInfo$LiveConnectWorker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

mar 08, 2015 8:54:24 AM qz.LogIt log
INFO: Print buffer has been cleared.
mar 08, 2015 8:54:26 AM qz.LogIt log
INFO: Loading BufferedImage
mar 08, 2015 8:54:26 AM qz.LogIt log
INFO: Dimensions: 256x128
mar 08, 2015 8:54:26 AM qz.LogIt log
INFO: Initializing Image Fields
mar 08, 2015 8:54:26 AM qz.LogIt log
INFO: Converting image to monochrome
mar 08, 2015 8:54:26 AM qz.LogIt log
INFO: Packing bits
mar 08, 2015 8:54:26 AM qz.LogIt log
INFO: Generating byte array
mar 08, 2015 8:54:26 AM qz.LogIt log
INFO: Successfully called JavaScript function
setTimeout(qzDoneAppending(), 0)
mar 08, 2015 8:54:26 AM qz.LogIt log
INFO: ===== SENDING DATA TO THE PRINTER =====
mar 08, 2015 8:54:26 AM qz.LogIt log
INFO:


N
q609
Q203,26
B5,26,0,1A,3,7,152,B,"1234"
A310,26,0,3,1,1,N,"SKU 00000 MFG 0000"
A310,56,0,3,1,1,N,"QZ PRINT APPLET"
A310,86,0,3,1,1,N,"TEST PRINT SUCCESSFUL"
A310,116,0,3,1,1,N,"FROM SAMPLE.HTML"
A310,146,0,3,1,1,N,"QZINDUSTRIES.COM"
GW150,300,32,128,ÿÿÿÿÿÿÿé$’_ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþ”•J—ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿòJ¤¤£ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþ‰R’RUÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿôªJUU>ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
I)I%þ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿô¥*¥U?ÿ¿ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿJ©I(‘ÿÿ?ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿùR”ª–Oÿÿ?ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÄ”¥%Iÿÿÿ×ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿú*R’¨§ÿÿÿËÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ¥UJT• ÿÿÿëÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþ©I)J¥ÿÿÿÿéÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÁ ¥JR_ÿÿÿÿòÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ5R”¥)ÿÿÿÿÿô ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿð‰)RR—ÿÿÿÿÿú¿ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿòª”•)Wÿÿÿÿÿù ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿáIJJ”—ÿÿÿÿÿýOÿÿÿÿÿÿþ‹ÿÿÿÿÿÿÿÿÿÿÿÁ*R©J£ÿÿÿÿÿýWÿÿÿÿÿÿÒ¨?Û ÕUUUUWÿÿÀ’”’¤•ÿÿÿÿÿþKÿÿÿÿÿÿ©KOÉ?À

Kindly let me know whether you could see a reason for not working.

Regards,
Jair

Tres Finocchiaro

unread,
Mar 8, 2015, 2:55:06 PM3/8/15
to sil...@gmail.com, qz-p...@googlegroups.com
@Jair,

This language should work just fine with qz-print, but we don't have any sample commands for your printer.  None of the examples we provide are in TSC, TSPL or TSPL2 raw languages.

You may want to consult the printer hardware to see if it can receive a firmware with emulates EPL or ZPL.

If not, you'll have to read through the manual and translate the functions to JavaScript.  We'll help with the translation if you can supply us with the native commands.

--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tres Finocchiaro

unread,
Mar 8, 2015, 2:55:58 PM3/8/15
to sil...@gmail.com, qz-p...@googlegroups.com
@Jair,

Also, if the vendor can provide a flat sample text file (just raw data) we can help convert that as well.

Jair Silva

unread,
Mar 9, 2015, 6:45:08 AM3/9/15
to Tres Finocchiaro, qz-p...@googlegroups.com
Hi Tres.
Thanks for the prompt response.
We have requested more details to the supplier and will revert to you ASAP.

Regards,
Jair

Tres Finocchiaro

unread,
Mar 12, 2015, 9:35:10 AM3/12/15
to Jair Silva, qz-p...@googlegroups.com
@Jair,

> Actually this is a chinese label printer and they are using the TSC-TDP 245 driver and structure.
> I would like to try the TSPL but have no idea of where to start with.

This word doc is exactly what we needed!  I've converted it to PDF and attached for future reference.

The good news is that these commands do appear to be raw commands as I don't recall any BASIC language commands like SIZE, GAP, DENSITY.

Can you try the following (JavaScript):

qz.append("TEXT 25,25,\"3\",0,1,1,\"QZ TSPL FIRST TEST\"\r\n");
qz.append("PRINT 3,1\r\n");

-Tres
 



-Tres


On Thu, Mar 12, 2015 at 9:19 AM, Jair Silva <sil...@gmail.com> wrote:
Hi Tres,
Actually this is a chinese label printer and they are using the TSC-TDP 245 driver and structure.
I would like to try the TSPL but have no idea of where to start with.
This is the link that i have found for the language http://www.tscprinters.com/cms/upload/download_en/TSPL_TSPL2_Programming.pdf
For instance, there is this sample:

SIZE 4,2.5 
GAP 2 mm,0 
SET COUNTER @0 +1 
@0=”000001” 
HOME 
CLS 
BOX 1,1,360,65,12 
TEXT 25,25,”3”,0,1,1,”HOME COMMAND TEST” 
TEXT 25,80,”3”,0,1,1,@0 PRINT 3,1

Starting with just simple text printing, i suppose we would have to convert the TEXT commands, the parameters seem to be the font configuration followed by the text itself.
How could we do this?
Regarding the 2D functions what would be your suggestion?

Thanks and regards.
Jair


2015-03-11 19:13 GMT-01:00 Tres Finocchiaro <tres.fin...@gmail.com>:

@Jair,

How similar is this to a TDP-244 printer? According to the product page:
The TDP-244 has plenty of memory with 8MB DRAM and 4 MB FLASH that can be used for easy storage of fonts, international character sets and graphics, and it supports, “right out of the box,” a fully compatible set of standard industry emulations, including Eltron® and Zebra® languages, making it easy to replace old installed hardware.

This claims that the 244 model supports both EPL and ZPL.

If it does not support these languages, you could fall back onto TSPL or try printing using some of our 2D functions.

-Tres



On Wed, Mar 11, 2015 at 12:22 PM, Jair Silva <sil...@gmail.com> wrote:
Hi Tres,
The printer supplier couldn't provide me a manual.
We'll have to look into other solution.

Thank you for the attention.

Regards,
Jair Silva
TSPL Programming Guide.pdf

Tres Finocchiaro

unread,
Mar 12, 2015, 10:22:44 AM3/12/15
to Jair Silva, qz-p...@googlegroups.com
@Jair,

Hi Tres,
Thank you so much!
It worked!!!

Fantastic!

When you get a good sample ready, do you mind offering it to the project as part of our sample.html?

All I would need is the commands.

-Tres


On Thu, Mar 12, 2015 at 10:15 AM, Jair Silva <sil...@gmail.com> wrote:

Regards,
Jair
Reply all
Reply to author
Forward
0 new messages