Karl.Achter | 1 Aug 04:00 2006

Karl Achter is out of the office.


I will be out of the office starting  28.07.2006 and will not return until
21.08.2006.

I will respond to your message when I return. In urgent matter  please
contact  Markus Kraus
 (markus.kraus <at> pruftechnik.com ) or Johann Loesl
(johann.loesl <at> pruftechnik.com).

Ich bin zur Zeit nicht im Büro und werde Ihre Email nach meiner Rückkehr
als bald als möglich beantworten. In dringenden Fällen wenden Sie sich
bitte an Herrn Kraus (markus.kraus <at> pruftechnik.com) oder Herrn Lösl
(Johann.loesl <at> pruftechnik.com).

Mit freundlichen Grüße
With best regards
Karl Achter

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Dan Ellis | 1 Aug 10:06 2006

Re: usb_os_determine_children

Thankyou very much for your swift response.

Dan.

Stephan Meyer wrote:
> I fixed the memory leak in usb_os_determine_children() (file
> windows.c) and another one in usb_find_busses() (file usb.c) by
> including the latest files from the (linux-) libusb project.  
> 
> The new files are in the CVS.
> 
> I tested the functions with the following code:
> 
> int main(void)
> {
>   usb_init();
>   usb_set_debug(255);
> 
>   while(1) {
>     usb_find_busses();
>     usb_find_devices();
>   }
> }
> 
> Everything seems to be ok now.
> 
> Stephan
> 
> 
>> Hi,
(Continue reading)

Dan Ellis | 1 Aug 14:48 2006

Handles and buses

I think that there may be a handle leak in usb_io_sync, shouldn't the
ol.hEvent always be closed regardless of the success of
GetOverlappedResult?

It is also mildy irksome that the static _usb_busses doesn't get
destroyed on application exit, since it triggers memory leak detection
tools, but I don't suppose it's a big problem.

Dan.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
fani | 5 Aug 22:32 2006
Picon

libusb0.dll problems

hi 
my problem is,when i install libusb_win32 my program did not work( the ordinal 
82 
could not be located in dynamic lin library libusb0.dll),when i use dll from bin 
directory the result is:
*_______________________________________________
LIBUSB_DLL: usb_os_init: dll version: 0.1.10.1
LIBUSB_DLL: usb_os_init: driver version: 0.1.10.2
LIBUSB_DLL: usb_os_find_busses: found bus-0
LIBUSB_DLL: usb_os_find_busses: found bus-1
LIBUSB_DLL: usb_os_find_devices: getting device info failed
LIBUSB_DLL: usb_os_find_devices: getting device info failed
LIBUSB_DLL: usb_os_find_devices: getting device info failed
LIBUSB_DLL: usb_os_find_devices: getting device info failed
device:0
bus 0 :bus_0
This bus has NULLdevices
The root_dev = NULL
bus 1 :bus_1
This bus has NULLdevices
The root_dev = NULL
____________________________________________________*
what could i do with dll?
with best regards,fani

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
(Continue reading)

prabhu - | 7 Aug 14:06 2006
Picon

new to libusb

i find the project useful.i installed the libusb drives and created inf for device.
i included library file and header file(usb.h) in bcc compiler as well as gcc(devc++).
but my program generates linker error that 
 
undefined reference to usb_init()..
undefined reference to usb_find_devices()..
...
for all libusb api used.
 
 
help me please.
tell me what basic steps i must do to run  application .                     
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Stephan Meyer | 8 Aug 18:25 2006
Picon

Re: Handles and buses


> I think that there may be a handle leak in usb_io_sync, shouldn't the
> ol.hEvent always be closed regardless of the success of
> GetOverlappedResult?

I fixed this bug.

> 
> It is also mildy irksome that the static _usb_busses doesn't get
> destroyed on application exit, since it triggers memory leak detection
> tools, but I don't suppose it's a big problem.

This isn't a problem since the complete heap is automatically deallocated
when the process/dll terminates. Anyway, I added some code (function
_usb_deinit()) that deallocates the _usb_busses list when the dll gets 
unloaded.

> 
> Dan.
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Libusb-win32-devel mailing list
> Libusb-win32-devel <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel

_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000071

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Stephan Meyer | 8 Aug 18:29 2006
Picon

Re: libusb0.dll problems


Use a more recent version of libusb0.dll/installer. 
It should work then.

Stephan

> hi 
> my problem is,when i install libusb_win32 my program did not work( the ordinal 
> 82 
> could not be located in dynamic lin library libusb0.dll),when i use dll from bin 
> directory the result is:
> *_______________________________________________
> LIBUSB_DLL: usb_os_init: dll version: 0.1.10.1
> LIBUSB_DLL: usb_os_init: driver version: 0.1.10.2
> LIBUSB_DLL: usb_os_find_busses: found bus-0
> LIBUSB_DLL: usb_os_find_busses: found bus-1
> LIBUSB_DLL: usb_os_find_devices: getting device info failed
> LIBUSB_DLL: usb_os_find_devices: getting device info failed
> LIBUSB_DLL: usb_os_find_devices: getting device info failed
> LIBUSB_DLL: usb_os_find_devices: getting device info failed
> device:0
> bus 0 :bus_0
> This bus has NULLdevices
> The root_dev = NULL
> bus 1 :bus_1
> This bus has NULLdevices
> The root_dev = NULL
> ____________________________________________________*
> what could i do with dll?
> with best regards,fani
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Libusb-win32-devel mailing list
> Libusb-win32-devel <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel

__________________________________________________________________________
Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!		
Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Stephan Meyer | 8 Aug 18:36 2006
Picon

Re: new to libusb


Copy libusb.a and usb.h to your application's source code
folder. Then use the following command to compile your application:

gcc your_app.c -o your_app.exe -I. -L. -lusb

Stephan

> i find the project useful.i installed the libusb drives and created inf for device.
> 
> i included library file and header file(usb.h) in bcc compiler as well as gcc(devc++).
> 
> but my program generates linker error that 
> 
>  
> 
> undefined reference to usb_init()..
> 
> undefined reference to usb_find_devices()..
> 
> ...
> 
> for all libusb api used.
> 
>  
> 
>  
> 
> help me please.
> 
> tell me what basic steps i must do to run  application .                      
> 
> -----------------------------------------------------------------
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> -----------------------------------------------------------------
> _______________________________________________
> Libusb-win32-devel mailing list
> Libusb-win32-devel <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
> 

_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000071

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Ray Schumacher | 10 Aug 22:48 2006

help req: Texas Instruments device and Python libUSB bulkread problem...

I am "randomly" getting an extra 2 bytes in my bulkRead() returns, and need to determine if it is the Ti device or my Python-wrapped libusb. The Labview demo app that came with the device does not seem to have an issue.

I've been running SniffUSB ( http://benoit.papillault.free.fr/usbsnoop/doc.php.en) and a wxPython data capture app simultaneously a Ti asd1271 USB A/D device to double-check the data stream, so, the bytes also show up in the raw USb data stream - but why...

The Python app uses calls to libusb to do bulkRead()s on the endpoint.
ans = ()
    ans += deviceHandle.bulkRead(0x81, numBytes, 100)
in a while() loop.
The CSV data is a dump of the raw ans (a tuple-list)

In the data below, the "last good data" is
hex "00 06 c9"
int 0 6 201
and the 2 problem bytes are
hex "06 df"
int 0 223
at the beginning of URB 436, the same both in my CSV dump (ints) and the corresponding sniffer log file sections (hex).

Upon checking the log for prior and post data around the extra bytes, it appears that the data surrounding is not repeated elsewhere, so it is not a truncated re-send phenomenon, as in an error etc.

Note that the 2 bytes are always at the start of a bulk return, and on a block boundary (the A/D has a block size of 128 samples - 768 bytes - 0x300 hex). First at urb 436, and, the beginning of urb 578 also has an "extra' 0700.

urb 436 is after a request for 0x600 bytes rather than the usual 0x300, and the first return returned zero bytes.
578 is a short transfer, 40 bytes, also the only one.
They are not regularly occuring...

The error always occurs wherever there are 2 URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER in a row with out intervening control-index type transfers.


(BTW, The attached snoop.py file by Dr. Alex Perry nicely condenses usbsnoop logs to one line per urb.)


CSV data dump from capture app:

15230  -0.00017       -0.000211       -0.000001       -0.000001       0       5       148       0       6       235
15231  -0.000167       -0.000207       0.000003       0.000004     0       5       125       0       6       201
15232  -0.05368       -0.044373       -0.053513       -0.044165       6      223       0       5       174       0
15233  -0.052917       -0.042938       0.000763       0.001434     6       198       0       5       127       0
 


usbsnoop.log:

    000002f0: 88 00 06 e1 00 05 94 00 06 eb 00 05 7d 00 06 c9
  UrbLink              = 00000000
[14937 ms] UsbSnoop - MyDispatchInternalIOCTL(f79b4e80) : fdo=86598a68, Irp=866fd890, IRQL=0
[14937 ms]  >>>  URB 433 going down  >>>
-- URB_FUNCTION_VENDOR_INTERFACE:
  TransferFlags          = 00000003 (USBD_TRANSFER_DIRECTION_IN, USBD_SHORT_TRANSFER_OK)
  TransferBufferLength = 00000001
  TransferBuffer       = 86540978
  TransferBufferMDL    = 00000000
  UrbLink                 = 00000000
  RequestTypeReservedBits = 00000000
  Request                 = 00000000
  Value                   = 00000000
  Index                   = 00000001
[14938 ms] UsbSnoop - MyInternalIOCTLCompletion(f79b4db0) : fido=00000000, Irp=866fd890, Context=86684a88, IRQL=2
[14938 ms]  <<<  URB 433 coming back  <<<
-- URB_FUNCTION_CONTROL_TRANSFER:
  PipeHandle           = 864865a8
  TransferFlags        = 0000000b (USBD_TRANSFER_DIRECTION_IN, USBD_SHORT_TRANSFER_OK)
  TransferBufferLength = 00000001
  TransferBuffer       = 86540978
  TransferBufferMDL    = 8676cc08
    00000000: 04
  UrbLink              = 00000000
  SetupPacket          =
    00000000: c1 00 00 00 01 00 01 00
