Author Topic: Reading from different endpoints??  (Read 1390 times)


  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Reading from different endpoints??
« on: March 10, 2010, 10:03:38 pm »

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?


Chris Hedges

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1017
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Reading from different endpoints??
« Reply #1 on: March 30, 2010, 04:00:49 pm »

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:

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 llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.