Sensor accessing
-
Hi all, I have a project to be done by this week!! i have a fingerprint censor from which i have to access the finger print data. Hoew do i access that data from that device. Drivers for the device is installed and can anybody help me to find some links and tutorials for accessing Hardware in MFC??? Please help me with some useful stuffs... Thanks in advance :)
||SnAkeBed||
-
Hi all, I have a project to be done by this week!! i have a fingerprint censor from which i have to access the finger print data. Hoew do i access that data from that device. Drivers for the device is installed and can anybody help me to find some links and tutorials for accessing Hardware in MFC??? Please help me with some useful stuffs... Thanks in advance :)
||SnAkeBed||
One key piece of information that may help people to help you is - how is the scanner attached to your PC, Serial cable, USB, FireWire, VMEBus, Bluetooth, WLAN 802.11.g &c Once we've got that figured out I'd almost certainly suggest not writing the device communications stuff directly into your MFC app. Create a separate plain C++ Dll and possibly a stand alone test app to load it up and give it some exercise. If you end up having to write a driver for your device remember there's a whole Driver Development Kit you can download from Microsoft with sample code and the like. Standards documents are also useful if you're dealing with a device that has to conform to some spec like USB or Ethernet.
Nothing is exactly what it seems but everything with seems can be unpicked.
-
One key piece of information that may help people to help you is - how is the scanner attached to your PC, Serial cable, USB, FireWire, VMEBus, Bluetooth, WLAN 802.11.g &c Once we've got that figured out I'd almost certainly suggest not writing the device communications stuff directly into your MFC app. Create a separate plain C++ Dll and possibly a stand alone test app to load it up and give it some exercise. If you end up having to write a driver for your device remember there's a whole Driver Development Kit you can download from Microsoft with sample code and the like. Standards documents are also useful if you're dealing with a device that has to conform to some spec like USB or Ethernet.
Nothing is exactly what it seems but everything with seems can be unpicked.
hi, Thanks for ur reply Its a USB Device and the driver for the device is already installed.so i think there is no need of writing a seperate driver for that. Since i'm new to this subject can u please help me in providing some links for accessing a USB device Thanks in advance :)
||SnAkeBed||
-
Hi all, I have a project to be done by this week!! i have a fingerprint censor from which i have to access the finger print data. Hoew do i access that data from that device. Drivers for the device is installed and can anybody help me to find some links and tutorials for accessing Hardware in MFC??? Please help me with some useful stuffs... Thanks in advance :)
||SnAkeBed||
Where does that device come from ? Don't you have any driver supplied with it ? Any documentation that comes with the sensor ?
SnaKeBeD wrote:
help me to find some links and tutorials for accessing Hardware in MFC
You almost never access hardware directly, except for things like devices connected to the serial port, but then the protocol is vendor specific and you won't find any generic tutorial.
Cédric Moonen Software developer
Charting control [v1.2] -
Where does that device come from ? Don't you have any driver supplied with it ? Any documentation that comes with the sensor ?
SnaKeBeD wrote:
help me to find some links and tutorials for accessing Hardware in MFC
You almost never access hardware directly, except for things like devices connected to the serial port, but then the protocol is vendor specific and you won't find any generic tutorial.
Cédric Moonen Software developer
Charting control [v1.2] -
hi, Thanks for ur reply Its a USB Device and the driver for the device is already installed.so i think there is no need of writing a seperate driver for that. Since i'm new to this subject can u please help me in providing some links for accessing a USB device Thanks in advance :)
||SnAkeBed||
The way to work with USB devices is to first get the handle to the driver by calling the CreateFile functions. Once you have the handle, you can start exchanging data with the device by calling ReadFile and WriteFile (passing the handle). You can also exchange specific IO control codes with the driver by calling DeviceIOControl. That's from a high level overview. You should have received documentation with the driver itself describing how to use it the driver (what are the IO control codes you can exchange with it, which name you need to pass to the CreateFile function in order to retrieve the handle of the driver, ...).
Cédric Moonen Software developer
Charting control [v1.2] -
Where does that device come from ? Don't you have any driver supplied with it ? Any documentation that comes with the sensor ?
SnaKeBeD wrote:
help me to find some links and tutorials for accessing Hardware in MFC
You almost never access hardware directly, except for things like devices connected to the serial port, but then the protocol is vendor specific and you won't find any generic tutorial.
Cédric Moonen Software developer
Charting control [v1.2] -
hi, Thanks for ur reply Its a USB Device and the driver for the device is already installed.so i think there is no need of writing a seperate driver for that. Since i'm new to this subject can u please help me in providing some links for accessing a USB device Thanks in advance :)
||SnAkeBed||
Here are a few links that Google threw up, I've not done any talking to non disk USB devices myself so these are definitely used at your own risk. http://msdn2.microsoft.com/en-us/library/ms792232.aspx[^] http://today.java.net/lpt/a/303[^] http://www.componentsnotebook.com/notebooks/csharp/deviceio.aspx[^] http://www.eix.co.uk/Ethernet/USB/[^]
Nothing is exactly what it seems but everything with seems can be unpicked.
-
Then look on the website for the company that makes the scanner. They'll probably have documentation. It's also possible that it acts just like an A4 scanner, only little and higher resolution. In which case, maybe the driver comes with a TWAIN interface? I'm no expert on that. Can you capture images using (eg) Photoshop? Did it come with applications? Iain.
Iain Clarke appearing in spite of being begged not to by CPallini.