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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Reading data from USB port....

Reading data from USB port....

Scheduled Pinned Locked Moved C / C++ / MFC
c++hardware
5 Posts 5 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.
  • M Offline
    M Offline
    maharaja pandian
    wrote on last edited by
    #1

    hi, I want to develop an application in VC++ , which can read data from USB port but i try with getting hardware address for USB port like parallel port 0x378,0x379,0x37A , at last i can't able to do for USB port can any one knew means ,plz forward the corresponding things If it is possible or not it's very urgent send reply

    stefanmihaimogaS R L T 4 Replies Last reply
    0
    • M maharaja pandian

      hi, I want to develop an application in VC++ , which can read data from USB port but i try with getting hardware address for USB port like parallel port 0x378,0x379,0x37A , at last i can't able to do for USB port can any one knew means ,plz forward the corresponding things If it is possible or not it's very urgent send reply

      stefanmihaimogaS Offline
      stefanmihaimogaS Offline
      stefanmihaimoga
      wrote on last edited by
      #2

      Hi, it's a little harder to read from an USB port instead of a RS232 port, but here's some source code for you: http://www.lvr.com/hidpage.htm[^] (Resources for Developers of USB Devices in the Human Interface Device Class)

      1 Reply Last reply
      0
      • M maharaja pandian

        hi, I want to develop an application in VC++ , which can read data from USB port but i try with getting hardware address for USB port like parallel port 0x378,0x379,0x37A , at last i can't able to do for USB port can any one knew means ,plz forward the corresponding things If it is possible or not it's very urgent send reply

        R Offline
        R Offline
        Roger Stoltz
        wrote on last edited by
        #3

        You have to communicate with a device driver for the USB device since you cannot access hardware from user mode. Most USB device drivers adds one or more virtual COM ports that can be used the same way as any ordinary COM port, i.e. using ::CreateFile(), ::ReadFile(), ::WriteFile() and so on. Have a look in Hardware Programming section[^] for more info about how to communicate with COM ports and similar. Hope this helps -- Roger


        It's supposed to be hard, otherwise anybody could do it!

        1 Reply Last reply
        0
        • M maharaja pandian

          hi, I want to develop an application in VC++ , which can read data from USB port but i try with getting hardware address for USB port like parallel port 0x378,0x379,0x37A , at last i can't able to do for USB port can any one knew means ,plz forward the corresponding things If it is possible or not it's very urgent send reply

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          You don't communicate with the USB port in the same way as, say, a COM port, but with the device attached to the USB port via the driver. The tigress is here :-D

          1 Reply Last reply
          0
          • M maharaja pandian

            hi, I want to develop an application in VC++ , which can read data from USB port but i try with getting hardware address for USB port like parallel port 0x378,0x379,0x37A , at last i can't able to do for USB port can any one knew means ,plz forward the corresponding things If it is possible or not it's very urgent send reply

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            try http://www.codeproject.com/system/cserialcom.asp

            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