• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 
April 25, 2024, 08:14:39 am

News:

SMF - Just Installed!


Isochronus data transfer impossible?

Started by hid1, October 29, 2011, 10:03:13 am

Previous topic - Next topic

hid1

October 29, 2011, 10:03:13 am Last Edit: October 29, 2011, 10:04:47 am by hid1
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.

Roman Novgorodov

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

Custom devices or ready manufactured devices isochronous transfer not succesful.
(nrComm Lib v9.25)

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


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

Roman Novgorodov

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

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

November 09, 2011, 04:03:59 pm #5 Last Edit: November 09, 2011, 04:17:48 pm by hid1
Isochrobous pipe properties attached

Roman Novgorodov

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

I have tried to read data via opening device. a but dbgview logs only 2 lines.

Roman Novgorodov

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


Roman Novgorodov

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

November 11, 2011, 07:32:59 am #11 Last Edit: November 11, 2011, 07:36:41 am by hid1
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.

Roman Novgorodov

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

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

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.