Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Sensor accessing

Sensor accessing

Scheduled Pinned Locked Moved C / C++ / MFC
c++hardwareiothelpquestion
9 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SnaKeBeD
    wrote on last edited by
    #1

    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||

    M C 2 Replies Last reply
    0
    • S 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||

      M Offline
      M Offline
      Matthew Faithfull
      wrote on last edited by
      #2

      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.

      S 1 Reply Last reply
      0
      • M Matthew Faithfull

        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.

        S Offline
        S Offline
        SnaKeBeD
        wrote on last edited by
        #3

        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||

        C M 2 Replies Last reply
        0
        • S 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||

          C Offline
          C Offline
          Cedric Moonen
          wrote on last edited by
          #4

          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]

          S 2 Replies Last reply
          0
          • C Cedric Moonen

            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]

            S Offline
            S Offline
            SnaKeBeD
            wrote on last edited by
            #5

            hi Thank you for ur kind reply. There will be some way like accessing a camera with the default driver installed in the machine. I want something similar to that!!!! :(

            ||SnAkeBed||

            1 Reply Last reply
            0
            • S SnaKeBeD

              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||

              C Offline
              C Offline
              Cedric Moonen
              wrote on last edited by
              #6

              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]

              1 Reply Last reply
              0
              • C Cedric Moonen

                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]

                S Offline
                S Offline
                SnaKeBeD
                wrote on last edited by
                #7

                drivers for that USB device is alrady installed

                ||SnAkeBed||

                I 1 Reply Last reply
                0
                • S SnaKeBeD

                  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||

                  M Offline
                  M Offline
                  Matthew Faithfull
                  wrote on last edited by
                  #8

                  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.

                  1 Reply Last reply
                  0
                  • S SnaKeBeD

                    drivers for that USB device is alrady installed

                    ||SnAkeBed||

                    I Offline
                    I Offline
                    Iain Clarke Warrior Programmer
                    wrote on last edited by
                    #9

                    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.

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups