Marcel Houben | 10 Feb 14:57 2015
Picon

Bulk stream: reading old data

Dear Sir/Madam,

 

I am using LibUsbK to read chunks of Bulk stream data (not all data is supposed to be read), sent from a USB 3.0 device. The USB device obtains and passes live data to the PC at 10 MHz, without caching/buffering.

Program works as follows:

1)      Initialize USB

2)      Clear pipe

3)      Get overlap

4)      Read variable amount of data (in KB)

5)      Wait and release

6)      Process

7)      Optional restart for new data, from step 2) onwards

 

During testing with this program I encountered an issue whereby old data is obtained for the first ~64 KB of every read. Only after reading more than 64 KB the actual live data is obtained. I made a workaround by obtaining 64 KB + requested amount data and removing the first 64 KB, but I am looking for a better solution. Physically disconnecting and reconnecting the device clears this buffer (while the device remains powered and the program is still active).

 

Could anyone shed some light on this issue? Is there perhaps some kind of buffering going on in the driver? Can this buffer be cleared before the read?

 

Best regards,

 

Marcel


The information sent with this e-mail is exclusively intended for the addressee.
If anyone has received this e-mail in error, the receiver is requested to indicate this to the sender and to destroy the e-mail completely without taking notice of the contents in any way or saving it.
Publication, copying, distribution and/or disclosure of the contents to third parties are not permitted.
NTS-Group is not liable for the correct and complete dispatch of the contents, nor for the prompt receipt of this e-mail.
If this e-mail contains so-called computer viruses, NTS-Group is not liable for any damage occurring as a consequence.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
hustxyj | 28 Jan 13:22 2015

Re: A bug with libusb0

>> In file ioctl.c, function dispatch_ioctl, case LIBUSB_IOCTL_CONTROL_WRITE:
>> It's possible for transfer_buffer_mdl to be NULL. So the check is
>> unnecessary.

>Why do you think transfer_buffer_mdl can be NULL ?

I met a device which send a control packet without data.

Yongjian Xu
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
Sid Price | 15 Jan 19:57 2015

Checking Filter driver

Hello,

I have an application that uses a libusb-win32 filter driver, it works well thank you!

 

One problem we have is that our users sometimes forget to install the filter driver and our application fails. What is the best way to check if the required filter driver is loaded with our application so we can prompt users to do it!

Sid.

 

Sid Price

Desktop Application and Embedded System Design

 

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
hustxyj | 15 Jan 10:16 2015

A bug with libusb0

Hi all:


In file ioctl.c, function dispatch_ioctl, case LIBUSB_IOCTL_CONTROL_WRITE: It's possible for transfer_buffer_mdl to be NULL. So the check is unnecessary.


Yongjian Xu

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Wander Lairson Costa | 4 Jan 01:50 2015
Picon

Isochronous transfer

Hi there,

First of all, happy new year, folks :)

I implemented an experimental isochronous transfer for libusb-win32
backend in PyUSB [1]. The problem is that when I call iso_write two
times in a row, the second call fail in usb_reap_asyn call, saying the
device is not properly functioning.

It uses the PyUSB test firmware [2], which is based on libusb
benchmark firmware.

I tested in Linux with libusb 1.0 backend and it works fine.

Any idea on what could be wrong in my code?

[1] http://bit.ly/1vJNGAg

[2] https://github.com/walac/bmfw

--

-- 
Best Regards,
Wander Lairson Costa

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
Graeme Gill | 2 Jan 04:15 2015

Windows 10

I'm getting a few reports that my normal .inf + libusb-win32 system
driver that works fine on Win XP - Win 8.1 won't install on
Windows 10 preview.

Has anybody got any experience or pointers to info on what if anything
has changed in regard USB in Win 10 ?

Thanks,
	Graeme Gill.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
Yann Morvan | 31 Dec 17:40 2014
Picon

User reporting anti-virus warning on wdi-simple

Hello,

we have been using libusbwin32 and libwdi via wdi-simple in our product 
(aerodrums, motion capture based air drums).
Today a user reported that their anti-virus is warning them about 
wdi-simple.exe. They provided a link to the following AV diagnostic 
aggregator:

