• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 
April 17, 2024, 09:46:28 pm

News:

SMF - Just Installed!


Reading from different endpoints??

Started by chedges, March 10, 2010, 07:03:38 pm

Previous topic - Next topic

chedges

Hi,

I've been using the nrHID component to read and write to a printer successfully but the manufacturer has changed the way the hardware works.

I have been reading from endpoint #0 for the response but apparently I now need to read from endpoint #1
I'm not sure how I would go about this? how do I specify the endpoint I am reading from?

the manufacturer supplied some VB code that was using Win API readfile to do it but I presume there must be a way to get the component to do this also?

Thanks

Chris Hedges

Roman Novgorodov

Hello

I'm sorry but I don't understand.
It seems like you use TnrHid component for access to device functionality.
HID device and HID API do not have pipes, you can write and read HID reports only.

If you want to get access to USB pipes you need to use TnrUsbPipePair component.
You can take a look following demo projects:
Demos\USBDeviceDemo\usbdevicedemo.dpr
Demos\USBOsrKitDemo\usbosrkitdemo.dpr

But before play with usb components you need to replace your HID driver by WinUSB driver,
but it can be impossible for some cases.

Roman Novgorodov
DeepSoftware.Com
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.