![Custom Engineering s'print User Manual Download Page 26](http://html1.mh-extra.com/html/custom-engineering/sprint/sprint_user-manual_2700880026.webp)
2. INTERFACES
4
2-
DPT100-B/I/BT
It is possible to communicate with the printer in two different ways: by sending a string of characters and/or
commands preceded by the IR port Open command and followed by a Close command (standard mode), or by
utilizing a simple transfer protocol that guarantees that data is compressed correctly by the printer.
2.2.1 Standard Mode
To utilize the printer in standard mode, set the “IR protocol” parameter to Disabled. In this mode, the data flow
to the printer must be structured as follows:
s
e
t
y
B
2
s
e
t
y
B
n
e
t
y
B
2
d
n
a
m
m
o
C
t
r
a
t
S
s
d
n
a
m
m
o
C
/
a
t
a
D
d
n
a
m
m
o
C
p
o
t
S
START COMMAND ($1B $02): the IR port opening command, it is composed of 2 bytes with values $1B
$02. All characters received before this command, when the
communication port is closed, are ignored.
DATA/COMMANDS:
the part of the data and/or commands the printer must elaborate and its
length is variable. This field may include both data to be printed and control
characters (see Section 3 “Printer Functions”). To guarantee that all data is
received correctly, this field is subject to handshaking software (xon/xoff).
STOP COMMAND ($1B $03):
the IR port closing command, it is composed of 2 bytes with values $1B $03. All
characters received after this command are ignored, unless it is a START
COMMAND.
EXAMPLE:
To use this protocol to print the text “CUSTOM” in double height and width, send the following data to the
printer
d
n
a
m
m
o
c
t
r
a
t
S
a
t
a
D
d
n
a
m
m
o
c
p
o
t
S
d
e
d
n
a
p
x
E
e
d
o
m
e
n
i
L
d
e
e
f
2
0
$
B
1
$
3
0
$
3
4
$
5
5
$
3
5
$
4
5
$
F
4
$
D
4
$
A
0
$
3
0
$
B
1
$
C
U
S
T
O
M
NOTE:
The LED is always switched on (not flashing) when using the infrared port.
2.2.2 InfraRed communication protocol
To utilize the IR communication protocol, the “IR Protocol” must first be set to “Enabled” under setup.
The transfer protocol is structured as follows:
e
t
y
B
1
e
t
y
B
1
h
t
g
n
e
L
s
e
t
y
B
e
t
y
B
1
e
t
y
B
1
X
T
S
H
T
G
N
E
L
A
T
A
D
B
O
J
D
I
S
K
C
STX
[1byte]
= $02 Start Transmission ID
LENGHT [1byte]
= number of bytes in the transmitted data field. The maximum number of bytes to be
transmitted must be <=48.
Summary of Contents for s'print
Page 1: ...DPT100 B I BT User Manual Portable thermal printer s print www custom biz...
Page 10: ...INTRODUCTION DPT100 B I BT 4 Blank page...
Page 34: ...2 INTERFACES 12 2 DPT100 B I BT Blank page...
Page 55: ...4 TECHNICAL SPECIFICATIONS 6 4 DPT100 B I BT Blank page...
Page 57: ...5 CHARACTER SETS 2 5 DPT100 B I BT Blank page...