Author Topic: Isochronus data transfer impossible?  (Read 2017 times)

hid1

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Isochronus data transfer impossible?
« on: October 29, 2011, 12:03:13 pm »
Hello Roman,


For vendor defined usb device, 
ProgramData\nrCommLib\Demos\USBOsrKitDemo used for test. nrcommlib v9.24 .

Driver installed. Device opened. When endpoint is Bulk, no problem. Data received from device.
If I set endpoint type as Isochronus data being not grabbed. But Bulk transfer OK.
This driver not suitable for Isochronus data transfer?  Has some limitation ? 

When installing driver, temp folder has some driver details. nrusb.inf etc.  Remark present as:
Quote
; libusb-win32 files 

This  driver based on  libusb? 


libusb with Isochronous, looks like dodgy.
Quote
..the libusb-win32 libraries .. on the PC.  These work well for Control, Bulk and Interrupt transfers, but they are a bit dodgy for Isochronous transfers.


I need Isochronus  transfer, for streaming audio.
« Last Edit: October 29, 2011, 12:04:47 pm by hid1 »

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Isochronus data transfer impossible?
« Reply #1 on: October 29, 2011, 05:16:56 pm »
Hello

We will check isochronous modes in the current realization of nrComm.
Now it supports bulk and interrupt modes only (like in winusb).

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

hid1

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Isochronus data transfer impossible?
« Reply #2 on: November 02, 2011, 10:33:48 pm »
Custom devices or ready manufactured devices isochronous transfer not succesful.
(nrComm Lib v9.25)

Quote
nrComm Lib v9.25 [01 Nov 2011]
...USB. Some corrections for isochronous pipes.

Any succesful test completed for isochronous transfer ? Which device used?

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Isochronus data transfer impossible?
« Reply #3 on: November 06, 2011, 12:42:50 pm »
Hello

Please show me screenshot of pipe properties from your USBBrowser.
Also you can run DBGView for monitor I/O operations in nrusb driver. Post LOG file here.
We made changes for support iso pipes in nrComm code, but unfortunately we do not have correct devices for make full testing.

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

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Isochronus data transfer impossible?
« Reply #4 on: November 09, 2011, 04:58:16 pm »
Hello

Thank you for information but please run USBBrowser from Tools folder, select ISO pipe and show me screenshot of its properties. We need it because possible something wrong with correct detection of pipe properties in nrComm Lib code.

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

hid1

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Isochronus data transfer impossible?
« Reply #5 on: November 09, 2011, 06:03:59 pm »
Isochrobous pipe properties attached
« Last Edit: November 09, 2011, 06:17:48 pm by hid1 »

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Isochronus data transfer impossible?
« Reply #6 on: November 10, 2011, 02:29:04 am »
Hello

Thank you for screenshot. nrComm Lib detects pipe properties correctly.
Now we need to look the log messages from kernel driver.
Please run dbgview.exe (see attachment). It allows intercept messages from kernel code.

And run your app and try to read data from iso pipe.

Upload LOG file of dbgview.exe here.

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

hid1

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Isochronus data transfer impossible?
« Reply #7 on: November 10, 2011, 07:27:20 am »
I have tried to read data via opening device. a but dbgview logs only 2 lines.

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Isochronus data transfer impossible?
« Reply #8 on: November 10, 2011, 07:39:28 am »
Hello

It's strange. Log does not contain kernel messages.
Please run DBGView and check ALL flags in Capture menu.

And try again.

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

hid1

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Isochronus data transfer impossible?
« Reply #9 on: November 10, 2011, 07:52:21 am »
new log attached

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Isochronus data transfer impossible?
« Reply #10 on: November 11, 2011, 09:07:35 am »
Hello

Thank you for information.

But LOG file does not show info about iso pipe read operations. Only control request.
Which application did you used?

Better if you will try USBIODemo

http://deepsoftware.com/nrcomm/usbiodemo_32.zip (for 32bit)
http://deepsoftware.com/nrcomm/usbiodemo_64.zip (for 64bit)

Run demo, choose needed isochronous input pipe and check activate.
And show me DBGView log.

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

hid1

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Isochronus data transfer impossible?
« Reply #11 on: November 11, 2011, 09:32:59 am »
Roman, your new exe (USBIODemo) looks like receiving data! alhought 00 00 00..

But v.9.25 USBIODemo cannot receive !

Please release your version :)

Thank you.

Device sends data as "ABCDEEEEEEEEEEEEEE..." with  64 bytes each buffer.
« Last Edit: November 11, 2011, 09:36:41 am by hid1 »

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Isochronus data transfer impossible?
« Reply #12 on: November 11, 2011, 09:46:15 am »
Hello

USBIoDemo from nrComm Lib v9.25 setup does not work properly.
But compiled USBIODemo (from direct link above) is working correctly.

Do I understand you rightly?

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

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Isochronus data transfer impossible?
« Reply #13 on: November 11, 2011, 09:53:31 am »
ok, thank you for info.

Please find your USB device in Windows Device Manager and open properties.
Tell me nrusb driver file version that you see.

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

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Isochronus data transfer impossible?
« Reply #14 on: November 11, 2011, 10:59:34 am »
Hello

Thank you for information.

We have updated ZIPed binaries of UsbIODemo.

Please download again
http://deepsoftware.com/nrcomm/usbiodemo_32.zip
http://deepsoftware.com/nrcomm/usbiodemo_64.zip

Start demo.
Choose needed device.
Click install driver.
Check in device manager that file version of driver is 1.3.5.0
Choose needed pipes
Activate
Show me DBGView log again if nor success.

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