473,503 Members | 1,646 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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...

Oct 7 '06 #1
2 13100
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]
- mv*@spam.guard.caspershouse.com

<jb*****@rack-city.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.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...

Oct 7 '06 #2
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]
- mv*@spam.guard.caspershouse.com

<jb*****@rack-city.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.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...
Oct 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
12739
by: Chris | last post by:
Here's the situation: I work at a scientific institution and I have a portable electronic device which is used to take measurements. The device produces a very small amount of numerical data,...
24
2105
by: Ehud Shabtai | last post by:
Hi, I would like to store samples of data which are gathered from about 500 devices in mysql. Each device has its own data which changes over time. The data may be integer or float. The...
6
2031
by: MLH | last post by:
I would like a scanner - something like a pencil that would allow me to attempt to scan printed text off hardcopies. Not all text on a page, mind you. Something I could use to scan just the words...
1
3456
by: Kenny ODell | last post by:
I am struggling a bit with XML, even as I wade through endless help files and several books. I thought it would be useful to toss my particular needs to the group to see what you think is the best...
7
1710
by: Matik | last post by:
Hi to everyone, My problem is, that I'm not so quite sure, which way should I go. The user is inputing by second part application a long string (let's say 128 characters), which are separated...
4
2041
by: Epictitus | last post by:
I am trying to write a script which will allow me to read the contents of an HTTP web page into memory, parse the data, and output a calculated value. The HTTP page is on a web enable appliance -...
0
1711
by: makTSPL | last post by:
Dear All, I am developing an application in C#. This application communicates with Garmin Forerunner device. I have developed a demo for it, which shows Device software version. but I am not able to...
0
1300
by: emitojleyes | last post by:
Hi everyone! i'm new at this forum as well as programming in .net I have to develop a module that can use and configure a fingerprint detector; its documentation is written in C, as you will see...
20
2787
by: =?Utf-8?B?ZW1pdG9qbGV5ZXM=?= | last post by:
Hi everyone: i read from the documentation of a dll that there is a struct that uses char for storing an IP address. How can it be? and how come i can get to representate the same value in a...
4
13212
by: anujsharma1983 | last post by:
hi, Can anyone tell me how to send data to the USB Device. when i install the drivers of the device, it dosen't fall under HID or Port devices, but generates its own kind. I can detect the VID...
0
7198
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6979
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.