Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

which event is always active??? 1

Status
Not open for further replies.

manjula

Programmer
Apr 28, 2001
7
IN

Dear Friends,

im trying to detect a particular event (insertion of smart card into the reader to be more specific)
is it possible to keep chechking this without using timer control ???
if yes how??

please help me in this regard

Thanks in Advance
Manjula
 
Hi manjula,
I don't know if this can help but just for advance.

Me and my friends work on project that reads value from barcode scanner. We're using MSComm Control to open connection and put all necessary codes at MSComm_OnComm event. This event is fired everytime there's a communication event. So we're not using Timer control.

See "MSComm control" on MSDN for further information.
 
Without actually having a clue, I suspect this would depend on the software controlling the smartcard reader, and the OS.

What you are looking for is that the smartcard reader detects a card and sends an event to the OS, witch in turn handles it.

I suggest you try to get hold of a technical manual for the reader, and find out if it sends a signal, and if so what signal it sends to the OS.

Then I also suggests that you brush up on API calls in the OS, so that you can catch the signal when it comes (Specifically events regarding the COM, Paralell, or whatever port you have connected the reader to).

If you are lucky, there may be some (debug) software designed to keep listening to the different HW ports, and display when and what signal calls that arrives. I don't know of any, but you may have better luck in the c or c++ forum.

This is a whole lot of nothing I know, but maby it will point you in the correct direction... :)

Good Luck!
-Mats Hulten
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top