hnfr data spec e

38
3SD-980612 Manual Swipe Magnetic Card Reader Specification (Command/Response Type) 3S4YR-HNFR Series Rev.A Nov.1998 Rev.B 15.Feb.1999 Rev.C 22.May.2000 Rev.D 16.July.2004 Rev.E 13.Dec.2006 RoHS Compliant ©Hitachi-Omron Terminal Solutions, Corp. 2007 All Rights Reserved

Upload: spmadden

Post on 08-Apr-2015

61 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: Hnfr Data Spec e

3SD-980612

Manual Swipe Magnetic Card Reader Specification (Command/Response Type)

3S4YR-HNFR Series

Rev.A Nov.1998 Rev.B 15.Feb.1999 Rev.C 22.May.2000 Rev.D 16.July.2004 Rev.E 13.Dec.2006

RoHS Compliant

©Hitachi-Omron Terminal Solutions, Corp. 2007 All Rights Reserved

Page 2: Hnfr Data Spec e

3SD-980612

[ Specification History of Modification]

Rev Date Page Contents A Nov.’98 All pages Original version

14 Parameter description of “a) command format” is changed. (2 bytes -> 1 byte)

15 1) The following description changed. Order 1: “Card data -> Card data response” 2) The description about LED is deleted.

18 The description of command’s effective condition is added. 21 The description of Response format <Positive> is changed.

(1~104 bytes -> 6~307 bytes) 24~28 The description about LED is deleted.

B 15.Feb.’99

29~32 The description about LED is deleted. 21 Response Format(Data priority) is changed.

OLD : ISO 1 --> ISO 2 --> ISO 3 --> JIS 2 NEW: JIS 2 --> ISO 1 --> ISO 2 --> ISO 3

24~28 The length of following contents is changed. a) Command format Param. b) Command parameter[Output port setting]

OLD:2~8 bytes --> NEW:2 bytes

C 22.May.’00

29~32 The length of following contents is changed. c) Command format Param. d) Command parameter[Output port setting time]

OLD:4~16 bytes --> NEW:4 bytes 2 3S4YR-HNFR2-004 is added to “Applicable Card Reader”. 3 2.1.(1) Height is changed as follow.

OLD:35.2 mm --> NEW:35.5 mm 9 1) Monitoring time to wait for "DLE ACK" is changed.

OLD:120ms --> NEW:150ms 2) Monitoring time for host reply is changed. OLD:10seconds --> NEW:2seconds 3) Monitoring time to wait for DLE ETX BCC in Command Receiving is

changed OLD:100ms --> NEW:150ms

15 Response format for status command is changed. Note about status after initial reset is added.

17 Description of continuous “Card swipe permission” status after one swipe is added.

18 Description of read data after “Card swipe prohibition” is added. 19 Description of continuous “Card swipe permission” status after EOT is

added. 20, 22 Notes about read command performance are added.

23 Description about initializing monitoring time by initial reset command is added.

26, 28, 29 Description about de-activation of I/O by initial reset command is added.30~33 Description about initializing I/O set time by initial reset command is

added.

D 16.July.’04

25 Description about I/O port control object. OLD:(Buzzer) --> NEW:(LED/Buzzer)

Cover sheet

34

Change of corporate name OMRON Corporation

↓ Hitachi-Omron Terminal Solutions,Corp.

2, 35 Chapter 7 addition

E 13.Dec.’06

3 Reduction in "Module name"

Page 3: Hnfr Data Spec e

3SD-980612

CONTENTS I Introduction .....................................................................................................…….. 3 II. Applicable Card Reader ........................................................................................... 3 III. Reference Standards ................................................................................................ 3 IV. Character Code Expression Method ....................................................................... 3 V. Definition of Terminology ..................................................................................... 3 1. Characteristics ......................................................................................................... 4 2. General Specifications ............................................................................................ 4 2.1 Appearance .......................................................................................................... 4 2.2 Card Reader ......................................................................................................... 5 2.3 Environment conditions ...................................................................................... 5 3. Transmission Specifications .................................................................................. 6 3.1 Basic Transmission Specifications .................................................................... 6 3.2 Transmission Control Method ............................................................................ 6 3.3 Transmission Control Codes .............................................................................. 6 3.4 Message Format ................................................................................................... 7 1) Command/Response Format 2) Usable Codes in the Text 3.5 Transmission Control Procedure ....................................................................... 8 3.5.1 Transmission beginning 3.5.2 Normal Operation Sequence 3.5.3 Recovery Operation Sequence 3.5.4 Interruption of Transmission and Command to C/R from HOST 3.6 Transmission Control Matrix .............................................................................. 10 1) HOST Control 2) C/R Control 4. Time Chart of Transmission Control Signal Line ..............................................… 11 4.1 DTR Signal .......................................................................................................... 11 4.2 Transmission Interruption by CTS Signal ........................................................ 11 5. Message Specifications ......................................................................................... 12 5.1 Command Format ............................................................................................... 12 5.2 Response Format ............................................................................................... 12 5.2.1 Positive Response Format 5.2.2 Negative Response Format 5.3 Table of Commands ............................................................................................ 13

1

Page 4: Hnfr Data Spec e

3SD-980612

