MSE-630A Hi-Co. Magnetic Stripe Card
Encoder / Reader
Commands Set
- Misc.
Commands
- Read Commands
- Write Commands
Erase Commands
1. Command: Warm Reset
ASCII Command Code: <DEL>
Hex Code: 7F
Response: 3A
Description: This command resets the MSE-630A to initial state.
2. Command: Abort
ASCII Command Code: <ESC>
Hex Code: 1B
Response: 5E
Description: This command simulates soft reset.
3. Command: Red LED On
ASCII Command Code: M
Hex Code: 4D
Response: 5E
Description: Turns on Red LED.
4. Command: Red LED Off
ASCII Command Code: m
Hex Code: 6D
Response: 5E
Description: Turns off Red LED.
5. Command: Green LED On
ASCII Command Code: L
Hex Code: 4C
Response: 5E
Description: Turns on Green LED.
6. Command: Green LED Off
ASCII Command Code: l
Hex Code: 6C
Response: 5E
Description: Turns off Green LED.
7. Command: Yellow LED On
ASCII Command Code: (
Hex Code: 28
Response: 5E
Description: Turns on Yellow LED.
8. Command: Yellow LED Off
ASCII Command Code: )
Hex Code: 29
Response: 5E
Description: Turns off Yellow LED.
9. Command: Buzzer On
ASCII Command Code: Y
Hex Code: 59
Response: 5E
Description: Turns on Buzzer.
10. Command: Buzzer Off
ASCII Command Code: y
Hex Code: 79
Response: 5E
Description: Turns off Buzzer.
11. Command: Arm to Read
ASCII Command Code: P
Hex Code: 50
Response: 5E
Description: Clear buffers, wait for card read.
12. Command: Read T1, Standard T1 Format (ISO)
ASCII Command Code: Q
Hex Code: 51
Response: Success: data of track 1, Fail: 2A
Description: Process and send track 1 data after card read using ISO
track1 decoding.
13. Command: Read T2, Standard T2 Format (ISO)
ASCII Command Code: R
Hex Code: 52
Response: Success: data of track 2, Fail: 2A
Description: Process and send track 2 data after card read using ISO
track1 decoding.
14. Command: Read T3, Standard T3 Format (ISO)
ASCII Command Code: S
Hex Code: 53
Response: Success: data of track 3, Fail: 2A
Description: Process and send track 3 data after card read using ISO
track3 decoding.
Example: To read the data from a magnetic card, we use the command:
Arm to Read (Hex: 50 or ASCII: “P”), MSE-630A will then perform the
following sequence:
Clear the read data buffers for all tracks.
Transmit command acknowledge (“^” 5EH)
Wait for card swipe
Transmit read acknowledge (“^” 5EH) after card swipe.
After swiping the card, we can check the data on each track by using
commands 12-14 which will return the data on each track. If no data
found, the reader will return (“+” 2BH) which indicates no data is
found.
15. Command: Read T1, Non-ISO Standard Track Format
ASCII Command Code: q
Hex Code: 71
Response: Success: data of track 1, Fail: 2A
Description: Process and send track 1 data after card read using Non-ISO
Standard track1 decoding.
16. Command: Read T2, Non-ISO Standard Track Format
ASCII Command Code: r
Hex Code: 72
Response: Success: data of track 2, Fail: 2A E
Description: Process and send track 2 data after card read using Non-ISO
Standard track2 decoding.
17. Command: Read T3, Non-ISO Standard Track Format
ASCII Command Code: s
Hex Code: 73
Response: Success: data of track 3, Fail: 2A
Description: Process and send track 3 data after card read using Non-ISO
Standard track3 decoding.
18. Command: Read T1, Non-ISO Custom Data Format (5, 6, or 7 Bits)
ASCII Command Code: U
Hex Code: 55
Response: Success: data of track 1, Fail: 2A
Description: Process and send track 1 data using Custom Data Format.
19. Command: Read T2, Non-ISO Custom Data Format (5, 6, or 7 Bits)
ASCII Command Code: V
Hex Code: 56
Response: Success: data of track 2, Fail: 2A
Description: Process and send track 2 data using Custom Data Format.
20. Command: Read T3, Non-ISO Custom Data Format (5, 6, or 7 Bits)
ASCII Command Code: W
Hex Code: 57
Response: Success: data of track 3, Fail: 2A
Description: Process and send track 3 data using Custom Data Format.
21. Command: Arm to Write with RAW
ASCII Command Code: @
Hex Code: 40
Response: 5E
Description: This command requests the reader to write raw Data Block
into the card swiped.
22. Command: Writes T1, Standard T1 Format
ASCII Command Code: A
Hex Code: 41
Response: 5E
Description: To Encode Cards with Standard ISO format on track 1.
23. Command: Writes T2, Standard T2 Format
ASCII Command Code: B
Hex Code: 42
Response: 5E
Description: To Encode Cards with Standard ISO format on track 2.
24. Command: Writes T3, Standard T3 Format
ASCII Command Code: C
Hex Code: 43
Response: 5E
Description: To Encode Cards with Standard ISO format on track 3.
Example: To write the Standard Format data to a magnetic card, we can
use the command:
Writes T1, Standard T1 Format (Hex: 41 or ASCII: “A”), to write data on
the track 1 of the card. For track 2 or track 3, use the command Write
T2, Standard T2 Format (Hex: 42 or ASCII: “B”) and Write T3, Standard T3
Format (Hex: 43 or ASCII: “C”) followed by the data to be written and
hex code 04. MSE630A will respond with 5E (“^”)
Then use the command Arm to Write with RAW (Hex: 40 or ASCII: “@”) which
tells MSE-630A to prepare for card swipe.
After swipe the card, MSE-630A will respond with 5E which indicate a
success write or 2A for errors.
25. Command: Writes T1, Non-ISO Standard Track Format
ASCII Command Code: a
Hex Code: 61
Response: 5E
Description: Allows for ISO track formats in Non-standard track 1
assignments.
26. Command: Writes T2, Non-ISO Standard Track Format
ASCII Command Code: b
Hex Code: 62
Response: 5E
Description: Allows for ISO track formats in Non-standard track 2
assignments.
27. Command: Writes T3, Non-ISO Standard Track Format
ASCII Command Code: c
Hex Code: 63
Response: 5E
Description: Allows for ISO track formats in Non-standard track 3
assignments.
Example: To write data on track 1, use the command Hex: 61 or ASCII: “a”
+ “1” or “2” or “3” which stands for the track format and MSE-630A will
respond with 5E (“^”).
Then type the data to be written in the track followed by Hex: 04 and
wait for acknowledgement 5E from MSE-630A.
Similarly, for track 2, use the command Hex: 62 or ASCII: “b” + “1” or
“2” or “3”, for track3, use the command Hex: 63 or ASCII: “c” + “1” or
“2” or “3”.
After the data has been set, use the command Arm to Write Hex: 40 or
ASCII “@” and MSE-630A will respond with 5E (“^”) and wait for the
actual card swiping to input all the data onto the magnetic card. After
the swipe, MSE-630A will respond with 5E (“^”) to acknowledge the
successful writing.
28. Command: Writes T1, Non-ISO Custom Data Format (5, 6, or 7 Bits)
ASCII Command Code: E
Hex Code: 45
Response: 5E
Description: To encode cards using a user defined data format on track
1.
29. Command: Writes T2, Non-ISO Custom Data Format (5, 6, or 7 Bits)
ASCII Command Code: F
Hex Code: 46
Response: 5E
Description: To encode cards using a user defined data format on track
2.
30. Command: Writes T3, Non-ISO Custom Data Format (5, 6, or 7 Bits)
ASCII Command Code: G
Hex Code: 47
Response: 5E
Description: To encode card using a user defined data format on track 3.
Example: To write data with Non-ISO Custom Data Format with the
following given parameter:
T1, T2, T3 – 5 bit characters
210 BPI (Standard for T1 & T3)
210 BPI (Standard for T2)
First, use the Reset command (Hex: 7F) to put MSE-630A to initial state
and it will respond with Hex: 3A
Then we set the 210 BPI (Standard for T1 & T3) using Hex: 4F or ASCII
“O” and 210 BPI (Standard for T2) using Hex: 4E or ASCII “N” and
MSE-630A will respond with 5E (“^”) as acknowledgement.
To begin writing data on track1, first use the command Hex: 45 or ASCII:
“E5” and MSE-630A will respond with Hex: 5E (“^”), then we add 15 Hex
(0) in front of the actual data to be written followed by Hex (04). For
instance, “000000000000000THIS IS SAMPLE DATA FOR TRACK1 04”.
For track 2, use the command Hex: 46 or ASCII: “F5” and MSE-630A will
respond with Hex: 5E (“^”), then we add 15 Hex (0) in front of the
actual data to be written followed by Hex (04). Similarly, for track 3,
use the command Hex: 47 or ASCII: “G5”.
After the data has been set, use the command Arm to Write Hex: 40 or
ASCII “@” and MSE-630A will respond with 5E (“^”) and wait for the
actual card swiping to input all the data onto the magnetic card. After
the swipe, MSE-630A will respond with 5E (“^”) to acknowledge the
successful writing.
31. Command: Set Write Density for Specified Track
ASCII Command Code: ;
Hex Code: 3B
Response: 5E
Description: Change the density of data that is written to the card for
the specified track.
(Hex: 3B) + Track No. (Hex: 31, 32, or 33) + (Hex: 30 for 75 BPI or Hex:
31 fir 210 BPI)
32. Command: Set Write density 210 BPI for T1&T3
ASCII Command Code: O
Hex Code: 4F
Response: 5E
Description: Change encoding density on tracks 1 & 3 to 210 BPI..
33. Command: Set Write density 75 BPI for T1&T3
ASCII Command Code: o
Hex Code: 6F
Response: 5E
Description: Change encoding density on tracks 1 & 3 to 75 BPI.
34. Command: Set Write density 210 BPI for T2
ASCII Command Code: N
Hex Code: 4E
Response: 5E
Description: Change encoding density on track 2 to 210 BPI.
35. Command: Set Write density 75 BPI for T2
ASCII Command Code: n
Hex Code: 6E
Response: 5E
Description: Change encoding density on track 2 to 75 BPI.
36. Command: Set Hi-Co
ASCII Command Code: {
Hex Code: 7B
Response: 5E
Description: This command is used to set MSE-630A status to write Hi-Co
card.
37. Command: Set Lo-Co
ASCII Command Code: |
Hex Code: 7C
Response: 5E
Description: This command is used to set MSE-630A status to write Lo-Co
card.
38. Command: Arm to Erase
ASCII Command Code: ]
Hex Code: 5D
Response: 5E
Description: This command is used to erase card data when card swipe.
39. Command: Erase T1
ASCII Command Code: Z
Hex Code: 5A
Response: 5E
Description: This command is used to set MSE-630A to erase data on track
1.
40. Command: Erase T2
ASCII Command Code: [
Hex Code: 5B
Response: 5E
Description: This command is used to set MSE-630A to erase data on track
2.
41. Command: Erase T3
ASCII Command Code: \
Hex Code: 5C
Response: 5E
Description: This command is used to set MSE-630A to erase data on track
3.