Get Data From USB Device

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jborden@rack-city.com

    Get Data From USB Device

    Hi,
    I've got a programming issue that I've never faced before and was
    hoping that someone could shed some light on where to begin. I'm
    trying to create an automated process that reads credit card data for a
    POS application. I've got a credit card magnetic stripe reader
    (http://www.logiccontrols.com/web/prodMR1.htm) that connects to a USB
    port. If I have Notepad open, the data dumps into there. Otherwise,
    I'm not sure where it goes. I'd love to create an application that
    receives the USB data and saves it in a temporary file that I can read
    from, and then delete it.

    Is this possible or is there a more eloquent way to do this?

    Thanks in advance for any help you can offer...

  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Get Data From USB Device

    It looks like the device maps to a COM port. You will have to use the
    SerialPort class, or connect to the COM port through a call to the
    CreateFile API, and then reading and writing to the file handle that is
    created from that call.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    <jborden@rack-city.comwrote in message
    news:1160187498 .750692.63920@b 28g2000cwb.goog legroups.com...
    Hi,
    I've got a programming issue that I've never faced before and was
    hoping that someone could shed some light on where to begin. I'm
    trying to create an automated process that reads credit card data for a
    POS application. I've got a credit card magnetic stripe reader
    (http://www.logiccontrols.com/web/prodMR1.htm) that connects to a USB
    port. If I have Notepad open, the data dumps into there. Otherwise,
    I'm not sure where it goes. I'd love to create an application that
    receives the USB data and saves it in a temporary file that I can read
    from, and then delete it.
    >
    Is this possible or is there a more eloquent way to do this?
    >
    Thanks in advance for any help you can offer...
    >

    Comment

    • jborden@rack-city.com

      #3
      Re: Get Data From USB Device

      Nicholas,
      Thanks for the insight. I will look into your reccomendation and
      hopefully come to an equitable solution. Thanks!

      Jeff




      Nicholas Paldino [.NET/C# MVP] wrote:
      It looks like the device maps to a COM port. You will have to use the
      SerialPort class, or connect to the COM port through a call to the
      CreateFile API, and then reading and writing to the file handle that is
      created from that call.
      >
      Hope this helps.
      >
      >
      --
      - Nicholas Paldino [.NET/C# MVP]
      - mvp@spam.guard. caspershouse.co m
      >
      <jborden@rack-city.comwrote in message
      news:1160187498 .750692.63920@b 28g2000cwb.goog legroups.com...
      Hi,
      I've got a programming issue that I've never faced before and was
      hoping that someone could shed some light on where to begin. I'm
      trying to create an automated process that reads credit card data for a
      POS application. I've got a credit card magnetic stripe reader
      (http://www.logiccontrols.com/web/prodMR1.htm) that connects to a USB
      port. If I have Notepad open, the data dumps into there. Otherwise,
      I'm not sure where it goes. I'd love to create an application that
      receives the USB data and saves it in a temporary file that I can read
      from, and then delete it.

      Is this possible or is there a more eloquent way to do this?

      Thanks in advance for any help you can offer...

      Comment

      Working...