Recent

Author Topic: How to read data from a USB device in Windows32  (Read 6217 times)

Hopestation

  • Full Member
  • ***
  • Posts: 181
How to read data from a USB device in Windows32
« on: July 04, 2012, 03:16:58 pm »
Hi.

I am writing an application which communicates with 2 external devices: a KKSystems USB-485 converter to connect to a Eurotherm controller and a Prologix GPIB-USB converter to connect to a Fluke multimeter.

Both converters contain the same FTDI ic, so I can't identify which converter is attached to which COM port.

I have downloaded Microsoft's USBVIEW utility which shows me that one device is:-:

iProduct:             0x02
0x0409: "Prologix GPIB-USB Controller"

and the other is:-

iProduct:             0x02
0x0409: "USB Serial Converter"

I have looked at libusb, but this appears to be for Linux systems only.

USB.PAS is written by Apple, so I assume the same applies.

Is there a Windows library for accessing USB data?

Can anyone provide an example?


Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: How to read data from a USB device in Windows32
« Reply #1 on: July 04, 2012, 06:45:06 pm »
Quote
I have looked at libusb, but this appears to be for Linux systems only.
No, it's cross platform.

mas steindorff

  • Hero Member
  • *****
  • Posts: 566
Re: How to read data from a USB device in Windows32
« Reply #2 on: July 05, 2012, 07:05:12 am »
For windows, the registry is the key is your problem.  Each comm port will give you a name that you can follow to your USB device.  Use regedit to track the strings you gave above.
windows 10 &11, Ubuntu 21+ IDE 3.4 general releases

Blestan

  • Sr. Member
  • ****
  • Posts: 461
Re: How to read data from a USB device in Windows32
« Reply #3 on: July 05, 2012, 10:57:27 am »
Try the SynaSer package from synapse
i think it support USB ports and it's cross platform
Speak postscript or die!
Translate to pdf and live!

 

TinyPortal © 2005-2018