Instructions for Android TSC Bluetooth/Ethernet. library functions



Similar documents
Barcode Definitions. Labels: Getting Started. Overview. Defining a barcode definition

BAR CODE CONTROL BAR CODE CONTROL - 1

Enhanced Bar Code Engine

Barcode Command. ConnectCode Barcode Software.

How To Use Qlabel 3D (For Pc) With A Computer Or Macbook 2 (For Mac) With An Ipod) With The Powerbook (For Windows) With Powerbook 2.5 (For Microsoft) With Zes

CHAPTER 8 BAR CODE CONTROL

BIXOLON Sales Guide INTELLIGENT & COMPACT SLP-TX inch Thermal Transfer / Direct Thermal Barcode Label Printer. SG_SLP-TX420_EN_Mar14

BARCODE PRINTING SET UP BARCODE PRINTING

ELFRING FONTS UPC BAR CODES

User Manual Microsoft Dynamics AX Add-on LabAX Label Printing

How To Use An Iphone With A Memory Card (I2) For A Week

WPL305 Thermal Label Printer User s Guide

BAR CODE 2 OF 5 INTERLEAVED

Windows Driver Manual Metapace T-4 Thermal Printer Rev. 1.00

Technical Reference DYMO LabelWriter SE450 Label Printer

MODEL : LK-P31 MOBILE PRINTER

Softek Software Ltd. Softek Barcode Reader Toolkit for Android. Product Documentation V7.5.1

Elliott NWSM Laser Form Technical Information

Godex Software Application FAQ s

OCR and 2D DataMatrix Specification for:

The Barcode Printing option may be purchased for an additional cost. You will receive a CD that you will use to activate this feature.

Windows Driver Manual Metapace T-1. Thermal Printer Rev. 1.00

Windows Driver Manual SRP-330 Thermal printer Rev. 1.02

Click to print from Microsoft Word, Excel, Outlook or our easy-to-use Label Creation Software (included)

All V7 registers support barcode printing, except the Sharp 410/420 1A ROM and that limitation is based upon the register.

Thermal Control Board User Manual 1

ELET4133: Embedded Systems. Topic 15 Sensors

HIGH-RESOLUTION INKJET THERMAL TRANSFER LABELS FOR BARCODING

Avery Dennison UK Consumer Helpline: Consumer

THERMAL TICKET PRINT SERVER USER MANUAL

Create!form Barcodes. User Guide

Unified Utility Manual Label Printer. Rev. 2.08

TA200/ TA300 Series THERMAL TRANSFER / DIRECT THERMAL BAR CODE PRINTER USER S MANUAL

ZQ110. Mobile Printer Android SDK. and API Reference Guide. P Rev. A

Win 7 - STIMA CLS / CMP Driver Installation Quick Guide

T GG GG P IT RO Q U Q I C I K K S T S A A T R T G U D

TMCT-10 Barcode Scanner User Manual. 102, St. Edmonton, AB T6E 3N8 Ph Fax

User Guide. Printing Unicode characters from SAP to SATO GT4xxe Printers. Version

Bar Codes For Inventory

P2WW ENZ0. How to use ScandAll PRO

Zebra kiosk and embedded printing solutions

Configuring a Random Weight Bar Code

The Care and Feeding of the Zebra Label Printer model 105Se CSU Library Collection and Resource Management

Desktop thermal ticket printers for the event ticketing industry

BAR CODE 39 ELFRING FONTS INC.

Barcode option details & costing February 2008

DPP-250 Thermal Printer User Manual

THERMAL TRANSFER / DIRECT THERMAL BAR CODE PRINTER

CT20 Barcode Scanner User Manual

ESC/POS Command Specifications

FLEETMATE. Overview. Barcode Scanner. CUSTOMER GUIDE: Barcode Features

Japanese Character Printers EPL2 Programming Manual Addendum

BCST-20 Barcode Scanner. Instruction Manual.

TTP-268M/ TTP-366M THERMAL TRANSFER / DIRECT THERMAL BAR CODE PRINTER USER S MANUAL

ELFRING FONTS THE RETAIL BAR CODE SOLUTION

Command Emulator STAR Line Mode Command Specifications

Elfring Fonts LaserJet Bar Codes & More

Understanding barcodes.

PL/PDF. PL/PDF Barcode User's Guide. v4.0.0

Contents. Bar code data transmission specifications...b-1. A October 1997 i

SocketScan Software Advanced Programming Guide

ZEBRA GK420D & GK420T PRINTER SPECIFICATIONS

The ID Technology. Introduction to GS1 Barcodes

Wireless Scanner. User s Manual - MS910 - Version 1.0

TagPrint PRO 3.0. Identification

ELFRING FONTS BAR CODES EAN 8, EAN 13, & ISBN / BOOKLAND

operating manual Axicon Filmbars barcode software package THE BARCODE EXPERTS

Avery DesignPro Frequently Asked Questions

Software Developer's Manual

Guide To Creating Academic Posters Using Microsoft PowerPoint 2010

The Lowest Cost, High Quality POS Printer THE TSP100 SERIES

Bar code scanners CLV45x / CLV450 / Standard Density

Xi2000 Series Configuration Guide

APPENDIX E COMMAND BARCODES

Bar Code Printing Guide

Scan to Network and Scan to Network Premium

GoLabel On-line Help

User Manual Printer driver PRO 300 / ECO 200 / Express Plus / Pegasus State: April

Wireless Laser Barcode Scanner ils 6300BU. User s Manual

THARO Programming Language

Adding a New Printer Barcode in SAP ECC 6.0

BARCODE LABELING SOFTWARE

Zebra G-Series. Desktop Printers Frequently Asked Questions. June Specific to Enhanced G-series (R2.0) configurations from June 2011.

Laser Barcode Scanner User s Manual

3/08 Rev EASY PLUG MANUAL All Devices. Bar Code Information

Barcode Scanner CLV640 CLV640 Bar Code Scanner

Barcode Scanner CLV62x CLV62x Bar Code Scanner

CP-2140 / CP-2140Z / CP-2140E CP-3140

Forms Printer 2500 Series

Printer Setup. What Is the Printer Setup Module?... B-2. How to Access the Printer Setup Module... B-3. Reference Information. Standard Procedures

Barcodes principle. Identification systems (IDFS) Department of Control and Telematics Faculty of Transportation Sciences, CTU in Prague

User Guide LabelManager 420P

CITIZEN OPOS DRIVER 1.8 Setup Guide. 10/03/29 Rev 1.09

Getting Started with Android

Getting Started: Creating a Simple App

LabelWorks LW-600P User's Guide

Transcription:

Instructions for Android TSC Bluetooth/Ethernet library functions 1. openport() Bluetooth openport(a) Description: Start the printer spool. a: String Input the Bluetooth Mac Address, example: 00:19:0E:A0:04:E1 Ethernet openport(a,b) Description: Start the printer spool. a: String Input the IP Address, for example: 192.168.1.50 b: String Input the printer port number, for example: 9100 2. closeport() Description: Close Windows printer spool. None 3. setup(a,b,c,d,e,f,g) Description: Set up label width, label height, print speed, print density, sensor type, gap/black mark vertical distance gap/black mark shift distance a: string, sets up label width; unit: mm b: string, sets up label height; unit: mm c: string, sets up print speed, (selectable print speeds vary on different printer models) 1.0: sets print speed at 1.0"/sec 1.5: sets print speed at 1.5"/sec 2.0: sets print speed at 2.0"/sec 3.0: sets print speed at 3.0"/sec 4.0: sets print speed at 4.0"/sec

