Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: how to communicate with usb port using vb

  1. #1
    sayantan Guest

    how to communicate with usb port using vb

    i want to communicate with a usb device using vb.
    can anyone help me out with the details.
    it would be very helpful

  2. CODECALL Circuit advertisement

     
  3. #2
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    Quote Originally Posted by sayantan View Post
    i want to communicate with a usb device using vb.
    can anyone help me out with the details.
    it would be very helpful
    Depends what USB device is! If it's a webcam you need one way, if its a printer its another thing! whats your device be more specific if you want help!

  4. #3
    s3092956 is offline Newbie
    Join Date
    Jan 2008
    Posts
    1
    Rep Power
    0

    USB communications

    im connecting a bluetooth dongle to the USB, which will communicate with a remote bluesmirf bluetooth module.
    I also need to know how to communicate with the USB port.

  5. #4
    LeoZao is offline Newbie
    Join Date
    Apr 2008
    Posts
    5
    Rep Power
    0

    Re: how to communicate with usb port using vb

    Hello all

    I am trying to manage an USB CF card in order to detect the error messages and to make re-init (restart) of the card i case of some unexpected errors. Any example could help me.

    Thank you!

  6. #5
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: how to communicate with usb port using vb

    You could try looking for an API to automate.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  7. #6
    LeoZao is offline Newbie
    Join Date
    Apr 2008
    Posts
    5
    Rep Power
    0

    Re: how to communicate with usb port using vb

    I am using API but this is not working with a CF card. Actually i am using the functions CreateFile and DeviceIoControl. This for eject and reopen the CF card. Do you recommend me something else?

    Also i implemented a solution using devcon.exe but this also is not so convenient because i like to have a more silent re-init of the cf card.

    Thank you!

  8. #7
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: how to communicate with usb port using vb

    Every manufacturer creates its own APIs, so they aren't directly part of the language. Therefore, they can be badly written, or indeed not working properly at all.

    Try checking the DOM documentation for details on which classes are available.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  9. #8
    LeoZao is offline Newbie
    Join Date
    Apr 2008
    Posts
    5
    Rep Power
    0

    Re: how to communicate with usb port using vb

    Thank you Xav for you answers...

    The problem is that there is not a specific manufacturer for the CF cards i use. What i want is to make something general for the USB mass storage devices (especially for memory cards: CF, MMC, SD, MiniSD)

  10. #9
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: how to communicate with usb port using vb

    What sort of error messages do you want to handle?

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  11. #10
    LeoZao is offline Newbie
    Join Date
    Apr 2008
    Posts
    5
    Rep Power
    0

    Re: how to communicate with usb port using vb

    For the beginning it will be good if i will manage to reset the mass storage device (stop and start or some kind of re-init) or something like this. After i will think to manage the errors. I am thinking to catch some errors. The errors which i want to handle could appear while i will transfer the data into the card.

Closed Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to communicate with Java using Javascript (or Prolog)?
    By ageof in forum JavaScript and CSS
    Replies: 6
    Last Post: 10-13-2011, 05:12 PM
  2. how do i communicate arrays to another form?
    By justanothernoob in forum C# Programming
    Replies: 4
    Last Post: 12-27-2010, 04:45 PM
  3. Replies: 6
    Last Post: 08-25-2010, 12:58 PM
  4. Com port
    By RandomCode in forum C and C++
    Replies: 8
    Last Post: 01-30-2010, 12:47 PM
  5. Why Port 80 ??
    By bodhi2016 in forum C and C++
    Replies: 2
    Last Post: 06-20-2008, 12:14 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts