Programming Magnetic Card Writer with VB.Net

Posted on 2007-10-01
Last Modified: 2013-11-26
We have a MagTech MSR 206 magnetic card encoder (Writer) which we need to access via a application to produce employee ID cards.
Anyone know what that code would look like?
Question by:SynsorIT
    LVL 9

    Assisted Solution


    It uses serial communication,  Somthing like this

    Imports System
    Imports System.IO.Ports

    Public Class Form1
        Dim WithEvents Port As SerialPort = _
                     New SerialPort("COM1", 9600, Parity.None, 8, StopBits.One)
        Private Sub btnSendText_Click(ByVal sender As System.Object, _
                      ByVal e As System.EventArgs) Handles btnSendText.Click
            Port.Write(txtSendText.Text & "!%")
        End Sub
    End Class

    I would take a look at this it has examples in vb6

    LVL 14

    Accepted Solution

    I think you need to know about the following:

    1. Communication through RS-232 port (COM port) using VB.NET (I think the device comes with an RS-232 interface).
    2. Compose messages that will be sent to the device for writing (I think the message should be ISO 7811 compliant).

    For the first point, take a look at the following pages:

    For the second point, you need to consult the ISO 7811 protocol standard for the recording message format.


      Nayer Naguib
    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
    Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now