6.0: sets print speed at 6.0"/sec 8.0: sets print speed at 8.0"/sec 10.0: sets print speed at 10.0"/sec 12.0: sets print speed at 12.0"/sec d: string, sets up print density 0~15,the greater the number, the darker the printing e: string, sets up the sensor type to be used 0: signifies that vertical gap sensor is to be used 1: signifies that black mark sensor is to be used f: string, sets up vertical gap height of the gap/black mark; unit: mm g: string, sets up shift distance of the gap/black mark; unit:: mm; in the case of the average label, set this parameter to be 0. 4. clearbuffer() Description: Clear None 5. barcode(a,b,c,d,e,f,g,h,i) Description: Use built-in bar code formats to print a: string; the starting point of the bar code along the X direction, given in points (of 200 DPI, 1 point=1/8 mm; of 300 DPI, 1point=1/12 mm) b: string; the starting point of the bar code along the Y direction, given in points (of 200 DPI, 1 point=1/8 mm; of 300 DPI, 1 point=1/12 mm) c: string 128 Code 128, switching code subset A, B, C automatically 128M Code 128, switching code subset A, B, C manually. EAN128 Code 128, switching code subset A, B, C automatically 25 Interleaved 2 of 5 25C Interleaved 2 of 5 with check digits 39 Code 39 39C Code 39 with check digits 93 Code 93 EAN13 EAN 13 EAN13+2 EAN 13 with 2 digits add-on

EAN13+5 EAN 13 with 5 digits add-on EAN8 EAN 8 EAN8+2 EAN 8 with 2 digits add-on EAN8+5 EAN 8 with 5 digits add-on CODA Codabar POST Postnet UPCA UPC-A UPCA+2 UPC-A with 2 digits add-on UPCA+5 UPC-A with 5 digits add-on UPCE UPC-E UPCE+2 UPC-E with 2 digits add-on UPCE+5 UPC-E with 5 digits add-on d: string; sets up bar code height, given in points e: string, sets up whether to print human recognizable interpretation (text) or not. 0: prints no interpretation 1: prints interpretation f: string; sets up rotation degrees 0: rotates 0 degree 90: rotates 90 degrees 180: rotates180 degrees 270: rotates 270 degrees g: string; sets up narrow bar ratio, refer to TSPL user's manual h: string; sets up wide bar ratio, refer to TSPL user's manual I: string; bar code content 6. printerfont(a,b,c,d,e,f,g) Description: Use printer built-in fonts to print a: string; the starting point of text (character string) along the X direction, given in points (of 200 DPI, 1 point=1/8 mm; of 300 DPI, 1 point=1/12 mm) b: string; the starting point of text (character string) along the Y direction, given in points (of 200 DPI, 1 point=1/8 mm; of 300 DPI, 1 point=1/12 mm) c: string; built-in font type name, 12 kinds in sum 1: 8*/12 dots 2: 12*20 dots 3: 16*24 dots 4: 24*32 dots 5: 32*48 dots TST24.BF2: Traditional Chinese 24*24 (Customized Font)

TST16.BF2: Traditional Chinese 16*16 (Customized Font) TTT24.BF2: Traditional Chinese 24*24 (Telecommunication Code) (Customized Font) TSS24.BF2: Simplified Chinese 24*24 (Customized Font) TSS16.BF2: Simplified Chinese 16*16 (Customized Font) K: Japan, Korean font 24*24, (Customized Font) L: Japan Korean font 16*16 (Customized Font) d: string; sets up the rotation degree of the text (character string) 0: rotates 0 degree 90: rotate 90 degrees 180: rotate 180 degrees 270: rotate 270 degrees e: string; sets up the magnification rate of text (character string) along the X direction, range: 1~8 f: string; sets up the magnification rate of text (character string) along the Y direction, range: 1~8 g: string; prints the content of text (character string) 7. sendcommand(command) Description: Sends built-in commands to the bar code printer Refer to TSPL for details 8. printlabel(a,b) Description: Print label content a: string; sets up the number of label sets b: string, sets up the number of print copies 9. downloadpcx(a) Description: Download mono PCX graphic files to the printer 10. downloadbmp(a) Description: Download mono BMP graphic files to the printer

11. downloadttf(a) Description: Download True Type Font file to the printer. 12. formfeed() Description: Skip to next page (of label); this function is to be used after setup None 13. nobackfeed() Description: disable the backfeed function None 14. sendfile(a) Description: Send.txt files to the printer 15. status() Description: Response the printer status. None You need use String variable to receive the printer return the status.

Android Example for TSC Bluetooth import com.example.tscdll.tscactivity; public class MainActivity extends Activity { TSCActivity TscDll = new TSCActivity(); public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); TscDll.openport("00:19:0E:A0:04:E1"); TscDll.downloadpcx("UL.PCX"); TscDll.downloadbmp("Triangle.bmp"); TscDll.downloadttf("ARIAL.TTF"); TscDll.setup(70, 110, 4, 4, 0, 0, 0); TscDll.clearbuffer(); TscDll.sendcommand("SET TEAR ON\n"); TscDll.sendcommand("SET COUNTER @1 1\n"); TscDll.sendcommand("@1 = \"0001\"\n"); TscDll.sendcommand("TEXT 100,300,\"3\",0,1,1,@1\n"); TscDll.sendcommand("PUTPCX 100,300,\"UL.PCX\"\n"); TscDll.sendcommand("PUTBMP 100,520,\"Triangle.bmp\"\n"); TscDll.sendcommand("TEXT 100,760,\"ARIAL.TTF\",0,15,15,\"THIS IS ARIAL FONT\"\n"); TscDll.barcode(100, 100, "128", 100, 1, 0, 3, 3, "123456789"); TscDll.printerfont(100, 250, "3", 0, 1, 1, "987654321"); String status = TscDll.status(); text1.settext(status); TscDll.printlabel(2, 1); TscDll.sendfile("zpl.txt"); TscDll.closeport(); You need input below command line to AndroidMainfest.xml first. <uses-permission android:name="android.permission.bluetooth_admin" /> <uses-permission android:name="android.permission.bluetooth" /> <uses-permission android:name="android.permission.write_external_storage"/>

Android Example TSC Ethernet import com.example.tscwifidll.tscwifiactivity; public class MainActivity extends Activity { TscWifiActivity TscEthernetDll = new TscWifiActivity(); public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); TscEthernetDll.openport("192.168.1.58", 9100); TscEthernetDll.downloadpcx("UL.PCX"); TscEthernetDll.downloadbmp("Triangle.bmp"); TscEthernetDll.downloadttf("ARIAL.TTF"); TscEthernetDll.setup(70, 110, 4, 4, 0, 0, 0); TscEthernetDll.clearbuffer(); TscEthernetDll.sendcommand("SET TEAR ON\n"); TscEthernetDll.sendcommand("SET COUNTER @1 1\n"); TscEthernetDll.sendcommand("@1 = \"0001\"\n"); TscEthernetDll.sendcommand("TEXT 100,300,\"3\",0,1,1,@1\n"); TscEthernetDll.sendcommand("PUTPCX 100,300,\"UL.PCX\"\n"); TscEthernetDll.sendcommand("PUTBMP 100,520,\"Triangle.bmp\"\n"); TscEthernetDll.sendcommand("TEXT 100,760,\"ARIAL.TTF\",0,15,15,\"THIS IS ARIAL FONT\"\n"); TscEthernetDll.barcode(100, 100, "128", 100, 1, 0, 3, 3, "123456789"); TscEthernetDll.printerfont(100, 250, "3", 0, 1, 1, "987654321"); String status = TscEthernetDll.status(); text1.settext(status); TscEthernetDll.printlabel(2, 1); TscEthernetDll.sendfile("zpl.txt"); TscEthernetDll.closeport(); You need input below command line to AndroidMainfest.xml first. <uses-permission android:name="android.permission.internet"/> <uses-permission android:name="android.permission.write_external_storage"/>