MODEL PORTI-SM40 (Mobile Printer) ͑ WOOSIM SYSTEMS Inc. #501, Daerung Technotown 3th, 448, Gasan-Dong, GeumChun-Ku, Seoul, Korea Tel : +82-2-2107-3700 Fax : +82-2-2107-3707 URL: http://www.woosim.com All specifications are subjected to change without notice. http://www.woosim.
Copyright Porti-SM40 Mobile printer operator’s manual. Copyright ᐕ2006 by Woosim Systems Inc. All rights reserved. The information contained in this manual is the property of Woosim Systems Inc. and may not be reproduced in whole or in part without the prior written permission of Woosim Systems Inc. Trademark a registered trademark of Woosim Systems Inc. All other trademark are the properties of their respective companies. Caution Some semiconductor devices are easily damaged by static electricity.
Introduction The Porti-SM40 is the ideal solution for Mobile banking system , Retail, point of sales, Credit card Transaction, other traveling and mobile computing etc. The general features of Porti-SM40 printer are as follows: X Pocket size(80.5ϧ113.
Operating Precautions Please follow the precautions below to enjoy and maintain the full performance of the printer. X Using the Printer Ɣ Be careful not to drop or bump the printer on a hard surface. Ɣ Do not install the printer in direct sunlight or such areas.
CONTENTS 1. Outline. ...........................................................................................................................................8G 1.1. Model classifications. ...............................................................................................................8G 1.2. Specifications............................................................................................................................9G 2. Setting up the printer....................................
7.3. Character Commands..............................................................................................................31G 7.4. Panel Button Commands. .......................................................................................................38G 7.5. Print Position Commands. ......................................................................................................39G 7.6. Bit-Image Commands. ...............................................................................
9.3.6. Format of EOT Frame......................................................................................................82G Appendix ..........................................................................................................................................83G http://www.woosim.
1. Outline. 1.1. Model classifications. PORTI–SM40 ( ) ( ) 㩷 Model Interface None: UART/Bluetooth Power None : DC 8.4V http://www.woosim.
1.2. Specifications. Item Specifications Print method Direct thermal line printing Characters per line 42cpl (MAX) Character size Eng. : 9ϧ24dots, 12ϧ24dots Resolution 203dpi, 8dots/mm Print width 2-inch (48mm, 384dots) Print speed 50mm / sec (MAX) Dimension 80.5ϧ113.5ϧ46 mm Weight 300g (Including battery & roll paper) Interface UART(RS-232C or TTL) / Bluetooth Paper roll Thermal roll paper (57mm wide, 40ø) Kor.
2. Setting up the printer. 2.1. Printer & Accessories Your printer box should include these items. If any items are damaged or missing, please contact your dealer for assistance. Battery Pack Paper Roll PORTI-SM40 Battery Charger ഖG OPTIONAL Extra Charger Communication Cable http://www.woosim.
2.2. Printer Features ඖ Part Name http://www.woosim.
ඖ Dimensions http://www.woosim.
2.3. Replacing paper roll. Note : Be sure to use paper rolls that meet the specifications. Do not use paper rolls that have the paper glued to the core because the printer cannot detect the paper end correctly. 1. Make sure that the printer is not receiving data; otherwise, data may be lost. 2. Open the paper cover by placing your fingers under the paper cover lock and pull a paper cover lock open. 3. Insert a new paper roll as shown. 4.
2.4. Power supply 2.4.1. Specified power supply. The following specification is requested for Power supply. Input : DC 8.4V Standby 60mA and Max 2.5A Avoid using power supply which its power capacity of power current is extremely high. 2.4.2. Installing the battery NOTE : Ɣ Before installing or removing the battery pack, ensure the printer is OFF. Ɣ If the printer is not used for long period of time, remove the battery pack from the printer.
2.4.3. Recharging the battery pack For recharging the battery pack, install the battery pack in the printer or the extra charger. Insert the Battery Charger to the charge connector of the printer or the extra charger. NOTE : Ɣ While charging the printer, turn off the printer power. Ɣ Do not remove the battery during charging. Ɣ The battery is consumable parts and when purchasing, compared to the use hour is gradually decreases.
2.5. Set operation mode. 1. Change the mode and option using the mode Code (Table1). z MODE button : changing Printer MODE status. z FEED button : changing OPTION status. 2. [Example] The defaults of the printer are : UART/ 9600 BPS/8 DATA BIT/ NO Parity/1 STOP BIT/ Density LOW If a user wants to modify the defaults with Bluetooth/38400 BPS/7 DATA BIT/Even Parity/2 STOP BIT/Density HIGH X Press MODE Button until Error Lamp twinkles 5 times. o You will see present COMMUNICATION mode in the LCD.
X Press FEED button one time. o You will see present STOP BIT mode in the LCD. o Press MODE Button one time. (The stop bit has set to 2 stop bit.) X Press FEED button one time. o You will see present DENSITY mode in the LCD. o Press MODE Button two times. (The density has set to high.) If all the mode have set, press the FEED Button and the MODE Button at the same time after then release the buttons at the same time. The printer will print out the mode status which has modified.
Mode No. 1 2 3 4 5 6 7 8 Printer Mode Option Option No.
3. Interface. 3.1. RS-232C or TTL The Porti-SM40 printer has a RS-232C or TTL interface and is connected by means of a 4 pin mini USB socket. In the following table, the signals present on the MiniUSB socket are listed: NOTE : Ɣ Pin No. Name Direction Function 1 TxD Output Transmit Data 2 RxD Input Receive Data 3 CTS - 4 GND - Ground When data receiving, when it removes the communication cable, it loses a data. http://www.woosim.
3.2. Bluetooth Category Specification Bluetooth Spec. Bluetooth V1.1 / Class2 (10m) Frequency Range 2.4GHz ISM BAND Data Transmission Rate 57600bps Fixed. Data bit 8 Data bit Fixed. Parity bit No parity Fixed. Stop bit 1 Stop bit Fixed. Notice If the quantity of data which is printed at once is more than 10K byte on Bluetooth communication, it would cause the buffer to overflow and the data to get damaged. http://www.woosim.
4. Smart Card Module 4.1. General Spec. X Contact Smart Card Reader Module for ISO/IEC-7816 X Support Asynchronous Protocol T=0,T=1 X Smart Card Connection - Short Circuit Current Limitation - 6KV ESD Protection on whole Smart Card Interface - Connector : Friction Type with Smart Card presence detection X 2 SAM (Security Application Module)G X EMV Level 1 Certified http://www.woosim.
4.2. Communication Protocol Sequence 4.2.1. Regular Operation G Host Command Module Execution Response 4.2.2. Irregular Operation (Communication Error) G 500ms timeout Host Command Command Module G Host Command Command is Command Executio Command Error Module CheckSumEr http://www.woosim.
5. Using the printer. 5.1. Control panel. ࢽ ࢽ ࢽ ࢽ X Button - FEED Button : When the printer is on, paper can be feed manually by pressing and holding the FEED button for more than one second. - MODE Button : MODE Button is for use to change communication mode. (Refer to 2.5. Set operation mode for details about mode conversion) X Panel lamp -POWER (Green) : Printer is ON and ready to receive data. -ERROR (Red) : Indicated a fault condition or a printer error. (i.e : no paper, paper cover opened. etc.
5.2. The self test. The self test procedure will check most of the printer functions. For self test, turn on the power while holding down the FEED Button. The Self-Test checks the following : 1) Make sure paper roll has been installed properly. 2) The Self-Test prints the current printer status, which provides the control ROM version and the communication method setting. 3) After printing the current printer status, Self-Test will print a pattern using the built-in character set.
6. Consumable Parts. 6.1. Recommended paper. Type : Thermal Paper Paper width : 57mm Paper thickness : 60±5༁ Outer diameter : Ø40mm or less Recording side : Outside of roll Cautions 1. Do not paste the paper to the core. And the roll paper which has Near end mark printing on its near end is recommended. 2. Chemicals or oil may change the color of paper, or printed Characters may fade. 3. Change of paper color starts from approx 70 . Pay attention to heat, humidity and sun light. 4.
7. Print Control Function.
Command Name Function Type Page ESC Z Print 2D barcode Barcode 60 ESC a Select justification Print position 41 ESC c 5 Enable/disable panel buttons Panel button 38 ESC d Print and feed n lines Print 29 ESC f Print downloaded bit image Bit image 56 ESC z Feed the paper to the movement position Black mark detection 67 ESC y Feed the paper to the black mark position ESC { Turn upside-down printing mode on/off Character 35 ESC N Set Smart card reader mode Smart card module 7
7.1. Print Command. The PORTI-SM40 supports the following commands for printing character and advancing paper: Command Name LF Print and line feed ESC J Print and feed paper ESC d Print and feed n lines FF Print and return to standard mode(in page mode) ESC FF Print data in page mode LF [Name] Print and line feed [Format] ASCII LF HEX 0A Decimal 10 [Description] Print the data in the print buffer and feeds one line based on the current line spacing.
ESC d n [Name] Print and feed n lines [Format] ASCII ESC d n HEX 1B 64 n Decimal 27 100 n [Range] 0n 255 [Description] Prints the data in the print buffer and feeds n lines. [Note] 1) This command sets the print starting position to the beginning of the line. 2) This command does not affect the line spacing set by ESC 2 or ESC 3. [Reference] ESC 2, ESC 3 FF [Name] Print and return to standard mode in page mode.
7.2. Line Spacing Command. The PORTI- SM40 supports the following commands for setting line spacing. These commands only set the line spacing; they do not actually advance the paper. The line spacing set using these commands affects the results of LF and ESC d and paper feeding by using the FEED button.
3) The GS P command can change the horizontal (and vertical) motion unit. However, the value cannot be less than the minimum vertical movement amount, and it must be in even units of the minimum vertical movement amount. 4) In standard mode, the vertical motion unit (y) is used.
ESC SP n [Name] Set right-side character spacing. [Format] ASCII ESC SP n HEX 1B 20 n Decimal 27 32 n [Range] 0 n 255 [Description] Sets the character spacing for the right side of the character to [n x horizontal or vertical motion units] inches. [Note] 1) The right side character spacing for double-width mode is twice the normal value. When characters are enlarged, the right side character spacing is n times normal value. 2) This command sets values independently in each mode.
n Character set n Character set n Character set 0 U.S.A 5 Sweden 10 Denmark II 1 France 6 Italy 2 Germany 7 Spain 3 U.K 8 Japan 4 Denmark I 9 Norway [Default] n = 0 ESC ! n [Name] Select print mode. [Format] ASCII ESC ! n HEX 1B 21 n Decimal 27 33 n [Range] 0 n 255 [Description] Select print mode(s) using n as follows.
[Note] 1) When both double-height and double-width modes are selected, quadruple size characters are printed. 2) The printer can underline all characters, but can not underline the space set by HT. 3) The thickness of the underline is that selected by ESC -, regardless of the character size. 4) When some characters in a line are double or mode height, all the characters on the line are aligned at the baseline. 5) ESC – can also turn on or off underline mode.
following data is not underlined, and the underline thickness set before the mode is turned off does not change. The default underline thickness is 1 dot. 4) Changing the character size does not affect the current underline thickness. 5) Underline mode can also be turned on or off by using ESC !. Note, however, that the last received command is effective. [Default] n=0 [Reference] ESC ! ESC E n [Name] Turn emphasized mode On/Off.
[Note] 1) Only the lowest significant bit of n is valid. 2) This command is enabled only when processed at the beginning of a line in standard mode. 3) When this command is input in page mode, the printer performs only internal flag operations. 4) This command does not affect printing in page mode. 5) In upside-down printing mode, the printer rotates the line to be printed by 180 degree and then prints it.
Hex Decimal Width Hex Decimal Height 00 0 1 (normal) 00 0 1 (normal) 01 1 2 (double width) 10 16 2 (double height) 02 2 3 20 32 3 03 3 4 30 48 4 04 4 5 40 64 5 05 5 6 50 80 6 06 6 7 60 96 7 07 7 8 70 112 8 Character Height Selection Character Width Selection [Notes] 1) This command is all characters effective 2) If n is outside of the defined range, this command is ignored.
[Notes] 1) When the LSB is 0, white/black reverse printing mode is turned on. 2) When the LSB is 1, white/black reverse printing mode is turned off. 3) Only the lowest bit of n is valid. 4) This command is available for built in characters and user defined characters. 5) When white/black reverse printing mode is on, it also applied to character spacing set by ESC SP. 6) This command does not affect the space between lines. 7) White/black reverse mode has a higher priority than underline mode.
2) When the panel buttons are disabled, none of them are usable when the printer cover is closed. 3) In this printer, the panel buttons is the FEED button. 4) In the macro ready mode, the FEED button are enabled regardless of the settings of this command; however, the paper cannot be fed by using these buttons. [Default] n=0 7.5. Print Position Commands.
[Description] Set the distance from the beginning of the line to the position at which subsequent characters are to be printed. [Notes] 1) The distance from the beginning of the line to the print position is [(nL + nH x 256) x (vertical or horizontal motion unit)] inches. 2) Setting outside the specified printable area are ignored. 3) The horizontal and vertical motion unit are specified by GS P. 4) The GS P command can change the horizontal (and vertical) motion unit.
2) Any setting that exceeds the printable are is ignored 3) When pitch N is specified to the right; nL + nH x 256 = N When pitch N is specified to the left (the negative direction), use the complement of 65536. 4) The print starting position moves from the current position to [N x horizontal or vertical motion unit)] 5) The horizontal and vertical motion unit are specified by GS P. 6) The GS P command can change the horizontal (and vertical) motion unit.
[Notes] 1) The command is enabled only when processed at the beginning of the line in standard mode. 2) If this command is input in page mode, the printer performs only internal flag operations. 3) This command has no effect in page mode. 4) This command executes justification in the printing area. 5) This command justifies the space area according to HT, ESC $ or ESC \ [Default] n=0 [Example] HT [Name] Horizontal Tab [Format] ASCII HT HEX 09 Decimal 9 [Description] Moves the print position t
ESC D n1…nk NUL [Name] Set horizontal tab positions. [Format] ASCII ESC D n1…nk NUL HEX 1B 44 n1…nk 00 Decimal 27 68 n1…nk 0 [Range] 1 <= n <= 255 0 <= k <=32 [Description] Set horizontal tab position [Notes] 1) n specifies the column number for setting a horizontal tab position from the beginning of the line. 2) k indicates the total number of horizontal tab positions to be set.
GS L nL nH [Name] Set left margin. [Format] ASCII GS L nL nH HEX 1D 4C nL nH Decimal 29 76 nL nH [Range] 0 nL 255, 0 nH 255 [Description] Set the left margin using nL and nH. [Notes]1) The left margin is set to [(nL+nHx256)] x (horizontal motion unit) inches. 2) This command is effective only processed at the beginning of the line in standard mode. 3) If this command is input in page mode, the printer performs only internal flag operations.
GS W nL nH [Name] Set printing area width [Format] ASCII GS W nL nH HEX 1D 57 nL nH Decimal 29 87 nL nH [Range] 0 nL 255, 0 nH 255 [Description] Sets the printing area width to the area specified by nL and nH. [Notes] 1) The printing area width is set to [(nL+nHx256)] x horizontal motion unit inches. 2) This command is effective only processed at the beginning of the line. 3) In page mode, the printer performs only internal flag operations.
If the printing area width cannot be extended sufficiently, the right space is reduced. 9) If the width set for the printing area is less than one line in vertical, the following processing is performed only on the line in question when data other than character data(e.g., bit image, user defined bit image) is developed: The printing area width is extended to the right to accommodate one line in vertical for the bit image within the printable area.
dy = [(dyL + dyH * 256)] * (vertical motion unit) The printing area is set as shown in the figure below. [Note] 1) If this commands is input in standard mode, the printer executes only internal flag operation. This command does not affect printing in standard mode. 2) If the horizontal or vertical starting position is set outside the printable area, the printer stops command processing and processes the following data as normal data.
[Default] xL = xH = yL = yH = 0 dxL = 0, dxH = 2, dyL = 126, dyH = 6 [Reference] CAN, ESC L, ESC T, GS P ESC T n [Name] Select print direction in page mode [Format] ASCII ESC T n HEX 1B 54 n Decimal 27 84 n [Range] 0 n 3 or 48 n 51 [Description] Selects the print direction and starting position in page mode.
[Notes] 1) When the command is input in standard mode, the printer executes only internal flag operation. This command does not affect printing in standard mode. 2) This command sets the position where data is buffered within the printing area set by ESC W.
5) The reference starting position is that specified by ESC T. 6) This command operates as follows, depending on the starting position of the printing area specified by ESC T; When the starting position is set to the upper left or lower right, this command sets the absolute position in the vertical direction. When the starting position is set to the upper right or lower left, this command sets the absolute position in the horizontal direction.
4) Any setting that exceeds the specified printing area is ignored. 5) This command function as follows, depending on the print starting position set by ESC T; When the starting position is set to the upper left or lower right of the printing, the vertical motion unit (y) is used. When the starting position is set to the upper right or lower left of the printing, the horizontal motion unit (x) is used. 6) The horizontal and vertical motion unit are specified by GS P.
7.6. Bit-Image Commands. The PORTI- SM40 supports the following bit-image command. Command Name ESC * Select bit image mode ESC X 4 Define user-defined bit image ESC * m nL nH d1 dk [Name] Select bit-image mode.
4) If the bit-image data input exceeds the number of dots to be printed on a line, the excess data is ignored. 5) d indicates the bit-image data. Set a corresponding bit to 1 to print a dot or to 0 to not print a dot.
- When 8-dot bit image is selected - When 24-dot bit image is selected http://www.woosim.
ESC X 4 x y d1…dk [Name] Define user-defined bit-image [Format] ASCII ESC X 4 x y d1…dk HEX 1B 58 34 x y d1…dk Decimal 27 88 52 x y d1…dk [Description] ESC X 4 x y d1 ... d(x y) ҏ defines a user-defined bit image using x ҏ8 dots in the horizontal direction and y dots in the vertical direction. - Horizontal direction dots - Vertical direction dots = (x * 8)dots = (y)dots http://www.woosim.
[Note] ESC X 4 is supported in Porti_W,S produced after August,2002, but it’s not supported in others yet. [Reference] ESC f ESC W, ESC O, FF n [Name] Print downloaded PCX bit-image. [Format] ASCII ESC f n HEX 1B 66 n 102 n Decimal 27 [Range] 0 n 14, [Description] ESC f prints a downloaded bit image specified by n as follows: n=255 Prints a PCX bit image in “n x 1000H” Address when nആ0 and n 14. Prints a PCX File when n=255. (Only black and white PCX file) http://www.woosim.
7.7. Barcode Commands. The PORTI- SM40 supports the following barcode commands. Command Name GS h Set barcode height GS w Set barcode width GS k Print bar code GS H Select printing position of Human Readable Interpretation (HRI) characters GS h n [Name] Set barcode height [Format] ASCII GS h n HEX 1D 68 n Decimal 29 104 n [Range] 0 n 255 [Description] GS h n selects the height of a barcode. n specifies the number of dots in the vertical direction. One dot corresponds 1/8mm.
ཛGS k m d1…dk NUL ཛྷGS k m n d1…dn [Name] Print barcode [Format] ཛASCII GS HEX 1D Decimal 29 ཛྷ ASCII GS HEX 1D Decimal 29 k m d1…dk NUL 6B m d1…dk 00 107 m d1…dk 0 k m n d1…dn 6B m n d1…dn 107 m n d1…dn ཛ 0 m 6 (k and d depends on the bar code system used.) [Range] ཛྷ 0 m 6 (n and d depends on the bar code system used.) [Description] GS k m d1…dk NUL selects a barcode system and print the barcode.
ཛྷ m Barcode System Number of characters Remarks 65 UPC-A 11 n 12 48 d 57 66 UPC-E 11 n 12 48 d 57 67 EAN13 11 n 13 48 d 57 68 EAN8 7n8 48 d 57 69 CODE39 1 n 255 48 d 57, 65 d 90, d = 32, 36, 37, 43, 45, 46,47 70 ITF 1 n 255 (even number) 48 d 57 71 CODABAR 1 n 255 48 d 57, 65 d 68, d = 36, 43, 45, 46, 47, 58 72 CODE93 1 n 255 0 d 127 73 CODE128 2 n 255 0 d 127 [Notes] 1) This command ends w
8) Be sure to keep spaces on both right and left sides of a bar code. Spaces are different depending on the types of the bar code. [Reference] GS h, GS w, GS H, ESC L, ESC W, ESC FF GS H n [Name] Turn HRI characters print mode ON/OFF [Format] ASCII GS H n HEX 1D 48 n Decimal 29 72 n [Range] n = 0, 1 [Description] GS H n turns HRI characters print mode on or off.
7.8. Macro Function Commands. The PORTI- SM40 supports the following macro function commands; Command Name GS : Start/end macro definition GS ^ Execute macro GS : [Name] Start/End macro definition [Format] ASCII GS : HEX 1D 3A Decimal 29 58 [Description] Starts ends macro definition. [Notes] 1) Macro definition starts when this command is received during normal operation. Macro definition ends when this command is received during macro definition.
GS ^ r t m [Name] Execute macro. [Format] ASCII GS ^ r t m HEX 1D 5E r t m Decimal 29 94 r t m [Range] 0 <= r <= 255 0 <= t <= 255 m = 0, 1 [Description] Executes a macro. [Notes] 1) r specifies the number of times to execute the macro. 2) t specifies the waiting time for executing the macro. ଖ t fuction is not available now. 3) m specifies macro executing mode. When LSB of m = 0 The macro executes r times continuously at the interval specified by t.
7.9. Miscellaneous function commands. The PORTI- SM40 supports the following miscellaneous function commands; Command Name ESC @ Initialize printer ESC L Select page mode ESC S Select standard mode CAN Cancel print data in page mode ESC @ [Name] Initialize printer. [Format] ASCII ESC @ HEX 1B 40 Decimal 27 64 [Description] Clears the data in the print buffer and resets the printer mode to the mode that was n effect when the power was turned on.
4) This command sets the position where data is buffered to the position specified by ESC T within the printing area defined by ESC W. 5) This command switches the settings for the following commands (in which the values can be set independently in standard mode and page mode) to those for page mode; Set right-side character spacing : ESC SP Select default line spacing : ESC 2, ESC 3 6) Only valve settings is possible for the following commands in page mode; these commands are not executed.
Set right-side character spacing : ESC SP Select default line spacing : ESC 2, ESC 3 6) The following commands are enabled only to set in standard mode. Set printing area in page mode : ESC W Select print direction in page mode : ESC T 7) The following commands are ignored in standard mode. Set absolute vertical print position in page mode : GS $ Set relative vertical print position in page mode : GS \ 8) Standard mode is selected automatically when power is turned on, the printer is reset, or command ESC @
7.10. Line & box commands.
7.11. Black mark detection commands. ESC P xL xH [Name] Set the movement position from the black mark. [Format] ASCII ESC P HEX 1B 50 Decimal 27 80 [Description] xL xH The movement position will be set when this command is sent to the printer just once. G iGG G G m sGRG oGQGY\]GOGPG tGwG ESC z ESC y [Name] Feed the paper to the movement position.
7.12. Magnetic Card Reader Commands. The PORTI- SM40 supports the following magnetic card reader commands; Command Name ESC M C Set 2 track card reader mode. ESC M D Set 3 track card reader mode. ESC M E Set 2,3 track card reader mode. EOT Cancel card reader mode ESC M C [Name] Set 2 track card reader mode. [Format] ASCII ESC M C HEX 1B 4D 43 Decimal 27 77 67 [Note] When the ESC M C command is executed, printed nothing before read the card or executed the EOT command.
EOT [Name] Cancel card reader mode. [Format] ASCII EOT HEX 04 Decimal 4 [Description] Cancel card reader mode. ଖ Card specification The table below summarizes the format of the data stored on each magnetic track.
7.13. Smart Card Reader Commands. The PORTI- SM40 supports the following smart card reader commands; Command Name ESC N Enter the Smart Card Reader mode EOT Exit the Smart Card Reader mode ESC N [Name] Smart card reader mode. [Format] ASCII ESC N HEX 1B 4E Decimal 27 78 [Description] Enter the Smart Card Reader mode. For using the Smart Card Reader, you must use ESC N command. After ESC N command, use the smart card reader control command.
8. Smart Card Reader Control Command 8.1. Communication Protocol Description 8.1.1.
8.1.3.
DESCRIPTION STATUS LIST TXERR 0x35 Transmission error STATUSERR 0x36 Unsupported Procedure Byte or Status Byte NOTACTERR 0x40 Not Activated APDUFORMATERR 0x41 APDU format error EDCERR 0x42 EDC error (T=1) ABORTERR 0x43 Received Abort request (T=1) SEQERR 0x44 Sequence number error (T=1) NADERR 0x45 NAD error (T=1) EXCESSERR 0x46 Excess error (T=1) LOOPERR 0x4f Program Loop error (T=1) INVALIDFORMAT 0x51 Invalid Format INVALIDCOMMAND 0x52 Invalid Command DCDCFAILERR 0x60
8.2. Communication Details 8.2.1. Activation Activate Card - Command STX CON 0x7e 0xX0 LEN 0x00 0x01 DATA ETX 0x30 0x7e * CON : 0xX0 => (X = 0,a,b) - Positive Response STX CON 0x7e 0x00 LEN 0x00 Len DATA ETX ATR[Len] 0x7e DATA ETX ERR CODE 0x7e - Negative Response STX CON 0x7e 0x02 LEN 0x00 0x01 http://www.woosim.
8.2.2. Deactivation Deactivate Card - Command STX CON 0x7e 0xX0 LEN 0x00 0x01 DATA ETX 0x31 0x7e * CON : 0xX0 => (X = 0,a,b) - Positive Response STX CON 0x7e 0x02 LEN 0x00 0x01 DATA ETX 0x07 0x7e DATA ETX ERR CODE 0x7e - Negative Response STX CON 0x7e 0x02 LEN 0x00 0x01 http://www.woosim.
8.2.3. Exchange APDU Sends data(APDU) to the accessed card - Command STX CON 0x7e 0xX1 LEN 0x00 Len DATA ETX APDU[Len] 0x7e DATA ETX APDU[Len] 0x7e DATA ETX ERR CODE 0x7e * CON : 0xX1 => (X = 0,a,b) - Positive Response STX CON 0x7e 0x01 LEN Len1 Len2 - Negative Response STX CON 0x7e 0x02 LEN 0x00 0x01 http://www.woosim.
8.3. Example *Smart Card Reader Mode Start - 0x1b 0x4e (“SCR MODE” display on LCD) * Activation - 0x7e 0x00 0x00 0x01 0x30 0x7e (CARD) - 0x7e 0xA0 0x00 0x01 0x30 0x7e (SAM1) * Deactivation - 0x7e 0x00 0x00 0x01 0x31 0x7e (CARD) - 0x7e 0xA0 0x00 0x01 0x31 0x7e (SAM1) * Exchange APDU 1. Select File APDU (1PAY.SYS.
9. Introduction of Protocol Bluetooth 9.1. Frame Structure.
9.2. Process of Getting the Printer Status. HOST PRINTER Inquiry of Printer Status Response of Printer Status It is recommended that the host send the same inquiry up to 5 times with 400ms time interval in case of no response from the printer. 9.2.1. Frame Format. Inquiry of printer status 0xC0 0xC0 0x51 0xC1 Response of printer status 0x53 Status (1 Byte) Previous ID # (1 Byte) 0xC1 ୕ IMPORTANT !! This function is not yet implemented fully. Currently the status byte is fixed to 0x02.
9.3. Process of Printing Data. HOST PRINTER Sending ENQ frame Sending ACK frame Sending Print Data frame Sending EOT, ETX frame Or Sending NACK frame Resending Print Data frame In normal operation, after receiving the print data frame, the printer sends EOT, prints out the data, and sends ETX. And it will wait for the next frame.
9.3.1. Format of Print Data Frame. 'D' kh{h DATA ID CHECK C0H Print DATA (0x44) Number Length 1 Byte 4 Bytes C1H SUM kG 2 Bytes Data ID number : ‘0’૫‘9’(0x30~0x39). Every time the host sends a new print data frame, it increases this number. Data Length : “0001” ૫ “9999”. Each number must be an ascii code. Checksum : 2 bytes. The first byte is the result of XOR of even number of data in Print data field and the second byte is that of odd number.
9.3.3. Format of ACK Frame. C0H 0x06 C1H 9.3.4. Format of NACK Frame. C0H 0x15 C1H 9.3.5. Format of ETX Frame. C0H 0x03 Data ID No. C1H Printer will send this frame after it finishes all of the requested printing. 9.3.6. Format of EOT Frame. C0H 0x04 C1H Printer will send this frame after it receives the print data frame successfully. ଗ IMPORTANT !! In every frame coming from the printer, 1 Byte of Null is preceded to SOF, and CR and LF are followed by EOF.
Appendix A. MISCELLANEOUS NOTES 1. Printer mechanism handling 1) Do not pull the paper out when the cover is closed. 2) Because the thermal elements of the print head and driver ICs are easy to break, so do not touch them with any metal objects. 3) Since the areas around the print head become very hot during and just after printing, do not touch them. 4) Do not use the cover open button except when necessary.
7) If the surface of thermal paper is scratched with a hard metal object such as a nail, the paper may become discolored. - Notes on thermal paper storage Since color development begins at 70°C (158°F), thermal paper should be protected from high temperature, humidity, and light, both before and after printing. 1) Store paper away from high temperature and humidity. Do not store thermal paper near a heater or in enclosed places exposed to direct sunlight.