Professional Documents
Culture Documents
2/6
ASCII
10 hex
16 hex
ESC
27
1B
3
51
33
N
N
N
FormatASCII ESC
Q
N
10 hex 27
81
N
16 hex 1B
51
N
Right limit is the number of the characters that the right side cannot print.The width of
Each character calculated by character dot width+ word spacing(The actual value of each
Characters width is relative,affected by the zoom in or out command of the character);
The Value of the N should be ranged from 0 to the number of the characters that the print
Head can provide).It will equal 0after power-up or initialization.That is to see no
Right limit
4.4.2 set the left limit
FormatASCII ESC
1
N
10 hex 27
108
N
16 hex 1B
6C
N
Left limit is the number of the characters that the left side cannot print.The width of
Each character calculated by character dot width+ word spacing(The actual value of each
Characters width is relative,affected by the zoom in or out command of the character);
The Value of the N should be ranged from 0 to the number of the characters that the print
Head can provide).It will equal 0after power-up or initialization.That is to see no
Right limit
3/6
ESC
27
1B
ASCII
10 hex
16 hex
a
97
61
n
n
n
ASCII
ESC
2
N
10 hex
27
6D
N
16 hex
1b
6D N
The range of the value of the N is 1~20,the color of 20 is the most shallow,1 is the darkest color,the
Default is 8.Designed for the color shades problems of the different thermal paper
4.5
FormatASCII ESC
U N
10 hex 27
85 N
16 hex 1B
55 N
The characters will be printed N times width than the normal
1=<N=<4 N( default)1.
r 2013-07-02 10:22
4/6
N
N
N
width than the normal width
1=<N=<4 N(default)1
Highest levelD7
Lowest levelD7
ESC
27
1B
K
75
4B
ml
ml
ml
mh
mh
mh
1 2 3 4 5 6 7 8 9 101112
N1
N1
N1
N2...Ni
N2...Ni
N2...Ni
5/6
barcode
UPC-A
1
2
UPC-E
EAN-13
EAN-8
N
N
N
64
40
1.Development environment
Demo eclipse + Android4.2 SDK
Function
Name
Description
Parameter
Description
enable
0----Close the power
Return
Value
0---success
Other --Failure
Open the power of the printer,wait for 0.5s,then sent
the data.Close the printer power after 3s later than the
finish of the data sent.This is realized in the
pwmcontrol.java
Remark
Function
Name
Description
Parameter
Description
Exception
SerialParam:serial parameter
Handle:
handlerto solve it
Return
value
Non
Explanation
Only initialize all the printer port,will not operate the printer
Function
Name
void ClosePrinter()
Function
Description
Parameter
Description
Non
Return
Value
Non
Explanation
Only close all the interfaces of the pinter,will not operate the printer
Function
Name
Function
Descroption
Parameter
Return value
Non
Function
Name
Function
Description
Parameter
Description
Return value
Non
Function
Name
Function
Description
Paper feed
Parameter
Description
Return value
Value
Function
Description
Parameter
Description
Return
Value
Non
Function
Name
Function
Description
Parameter
Description
Return
Value
Non
Function
Name
Function
Description
Parameter
Return
Value
Non
Function
Name
Function
Description
Parameter
Description
paramInt48left justifying
49In the Middle
50Right justifying
Return
Value
Non
Explanation
Function
Name
Function
Description
Parameter
Description
heightthe
Return
Value
Non
Function
Name
Function
Description
Parameter
Description
Return
Value
Non
Function
Name
Function
Description
Send wrap
Parameter
Non
Return
Value
Non
Function
Name
Function
Description
Print bitmaps
Parameter
Description
Return
Value
Non
4.Other
It is realized in PwmControl.java
Function
Name
Function
Description
Buzzer control
Parameter
Description
enable
0----Close the buzzer
Return
Value
0---success
Other---Failure
Function
Name
Function
Description
Parameter
Description
brBacklight brightness0-255
Return Value
0---sucess
Other--Failure