https://www.virustotal.com/de/file/cab29e9988af08995fffa1b41ac7e9048cd9cf6c48284674d32c0d65d9090790/analysis/1420041380/

Has anyone come across this before? Is it safe to assume those are just 
false positives?

Thank you for the great tools,

sincerely,

Yann Morvan

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
Xiaofan Chen | 8 Dec 05:53 2014
Picon

Re: Libusb-win32-devel unsubscribe notification

On Mon, Dec 8, 2014 at 12:51 PM,
<sitelist-bounces <at> lists.sourceforge.net> wrote:
> aaguerra11 <at> gmail.com has been removed from Libusb-win32-devel.
>

FYI. The user has already been removed due to sending quite a few spams.

--

-- 
Xiaofan

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
aaguerra11 | 8 Dec 03:05 2014
Picon

[SPAM] Recordatorio: aaguerra11 <at> gmail.com quiere seguirte. ¿Aceptas?

¡Haz clic aquí para descubrir las páginas web favoritas de aaguerra11 <at> gmail.com!
aaguerra11 <at> gmail.com quiere seguirte
Me gustaría añadirte como amigo
-aaguerra11 <at> gmail.com
Aceptar Rechazar
Haz clic aquí para cancelar la suscripción a estos correos electrónicos de aaguerra11 <at> gmail.com y del resto de amigos


P.O. BOX 70928, Sunnyvale, CA 94086
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
aaguerra11 | 4 Dec 00:08 2014
Picon

[SPAM] aaguerra11 <at> gmail.com quiere seguirte. ¿Aceptas?

¡Haz clic aquí para descubrir las páginas web favoritas de aaguerra11 <at> gmail.com!
aaguerra11 <at> gmail.com quiere seguirte
Me gustaría añadirte como amigo
-aaguerra11 <at> gmail.com
Aceptar Rechazar
Seguir a aaguerra11 <at> gmail.com te ayuda a descubrir buenas páginas web que ella recomienda :)
Haz clic aquí para cancelar la suscripción a estos correos electrónicos de aaguerra11 <at> gmail.com y del resto de amigos


P.O. BOX 70928, Sunnyvale, CA 94086
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Mathieu Laurendeau | 27 Nov 21:19 2014
Picon

Windows crash using libusbk and btstack

Hello,

I did not find any bug tracker so I'm posting to this list.
When using the libusbk driver (installed using Zadig Version 2.1.0 Build 
658) and btstack [1][2], I consistently get Windows crashes (most of the 
time with no BSOD).
It works fine with the WinUSB driver.
Below is a report I get using WhoCrashed:

On Wed 11/26/2014 4:33:58 PM GMT your computer crashed
crash dump file: C:\Windows\memory.dmp
This was probably caused by the following module: libusbk.sys 
(libusbK+0x3349)
Bugcheck code: 0xA (0x8, 0x2, 0x1, 0xFFFFF800032EF971)
Error: IRQL_NOT_LESS_OR_EQUAL
file path: C:\Windows\system32\drivers\libusbk.sys
product: libusbK.sys
company: http://libusb-win32.sourceforge.net
description: libusbK(lusbk) WDF USB Driver
Bug check description: This indicates that Microsoft Windows or a 
kernel-mode driver accessed paged memory at DISPATCH_LEVEL or above.
This appears to be a typical software driver bug and is not likely to be 
caused by a hardware problem.
A third party driver was identified as the probable root cause of this 
system error. It is suggested you look for an update for the following 
driver: libusbk.sys (libusbK(lusbk) WDF USB Driver, 
http://libusb-win32.sourceforge.net).
Google query: http://libusb-win32.sourceforge.net IRQL_NOT_LESS_OR_EQUAL

Please tell me what data I can provide to help analyzing/fixing this issue.

Regards,
Mathieu Laurendeau

[1] https://code.google.com/p/btstack/
[2] https://github.com/matlo/btstack

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk

Gmane