• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2521
  • Last Modified:

Reading non-HID USB devices

How can I see what USB devices are connected to my computer and how can I read them?

I have a foot pedal device connected to the USB port, which I can see in Control Panel, System Devices.  I need my program to check when it is connected and know which pedal has been depressed.

There is a DLL that came with it but the manufacturing company are being extremely difficult about telling me the arguments and how it works.

Thanks in advance.
0
Deliciosa
Asked:
Deliciosa
1 Solution
 
alikoankCommented:
if it is not a standart device you are stuck with company provided driver.

0
 
DeliciosaAuthor Commented:
There must be some to communicate with the device other than the provided dll, surely?
0
 
robert_marquardtCommented:
A foot pedal should be a HID device. If not then it is an idiotic design.
Try my HID component from http://www.soft-gems.net/Controls.php first.
It it does not detect a HID device then it gets problematic.

USB devices with its own driver usually need DeviceIOControl calls to communicate with them.
You may need info about the implemented calls from the manufacturer.

Usually you do not enumerate all USB devices, but only the ones belonging to the interface class (aka device interface GUID) of the device.
Communication is through ReadFile, WriteFile and DeviceIoControl.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
robert_marquardtCommented:
Do you have a C header (.h file) for the DLL?
Taht can be converted to Delphi easily.
0
 
DeliciosaAuthor Commented:
Robert, I've already tried your HID component, sadly it doesn't detect the foot pedals.  I don't have the C header for the DLL file either.  I've been phoning the manufacturer for the last 2 weeks now and have even phoned their head office in Japan, sadly all they do is take my contact details and promise to call me back.
0
 
robert_marquardtCommented:
Best contact me directly (robert_marquardt@gmx.de) and tell me the name of the company and product.
Playing with tech support is one of my hobbies :->
You can also send me the DLL so i can check how smart they are.
0
 
DeliciosaAuthor Commented:
Thanks Robert, an e-mail is on the way.  :-)
0
 
DeliciosaAuthor Commented:
Not really answered, but help provided.

Thanks Robert
0
 
fsalaicesCommented:
Hi Deliciosa, did resolve your problem? I would be greatful for any info you can provide. I want also to access USB devices. You can contact me at fsalaces@gmail.com. Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now