5.4 Table of Responses ............................................................................................ 14 5.4.1 Status of Positive Response 5.4.2 Status Table of Negative Response(Error Code) 6. Detail of Commands ............................................................................................... 15 6.1 Initial Reset ......................................................................................................... 15 6.2 Status Sense ....................................................................................................... 16 6.3 Card swipe Permission ...................................................................................... 17 6.4 Card swipe Prohibition ...................................................................................... 18 6.5 Intake .................................................................................................................. 19 6.6 Read (The designation of Multi-track is impossible.) ...................................... 20 6.7 Read (The designation of Multi-track is possible.) .......................................... 21 6.8 Monitor Time Setting ......................................................................................... 23 6.9 Version Read ...................................................................................................... 24 6.10 I/O Port .............................................................................................................. 25 6.11 I/O Port Time Setting ........................................................................................ 30 7. Response to Regulated Chemical Substances .................................................... 33 7.1 Response to RoHS ............................................................................................... 33 Appendix 1. Dimensions .......................................................................................... 34 Appendix 2. Magnetic Card Data Record Format ................................................... 35 Appendix 3. Card Data Configuration ..................................................................... 35 Appendix 4. ISO #1 Track Character Code Setting ................................................ 35 Appendix 5. ISO #2 and #3 Track Character Code Setting .................................... 36 Appendix 6. JIS II Track Character Code Setting ................................................... 36

2

Page 5: Hnfr Data Spec e

3SD-980612

I. Introduction This specification describes the transmission specifications between the magnetic card reader [3S4YR-HNFR-002 / 012 Series] with RS232 and HOST terminal.

II. Applicable Card Reader

Magnetic head Module name Track 1 Track 2 Track 3 Track

4

Note

A 3S4YR-HNFR1 -002 ○ ○ ○ With CASE B 3S4YR-HNFR2 -002 ○ With CASE C 3S4YR-HNFR26-002 ○ ○ ○ With CASE D 3S4YR-HNFR2 -012 ○ Without CASE E 3S4YR-HNFR26-012 ○ ○ ○ Without CASE

The meaning of tracks Track 1 = ISO track 1 Track 2 = ISO track 2 Track 3 = ISO track 3 Track 4 = JIS 2 track

III. Reference Standards

- ISO/IEC 7810: 1995-08-15 Identification cards - Physical characteristics

- ISO/IEC 7811-1: 1995-08-15 Identification cards - Recording technique Part 1:Embossing

- ISO/IEC 7811-2: 1995-08-15 Identification cards - Recording technique Part 2:Magnetic stripe

- ISO/IEC 7811-3: 1995-08-15 Identification cards - Recording technique Part 3:Location of embossed characters on ID-1 cards

- ISO/IEC 7811-4: 1995-08-15 Identification cards - Recording technique Part 4:Location of read-only magnetic tracks - Tracks 1 and 2.

- ISO/IEC 7811-5: 1995-08-15 Identification cards - Recording technique Part 5:Location of read-only magnetic tracks - Tracks 3

- JIS X 6301: 1979 Credit card for magnetic stripe - JIS X 6302: 1979 Magnetic information record method for card

- ISO 2111: 1985-02-01 Data communication -Basic mode control procedures - Code independent information transfer

IV. Character Code Expression Method

- XXH describes HEX Code. - "X" describes ASCII Code.

V. Definition of Terminology

- HOST HOST Terminal - C/R Card Reader - Default Set value on the C/R side when power is turned ON. - SS Magnetic Data Start Sentinel - ES Magnetic Data End Sentinel - LRC Magnetic Data Longitudinal Redundancy Check - VRC Magnetic Data Vertical Parity

3

Page 6: Hnfr Data Spec e

3SD-980612

1. Characteristics • Compact • Low cost • Supports single, dual, triple track. • Equipped with RS232 Interface (simple steps to connect to the PC) • Operatable with RS232 Interface control signal line (no need for a dedicated power

supply)

2. General Specifications 2.1. Appearance

(1) Dimensions Width : 38.6 mm Depth : 100 mm Height : 35.5 mm See the details Dimensions in Appendix 1. (2) Cable Length : 1.5 m (3) Connector

D-SUB 9 pin (Female) mini-Din 6 pin ( Male & Female)

2.2. Card Reader

(1) Applicable card Cards conforming to the following standards are regarded as applicable cards.

However, the combination of tracks is limited to a choice between the 210BPI/2 track or the 75BPI/1 track. ISO/IEC 7811-2 Track 1 ISO/IEC 7811-2 Track 2 ISO/IEC 7811-2 Track 3 JIS-X6302 Type II

(2) Card swipe direction Readable from both sides. (3) Card feeding Speed 100 to 1200 mm/sec. (4) Bank card check Bank card check function is available for JIS II card data. (5) Precaution

It is impossible to read the card while transmitting card data.

4

Page 7: Hnfr Data Spec e

3SD-980612

2.3. Environment conditions

(1) Temperature Operation: 0°C to +45°C Storage : -15°C to +60°C (2) Humidity Operation: 30% to 85%RH(Without condensation) Vapour amount: 23g/m3 or less. Storage: 20% to 90%RH(Without condensation) Vapour amount: 40g/m3 or less. (3) Vibration Vibration endurance: 10 to 150 Hz, 0.15mm single amplitude However, the maximum acceleration speed is 19.6/s2{2G} (4) Shock Shock endurance: Peak acceleration speed is 196m/s2{20G} (5) Conditions for use

Mounting location : Indoors (away from direct sunlight) Environment that is free form dust and dirt .

5

Page 8: Hnfr Data Spec e

3SD-980612

3. Transmission Specifications 3.1 Basic Transmission Specifications

Item Contents Electronic Interface RS232 Interface Synchronous Method Start-Stop Synchronization Method Communication Method Half-duplex Method Transmission Speed 9600 bps

Start Bit :1 bit Data :8 bit Vertical Parity Bit :1 bit (even)

Character Format

Stop Bit :1 bit Character Code ASCII, Binary

Horizontal Parity Check (BCC) :even Error Detector Vertical Parity Check :even

Bit Sending Sequence LSB Priority 3.2 Transmission Control Method

- Command Response Method - C/R executes the designated processing corresponding to the command received from HOST. - The results are sent to HOST as a response.

3.3 Transmission Control Codes

Code Value Meaning DLE STX 10H 02H Characters are described the start of text for the Command or Response.DLE ETX 10H 03H Characters are described the end of text for the Command or Response.DLE ENQ

10H 05H Characters are described the designation of Command Execution or Request for Response Re-transmission.

DLE ACK 10H 06H Characters are described Positive Response that the Command sent from HOST has been received normally.

DLE NAK 10H 15H Characters are described Negative Response that the Command sent from HOST has been received abnormally.

DLE EOT

10H 04H Characters are described the Interruption of Transmission or the interruption of Command Execution.

DLE 10H Transparent Mode control code in text

6

Page 9: Hnfr Data Spec e

3SD-980612

3.4 Message Format 1) Command/Response Format

- Only one Command or Response is in the Text. - BCC is the result of an exclusive logic (XOR) calculation from the Text beginning (after

STX) to ETX. However, the following contents are excluded from BCC calculation. DLE (10H) added by the Transparent Mode DLE (10H) of the Transmission Control Code “ DLE ETX “ -The BCC Vertical Parity is regarded as the BCC Parity. -The maximum delay time of transmission between each characters(from the DLE to ETX,

BCC into the text of HOST or C/R) is within 100 ms.

2) Useably codes in the Text

*1 [Transparent Mode]

If "DLE(10H)" character is used into the text as a part of command or response, double DLE(10H) must be transmitted as follows on the transmission line. About the details, refer to ISO 2111 “4. Presentation of data” and “5. Reception of data” .

DLE (10H) -> DLE DLE (10H 10H) Text data Added DLE ( exclude BCC calculation )

7

Page 10: Hnfr Data Spec e

3SD-980612

3.5 Transmission Control Procedure 3.5.1 Transmission beginning

Transmission speed between C/R and HOST is 9600 bps. HOST should send “ Initial Reset “ command after power is turned on. The timing of this command issuing is after DTR ON. (About the details, refer to “4.1 DTR Signal” into “4. Time Chart of Transmission Control Signal Line”.)

3.5.2 Normal Operation Sequence

3.5.3 Recovery Operation Sequence 1) Monitoring time-out happens while HOST is waiting for ACK from C/R.

(HOST re-sends the Command.)

*3.5.3.1 : See “1)HOST Control Monitoring Time *1 on 3.6 Transmission Control Matrix”

2) When HOST receives NAK from C/R. (Command is resent from HOST)

*3.5.3.2 : C/R detects Receiving Error.

(Vertical Party error, BCC error, and monitoring time-out error happens between Characters)

3) When HOST detects an error during receiving of ACK from C/R.

(HOST re-sends the Command.)

*3.5.3.3: HOST detects Receiving Error.

8

Page 11: Hnfr Data Spec e

3SD-980612

4) When monitoring time-out happens while HOST is waiting for Response from C/R. (HOST re-sends ENQ and requests a Response from C/R.)

*3.5.3.4: See "1)HOST Control Monitoring Time *2 on 3.6 Transmission Control Matrix"

5) When HOST detects an error during receiving of Response from C/R.

(HOST re-sends ENQ and requests resending of the response from C/R. )

*3.5.3.5 : HOST detects Receiving Error.

3.5.4 Interruption of Transmission and Command to C/R from HOST.

By sending "DLE EOT" from HOST, interruption of transmission or processing of command can be executed to C/R.

1) Before HOST Sends the Command (Interruption of Transmission from HOST)

2) After HOST Sent the Command (Command cancelled from HOST)

9

Page 12: Hnfr Data Spec e

3SD-980612

3.6 Transmission Control Matrix 1) HOST Control (for reference)

Receiving Codes from C/R HOST Receiving Monitoring DLE ACK DLE NAK DLE STX DLE ETX BCC Other Codes Time-out Monitoring Time

1 Waiting for DLE ACK after sent command

DLE ENQ Sends-> goes to status 2

Re-sends Command-> remain in status 1 *3

Ignores Ignores Ignores Re-sends Command-> remains in status 1 *3

*1

2 Waiting for Response Receiving after sent DLE ENQ

Ignores Ignores Clears Buffer -> goes to status 3

Ignores Ignores Re-sends DLE ENQ -> remains in status 2 *3

*2

3 Waiting for DLE ETX BCC in Response receiving

Ignores Ignores Clears Buffer -> remains in status 3

Sends the next command when the receiving is normal-> goes to status 1Re-sends DLE ENQ when receivingis abnormal.-> goes to status 2 *3

Stores Data -> remains in status 3

Re-sends DLE ENQ-> goes to status 2 *3

3 sec

*1 : Monitoring Time for waiting "DLE ACK" after HOST had sent the command should be

