简体   繁体   English

在vb.net或C#中使用磁条阅读器创建程序

[英]Creating a program in vb.net or C# which uses a magstripe reader

I am looking to implement a system which uses a magstripe reader, allowing the user to swipe in and out of the system. 我正在寻找一个使用磁条读取器的系统,以允许用户刷入和滑出系统。 Logging the time between them swiping in and out. 记录他们之间来回滑动的时间。

My main issue at the moment is finding a Magstripe reader that has a decent API. 目前,我的主要问题是找到具有不错API的Magstripe阅读器。

Was hoping to find someone who has had experience programming with magstripe readers and could give me advice to what I should look for and where I could possibly find one? 是否希望找到一个具有与磁条阅读器编程经验的人,并可以给我一些我应该寻找的东西以及在哪里可以找到的建议?

This is for a third year informations technology project where we have to analyse,design and implement a system in a local business. 这是三年级信息技术项目,我们必须在本地企业中分析,设计和实施一个系统。

The easiest way would be to find a serial (usb RS232) reader. 最简单的方法是找到一个串行(usb RS232)阅读器。 From there you can very easily create a serial connection in vb.net by using the SerialPort object and read the data you are getting in from the card reader. 从那里,您可以非常容易地使用SerialPort对象在vb.net中创建串行连接,并从读卡器中读取正在获取的数据。

I personally have https://www.sparkfun.com/products/11096 我个人有https://www.sparkfun.com/products/11096

It is very easy to interface with. 与之交互非常容易。

Here is the SerialPort class for reference. 这是SerialPort类供参考。

http://msdn.microsoft.com/en-us/library/system.io.ports.serialport%28v=vs.110%29.aspx http://msdn.microsoft.com/en-us/library/system.io.ports.serialport%28v=vs.110%29.aspx

This should be all you need to start your project. 这应该是启动项目所需的全部。 Hope you are successful in making your project. 希望您成功完成您的项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM