Evolis SDK Magnetic Encoding With Evolis Printers
Evolis SDK Magnetic Encoding With Evolis Printers
Magnetic encoding
Contents
General information about magnetic encoding with Evolis printers ............. 3
A. Following ISO 7811 magnetic encoding standards ............................................ 3
B. Using a magnetic encoding custom mode ............................................................ 3
Usecases samples : ......................................................................................................................... 3
Encode custom mode bit stream in 5 bits on track # 1 .................................... 4
Download sequence using Custom 2 mode.............................................................. 4
2
General information about magnetic encoding with
Evolis printers
Could be performed High-co or Lo-co in two different modes. The written
data are automatically checked by the printer.
To fit all needs, each track could be set with custom setting: Density, start
position and special data format.
All data exchange between the application software and the Evolis Printer
to either write or read magnetic data are exchanged exclusively using ASCII
format. This allows to write (encode) or read any data from 0 to 255.
Usecases samples :
Dm;1;80C3D245
The Evolis printer will receive the following data :
Escape
comman D m ; 1 ; 8 0 C 3 D 2 4 5
d
data
0x4 0x6 0x3 0x3 0x3 0x3 0x3 0x4 0x3 0x4 0x3 0x3 0x3
byte 4 D B 1 B 8 0 3 3 4 2 4 5
sent
3
Encode custom mode bit stream in 5 bits on track # 1
Using a 5 bits format, hexadecimal value of the bit stream are 0x10, 0x03,
0x01 , 0x1D, 0x04, 0x11, 0x08, broken down as follow :
Escape
D m ; 1 ; 1 0 0 3 0 1 1 D 0 4 1 1
command
data 0x44 0x6D 0x3B 0x31 0x3B 0x31 0x30 0x30 0x33 0x30 0x31 0x31 0x44 0x30 0x34 0x31 0x30
byte sent
Now, if you send the command “Smr;1”, the printer will be decode the string
with the Rmt;1 format.
For 8 bits format, the printer starts to decode on the first 1 detected, so the
printer reads:
10000000(0x80)
00011010(0x1A)
11111111(0xFF)
00000000(0x00)
00101011(0x2B)
00000001(0x01)
4
So the answer for the command Smr;1 will be “801AFF2B01”
If the track format is “Pmt;1;c2;s;5”, the printer will read:
10000(0x10)
00000(0x00)
01101(0x0D)
01111(0x0F)
11110(0x1E)
00000(0x00)
00001(0x01)
01011(0x0B)
00000(0x00)
00100(0x04)
10000000 reverse
00000001(0x01)00011010
rev 01011000(0x58)11111111
rev 11111111(0xFF)00000000
rev 00000000(0x00) 00101011
rev 11010100 (0xD4)00000001
rev. 10000000 (0x80)
5
4 bits standard mode Pmt;1;c2;s;4 Dm;1;0800010A0F0F0000020B0001
So, 2.88 inch in 210bits / inch, you can encode 604 bits. (2.88 inch / (1/210))
When using 8 bits format, it allows 75 words of 8 bits (604 bits / 8 bits) and
using 5 bits format, it allows 120 words of 5 bits.
When using 8 bits format, it allows 27 words of 8 bits (604 bits / 8 bits) and
using 5 bits format, it allows 43 words of 5 bits.
Note: the data string must always begin by a “1” because the printer begins
to decode the data string at the first “1” encoded.
6
Printer's Commands references related to magnetic
encoding
Set of commands related to magnetic encoding
Parameter Human
Command Parameter 1 Options scope Description Sample
2 meaning
Download
ABCDE on
track 1
Dm;1;ABCD
1 Track1 data Download
Communi Download Magnetic E
Dm 2 Track2 data N/A 1234 on
cation data to printer Dm;2;1234
3 Track3 data track 2
Dm;3;3456
Download
3456 on
track 3
i
Initialize
(initialization
Motor Magnetic allows magnetic
) Mm;i
Hardware to test the motor that motor
Mm + (up N/A N/A Mm;+
command control the magnetic position up
position) Mm;-
head positioning Position
- (down
down
position)
Read data 3
Parameter Loop Magne times after
1 1 (Default)
tic Repetition, Set the a write
2 2 Configurat
Plmr N/A number of writing and Plmr;3;1 operation,
3 (default) 3 ion
read repetition in case of process this
... ...
error 1 time per
card
Get the
current
Read Loop Magnetic Re
Configurat number of
petition, Read the
ion loops set for
Rlmr N/A N/A N/A current value for the Rlmr
reading hardware
magnetic checkings
value error
(read and writes loops)
manageme
nt
Configurat
ion Read Magnetic Base St
Rmbs N/A N/A N/A Rmbs
reading art
value
7
Parameter Human
Command Parameter 1 Options scope Description Sample
2 meaning
coercivity
to high-co
Get the
Configurat value of the
Read Magnetic Coercivi
ion current
Rmc N/A N/A N/A ty, read current Rmc
reading coercivity
coercivity
value (HICO or
LOCO)
Set track 1
to 75 BPI
density
Parameter Magnetic De
1 Pmd;1;75 Set track 2
75 (BPI) Configurat nsity, set the density of
Pmd 2 NA Pmd;2;210 to 210 BPI
210 (BPI) ion tracks 1,2 or 3 between
3 Pmd;3;75 density
75 and 210 BPI
Set track 3
to 75 BPi
density
Configurat
1 Rmd;1
ion Read Magnetic Density
Rmd 2 N/A N/A Rmd;2
reading of track 1,2 or 3
3 Rmd;3
value
Read
Configurat current
Rmf N/A N/A N/A ion Read Magnetic Filter Rmf magnetic
reading feature
status
Configurat
Read Magnetic Motor S
Rmms N/A N/A N/A ion Rmms
peed
reading
8
Parameter Human
Command Parameter 1 Options scope Description Sample
2 meaning
Read current
1 Smr;1 track 1
Communi Sequence Magnetic Re Read current
Smr 2 NA NA Smr;2 track 2
cation ad
3 Smr;3 Read current
track 3
Glossary
ASCII TABLE:
9
Generic Hico card Generic Loco card
Alphanumerical :
A-Z (CAPITAL)
210 bpi (Bits per 79 (including Start, Stop and LRC
Track 1 ^ 0-9
inch) characters)
ASCII TABLE 20-95 except ?
character
10
Disclaimer
While Evolis makes every effort to deliver high quality products, we do not guarantee that our products
are free from defects. Our SDK, samples and demo software, any content or documentation delivered in
this package (Evolis SDK) is provided "as is". The use of it is at your own risk.
Evolis makes no warranties as to performance, merchantability, fitness for a particular purpose, or any
other warranties whether expressed or implied.
No oral or written communication from or information provided by Evolis shall create a warranty.
Under no circumstances shall Evolis be liable for direct, indirect, special, incidental, or consequential
damages resulting from the use, misuse, or inability to use this Software Development Kit (named Evolis
SDK), even if Evolis has been advised of the possibility of such damages.