Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2125
  • Last Modified:

USB Reader program

I have been order to create an tiny application to read a card from card reader. The system function is, when the card are swipe into the reader the from the pc will automatically run. Can it be done? In card contains card id. Can some one guide me?
0
lynxkid2004
Asked:
lynxkid2004
  • 15
  • 9
1 Solution
 
jimwassonCommented:
Of course it can be done. It's done billions of times every day. You need to post some details about your specific card reader and the host -- PC running Windows XP, etc. Does the card reader have an associated interface library?

Generally at the low level you will interface with a serial or a USB port. So your work will generally entail serial or USB interface code to control the reader and extract the stripe data.

0
 
lynxkid2004Author Commented:
my pc running Windows XP...i have a usb card reader ACR30U-PNC. and i have succesfully installed the driver. i know basic in Input/Ouput in VC++. It's hard to do this?
0
 
jimwassonCommented:
OK this is a smartcard reader, not a mag card reader. Their site does have documentation and it seems to support the standard winscard dll. It doesn't look very hard but then again I haven't programmed to one of these devices. If you haven't done much device programming then "hard" is kind of difficult to pin down.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
lynxkid2004Author Commented:
can some one guide me to program it or else you got sample for me to study
0
 
jimwassonCommented:
Well, there is an article on writing a smart card library using winscard here:

http://www.devarticles.com/c/a/C++/Writing-a-Smart-Card-Library
0
 
lynxkid2004Author Commented:
can you describe what tools do i need to support the development other than vb and vc++?
0
 
lynxkid2004Author Commented:
i am trully insterested and wish i can do this...please help me
0
 
jimwassonCommented:
What do you have now? You said you installed the driver. Do you have their development kit? Do you have programmed smart cards to go with the reader?
0
 
lynxkid2004Author Commented:
i dont have the development kit...i know basic of c++ and i can learn fast. i am interested to learn about program that has connection to smartcard. i have ACR30U-PNC smart card reader where it connected to my pc usb port. Then i want to know what are the next step...what tools do i need? where i can download it?
0
 
lynxkid2004Author Commented:
i confident that i can do this. here is my story line. i recieve a card which contains inside is the Card ID. and card id is 10 digit. So i want the program to detect from smartcard reader if the card has 10 digit, spesific program from pc will be launch...

1-User insert the card to card reader...

2- a program inside the pc will come out a popup show status of the card

###########################

Please wait..... ( after verification of 10 digits is succesfull, the message will change to "Welcome!"

############################

then the program such as Flash intro will appear. the flash file is from my folder pc c:\flash\flash.exe

so user using other card which is not related...this will apear

##############################

Sorry Invalid Card.

##############################

I interested  to make this happen....pls

0
 
jimwassonCommented:
I think you might be able to get it to work. Did you download the manual?

http://www.acs.com.hk/downloads_manuals.asp

I didn't read it but it looks pretty thorough. There are also small samples on their site as well. Did you download them?

http://www.acs.com.hk/downloads_demo.asp

I don't think you should need more equipment. Just the samples to get you started. We can help if you get stuck using the apis.





0
 
lynxkid2004Author Commented:
thanks for the info...i will check it out
0
 
lynxkid2004Author Commented:
any other help?
0
 
lynxkid2004Author Commented:
i'm begging
0
 
lynxkid2004Author Commented:
i only have less than 2 weeks to create this...if i posting at a wrong forums...please inform me...i need a guide...

card -> smartcard reader (ACR30U) -> pc

so what user will see is a full screen of vb interface shows "Welcome to my PC, please insert Card"

after user insert the card, if the card is valid, the kiosk program will appear...after user pull out the card, the kiosk ( flash.exe ), will apear back the screen "Welcome to my PC, please insert Card"

Help me, make it as my birthday present
0
 
jimwassonCommented:
Now I'm really confused. Are you asking us to write the application for you?
0
 
lynxkid2004Author Commented:
no...not asking you all to write...just guide me...

i ask some frens that i no need any program to do...only c++ and vb....and i getting confuse..
0
 
lynxkid2004Author Commented:
the point here is i have a pc which install XP, and i have a smart card reader ACR30U....and how do i can develop that small application?...in my pc xp i have visual c++ and visual basic 6.0...i need a guide
0
 
jimwassonCommented:
At the download links I gave you earlier are samples for both VB and C++ using both their proprietary driver and PCSC. I would start by downloading these and studying them. They provide a minimal implementation of a smart card reader application. You should be able to proceed from there.
0
 
lynxkid2004Author Commented:
i download the sample of code and run the exe. it's works...but when i go to the source code and compile it, i recieve an error...why is that...i didn't change anything yet...i just open the cpp file using Visual C++ only
0
 
jimwassonCommented:
Which one did you use and what errors did you get?
0
 
lynxkid2004Author Commented:
sorry...it's ok now...but can you give me a site or url which contains a collection of smart card related applications?
0
 
jimwassonCommented:
There are a lot of references of all kinds here:

http://www.compinfo-center.com/tpsmrt-t.htm
0
 
lynxkid2004Author Commented:
thank you
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 15
  • 9
Tackle projects and never again get stuck behind a technical roadblock.
Join Now