Magnetic Stripe Reader For Mac

The MSR120 is a unique mag stripe reader with RS232 emulation with a USB cable, allowing greater compatibility to older back-end systems. Businesses looking for tried and true technology to use with their trusted infrastructure can rely on the efficient and programmable MSR120 mag stripe reader.

  1. Magnetic Stripe Reader For Car Wash
  2. Magnetic Stripe Reader

Before going any further, read the document I've attached to this step, 'A Day in the Life of a Flux Reversal' by Count Zero. This document is pretty much the bible on how magnetic stripes work, and you need to understand how data is encoded on to them and the basic formatting of the tracks on a given magnetic stripe card. I'm going to go get a cup of coffee; have it read by the time I get back.
.......
Finished? Good.
As you will have learned from your reading, data is encoded on to magnetic stripes by means of magnetic flux reversal in the segments on the stripe. When the card is swiped past the card reader, the changing magnetic field of the passing flux reversals induce a current in the reader element, which is then decoded into binary bits, and the original data stored on the magnetic stripe is reconstructed.
So, in order to emulate a particular magnetic stripe, all we need to do is find a way to recreate the pattern of the way its magnetic field changes as it's being swiped past the reader. How are we going to do this? With an electromagnet!
As you may already know, an electromagnet is basically just a solenoid (coil of wire). When an electric current is passed through the coil, a magnetic field is created. By turning the electromagnet on and off rapidly, we can replicate the changing magnetic field of a magnetic stripe swipe.
The final piece of this puzzle is how to control the electromagnet. Well, we're trying to recreate a particular waveform of current through the solenoid in order to create a particular waveform of magnetism. What's a common way of storing waveforms and converting them to electric current? Sound files! So, all we have to do is encode the highs and lows representing the desired flux reversal pattern into a .wav file and play it back on an iPod or similar music player through the solenoid.
Music players designed to play sound through headphones do not produce enough current to drive the electromagnet in this project, so we will also have to construct a basic amplifier that the signal must be passed through before going to the electromagnet.

-->Magnetic Stripe Reader For Mac

Magnetic Stripe Reader For Car Wash

The magnetic stripe reader driver sample demonstrates how to create a universal driver for a magnetic stripe reader and is intended to be used as a template for creating a new driver. The sample uses the User-Mode Driver Framework (UMDF) 2.0 and demonstrates basic functionality such as claiming the device for exclusive access. The sample driver can be compiled and deployed on x86, amd64, and ARM platforms.

Requirements

  • Windows 10
  • Microsoft Visual Studio 2015 (any version)

The Windows Software Development Kit (SDK) 10 is also required, but this is installed as part of Microsoft Visual Studio 2015.

Note

The sample driver does not require any magnetic stripe reader hardware to function because it operates on a software device. If you have a hardware device you wish to use with the sample, you can still use the driver by adding the device's hardware ID to the INF file.

Magnetic stripe card reader

Magnetic Stripe Reader

Download and extract the sample

Starting with Windows 10, Windows driver samples are available on GitHub and can be downloaded from the Windows driver samples repository project page.

  1. Download Windows-driver-samples-master.zip from GitHub. This file contains all of the Windows driver samples.
  2. Extract Windows-driver-samples-master.zip to the location of your choice on your development machine. This location will be referred to as <sample_root> throughout the remainder of this article.

Open the driver solution in Visual Studio

  1. In Windows Explorer, navigate to the <sample_root>posdriversMagneticStripeReader folder.
  2. Double-click the solution file, MagneticStripeReader.sln to open the solution with Visual Studio 2015.
  3. The project zip file was downloaded from the Internet so you may see a security warning when you open the solution. If you do, click OK to finish loading the project.
  4. In Visual Studio, locate Solution Explorer. If this is not already open, select Solution Explorer from the View menu. In Solution Explorer, you can see the project and the source files it contains.

Build the sample using Visual Studio

  1. From the Standard toolbar in Visual Studio, select the Solution Platform that matches your operating system platform. For example, if you are using a 64-bit version of Windows, select x64.

    Note

    If targeting the ARM platform, you will need to use the configuration manager to add ARM to your list of targets.

  2. Select Build Solution from the Build menu.

Install the driver

For
  1. When built, the driver was signed with a test certification. In order to install the driver for testing, you need to change your boot configuration to allow drivers signed with a test certificate to load. To change the setting, open up an elevated command prompt and enter the command:

    bcdedit.exe /set TESTSIGNING on

  2. Reboot your machine.

    Note

    If test-signing had been enabled previously, a reboot is not necessary.

  3. From an elevated command prompt, navigate to the folder where your project was built. If you created an x64 debug build, this folder will be <project_root>x64DebugSampleMagneticStripeReaderDrv.

    In that folder, you will see the following files:

    FileDescription
    SampleMagneticStripeReaderDrv.dllThe driver file.
    SampleMagneticStripeReaderDrv.infAn INF file that contains information needed to install the driver.
    samplemagneticstripereaderdrv.catA signed catalog file, which serves as the signature for the entire package.
  4. Identify the path to the Device Console utility (devcon.exe) that matches your OS and driver platform. The default locations for the x64 version is C:Program Files (x86)Windows Kits10Toolsx64.

  5. Type the following command, replacing <devcon_path> with the path to the devcon.exe file that you located in the previous step.

    '<devcon_path>devcon.exe' install SampleMagneticStripeReaderDrv.inf RootSampleMagneticStripeReaderDrv

  6. You will see a Windows Security dialog informing you that the publisher of the driver can't be verified. This is because the driver was signed with a test certificate. Click Install this driver software anyway. In a moment, you will see confirmation that your driver was installed correctly.

If the Device Console utility wasn't able to install the driver, confirm that you were using the one that matches your current OS platform and the platform of the driver.

View the device in Device Manager

  1. Open Device Manager. This can be done many ways, but if you're still in a command prompt then type devmgmt.
  2. In Device Manager, choose Devices by type from the View menu.
  3. Your device is listed under the Samples node.