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. USB Specific Programming

USB Specific Programming

Scheduled Pinned Locked Moved C / C++ / MFC
questionhardware
3 Posts 2 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.
  • L Offline
    L Offline
    legit
    wrote on last edited by
    #1

    Hey all, I've been wanting to start a project for a while that involves several topics I have no knowledge on. One of those topics is communicating with a USB device in windows. I have a Matrix Orbital 503c wich has a VK204-24-USB (manual: http://www.matrixorbital.ca/manuals/VK\_series/VK204-24-USB/) Screen and im looking to build a small program to communicate with it. So I have found several articles on this site about serial communications and my question is this: Is USB just another serial device or does it require a special kind of communication? Secondly since I have no experience with Hardware I/O does anyone have any suggested readings to give me some good beginners knowledge on the topic? Thanks -legit

    C 1 Reply Last reply
    0
    • L legit

      Hey all, I've been wanting to start a project for a while that involves several topics I have no knowledge on. One of those topics is communicating with a USB device in windows. I have a Matrix Orbital 503c wich has a VK204-24-USB (manual: http://www.matrixorbital.ca/manuals/VK\_series/VK204-24-USB/) Screen and im looking to build a small program to communicate with it. So I have found several articles on this site about serial communications and my question is this: Is USB just another serial device or does it require a special kind of communication? Secondly since I have no experience with Hardware I/O does anyone have any suggested readings to give me some good beginners knowledge on the topic? Thanks -legit

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

      legit wrote:

      Is USB just another serial device or does it require a special kind of communication?

      No, USB doesn't work the same way as a serial port. Every USB device is shipped with a device driver. What you need to do is get a handle on this driver (with CreateFile) and then you'll be able to communicate with your device by sending IO codes to your driver (using DeviceIOControl) these codes should normally be documented with the driver (there are specific to your device). Now, if the device you are using is a USB-to-serial module, then the driver simulate a COM port and you can use it the same way as a standard COM port.


      Cédric Moonen Software developer
      Charting control [Updated - v1.1]

      L 1 Reply Last reply
      0
      • C Cedric Moonen

        legit wrote:

        Is USB just another serial device or does it require a special kind of communication?

        No, USB doesn't work the same way as a serial port. Every USB device is shipped with a device driver. What you need to do is get a handle on this driver (with CreateFile) and then you'll be able to communicate with your device by sending IO codes to your driver (using DeviceIOControl) these codes should normally be documented with the driver (there are specific to your device). Now, if the device you are using is a USB-to-serial module, then the driver simulate a COM port and you can use it the same way as a standard COM port.


        Cédric Moonen Software developer
        Charting control [Updated - v1.1]

        L Offline
        L Offline
        legit
        wrote on last edited by
        #3

        Can you point me to the documentation for those functions ( CreateFile and DeviceIOControl)? thanks - legit

        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