1. Manual Information ...................................................................................................................................... 7
1-1 Supported Platform & Development Environment ................................................................................... 7
2-1 Character Set ........................................................................................................................................... 9
2-2 International Character Set .................................................................................................................... 10
2-4 Text Size................................................................................................................................................. 10
2-5 Text Attribute ........................................................................................................................................... 11
2-6 Bar Code Text Position ........................................................................................................................... 11
2-7 Bar Code Symbology ............................................................................................................................. 12
2-9 Power ..................................................................................................................................................... 13
2-10 State ..................................................................................................................................................... 13
2-11 Connection Control .............................................................................................................................. 13
2-13 Drawer open level ................................................................................................................................ 14
2-14 Model ID ............................................................................................................................................... 14
2-15 Connection Class ................................................................................................................................. 14
2-16 Result Code ......................................................................................................................................... 15
3. BXBarcode Class Reference .................................................................................................................... 17
4-2-3 port ........................................................................................................................................... 18
5-2-12 state ....................................................................................................................................... 23
5-2-13 power ..................................................................................................................................... 23
5-3-2 open ......................................................................................................................................... 24
5-3-3 close ......................................................................................................................................... 25
This manual contains proprietary information of Zebra Technologies Corporation. It is
intended solely for the information and use of parties operating and maintaining the equipment described herein. Such proprietary information may not be used, reproduced, or disclosed to any other parties for any other purpose without the expressed written permission
of Zebra Technologies Corporation.
Product Improvements
Since continuous product improvement is a policy of Zebra Technologies Corporation, all
specifications and signs are subject to change without notice.
FCC Compliance Statement
NOTE: This equipment has been tested and found to comply with the limits or a Class B
digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide
reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed and
used in accordance with the instructions, may cause harmful interference to radio
communications. However, there is no guarantee that interference will not occur in a
particular installation. If this equipment does cause harmful interference to radio or
television reception, which can be determined by turning the equipment off and on, the
user is encouraged to try to correct the interference by one or more of the following
measures:
• Reorient or relocate the receiving antenna.
• Increase the separation between the equipment and receiver.
• Connect the equipment into an outlet or circuit different from that to which the receiver is
connected.
• Consult the dealer or an experienced radio/TV technician for help.
WARNING: Exposure to Radio Frequency radiation. To conform to FCC RF exposure requirements this device shall be used in accordance with the operating conditions and instructions listed in this manual.
NOTE: This unit was tested with shielded cables on the peripheral devices. Shielded
cables must be used with the unit to insure compliance.
Changes or modifications to this unit not expressly approved by Zebra Technologies Corporation could void the user‟s authority to operate this equipment.
Rev. 1.00
EM220II
- 5 -
Mobile Printer
iOS SDK API Reference Guide
Canadian Compliance Statement
This Class B digital apparatus complies with Canadian ICES-003.
Cet appareil numérique de la classe B est conforme á la norme NMB-003 du Canada.
“IC:” before the equipment certification number signifies that the Industry Canada technical
specifications were met. It does not guarantee that the certified product will operate to the
user‟s satisfaction.
Liability Disclaimer
Inasmuch as every effort has been made to supply accurate information in this manual,
Zebra Technologies Corporation is not liable for any erroneous information or omissions.
Zebra Technologies Corporation reserves the right to correct any such errors and
disclaims liability resulting therefrom.
No Liability for Consequential Damage
In no event shall Zebra Technologies Corporation or anyone else involved in the creation,
production, or delivery of the accompanying product (including hardware and software) be
liable for any damages whatsoever (including, without limitation, damages for loss of
business profits, business interruption, loss of business information, or other pecuniary
loss) arising out of the use of or the results of use of or inability to use such product, even
if Zebra Technologies Corporation has been advised of the possibility of such damages.
Because some states do not allow the exclusion of liability for consequential or incidental
damages, the above limitation may not apply to you.
This iOS SDK manual contains the descriptions of the Library required for the applications
program development.
1-1 Supported Platform & Development Environment
- Platform
• iOS 3.13 or higher
- Development environment
• XCode 3.2.6 or higher
1-2 Supported Platform & Supported Devices
Compatibilities of the following list of devices were verified.
Besides the devices in the list, it is compatible with iPod touch second generation or later
version.
• iPhone 3GS / 4G
• iPad / iPad2
1-3 Supported Properties List
Rev. 1.00
- 8 -
Mobile Printer
iOS SDK API Reference Guide
1-4 Supported Properties List
Method/Property
Mobile Printer (EM220II)
getInstance
O
open
O
close
O
lookup
O
selectTarget
O
connect
O
disconnect
O
disconnectWithTimeout
O
isConnected
O
enableLSB
X
printText
O
printBox
O
lineFeed
O
nextPrintPos
O
printBarcode
O
printBitmap
O
checkPrinter
O
msrReadReady
O
msrReadCancel
O
msrReadCancelEx
O
msrReadTrack
O
msrGetTrack
O
msrReadFullTrack
O
directIO
O
icON
O
icOFF
O
icApdu
O
icGetStatus
O
nvImageList
O
downloadNVImage (Diffusion)
O
downloadNVImage (Normal)
O
printNVImage
O
removeNVImage
O
removeAllNVImages
O
openDrawer
X
isSupport_MSR
O
isSupport_IC
O
isSupport_Config
O
isSupport_CashDrawer
O
isSupport_LSB
O
isSupport_Barcode
O
getBarcodeSupportTable
O
EM220II
Rev. 1.00
- 9 -
Mobile Printer
iOS SDK API Reference Guide
Code
Value
Description
BXL_CS_PC437
0
Code page PC437
BXL_CS_Katakana
1
Katakana
BXL_CS_PC850
2
Code page PC850
BXL_CS_PC860
3
Code page PC860
BXL_CS_PC863
4
Code page PC863
BXL_CS_PC865
5
Code page PC860
BXL_CS_WPC1252
16
Code page WPC1252
BXL_CS_PC866
17
Code page PC860
BXL_CS_PC852
18
Code page PC852
BXL_CS_PC858
19
Code page PC858
BXL_CS_PC864
22
Code page PC864
BXL_CS_THAI42
23
Code page THAI42
BXL_CS_WPC1253
24
Code page WPC1253
BXL_CS_WPC1254
25
Code page WPC1254
BXL_CS_WPC1257
26
Code page WPC1257
BXL_CS_FARSI
27
Code page FARSI
BXL_CS_WPC1251
28
Code page WPC1251
BXL_CS_PC737
29
Code page PC737
BXL_CS_PC775
30
Code page PC775
BXL_CS_THAI14
31
Code page THAI14
BXL_CS_PC862
33
Code page PC862
BXL_CS_PC855
36
Code page PC855
BXL_CS_PC857
37
Code page PC857
BXL_CS_PC928
38
Code page PC928
BXL_CS_THAI16
39
Code page THAI16
BXL_CS_WPC1256
40
Code page WPC1256
BXL_CS_USER
255
User set page
2. Constant Definition
Constants used in the provided SDK are defined in the “BXCode.h” file.
2-1 Character Set
This defines the code page and the default value is set to BXL_CS_437.
Available Code Pages are as follows.
EM220II
Rev. 1.00
EM220II
- 10 -
Mobile Printer
iOS SDK API Reference Guide
Code
Value
Description
BXL_ICS_USA
0
U.S.A.
BXL_ICS_FRANCE
1
France
BXL_ICS_GERMANY
2
Germany
BXL_ICS_UK
3
U.K.
BXL_ICS_DENMARK1
4
Denmark I
BXL_ICS_SWEDEN
5
Sweden
BXL_ICS_ITALY
6
Italy
BXL_ICS_SPAIN
7
Spain
BXL_ICS_NORWAY
9
Norway
BXL_ICS_DENMARK2
10
Denmark II
Code
Value
Description
BXL_ALIGNMENT_LEFT
0
Left align
BXL_ALIGNMENT_CENTER
1
Center align
BXL_ALIGNMENT_RIGHT
2
Right align
Code
Value
Description
BXL_TS_0WIDTH
0
Set the ratio of horizontal width to X1
BXL_TS_1WIDTH
16
Set the ratio of horizontal width to X2
BXL_TS_2WIDTH
32
Set the ratio of horizontal width to X3
BXL_TS_3WIDTH
48
Set the ratio of horizontal width to X4
BXL_TS_4WIDTH
64
Set the ratio of horizontal width to X5
BXL_TS_5WIDTH
80
Set the ratio of horizontal width to X6
BXL_TS_6WIDTH
96
Set the ratio of horizontal width to X7
BXL_TS_7WIDTH
112
Set the ratio of horizontal width to X8
2-2 International Character Set
This defines the international character set and the default value is set to BXL_ICS_USA.
Available International Character Sets are as follows.
2-3 Barcode/Image/Text Alignment
This defines the bar code/image/text alignment and the value is set to BXL_ALIGNMENT
_LEFT.
Available settings are as follows.
2-4 Text Size
This defines the settings for the text size, and horizontal and vertical ratio can be defined
simultaneously with OR operation.
Available settings are as follows.
Rev. 1.00
- 11 -
Mobile Printer
iOS SDK API Reference Guide
Code
Value
Description
BXL_TS_0HEIGHT
0
Set the ratio of vertical height to X1
BXL_TS_1HEIGHT
16
Set the ratio of vertical height to X2
BXL_TS_2HEIGHT
32
Set the ratio of vertical height to X3
BXL_TS_3HEIGHT
48
Set the ratio of vertical height to X4
BXL_TS_4HEIGHT
64
Set the ratio of vertical height to X5
BXL_TS_5HEIGHT
80
Set the ratio of vertical height to X6
BXL_TS_6HEIGHT
96
Set the ratio of vertical height to X7
BXL_TS_7HEIGHT
112
Set the ratio of vertical height to X8
Code
Value
Description
BXL_FT_DEFAULT
0
Default setting
NOT BOLD, FONTA, NOT UNDERLINE,
NOT REVERSE
BXL_FT_FONTB
1
Use FONTB
BXL_FT_FONTC
16
Use FONTC
BXL_FT_BOLD
2
Use Bold font
BXL_FT_UNDERLINE
4
Set Underline property
BXL_FT_REVERSE
8
Set Reverse property
BXL_ExFT_CHINA_FONTA
0
Only for Pepsi Cola project
BXL_ExFT_CHINA_FONTB
32
Code
Value
Description
BXL_BC_TEXT_NONE
0
Do not print bar code data
BXL_BC_TEXT_ABOVE
1
Print bar code data above bar code
BXL_BC_TEXT_BELOW
2
Print bar code data below bar code
2-5 Text Attribute
This is a text property and each property can be combined with OR operation.
Available settings are as follows.
EM220II
2-6 Bar Code Text Position
This is for setting the position where bar code data is printed.
Available settings are as follows.
Rev. 1.00
- 12 -
Mobile Printer
iOS SDK API Reference Guide
2-7 Bar Code Symbology
Code
Value
Number of data
Range of data
BXL_BCS_UPCA
101
11 <= n <= 12
48 <= data <= 57
BXL_BCS_UPCE
102
11 <= n <= 12
48 <= data <= 57
BXL_BCS_EAN13
103
12 <= n <= 13
48 <= data <= 47
BXL_BCS_JAN13
104
7 <= n <= 8
48 <= data <= 57
64 <= data <= 90
data = 32,36,37,43,45,46,47
BXL_BCS_EAN8
105
7 <= n <= 8
48 <= data <= 57
BXL_BCS_JAN8
106
7 <= n <= 8
48 <= data <= 57
BXL_BCS_Code39
107
1 <= n <= 255
48 <= data <= 57
65 <= data <= 68
data = 32,36,37,43,45,46,47
BXL_BCS_ITF
108
1 <= n <= 255
(Even)
48 <= data <= 57
BXL_BCS_Codabar
109
1 <= n <= 255
48 <= data <= 57
65 <= data <= 68
data = 36,43,45,46,47,58
BXL_BCS_Code93
110
1 <= n <= 255
0 <= data <= 127
BXL_BCS_Code128
111
2 <= n <= 255
0 <= data <= 127
BXL_BCS_PDF417
200
2 <= n <= 928
0 <= data <= 255
BXL_BCS_QRCODE
202~203
2 <= n <= 928
0 <= data <= 255
BXL_BCS_DATAMATRIX
204
2 <= n <= 928
0 <= data <= 255
BXL_BCS_MAXICODE
205~6
2 <= n <= 928
0 <= data <= 255
Code
Value
Description
BXL_WIDTH_FULL
-1
Value is set to max width and the image is
resized to the full paper size
BXL_WIDTH_NONE
-2
Image is not resized
This defines the bar code type.
Available settings are as follows.
EM220II
2-8 Image Width
Set the width of image and valid range is 0~ max width.
Image is resized for the conditions according to the given conditions when the following
values are set.
Available settings are as follows.
Rev. 1.00
EM220II
- 13 -
Mobile Printer
iOS SDK API Reference Guide
Code
Value
Description
BXL_PWR_HIGH
0
Remaining battery capacity is 95%
BXL_PWR_MIDDLE
1
Remaining battery capacity is 85%
BXL_PWR_LOW
2
Remaining battery capacity is 50%
BXL_PWR_SMALL
3
Remaining battery capacity is 25%
BXL_PWR_NOT
4
Remaining battery capacity is less than 25%
Code
Value
Description
BXL_STS_NORMAL
0
Normal
BXL_STS_PAPEREMPTY
1
No paper
BXL_STS_CONVEROPEN
2
Printer cover open
BXL_STS_POWEROVER
4
Not enough remaining battery of printer
BXL_STS_MSR_READY
8
No printing
MSR read only mode
BXL_STS_PRINTING
16
Printer is printing or receiving data
BXL_STS_ERROR
32
Error in communication with printer
BXL_STS_NOT_OPEN
64
Open method of BXPrinterControl was
not called
BXL_STS_ERROR_OCCUR
128
Printer internal error
BXL_STS_NOT_CONNECTED
-1
Currently printer is not connected
Code
Value
Description
BXL_CONNECTIONMODE_AUTO
0
Automatic connect mode
BXL_CONNECTIONMODE_NOAUTO
100
Not automatic connect mode
2-9 Power
This indicates the remaining battery capacity of the printer. It is read only and a change of
battery status is automatically shown.
Support Device : Mobile Printer (EM220II)
The remaining battery capacity status values are as follows.
2-10 State
This indicates the status of the printer. It is read only and the status of the printer is
automatically shown when printer status is checked by calling the CheckPrinter function.
Status values can be combined and each setting can be checked through bit operation.
Printer status settings are as follows.
2-11 Connection Control
This defines the type of printer connection.
Available settings are as follows.
Rev. 1.00
- 14 -
Mobile Printer
iOS SDK API Reference Guide
2-12 Drawer kick-out connector pin
Code
Value
Description
BXL_CASHDRAWER_PIN_2
0
Drawer kick-out connector pin 2
BXL_CASHDRAWER_PIN_5
1
Drawer kick-out connector pin 5
Code
Value
Description
BXL_CASHDRAWER_OPENLEVEL_LOW
0
If Cash drawer is open,
Drawer kick-out connector
pin 3 is LOW
BXL_CASHDRAWER_OPENLEVEL_HIGH
1
If Cash drawer is open,
Drawer kick-out connector
pin 3 is HIGH
Code
Value
Description
BXL_MODEL_ID_EM220II
0x12001002
EM220II
Code
Value
Description
BXL_CONNECTIONCLASS_WIFI
0x0000
WIFI Connection
BXL_CONNECTIONCLASS_ETHERNET
0x0001
Ethernet Connection
BXL_CONNECTIONCLASS_BT
0x0002
Bluetooth Connection
This defines the number of drawer kick-out connector pin.
Support Device : Only thermal printer, EM220II is not support.
Available settings are as follows.
2-13 Drawer open level
This defines the type of cash drawer
Support Device : Only thermal printer, EM220II is not support.
Available settings are as follows.
EM220II
2-14 Model ID
This defines the type of printer.
Available settings are as follows.
2-15 Connection Class
When the method named 'didFindPrinter' is called,
This value is updated to connectionClass in BXPrinter class
Refer to 6-2-3 didFindPrinter
Rev. 1.00
Loading...
+ 32 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.