150ms or more. When Sending/Receiving Switching-over Time of C/R is extended by the Initial Reset Command from HOST, HOST should be monitored the time which is this value plus 150ms. (Refer to 4.1)

*2 : Monitoring Time of waiting Response of HOST is different to each command. Usually 2 seconds or

more is recommended. For commands which is accompanied human operation (e.g., Intake), this human operation time should be added to monitoring time of response.

*3 : The number of re-transmission is decided by HOST and should be decided more than one time.

HOST should execute the Error Processing when the number of trying is exceeded.

2) C/R Control Receiving Codes from HOST C/R Receiving Monitoring

DLE ENQ DLE STX DLE EOT DLE ETX BCC Other Codes Time-out Monitoring Time 1 Idle Re-sends

Response-> remains status 1

Clears Buffer -> goes to status 2

Interruption of Execution ->remains in status 1

Ignores Ignores

2 Waiting for DLE ETX BCC in Command Receiving

Ignores Clears Buffer -> remain in Status 2

Interruption of Execution -> goes to status 1

When receiving is normal, sends DLE ACK -> goes to status 3 When receiving is abnormal, sends DLE NAK -> goes to status 1

Data Store -> remains in status 2

DLE NAK Sends-> goes to status 1

150 msec (Between characters)

3 Waiting for DLE ENQ after sent DLE ACK

Sends response after command execution -> goes to status 1

Clears Buffer -> goes to status 2

Interruption of Execution -> goes to status 1

Ignores Ignores

While C/R is processing a command, all characters except “ DLE EOT“ from HOST are ignored.

10

Page 13: Hnfr Data Spec e

3SD-980612

4. Time Chart of Transmission Control Signal Line The signal name is described on C/R side.

4.1 DTR Signal

*4.1:HOST should transmit the data after DTR Signal ON.

(After confirmed the DTR Signal ON, HOST should send an initial reset command.) 4.2 Transmission Interruption by CTS Signal

The following figure describes about CTS Signal that is tuned OFF by HOST during Response Transmission from C/R.

(1) When CTS Signal is turned OFF by HOST during Response Transmission by C/R, C/R interrupts

the transmission after sending maximum two characters. (2) C/R resumes the transmission within maximum 1ms after CTS Signal is turned ON by

HOST.

11

Page 14: Hnfr Data Spec e

3SD-980612

5. Message Specifications Explanation of each column on the following tables. - Column of Length describes the number of byte(s) for each item. - Column of Data describes the contents of each item.

5.1 Command Format (HOST -> C/R)

A Command is the text which is indicated execution of process to C/R from HOST.

IDN CMD Command Parameter Length 1 2 Variable Length (0-16 bytes) Data “C” See 5.3 For details , see command parameter of

“4. Detail of Commands”

IDN : Indicates code of the command. The code is “C” (43H). CMD : Indicates the command. (See 5.3) Command Parameter : This is defined as the details of CMD process.

However, it is existed CMD without Command Parameter. (See command parameter of “6. Detail of Commands”)

5.2 Response Format (C/R -> HOST)

A Response is the text which is transmitted from C/R to HOST. This is the result of process for the command text which was sent from HOST to C/R. (1) JDG

- HOST should judge the result of process by using JDG Code in the Response Message. - “P” (50H) indicates a positive response which process had been completed normally. - “N” (4EH) indicates a negative response which process had been completed abnormally.

(2) RCM RCM in the Response Message is same as the command (CMD) which had been defined process. (See 5.3)

5.2.1 Positive Response Format

JDG RCM RES Response data Length 1 2 2 Variable Length ( 0-307 bytes) Data “P” See 5.3 “00” For details , see Response data format of

“6. Detail of Commands” (1) Response Data

- Response data is indicated the data that is generated by executing the commands from HOST. (See Response data format of “6. Detail of Commands”) - However, it is existed CMD without response data.

5.2.2 Negative Response Format

JDG RCM RES Length 1 2 2 Data “N” See 5.3 See5.4.2

(1) RES

RES in the Response Message indicates the Error Code that is generated by executing the commands from HOST (See 5.4.2)

12

Page 15: Hnfr Data Spec e

3SD-980612

5.3 Table of Commands Definition of Terminology

Track A : Multi-track Numbers Track B : Single-track Number Mag. Data D : Read Magnetic Data Mag. Data F : Reads Magnetic Data (Multi-track / All tracks )

Command Name

CMD (ASCII) Function Command

Parameters Response

Data Ref.

Initial Reset “00” Initializes C/R Initial Set Data None 6.1 Status Sense “10” Reads the condition of C/R None None 6.2

“:0” Permits card swipe and waits infinitely card insertion None None 6.3 Card swipe Permission / Prohibition

“:1” Prohibits card swipe None None 6.4

Intake *1 *2

“20” Permits card swipe and waits until monitoring time indicated by “W0” command

None None 6.5

“69” Sends the read data in memory by this command Track B Mag. Data D 6.6 Read “6A” Sends multi-tracks data in the memory by this command

and parameter Track A Mag. Data F 6.7

Monitor Time Setting

“W0” Sets the monitoring time until card is inserted ( Relating“20” command)

Monitor Time None 6.8

Version Read “V0” Reads FW version. None Version Info. 6.9 “P0” Sets de-activation of designated output port(s) Output Port None “P1” Sets activation of designated output port(s) Output Port None “P2” Sets de-activation of designated output port(s)

during the time indicated by “T0” command Output Port None

“P3” Sets activation of designated output port(s) during the time indicated by “T1” command

Output Port None

I/O Port *3

“P4” Repeats activation and de-activation of designated output port(s) according to the time indicated by “T2” and “T3” command

Output Port None

6.10

“T0” Sets de-activation time of output port(s) (Relating “P2” command)

Output Port Setting Time

None

“T1” Sets activation time of output port(s) (Relating “P3” command)

Output Port Setting Time

None

“T2” Sets de-activation time of output port(s) when activation and de-activation is repeated (Relating “P4” command)

Output Port Setting Time

None

I/O Port Time Setting

“T3” Sets activation time of output port(s) when activation and de-activation is repeated (Relating “P4” command)

Output Port Setting Time

None

6.11

*1: Read data of all tracks are stored implicitly in memory after in-take. Then read data is sent to HOST by issuing Read command(“69” or “6A”).

*2: Monitoring time for Card insertion is specified by “W0” . *3: All I/O ports is de-activation status after power turns on.

13

Page 16: Hnfr Data Spec e

3SD-980612

5.4 Table of Responses 5.4.1 Status of Positive Response

Response status (RES) of Positive Response Format is fixed “00”.

5.4.2 Status Table of Negative Response (Error Code) Response status (RES) of Negative Response Format describes the following table.

RES (ASCII) Sorts of Error Meaning

“00” Command undefined

-- - HOST used the command is not written on specification.

“01” Command Sequence Error

-- - HOST sent a disable command in the present state.

“02” Command Data Error

-- - HOST sent a wrong command parameter.

“40” Read Error ( SS error )

Card abnormality *1

- C/R couldn’t detect SS-code in read data.

“41” Read Error ( ES error )

Card abnormality *1

- C/R couldn’t detect ES-code after detecting SS-code in read data.

“42” Read Error ( VRC error )

Card abnormality *1

- C/R detects that SS code and VRC of next character is correct in read data. But VRC of following characters is detected Vertical parity error (VRC error).

“43” Read Error ( LRC error )

Card abnormality *1

- C/R detects that the character after ES in read data is not matched the result of LRC calculation.

“45” Read Error ( No Data )

Card abnormality *1

- C/R detects, that the character after SS is ES and then the next character is matched the result of LRC calculation in read data. (No data besides SS-ES-LRC)

“49” Read Track setting Error -- - Specified track is not read.

“61” Insertion monitoring Time is up Warning *2 - No card in-takes by intake command during Insertion monitoring

Time. Note: Host should be checked the content of command and sequence. *1: Abnormality of magnetic data is detected. HOST can send next command continuously after HOST received the error code. *2: HOST can send next command continuously after HOST received the error code.

14

Page 17: Hnfr Data Spec e

3SD-980612

6. Detail of Commands 6.1 Initial Reset This command initializes C/R. (CPU reset, RAM work area clear) a) Command format

“C” “00” Param. (1 byte)

b) Command parameter [Initial Setting Data (0~1 byte)] These parameter are possible to omit.

Order Length (Bytes)

Data (ASCII) Meaning

"0" 10ms *1 1 0-1 "2"~"9" 20ms~90ms

Minimum Guaranteed Time of switching between sending and receiving *2

*1: This value is default value. *2: Minimum Guaranteed Time of switching between sending and receiving means

minimum time until C/R send Response (DEL-ACK or response) after C/R received command or

DEL-ENQ from HOST.

c) Response format <Positive >

“P” “00” “00”

<Negative> “N” “00” See 5.4.2

d) Response data format None

e) Note Execution of initial reset command brings following conditions. 1. Card swipe prohibition status. 2. Card data is cleared. 3. Setting time returns to default. 4. I/O port is de-activated.

15

Page 18: Hnfr Data Spec e

3SD-980612

6.2 Status Sense This command reads the condition of C/R. a) Command format

“C” “10”

b) Command parameter None

c) Response format <Positive >

“P” “10” “00” Data (6 bytes)

<Negative> “N” “10” See 5.4.2

d) Response data format [C/R condition (6 bytes)]

Order Length (Bytes)

Data (ASCII) Meaning

“0” Card data response none 1 1 “1” Card data response exists “0” Card swipe permit 2 1 “1” Card swipe prohibit

3 1 “0” Fixed (Reservation for Ready LED) 4 1 “0” Fixed (Reservation for Good LED) 5 1 “0” Fixed (Reservation for Error LED)

“0” Buzzer OFF 6 1 “1” Buzzer ON

e) Note None

16

Page 19: Hnfr Data Spec e

3SD-980612

6.3 Card swipe permission This command permits card swipe. a) Command format

“C” “:0”

b) Command parameter None

c) Response format <Positive >

“P” “:0” “00” <Negative>

“N” “:0” See 5.4.2

d) Response data format None

e) Notes “Card swipe permission” status is sustained even after one card swiping. It means that data can be overwritten if another card is swiped after former card swiping. To prevent overwriting the data, “Card swipe prohibition” command shall be executed.

17

Page 20: Hnfr Data Spec e

3SD-980612

6.4 Card swipe prohibition This command prohibits card swipe. a) Command format

“C” “:1”

b) Command parameter None

c) Response format <Positive >

“P” “:1” “00”

<Negative> “N” “:1” See 5.4.2

d) Response data format None

e) Note Card data remains even if this command is executed. To delete card data, initial reset shall be executed.

18

Page 21: Hnfr Data Spec e

3SD-980612

6.5 Intake C/R is permitted card swipe and C/R waits card swipe until monitoring time indicated by

Monitor Time setting command “W0”. Read data of all tracks are stored implicitly in memory after card swipe. These data is sent

to HOST by issuing Read command “69” or “6A”.

a) Command format

“C” “20”

b) Command parameter None

c) Response format <Positive >

“P” “20” “00”

<Negative> “N” “20” See 5.4.2

d) Response data format None

e) Note This command is possible to perform during “Card swipe prohibition” status. (When this command is performed on “Card swipe permission” status, command error is occurred.)

Even if “Card swipe monitoring” status is interrupted by EOT, “Card swipe permission” status is sustained.

19

Page 22: Hnfr Data Spec e

3SD-980612

6.6 Read (The designation of Multi-track is impossible.) This command sends the read data in memory to HOST. It is impossible sending of Multi-track data.

a) Command format

“C” “69” Param. (1 byte)

b) Command parameter [Track Number B (1 byte)]

Order Length (Bytes)

Data (ASCII) Meaning

"1" ISO #1 "2" ISO #2 "3" ISO #3

1 1

“8” JIS II Note: Designation of Multi-track can not be performed.

c) Response format <Positive >

“P” “69” “00” Data (1~104 bytes) <Negative>

“N” “69” See 5.4.2

d) Response data format [Magnetic Data D (1~104 bytes)]

Order Length (Bytes)

Data (ASCII) Meaning

1~76 Card Data ISO #1 1~37 Card Data ISO #2 1~104 Card Data ISO #3

1

1~69 Card Data JIS II

Magnetic Data See Annex A

e) Note Execute this command only when card data is available.

20

Page 23: Hnfr Data Spec e

3SD-980612

6.7 Read (The designation of Multi-track is possible.) This command sends the read data in memory to HOST. It is possible sending of Multi-track data.

a) Command format

“C” “6A” Param. (1 byte)

b) Command parameter [Track Number A (1 byte)]

Order Length (Bytes)

Data (ASCII) Meaning

"1" ISO #1 "2" ISO #2 "3" ISO #3 "4" ISO #1 + ISO #2 "5" ISO #1 + ISO #3 "6" ISO #2 + ISO #3 "7" ISO #1 + ISO #2 + ISO #3 “8” JIS II “9” JIS II + ISO #1 “:” JIS II + ISO #2 “;” JIS II + ISO #3 “<” JIS II + ISO #1 + ISO #2

1 1

“>” JIS II + ISO #2 + ISO #3 Note: Designation of Multi-track can be performed.

21

Page 24: Hnfr Data Spec e

3SD-980612

c) Response format <Positive >

“P” “6A” “00” Data (6~307 bytes)

<Negative> “N” “6A” See 5.4.2

d) Response data format [Magnetic data F (6 ~307 bytes )] Magnetic data F is consisted of the following contents is designated by Read command “6A”.

a) Track no.(Order 1) b) Result of read(Order 2-5) c) Length of Magnetic Data(Order 6-9) d) Magnetic Data(Order 10-13)

(1) The data of track is not designated by the command is not contained in response data. (2) On the result of reading,

When the data of track is designated by command is normal, it is set "00". When the data of track is designated by command is abnormal, it is set error code "4x", About error code, refer to chapter 5.4.2.

Order Length (Bytes)

Data (ASCII) Meaning

1 1 “1”~”>” Designated track number by command. Refer to 4.7 b) Command parameter. 2 0 or 2 result of reading JIS II 3 0 or 2 result of reading ISO #1 4 0 or 2 result of reading ISO #2 5 0 or 2 result of reading ISO #3

None order : none data Magnetic data normality : “00” Magnetic data abnormality : see 5.4.2

6 0 or 3 Length JIS II 7 0 or 3 Length ISO #1 8 0 or 3 Length ISO #2 9 0 or 3 Length ISO #3

None designating : none data Magnetic data normality : Magnetic Data Length Magnetic data abnormality : “000”

10 0~76 Card Data JIS II 11 0~37 Card Data ISO #1 12 0~104 Card Data ISO #2 13 0~69 Card Data ISO #3

None designating : none data Magnetic data normality : See Annex A Magnetic data abnormality : No data

e) Note Execute this command only when card data is available.

22

Page 25: Hnfr Data Spec e

3SD-980612

6.8 Monitor Time Setting This command sets the monitoring time until card is inserted. This command is related Intake command(“20”).

a) Command format

“C” “W0” Param. (2 bytes)

b) Command parameter [Monitoring Time Data (2 bytes)] Data (ASCII) Meaning Order Length

(Bytes) Value unit Default value 1 2 “00”-“99” Seconds “30” Monitoring Time ( "00": Waits infinitely )

c) Response format <Positive >

“P” “W0” “00” <Negative>

“N” “W0” See 5.4.2

d) Response data format None

e) Note If initial reset is executed, formerly set monitoring time returns to default.

23

Page 26: Hnfr Data Spec e

3SD-980612

6.9 Version Read This command reads the version of Farm Ware(FW).

a) Command format

“C” “V0”

b) Command parameter None

c) Response format <Positive >

“P” “V0” “00” Data (62 bytes)

<Negative> “N” “V0” See 5.4.2

d) Response data format [Version Information (62 bytes)]

Order Length (Bytes)

Data (ASCII) Meaning

1 12 “AAAAAAAAAAAA” CPU FW type 2 2 “AA” CPU FW Version 3 6 “000000”~”FFFFFF” CPU ROM SUM Value 4 12 “ “ Spare (Dummy data 20H [space data] are stored in this area.) 5 2 “ “ Spare (Dummy data 20H [space data] are stored in this area.) 6 6 “000000” Spare (Dummy data “0” are stored in this area.) 7 12 “ “ Spare (Dummy data 20H [space data] are stored in this area.) 8 2 “ “ Spare (Dummy data 20H [space data] are stored in this area.) 9 8 “00000000” Spare (Dummy data “0” are stored in this area.)

e) Note None

24

Page 27: Hnfr Data Spec e

3SD-980612

6.10 I/O Port These command controls the designated output ports (LED/Buzzer).

(1) “P0” command This command sets de-activation of designated output port(s). a) Command format

“C” “P0” Param. (2 bytes)

b) Command parameter [Output port setting (2 bytes)]

Order Length (Bytes)

Data (ASCII) Meaning

1 2 “06” Buzzer

c) Response format <Positive >

“P” “P0” “00”

<Negative> “N” “P0” See 5.4.2

d) Response data format None

e) Note None

25

Page 28: Hnfr Data Spec e

3SD-980612

(2) “P1” command This command sets activation of designated output port(s). a) Command format

“C” “P1” Param. (2 bytes)

b) Command parameter [Output port setting (2 bytes)]

Order Length (Bytes)

Data (ASCII) Meaning

1 2 “06” Buzzer

c) Response format <Positive >

“P” “P1” “00”

<Negative> “N” “P1” See 5.4.2

d) Response data format None

e) Note If initial reset is executed, I/O port is de-activated.

26

Page 29: Hnfr Data Spec e

3SD-980612

(3) “P2” command This command sets de-activation of designated output port(s) during the time indicated by I/O Port Time Setting command “T0”.

a) Command format

“C” “P2” Param. (2 bytes)

b) Command parameter [Output port setting (2 bytes)]

Order Length (Bytes)

Data (ASCII) Meaning

1 2 “06” Buzzer

c) Response format <Positive >

“P” “P2” “00”

<Negative> “N” “P2” See 5.4.2

d) Response data format None

e) Note None

27

Page 30: Hnfr Data Spec e

3SD-980612

(4) “P3” command This command sets activation of designated output port(s) during the time indicated by I/O Port Time Setting command “T1”.

a) Command format

“C” “P3” Param. (2 bytes)

b) Command parameter [Output port setting (2 bytes)]

Order Length (Bytes)

Data (ASCII) Meaning

1 2 “06” Buzzer

c) Response format <Positive >

“P” “P3” “00”

<Negative> “N” “P3” See 5.4.2

d) Response data format None

e) Note If initial reset is executed, I/O port is de-activated.

28

Page 31: Hnfr Data Spec e

3SD-980612

(5) “P4” command This command repeats activation and de-activation of designated output port(s)

according to the time indicated by I/O Port Time Setting command “T2” and “T3”.

a) Command format

“C” “P4” Param. (2 bytes)

b) Command parameter [Output port setting (2 bytes)]

Order Length (Bytes)

Data (ASCII) Meaning

1 2 “06” Buzzer

c) Response format <Positive >

“P” “P4” “00”

<Negative> “N” “P4” See 5.4.2

d) Response data format None

e) Note If initial reset is executed, I/O port is de-activated.

29

Page 32: Hnfr Data Spec e

3SD-980612

6.11 I/O Port Time Setting These command sets the control time of the designated output ports (Buzzer).

These command are related I/O Port command “P0 ~ P4”.

(1) “T0” command This command sets de-activation time of designated output port(s). This command is related I/O Port command “P2”.

a) Command format

“C” “T0” Param. (4 bytes)

b) Command parameter [Output port setting time (4 bytes)] The setting data (the designated I/O port No. and time) should be set as pair. Also, the setting data is able to set only necessary I/O port. The order of I/O port No. isn’t required. The error of setting time is +0 ms to -10 ms.

Data(ASCII) Order Length

(Bytes) Value Unit Default value Meaning

2 “06” -- --- Buzzer 1 2 “01”~”99” 100ms “10” Time

c) Response format <Positive >

“P” “T0” “00”

<Negative> “N” “T0” See 5.4.2

d) Response data format None

e) Note If initial reset is executed, setting time returns to default.

30

Page 33: Hnfr Data Spec e

3SD-980612

(2) “T1” command This command sets activation time of designated output port(s). This command is related I/O Port command “P3”.

a) Command format

“C” “T1” Param. (4 bytes)

b) Command parameter [Output port setting time (4 bytes)] The setting data (the designated I/O port No. and time) should be set as pair. Also, the setting data is able to set only necessary I/O port. The order of I/O port No. isn’t required. The error of setting time is +0 ms to -10 ms.

Data(ASCII) Order Length

(Bytes) Value Unit Default value Meaning

2 “06” -- --- Buzzer 1 2 “01”~”99” 100ms “10” Time

c) Response format <Positive >

“P” “T1” “00”

<Negative> “N” “T1” See 5.4.2

d) Response data format None

e) Note If initial reset is executed, setting time returns to default

31

Page 34: Hnfr Data Spec e

3SD-980612

(3) “T2” command This command sets de-activation time of designated output port(s) when activation and

de-activation is repeated. This command is related I/O Port command “P4”.

a) Command format

“C” “T2” Param. (4 bytes)

b) Command parameter [Output port setting time (4 bytes)] The setting data (the designated I/O port No. and time) should be set as pair. Also, the setting data is able to set only necessary I/O port. The order of I/O port No. isn’t required. The error of setting time is +0 ms to -10 ms.

Data(ASCII) Order Length

(Bytes) Value Unit Default value Meaning

2 “06” -- --- Buzzer 1 2 “01”~”99” 100ms “50” Time

c) Response format <Positive >

“P” “T2” “00”

<Negative> “N” “T2” See 5.4.2

d) Response data format None

e) Note If initial reset is executed, setting time returns to default.

32

Page 35: Hnfr Data Spec e

3SD-980612

(4) “T3” command This command sets activation time of designated output port(s) when activation and

de-activation is repeated. This command is related I/O Port command “P4”.

a) Command format

“C” “T3” Param. (4 bytes)

b) Command parameter [Output port setting time (4 bytes)] The setting data (the designated I/O port No. and time) should be set as pair. Also, the setting data is able to set only necessary I/O port. The order of I/O port No. isn’t required. The error of setting time is +0 ms to -10 ms.

Data(ASCII) Order Length

(Bytes) Value Unit Default value Meaning

2 “06” -- --- Buzzer 1 2 “01”~”99” 100ms “50” Time

c) Response format <Positive >

“P” “T3” “00”

<Negative> “N” “T3” See 5.4.2

d) Response data format None

e) Note If initial reset is executed, setting time returns to default.

7. Response to Regulated Chemical Substances

7.1 Response to RoHS Conformed with RoHS Directive(2002/95/EC) “The restriction of the use of certain hazardous substances in electrical and electronic equipment”. (Notice) In case the equipment mounting this card reader will be shipped to People’s

Republic of China, please consult our sales representatives.

33

Page 36: Hnfr Data Spec e

3SD-980612

34

STA

ND

:OP

TIO

N

APPENDIX 1. DIMENSIONS

Page 37: Hnfr Data Spec e

3SD-980612

Appendix 2. Magnetic Card Data Record Format

Track Item ISO #1 ISO #2 ISO #3 JIS II

Character Length 7 bits 5 bits 5 bits 8 bits Parity odd odd odd even Longitudinal Calculation Method even LRC even LRC even LRC even LRC_2 Top Character “SP” “0” “0” NULL Start Sentinel (SS) “%” “;” “;”” DEL End Sentinel (ES) “?” “?” “?” DEL Data Length (byte) 1~76 1~37 1~104 1~69

Appendix 3. Card Data Configuration

Card Data, which is sent and received by command or responses between Host and C/R, are all ASCII Codes except Parity of Card Record Data.

Magnetic Card Data Record Format Card Record Data S

S Card Data + Parity *1 ES

LRC

Magnetic Card Data sending- Receiving Format

Sending and receiving data

Card Data *2

*1: Record data contains card and parity data. *2: Sending and Receiving data between HOST and C/R is only data after detached parity data.

Appendix 4. ISO #1 Track Character Code Setting 1 character of the ISO #1 Track consists of 6 bits. Useably codes are only the ASCII Codes is described the following table.

SP 0 @ *1 P ! *1 1 A Q “ *1 2 B R # *3 3 C S $ 4 D T % *4 5 E U & *1 6 F V ‘ *1 7 G W ( 8 H X ) 9 I Y * *1 : *1 J Z + *1 ; *1 K [ *2 , *1 < *1 L *2 - = *1 M ] *2 . > *1 N ^ *4 / ? *4 O _ *1

*1:These characters are only used for hardware control. Do not use as Card Data. *2:Do not use these characters for cards to be used internationally. *3.These characters have been prepared for use as the additional

diagram characters. Do not use in the Card Data. *4.Use these characters based on the meanings described as following contents. "%" : Start Sentinel (SS) "?" : End Sentinel (ES) "^" : Separator However, all codes are able to use for LRC without the above limitation.

35

Page 38: Hnfr Data Spec e

3SD-980612

Appendix 5. ISO #2 and #3 Track Character Code Setting 1 character of the ISO #2 or #3 consists of 4 bits. Useably codes are only the ASCII Codes described the following table.

0 1 2 3 4 5 6 7 8 9 : *1 ; *2 < *1 = *3 > *1 ? *4

*1. These characters are only used for hardware control. Do not use as Card Data. *2. ";" : Start Sentinel (SS) *3. "=" : Separator *4. "?" : End sentinel (ES) However, all codes are able to use for LRC without the above limitation.

Appendix 6. JIS II Track Character Code Setting 1 character of the JIS II Track consists of 7 bits. Useably codes are shown the following table.

0 1 2 3 4 5 6 7 0 NUL DLE SP 0 @ P ` p 1 SOH DC1 ! 1 A Q a q 2 STX DC2 “ 2 B R b r 3 ETX DC3 # 3 C S c s 4 EOT DC4 $ 4 D T d t 5 ENQ NAK % 5 E U e u 6 ACK SYN & 6 F V f v 7 BEL ETB ‘ 7 G W g w DEL:Start sentinel (SS) 8 BS CAN ( 8 H X h x DEL:End sentinel (ES) 9 HT EM ) 9 I Y I y A LF SUB * : J Z j z B VT ESC + ; K [ k { C FF FS , < L \ l | D CR GS - = M ] m } E SO RS . > N ^ n ~ F SI US / ? O _ o DEL

36