[14938 ms] UsbSnoop - MyDispatchInternalIOCTL(f79b4e80) : fdo=86598a68, Irp=866fd890, IRQL=0
[14938 ms]  >>>  URB 434 going down  >>>
-- URB_FUNCTION_VENDOR_INTERFACE:
  TransferFlags          = 00000003 (USBD_TRANSFER_DIRECTION_IN, USBD_SHORT_TRANSFER_OK)
  TransferBufferLength = 00000004
  TransferBuffer       = 86540978
  TransferBufferMDL    = 00000000
  UrbLink                 = 00000000
  RequestTypeReservedBits = 00000000
  Request                 = 00000007
  Value                   = 00000000
  Index                   = 00000001
[14939 ms] UsbSnoop - MyInternalIOCTLCompletion(f79b4db0) : fido=00000000, Irp=866fd890, Context=866849d8, IRQL=2
[14939 ms]  <<<  URB 434 coming back  <<<
-- URB_FUNCTION_CONTROL_TRANSFER:
  PipeHandle           = 864865a8
  TransferFlags        = 0000000b (USBD_TRANSFER_DIRECTION_IN, USBD_SHORT_TRANSFER_OK)
  TransferBufferLength = 00000004
  TransferBuffer       = 86540978
  TransferBufferMDL    = 8676cc08
    00000000: 00 00 00 02
  UrbLink              = 00000000
  SetupPacket          =
    00000000: c1 07 00 00 01 00 04 00
[14939 ms] UsbSnoop - MyDispatchInternalIOCTL(f79b4e80) : fdo=86598a68, Irp=866fd890, IRQL=0
[14939 ms]  >>>  URB 435 going down  >>>
-- URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER:
  PipeHandle           = 8659bbdc [endpoint 0x00000081]
  TransferFlags        = 00000003 (USBD_TRANSFER_DIRECTION_IN, USBD_SHORT_TRANSFER_OK)
  TransferBufferLength = 00000600
  TransferBuffer       = 00000000
  TransferBufferMDL    = 8676cc08
  UrbLink              = 00000000
[14940 ms] UsbSnoop - MyInternalIOCTLCompletion(f79b4db0) : fido=00000000, Irp=866fd890, Context=8661ad58, IRQL=2
[14940 ms]  <<<  URB 435 coming back  <<<
-- URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER:
  PipeHandle           = 8659bbdc [endpoint 0x00000081]
  TransferFlags        = 00000003 (USBD_TRANSFER_DIRECTION_IN, USBD_SHORT_TRANSFER_OK)
  TransferBufferLength = 00000000
  TransferBuffer       = 00000000
  TransferBufferMDL    = 8676cc08
  UrbLink              = 00000000
[14940 ms] UsbSnoop - MyDispatchInternalIOCTL(f79b4e80) : fdo=86598a68, Irp=866fd890, IRQL=0
[14940 ms]  >>>  URB 436 going down  >>>
-- URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER:
  PipeHandle           = 8659bbdc [endpoint 0x00000081]
  TransferFlags        = 00000003 (USBD_TRANSFER_DIRECTION_IN, USBD_SHORT_TRANSFER_OK)
  TransferBufferLength = 00000600
  TransferBuffer       = 00000000
  TransferBufferMDL    = 8676cc08
  UrbLink              = 00000000
[14942 ms] UsbSnoop - MyInternalIOCTLCompletion(f79b4db0) : fido=00000000, Irp=866fd890, Context=8653fb88, IRQL=2
[14942 ms]  <<<  URB 436 coming back  <<<
-- URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER:
  PipeHandle           = 8659bbdc [endpoint 0x00000081]
  TransferFlags        = 00000003 (USBD_TRANSFER_DIRECTION_IN, USBD_SHORT_TRANSFER_OK)
  TransferBufferLength = 00000600
  TransferBuffer       = 00000000
  TransferBufferMDL    = 8676cc08
    00000000: 06 df 00 05 ae 00 06 c6 00 05 7f 00 06 df 00 05


I'd appreciate _any_ suggestions of how to further debug this!
Ray S.
Attachment (snoop.py): application/octet-stream, 3821 bytes
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Alexander Eisenhuth | 11 Aug 09:24 2006
Picon

Re: help req: Texas Instruments device and Python libUSB bulkread problem...

Ray Schumacher schrieb:
> I am "randomly" getting an extra 2 bytes in my bulkRead() returns, and 
> need to determine if it is the Ti device or my Python-wrapped libusb. 
> The Labview demo app that came with the device does not seem to have an 
> issue.
> 
> I've been running SniffUSB ( 

Maybe another USB sniffer gives you more informations about the device's data. I 
use USBTrace (http://www.sysnucleus.com). You can eval it for 30 days.

Alexander

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Gmane