background image

MSR206 Programmer’s Manual 

UDN PM017-U Rev.C.1 

Section 6 – Command and response 

2003/10/9

 

 

Page 

11

 

 

Total 

28 pages 

 

Description: This command is used to turn on all the    LEDs.

 

7. 

Command: GREEN LED on   

 

Command code: <ESC> <83> 

 

Hex code: 1B 83 

 Response: 

none 

 

Description: This command is used to turn on Green LED.

 

8. 

Command: YELLOW LED on 

 

Command code: <ESC> <84> 

 

Hex code: 1B 84 

 Response: 

none 

 

Description: This command is used to turn on the Yellow LED.

 

9. Command: 

RED LED on 

 

Command code: <ESC> <85> 

 

Hex code: 1B 85 

 Response: 

none 

 

Description: This command is used to turn on the Red LED. 

10.   Command: 

Sensor test

 

        Command code: <ESC> <86> 

     Hex code: 1B 86 

        Response: <ESC> 0 (1B 30) if test ok 

        Description: This command is used to verify that the card sensing circuit of MSR206 is working properly   

MSR206 will not response until a card is sensed or receive a RESET command.

 

11.   Command: 

Ram test 

        Command code: <ESC> <87> 

     Hex code: 1B 87 

        Response: <ESC> 0 (1B 30) ram test ok; <ESC> A (1B 41) ram test fail 

        Description: This command is used to request MSR206 to perform a test on its on board RAM.

 

12.    Command: Set leading zero 

Command code: <ESC> z [leading zero of track 1 & 3] [leading zero        of track 2] 

        Hex code: 1B 7A [00~ff] [00~ff]   

        Response: <ESC> 0 (1B 30) set ok   

   

<ESC> A (1B 41) set fail 

        Description: This command is used to set how many leading zeros will be written before the card data starts, and   

the space should calculated as [leading zero]

 

X25.4 / BPI    (75or210) =mm 

    

Default 

setting 

of 

leading zero: [3D] [16] 

 

 

 

  TK1 & TK3: 

[3D] means leading zero=61 

    

TK2:  [16] 

means 

leading 

zero=22 

13.    Command: Check leading zero 

Command code: <ESC> l 

     Hex code: 1B 6C 

Summary of Contents for MSR206

Page 1: ...MSR206 Magnetic Stripe Card Reader Writer High Low Coercivity Programmer s Manual Document PM017 U Revision C 1 09 Oct 2003 ...

Page 2: ...______________ 6 System requirement ______________________________________________________ 6 Test program installation __________________________________________________ 6 Section 6 Command and response ______________________________________ 10 Section 7 Data format _________________________________________________ 14 Section 8 Communication sequence_____________________________________ 16 8 1 MSR...

Page 3: ... tested and found to comply with the limits for a Class A digital device pursuant to part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instruction manual ma...

Page 4: ... Page 2 Total 28 pages Section 2 General description The MSR206 series is designed to read and or write high or low coercivity magnetic cards It can encode and verify up to 3 tracks of data simultaneously It communicates with a host computer or other terminal using a standard RS 232 interface ...

Page 5: ...ata transmit 3 RXD MSR206 data receive 4 6 7 8 9 no connection Pin Assignment DB 9 5 circuit ground Mechanical Body ABS 94V 0 Swipe Manual single direction Outline 210Lx68Wx60H mm Weight 1 5Kg approx Environment Operation 10ºC to 60ºC 10 to 85 humidity non condensing Storage 30ºC to 70ºC 10 to 90 humidity non condensing Performance Track 1 3 210bpi Read Circuit Track 2 75 or 210 bpi Bit per Char 5...

Page 6: ...0 Sub interval 12 at 30ips Low amplitude Card Read 60 for both 75 210bpi Error Rate Read 0 5 Write 0 8 Media Swipe Head life 1 000 000 passes for both read write head Model Read Write Track Hi C Lo C MSR206 3HC 1 2 3 R W R MSR206 5HC 1 2 R W R MSR206 1HL 2 R W R W MSR206 3HL 1 2 3 R W R W Configuration Available Model MSR206 5HL 1 2 R W R W ...

