Re: USB Port Handling

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Dick Grier (dick_grierNOSPAM_at_msn.com)
Date: 02/28/04


Date: Sat, 28 Feb 2004 12:35:43 -0700

Hi,

I'm surprised that this doesn't provide a virtual serial port. Double-check
that. If it does, then you simply use MSComm (or whatever) just as you
always have.

If your GPS device doesn't provide a VSP, I suspect that you are SOL. You
can refer to Jan Axelson's book, USB Complete, 2nd Edition for information
on the various ways that you can interact with USB devices using VB (see
Books on my homepage). However, this will not be a HID device, so using
Windows USB APIs, which deal with HID devices, like keyboards or mice, is
out of the question. You'd have to use some API provided by the device
manufacturer.

-- 
Richard Grier  (Microsoft Visual Basic MVP)
See www.hardandsoftware.net for contact information.
Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.


Relevant Pages

  • Re: developing Application software for a host to communicate with a USB device
    ... Standard HID device ... Custom HID device ... Virtual serial port ... Custom device type ...
    (comp.arch.embedded)
  • Re: Serial upper filter?
    ... > In the device manager I have a virtual serial port. ... So I don't have to handle usb stuff. ... then where does the stopbit problem arise? ... I think that will generate an IRP for each character... ...
    (microsoft.public.development.device.drivers)
  • Virtual serial port usb and host
    ... If I add the usb serial function driver to my ce 5.0 target it creates a ... virtual serial port com2. ... When I connect the USB host it creates a ... Microsoft USB Sync connection not a virtual serial port. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Virtual Serial Ports
    ... >I would like to use some software (MapMan) to upload maps to my Garmin ... The software only supports COM ports, and I only have a USB cable. ... >Does anyone have any experience of creating a virtual serial port on the PC ...
    (sci.geo.satellite-nav)