<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/pyusb/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/pyusb/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 22 Nov 2023 23:44:06 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pyusb/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/pyusb/wiki/Home/?limit=25#db92</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Please go to pyusb discussion and not to discuss issues here. Thanks.&lt;br/&gt;
&lt;a href="https://github.com/pyusb/pyusb/discussions" rel="nofollow"&gt;https://github.com/pyusb/pyusb/discussions&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Xiaofan Chen</dc:creator><pubDate>Wed, 22 Nov 2023 23:44:06 -0000</pubDate><guid>https://sourceforge.netd50d1ae978ad8861d6ccca3e4bfece78833f6efc</guid></item><item><title>Home modified by Xiaofan Chen</title><link>https://sourceforge.net/p/pyusb/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,8 +1,7 @@
-Welcome to your wiki!
+PyUSB provides USB access on the Python language.
+Please go to github page for more details. Discussion here will be ignored by the admins.
+https://github.com/pyusb/pyusb

-This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
-
-The wiki uses [Markdown](/p/pyusb/wiki/markdown_syntax/) syntax.
-
+[[project_screenshots]]
 [[members limit=20]]
 [[download_button]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Xiaofan Chen</dc:creator><pubDate>Wed, 22 Nov 2023 23:42:52 -0000</pubDate><guid>https://sourceforge.net5ace5104e30b9ca506c8eadc3f65f981bbc8cef5</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/pyusb/wiki/Home/?limit=25#5a4b</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;In the module libusb1.py the call to _lib.libusb_open passes&lt;br/&gt;
two 64 bit ints, the first is a device ID (devid) and the&lt;br/&gt;
second is the address of a pointer which the open call should&lt;br/&gt;
return the address of a device handle object (_DeviceHandle).&lt;br/&gt;
The name of the dll called is 'C:\WINDOWS\system32\libusb-1.0.dll'&lt;br/&gt;
found in _lib._name and it is this call that fails if the&lt;br/&gt;
device ID is for a non HID device.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Edward Chu</dc:creator><pubDate>Wed, 22 Nov 2023 22:45:42 -0000</pubDate><guid>https://sourceforge.net112d269a3f0557efe664452cfadc844c10fcb484</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/pyusb/wiki/Home/?limit=25#7950</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for the link. I found in: &lt;a href="https://github.com/pyusb/pyusb/discussions/419" rel="nofollow"&gt;https://github.com/pyusb/pyusb/discussions/419&lt;/a&gt; a response from jonasmalacofilho that provides the link: &lt;a href="https://github.com/libusb/libusb/wiki/Windows#How_to_use_libusb_on_Windows" rel="nofollow"&gt;https://github.com/libusb/libusb/wiki/Windows#How_to_use_libusb_on_Windows&lt;/a&gt; that states: "If your target device is not HID, and your device is not using WinUSB driver, you must install a driver before you can communicate with it using libusb. Currently, this means installing one of Microsoft's WinUSB, libusb-win32 or libusbK drivers." This does appear to describe the behavior I see. Since I see that you have edited this page, you may already be aware of this. While Zadig appears to work by installing the WinUSB driver, it's not clear what other side effects may happen.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Edward Chu</dc:creator><pubDate>Wed, 15 Nov 2023 23:44:30 -0000</pubDate><guid>https://sourceforge.net37de4febb6316f6fb2bafd06190fc428a22d2a2c</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/pyusb/wiki/Home/?limit=25#ea7a</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;You may also try here : &lt;a href="https://github.com/pyusb/pyusb/discussions" rel="nofollow"&gt;https://github.com/pyusb/pyusb/discussions&lt;/a&gt;&lt;br/&gt;
In any case, you will have to provide more context and info on versions, OS, drivers etc.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tormod Volden</dc:creator><pubDate>Wed, 15 Nov 2023 22:10:35 -0000</pubDate><guid>https://sourceforge.net40e72e683345e0b72a190d94533b699c64e43aec</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/pyusb/wiki/Home/?limit=25#4950</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Dear Wander and team,&lt;/p&gt;
&lt;p&gt;I need your help for pyusb. I want to be able to send&lt;br/&gt;
control transfers to usb devices, but this fails for&lt;br/&gt;
devices that aren't HID devices, such as a hub or camera.&lt;br/&gt;
I want to describe the problem with the following example:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;usb.core&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;usb.util&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;usb.control&lt;/span&gt;
&lt;span class="n"&gt;usbdev&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;usb&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;core&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;find&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;idVendor&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x05e3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;idProduct&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x0610&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;#Targus hub&lt;/span&gt;
&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;usbdev&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;usbdev&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;usb&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;core&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;find&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;idVendor&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x413c&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;idProduct&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x2112&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;#Dell keyboard&lt;/span&gt;
&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;usbdev&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;output:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;DEVICE ID 05e3:0610 on Bus 002 Address 002 =================
 bLength                :   0x12 (18 bytes)
 bDescriptorType        :    0x1 Device
 bcdUSB                 :  0x200 USB 2.0
 bDeviceClass           :    0x9 Hub
 bDeviceSubClass        :    0x0
 bDeviceProtocol        :    0x2
 bMaxPacketSize0        :   0x40 (64 bytes)
 idVendor               : 0x05e3
 idProduct              : 0x0610
 bcdDevice              : 0x4143 Device 65.43
 iManufacturer          :    0x1 Error Accessing String
 iProduct               :    0x2 Error Accessing String
 iSerialNumber          :    0x0
 bNumConfigurations     :    0x1
...
DEVICE ID 413c:2112 on Bus 002 Address 001 =================
 bLength                :   0x12 (18 bytes)
 bDescriptorType        :    0x1 Device
 bcdUSB                 :  0x110 USB 1.1
 bDeviceClass           :    0x0 Specified at interface
 bDeviceSubClass        :    0x0
 bDeviceProtocol        :    0x0
 bMaxPacketSize0        :    0x8 (8 bytes)
 idVendor               : 0x413c
 idProduct              : 0x2112
 bcdDevice              :  0x107 Device 1.07
 iManufacturer          :    0x1 DELL
 iProduct               :    0x2 Dell USB Wired Multimedia Keyboard
 iSerialNumber          :    0x0
 bNumConfigurations     :    0x1
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The print function for the hub info fails in getting the strings for&lt;br/&gt;
iManufacturer and iProduct, while the print function for the keyboard&lt;br/&gt;
succeeds. The try-except block in _try_get_string in core.py fails&lt;br/&gt;
when it calls util.get_string, which in turn fails in the try-except&lt;br/&gt;
block in langids when it calls util.get_langids, which in turn fails&lt;br/&gt;
when it calls ctrl_transfer in get_descriptor in control.py which&lt;br/&gt;
then fails in managed_open, which then fails in open_device in&lt;br/&gt;
libusb1.py when it calls &lt;strong&gt;init&lt;/strong&gt; for _DeviceHandle which fails in&lt;br/&gt;
_check(_lib.libusb_open(self.devid, byref(self.handle))), which&lt;br/&gt;
returns -12 (the value for LIBUSB_ERROR_NOT_SUPPORTED). Since&lt;br/&gt;
ctrl_transfer fails in get_descriptor, it also fails when I try to&lt;br/&gt;
use ctrl_transfer for anything else.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Edward Chu</dc:creator><pubDate>Wed, 15 Nov 2023 20:38:03 -0000</pubDate><guid>https://sourceforge.net9c0e3fc58ef5a0e4e41e12e2a5eb1449ed45b664</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/pyusb/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Dear Wanders,&lt;br /&gt;
I need your help for pyusb use.&lt;br /&gt;
I use ,for my python program, libusb library on a windows pc.&lt;br /&gt;
 I have two identical spectrometers with idVendor = 0x2457,  idProduct =0x1022. I am using bus and address, but I do not know how to write the code to differentiate them. eg dev = usb.core.find (idVendor = 0x2457, idProduct =0x1022)&lt;br /&gt;
 dev = usb.core.find (= \. \ libusb0-0001--0x2457-0x1022)&lt;br /&gt;
 thanking you in advance.&lt;br /&gt;
laurent&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">laurent</dc:creator><pubDate>Mon, 15 Sep 2014 10:19:15 -0000</pubDate><guid>https://sourceforge.netaef0c3a2ae9691822afa2eb791c1beb1f9d89d83</guid></item><item><title>Home modified by Wander Lairson</title><link>https://sourceforge.net/p/pyusb/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Welcome to your wiki!&lt;/p&gt;
&lt;p&gt;This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: &lt;span&gt;[SamplePage]&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The wiki uses &lt;a class="" href="/p/pyusb/wiki/markdown_syntax/"&gt;Markdown&lt;/a&gt; syntax.&lt;/p&gt;
&lt;p&gt;&lt;h6&gt;Project Members:&lt;/h6&gt;
&lt;ul class="md-users-list"&gt;
&lt;li&gt;&lt;a href="/u/userid-1319766/"&gt;Wander Lairson&lt;/a&gt; (admin)&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&lt;span class="download-button-51af935434309d75882fa5f0" style="margin-bottom: 1em; display: block;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wander Lairson</dc:creator><pubDate>Wed, 05 Jun 2013 19:36:53 -0000</pubDate><guid>https://sourceforge.net2532763ca6bdb5e8fdd4aa853b3a76ab6fff1037</guid></item></channel></rss>