Read/Write to RFID - c#

I have a RFID card reader device from unknown company.
I'd like to read/write to it using any programming language.
My question: is there a general way to read/write cards (using C# as example)?
Do I need a specific driver/API for every RFID reader?

No, but without drivers you can try to read raw data from USB device and find out what it means. Actually there should be a GUID.
Here is the article/question reading data from a USB port which may help

Related

How to read EMV chip data from the IDTECH spectrum pro device in C#?

I have a requirement to read the EMV supported credit/debit card details from the IDTech Spectrum Pro card reader.
The problem is I should not use the IDTECH EMV related APIS for this. Since the customer have some restriction.
So is there any APDU command to read the encrypted card data from the CHIP directly using the IDTECH card reader?
Also
What are the things I need to try/check before starting the implementation since i am new to this?
Hope i will not get downVote!
No 1:
IDTECH Spectrun Pro device come up with their own protocol. So you cant speak with Reader device unless you dontknow the IDTECH Protocol.
So you cant pass the APDU Commands to the reader (in my knowledge)
No 2:
So ask your IDTECH support about the reading PAN (EMV tag- 5A) data of the card and Track 2 data (EmV tag - 57) Since normally the reader will return as a Masked/Encrypted data.
No 3:
There is one option called "PrePANCtrlData"(0~6) and "PostPANCtrlData"(0~4), So ask them how to set this bit using their dll and ask them Is it possible to get the unmasked data if you set the value to 0 to the same.
Hope this helps.
Thanks

How to I access a drive at the block/sector level using C#?

I am working on an embedded project where data is stored on an SD card using no filesystem (I write data to specific blocks). My embedded device provides a mass-storage interface to the device, but there is no formatted filesystem on the device.
I was wondering how to access the device and read a specified sector at a time? I found a reference to pinvoke, but I wasn't able to figure out much by looking at pinvoke's website.
Any suggestions would be appreciated; thanks!

Fingerprint Reader

Would like to write a small program that for my company.
I want to have her employees enter the building with a fingerprint reader. Can anyone of you tell me how how do I connect with (x628-t) fingerprint device . reading time attendance across tcp/ip connection
Here is an article on finger print readers and .NET.
In this blog, the fingerprint reader is used from .NET - the example is in VB.NET, but you should be able to "transcribe" to C# really easily.
http://blogs.msdn.com/b/coding4fun/archive/2007/03/06/1815291.aspx
If you have a finger print reader device, then the supplier of that device most likely also has an SDK for you to use and develop applications with. That SDK is usually accompanied by documentation and example projects. Those SDKs usually handle how to talk to the device and getting a scanned image of the finger print back.
What you choose to do with it after the scanning process is complete, like talk to your company subsystems via TCP/IP or any other transport mechanism, has nothing to do with the finger print reader.

Writing a text file to smart card c#

What I want to do is write a text file to a smart card and read it.
WindSCard is the dll to be used but but it's functions are very cryptic.
Is there any FREE wrapper available over it and is there any tutorial that does what I want to do.
What card do you use
Are you sure you can write to the card?
Do you have the APDU manual for the card?
After you find a basic example of SCard* you need to know the right APDU-s to send to the card with SCardTransmit

Listen on printer cable for print and save to image file?

I assume I would need a special centronics cable to do this, but is it possible to get the print data from the remote device and convert it to a image file in .Net?
thanks,
Jason
This has not much to do with .NET. First you need to have some "receiver" hardware and driver, then you need to know the protocol used (PCL, PostScript, or something completely different or proprietary), and only then you can start thinking about the platform where you process the data.
That said, it may be easier to capture the data directly on the remote device.
Doing a remote capture of an LPT connection would be rather difficult. Converting the print data into an image would probably be even more difficult. (PCL, Postscript, or one of many other formats.)
If you just need the ability to print to an image why not check out something like PDFCreator. I have used it on several occasions and it works great. You can even share the virtual printer out as a network share or LPR queue for remote printing. You can configure it to print to a standard share on a network. And later you could write a service that could move the images to FTP or send them over email. (Much less pain then trying to sniff LPT.)
More...
It may be possible to use something like a parallel LapLink cable between the computer that is currently attached to the printer and another computer. Using a setup like that you could try to sniff the data connection. The problem is some of the functions for printing will not work with a bi-directional data cable so it it possible you would have one heck of a trying to protocol sniff the printer data.
Parallel Port (PC)
LapLink Cable
Printer Cable
IEEE 1284-B
IEEE 1284-C
Centronics (36 pin)
If it's possible to get the device you want to capture from to print to a serial port it will be vastly easier to get the data stream into the PC. I've listed a couple of commercial solutions below and they all convert to serial to go to the PC. To get the data from the parallel port you've got to handle the hardware interface See LPTCAP, then you've got to read from the parallel port. See Parallel Port Central, look for the Programming heading about half way down.
Some commercial solutions are PrintCapture and Photologic.

Categories