How to establish USB Connection in VB .Net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?R29hbWFu?=

    How to establish USB Connection in VB .Net

    Hi,

    I am new to VB.Net and would like to write a program that communicates with
    and device via USB port. Is there a sample code that show me that?

    I tried searching in the web but could not find anything useful.

    Thanks and please help!

    rgds.
  • Michel Posseth  [MCP]

    #2
    Re: How to establish USB Connection in VB .Net

    Hello


    As the S in USB stands for Serial you can just use anny example that
    comunicates to a serial port
    like the one below



    regards

    Michel Posseth





    "Goaman" <Goaman@discuss ions.microsoft. comschreef in bericht
    news:F182940C-E7CB-49FD-9A5E-AF45CF790EA9@mi crosoft.com...
    Hi,
    >
    I am new to VB.Net and would like to write a program that communicates
    with
    and device via USB port. Is there a sample code that show me that?
    >
    I tried searching in the web but could not find anything useful.
    >
    Thanks and please help!
    >
    rgds.

    Comment

    • Ken Halter

      #3
      Re: How to establish USB Connection in VB .Net

      "Michel Posseth [MCP]" <MSDN@posseth.c omwrote in message
      news:uFVtHGuMJH A.5232@TK2MSFTN GP05.phx.gbl...
      Hello
      >
      As the S in USB stands for Serial you can just use anny example that
      comunicates to a serial port
      like the one below
      >

      >
      Have you tried working with USB using standard Serial I/O?... fwiw, the "B"
      in USB stands for BUS, not PORT, so that code's not going to do much good...

      There are several Serial to USB converters out there. With one of /those/
      plugged in, that code might work.

      --
      Ken Halter
      Part time groupie


      Comment

      • Michel Posseth  [MCP]

        #4
        Re: How to establish USB Connection in VB .Net

        Ken ,

        AFAIK Many USB devices simply emulate COM ports so in that case the
        provided code should work
        but for the case it doesn`t respond
        ICSharpCode has 20 repositories available. Follow their code on GitHub.


        HTH

        Michel


        "Ken Halter" <Ken_Halter@Use _Sparingly_Hotm ail.comschreef in bericht
        news:%23BbafavM JHA.6044@TK2MSF TNGP02.phx.gbl. ..
        "Michel Posseth [MCP]" <MSDN@posseth.c omwrote in message
        news:uFVtHGuMJH A.5232@TK2MSFTN GP05.phx.gbl...
        >Hello
        >>
        >As the S in USB stands for Serial you can just use anny example that
        >comunicates to a serial port
        >like the one below
        >>
        >http://www.microsoft.com/downloads/d...DisplayLang=en
        >>
        >
        Have you tried working with USB using standard Serial I/O?... fwiw, the
        "B" in USB stands for BUS, not PORT, so that code's not going to do much
        good...
        >
        There are several Serial to USB converters out there. With one of /those/
        plugged in, that code might work.
        >
        --
        Ken Halter
        Part time groupie
        >

        Comment

        Working...