On Thu, Feb 12, 2015 at 6:55 AM, Sean Kitko <sean...@gmail.com> wrote:
> However, I'm running into some problems implementing the test script
> provided at the tutorial here:
>
> https://github.com/walac/pyusb/blob/master/docs/tutorial.rst
>
> I brought the test script into an editor, and changed the vendor and product
> id, as well as the test string sent (I changed 'test' to 'V L', which will
> light an LED on my development board).
>
> When I run the script via powershell (Windows 7 64bit),

Firstly, did you install a supported driver and supported
backend for your device under Windows?
(either using libusb-win32 with libusb-win32 device driver
or using libusb Windows backend with WinUSB driver).

The recommendation is to use Zadig to install the device
driver.

If you use libusb Windows backend, then you also
need the correct libusb-1.0.dll (32bit or 64bit depending on
your Python installation) from libusb project.

> I get the following traceback error:
>
> PS C:\...\PyUSB Dev> python simpletestscript.py
> Traceback (most recent call last):
>     File "simpletestscript.py", line 27, in <module>
>         assert ep is not None
> AssertionError
> PS C:\...\PyUSB Dev>
>
> I don't understand enough about the library to really understand why I would
> be receiving that error.

Does your device have an OUT Endpoint?

You can use USBview to dump the USB descriptor and post
the result here.

USBView: http://www.ftdichip.com/Support/Utilities.htm

-- 
Xiaofan

------------------------------------------------------------------------------
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/
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to