Page 7: ...f your system PC 2 Connect PC and MSR206 as below 3 Connect DB9 of signal cable to a free serial port then connect RJ45 at the other end of the cable to MSR206 4 Connect outer plug of Power out cable to the power inlet of MSR206 5 Connect Power in cable to Power supply and AC receptacle 110V 240V 6 Power on your system PC ...

Page 8: ...perating systems Windows 95 Windows 98 Windows 2000 or NT4 0 c 256K available conventional memory d A free serial port Com 1 or Com 2 with DB9 male connector Test program installation User shall follow the steps below in order to install test program A Connect MSR206 to RS232 port and power on it B Insert utility diskette into floppy disk drive on PC and execute the self extracting file e g MSR206...

Page 9: ...racters And proceed to step H G If a password is not required press ESC and a dialog box will ask you to confirm that a password is not required Click on Yes and proceed to demo program H When entering a password for the first time the system will require you to confirm the password Click OK after you reenter your password Remember the password you entered because if it is forgotten you must re in...

Page 10: ... 28 pages J The test program will auto detect if a MSR206 is connected By clicking Setup from main window you can change COM ports Leading Zeros for all 3 tracks and BPI of track 2 K By choosing User Type from the main window you can then define your user parameters by clicking Setup selecting User Type ...

Page 11: ...MSR206 Programmer s Manual UDN PM017 U Rev C 1 Section 5 Utilities test program 2003 10 9 Page 9 Total 28 pages ...

Page 12: ...itial state 2 Command READ Command code ESC r Hex code 1B 72 Response Data Block ESC Status Byte Description This command request MSR206 to read a card swiped and respond with the data read 3 Command WRITE Command code ESC w Data Block Hex code 1B 77 Data Block Response ESC Status Byte Description This command request MSR206 to write the Data Block into the card swiped 4 Command Communication test...

Page 13: ...is used to verify that the card sensing circuit of MSR206 is working properly MSR206 will not response until a card is sensed or receive a RESET command 11 Command Ram test Command code ESC 87 Hex code 1B 87 Response ESC 0 1B 30 ram test ok ESC A 1B 41 ram test fail Description This command is used to request MSR206 to perform a test on its on board RAM 12 Command Set leading zero Command code ESC...

Page 14: ...only for TK2 Command code ESC b Density Hex code 1B 62 D2 or 4B Response ESC 0 1B 30 select ok ESC A 1B 41 select fail Description This command is used to select the density of TK2 D2 TK2 BPI 210 4B TK2 BPI 75 16 Command Read raw data Command code ESC m Hex code 1B 6D Response Raw Data Block ESC Status Byte Description This command requests MSR206 to read a card swipe but send without ASCII decode...

Page 15: ...Set BPC Command code ESC o tk1bit tk2bit tk3bit Hex code ESC 6F 05 08 05 08 05 08 Response ESC 30 tk1bit tk2bit tk3bit Description This command is used to set the bit per character of every track 21 Command Set Hi Co Command code ESC x Hex code 1B 78 Response ESC 0 Description This command is used to set MSR206HL status to write Hi Co card 22 Command Set Low Co Command code ESC y Hex code 1B 79 Re...

Page 16: ...h data encoded on track 2 only for MSR206 5 it will transmit data like 1B 73 1B 01 1B 02 string 3F 1C for no data on track 1 so it shown 1B 01 only Raw Data Block format Start Field R W Data Field Ending Field Command code ESC s Raw data FS ESC Status Hex code 1B 73 Raw data 3F 1C 1B Status Raw Data format Raw Data Char Code ESC 1 L1 string1 ESC 2 L2 string2 ESC 3 L3 string3 Hex Code 1B 01 L1 stri...

Page 17: ...2 Write 2 B0 1 B6 1 B5 1 B4 1 B3 1 B2 1 B1 1 B0 3 B1 3 B0 2 B6 2 B5 2 B4 2 B3 2 B2 2 B1 4 B2 4 B1 4 B0 3 B6 3 B5 3 B4 3 B3 3 B2 Track 2 3 for 8 BPC Read 1 B0 1 B1 1 B2 1 B3 1 B4 2 B0 2 B1 2 B2 2 B3 2 B4 3 B0 3 B1 3 B2 3 B3 3 B4 4 B0 4 B1 4 B2 4 B3 4 B4 5 B0 5 B1 5 B2 5 B3 Write 2 B2 2 B1 2 B0 1 B4 1 B3 1 B2 1 B1 1 B0 4 B0 3 B4 3 B3 3 B2 3 B1 3 B0 2 B4 2 B3 5 B3 5 B2 5 B1 5 B0 4 B4 4 B3 4 B2 4 B1 R...

Page 18: ...nd code ESC e HEX code 1B 65 Serial port test Command test ACK ESC y HEX code 1B 79 Command code ESC a HEX code 1B 61 Reset 8 2 WRITE DATA TO MSR 206 HOST Direction MSR206 Command code ESC w ESC s ESC 01 01 ESC 02 23 ESC 03 45 FS HEX code 1B 77 1B 73 1B 01 30 31 1B 02 32 33 1B 03 34 35 3F 1C write command status ACK Wait until swipe card Command ACK ESC status HEX code 1B status Status 30 no error...

Page 19: ... sequence 2003 10 9 Page 17 Total 28 pages status ACK Wait until swipe card Command ACK ESC s ESC 01 01 ESC 02 23 ESC 03 45 FS ESC status HEX code 1B 73 1B 01 25 30 31 3F 1B 02 3B 32 33 3F 1B 03 3B 34 35 3F 3F 1C 1B status Status 30 ok Status 31 3F if error XX HEX Code XX ...

Page 20: ... 3F 1C card data format card data Char code ESC 01 string ESC 02 string ESC 03 string3 HEX code 1B 01 string1 1B 02 string2 1B 03 string3 As an example the following information will be written to the card Track1 ABC123 Track2 12345 Track3 12345 HOST DIRECTION MSR106 MSR206 Command code esc w ESC s ESC 01 ABC123 ESC 02 12345 ESC 03 12345 FS HEX code 1B 77 1B 73 1B 01 41 42 43 31 32 33 1B 02 31 32 ...

Page 21: ...0 0 1 1 B3 B2 B1 B0 B4 0 1 0 1 0 0 0 0 0 sp 0 P 1 0 0 0 1 1 A Q 2 0 0 1 0 2 B R 3 0 0 1 1 3 C S 4 0 1 0 0 4 D T 5 0 1 0 1 5 E U 6 0 1 1 0 6 F V 7 0 1 1 1 7 G W 8 1 0 0 0 8 H X 9 1 0 0 1 9 I Y A 1 0 1 0 J Z B 1 0 1 1 K C 1 1 0 0 L D 1 1 0 1 M E 1 1 1 0 N F 1 1 1 1 O _ Converting track two and three ASCll information into HEX Data p B3 B2 B1 B0 0 1 0 0 0 0 1 0 0 0 0 1 2 0 0 0 1 0 3 1 0 0 1 1 4 0 0 1...

Page 22: ...ata on the cards The procedures are listed as below 08 08 08 BITS Set each track as 08 First of all set BPC command 1B 6F 08 08 08 Present the information to the card encoder as follows Start Field 1B6E1B73 Track1 header 1B01 Length 08 Track1 data C5B07814954E3E2A Track header 1B02 Length 05 Track2 data 2B8849EAAF Track3 header 1B03 Length 05 Track3 data 2B8849EAAF Ending Field 3F1C Transfer the t...

Page 23: ...the row The last LRC will be considered as the parity rule of this row B0 B1 B2 B3 B4 B5 B6 B7 1 0 1 0 0 0 1 1 0 0 0 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 0 0 0 1 0 1 0 1 0 0 1 0 1 1 1 0 0 1 0 0 1 1 1 1 1 0 0 0 1 0 1 0 1 0 0 B7 B6 B5 B4 B3 B2 B1 B0 HEX 1 1 0 0 0 1 0 1 C5 1 0 1 1 0 0 0 0 B0 0 1 1 1 1 0 0 0 78 0 0 0 1 0 1 0 0 14 1 0 0 1 0 1 0 1 95 0 1 0 0 1 1 1 0 4E 0 0 1 1 1 1 1 0 3E 0 0 1 0 1 0 1 0 ...

