mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* ISO/IEC 7811 driver for Magnetic Cards.
@ 2013-02-05  5:08 Priyaranjan Das
  2013-02-05  5:56 ` H. Peter Anvin
  0 siblings, 1 reply; 4+ messages in thread
From: Priyaranjan Das @ 2013-02-05  5:08 UTC (permalink / raw)
  To: linux-kernel

Hi All,

I am working on a Magnetic Card driver which would support ISO/IEC
7811 standard for track data. Can anyone tell me if such an
implementation is available in existing kernel or not? I am basically
looking for  code that implements the ISO/IEC 7811 standard or any
similar standards.

Regards,
Priyaranjan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ISO/IEC 7811 driver for Magnetic Cards.
  2013-02-05  5:08 ISO/IEC 7811 driver for Magnetic Cards Priyaranjan Das
@ 2013-02-05  5:56 ` H. Peter Anvin
  2013-02-05  6:35   ` Priyaranjan Das
  0 siblings, 1 reply; 4+ messages in thread
From: H. Peter Anvin @ 2013-02-05  5:56 UTC (permalink / raw)
  To: Priyaranjan Das; +Cc: linux-kernel

On 02/04/2013 09:08 PM, Priyaranjan Das wrote:
> Hi All,
>
> I am working on a Magnetic Card driver which would support ISO/IEC
> 7811 standard for track data. Can anyone tell me if such an
> implementation is available in existing kernel or not? I am basically
> looking for  code that implements the ISO/IEC 7811 standard or any
> similar standards.
>

You have to write a driver for whatever reader/writer you are using.  A 
lot of them simply show up as a USB HID (i.e. a keyboard) and thus don't 
need any driver at all.

	-hpa

-- 
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ISO/IEC 7811 driver for Magnetic Cards.
  2013-02-05  5:56 ` H. Peter Anvin
@ 2013-02-05  6:35   ` Priyaranjan Das
  2013-02-05  6:37     ` H. Peter Anvin
  0 siblings, 1 reply; 4+ messages in thread
From: Priyaranjan Das @ 2013-02-05  6:35 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: linux-kernel

Hi Peter,

On Tue, Feb 5, 2013 at 11:26 AM, H. Peter Anvin <hpa@zytor.com> wrote:
> On 02/04/2013 09:08 PM, Priyaranjan Das wrote:
>>
>> Hi All,
>>
>> I am working on a Magnetic Card driver which would support ISO/IEC
>> 7811 standard for track data. Can anyone tell me if such an
>> implementation is available in existing kernel or not? I am basically
>> looking for  code that implements the ISO/IEC 7811 standard or any
>> similar standards.
>>
>
> You have to write a driver for whatever reader/writer you are using.  A lot
> of them simply show up as a USB HID (i.e. a keyboard) and thus don't need
> any driver at all.
>

Thanks for your reply!

However my question was more of related to ISO/IEC 7811 standard, As
this is the format of the data read from the magnetic card. I wish to
know whether any such module is there in the Linux kernel currently
which works to decode the data as per as these ISO standards.

For e.g,

The first track read from a magnetic card could be as per below
standard format :

Track 1, Format :
Start sentinel — one character (generally '%')
Format code="B" — one character (alpha only)
Primary account number (PAN) — up to 19 characters. Usually, but not
always, matches the credit card number printed on the front of the
card.
Field Separator — one character (generally '^')
Name — two to 26 characters
Field Separator — one character (generally '^')
Expiration date — four characters in the form YYMM.
Service code — three characters
Discretionary data — may include Pin Verification Key Indicator (PVKI,
1 character), PIN Verification Value (PVV, 4 characters), Card
Verification Value or Card Verification Code (CVV or CVC, 3
characters)
End sentinel — one character (generally '?')
Longitudinal redundancy check (LRC) — it is one character and a
validity character calculated from other data on the track.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ISO/IEC 7811 driver for Magnetic Cards.
  2013-02-05  6:35   ` Priyaranjan Das
@ 2013-02-05  6:37     ` H. Peter Anvin
  0 siblings, 0 replies; 4+ messages in thread
From: H. Peter Anvin @ 2013-02-05  6:37 UTC (permalink / raw)
  To: Priyaranjan Das; +Cc: linux-kernel

There is no reason for that to be in the kernel.

Priyaranjan Das <priyaranjan456789@gmail.com> wrote:

>Hi Peter,
>
>On Tue, Feb 5, 2013 at 11:26 AM, H. Peter Anvin <hpa@zytor.com> wrote:
>> On 02/04/2013 09:08 PM, Priyaranjan Das wrote:
>>>
>>> Hi All,
>>>
>>> I am working on a Magnetic Card driver which would support ISO/IEC
>>> 7811 standard for track data. Can anyone tell me if such an
>>> implementation is available in existing kernel or not? I am
>basically
>>> looking for  code that implements the ISO/IEC 7811 standard or any
>>> similar standards.
>>>
>>
>> You have to write a driver for whatever reader/writer you are using. 
>A lot
>> of them simply show up as a USB HID (i.e. a keyboard) and thus don't
>need
>> any driver at all.
>>
>
>Thanks for your reply!
>
>However my question was more of related to ISO/IEC 7811 standard, As
>this is the format of the data read from the magnetic card. I wish to
>know whether any such module is there in the Linux kernel currently
>which works to decode the data as per as these ISO standards.
>
>For e.g,
>
>The first track read from a magnetic card could be as per below
>standard format :
>
>Track 1, Format :
>Start sentinel — one character (generally '%')
>Format code="B" — one character (alpha only)
>Primary account number (PAN) — up to 19 characters. Usually, but not
>always, matches the credit card number printed on the front of the
>card.
>Field Separator — one character (generally '^')
>Name — two to 26 characters
>Field Separator — one character (generally '^')
>Expiration date — four characters in the form YYMM.
>Service code — three characters
>Discretionary data — may include Pin Verification Key Indicator (PVKI,
>1 character), PIN Verification Value (PVV, 4 characters), Card
>Verification Value or Card Verification Code (CVV or CVC, 3
>characters)
>End sentinel — one character (generally '?')
>Longitudinal redundancy check (LRC) — it is one character and a
>validity character calculated from other data on the track.

-- 
Sent from my mobile phone. Please excuse brevity and lack of formatting.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-02-05  6:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-05  5:08 ISO/IEC 7811 driver for Magnetic Cards Priyaranjan Das
2013-02-05  5:56 ` H. Peter Anvin
2013-02-05  6:35   ` Priyaranjan Das
2013-02-05  6:37     ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®