Page 24: ... 05 1b 6F 07 05 05 First of all set BPI command Present the information to the card encoder as follows Start Field 1B6E1B73 Track1 header 1B01 Length 09 Track1 data 456162235152131F2A Track2 header 1B02 Length 08 Track2 data 0B01021304151F15 Track3 header 1B03 Length 08 Track3 data 0B01021304151F15 Ending Field 3F1C Transfer the track1 data to HEX under 07 bits B0 B1 B2 B3 B4 B5 P 1 0 1 0 0 0 1 A ...

Page 25: ...B0 HEX 0 1 0 0 0 1 0 1 45 A 0 1 1 0 0 0 0 1 61 B 0 1 1 0 0 0 1 0 62 C 0 0 1 0 0 0 1 1 23 1 0 1 0 1 0 0 0 1 51 2 0 1 0 1 0 0 1 0 52 3 0 0 0 1 0 0 1 1 13 0 0 0 1 1 1 1 1 1F LRC 0 0 1 0 1 0 1 0 2A HEX B3 B2 B1 B0 0 0 0 0 0 1 0 0 0 1 2 0 0 1 0 3 0 0 1 1 4 0 1 0 0 5 0 1 0 1 6 0 1 1 0 7 0 1 1 1 8 1 0 0 0 9 1 0 0 1 A 1 0 1 0 B 1 0 1 1 C 1 1 0 0 D 1 1 0 1 E 1 1 1 0 F 1 1 1 1 Transfer track 2 track 3 data ...

Page 26: ... 1F LRC 0 0 0 1 0 1 0 1 15 06 05 06 BITS Set TK1 TK2 TK3 as 06 05 06 First of all set BPI command 1b 6F 06 05 06 Present the information to the card encoder as follows Start Field 1B6E1B73 Track1 header 1B01 Length 09 Track1 data 052122231112131F2A Track2 header 1B02 Length 08 Track2 data 0B01021304151F15 Track3 header 1B03 Length 08 Track3 data 0101020304051F1F Ending Field 3F1C Transfer track1 d...

Page 27: ... 0 0 1 0 12 3 0 0 0 1 0 0 1 1 13 0 0 0 1 1 1 1 1 1F LRC 0 0 1 0 1 0 1 0 2A Transfer track 2 data to HEX under 05 bits B0 B1 B2 B3 P 1 1 0 1 0 1 1 0 0 0 0 2 0 1 0 0 0 3 1 1 0 0 1 4 0 0 1 0 0 5 1 0 1 0 1 1 1 1 1 1 LRC 1 0 1 0 1 Add 0 Add 0 Add 0 P B3 B2 B1 B0 HEX 0 0 0 0 1 0 1 1 0B 1 0 0 0 0 0 0 0 1 01 2 0 0 0 0 0 0 1 0 02 3 0 0 0 1 0 0 1 1 13 4 0 0 0 0 0 1 0 0 04 5 0 0 0 1 0 1 0 1 15 0 0 0 1 1 1 1 ...

Page 28: ...0 0 0 0 1 1 0 0 0 0 0 2 0 1 0 0 0 0 3 1 1 0 0 0 0 4 0 0 1 0 0 0 5 1 0 1 0 0 0 1 1 1 1 1 0 LRC 1 1 1 1 1 0 Add 0 Add 0 B5 B4 B3 B2 B1 B0 HEX 0 0 0 0 0 0 0 1 01 1 0 0 0 0 0 0 0 1 01 2 0 0 0 0 0 0 1 0 02 3 0 0 0 0 0 0 1 1 03 4 0 0 0 0 0 1 0 0 04 5 0 0 0 0 0 1 0 1 05 0 0 0 1 1 1 1 1 1F LRC 0 0 0 1 1 1 1 1 1F ...

Reviews: