@Muhammed Zakir:
1. I downloaded
https://github.com/signal11/hidapi/archive/hidapi-master.zip2. cd hidapi-master/windows
3. opened hidapi.sln with Visual Studio 2010 and clicked "Build Solution"
4. cd hidapi-master/windows/Debug, run hidtest.exe
I got this:
Device Found
type: 1050 0010
path: \\?\hid#vid_1050&pid_0010#7&36c90f4b&0&0000#{4d1e55b2-f16f-11cf-88cb-001
111000030}
serial_number: 0001855185
Manufacturer: Yubico
Product: Yubico Yubikey II
Release: 233
Interface: -1
Device Found
type: 2581 2b7c
path: \\?\hid#vid_2581&pid_2b7c#7&3eb2a02&0&0000#{4d1e55b2-f16f-11cf-88cb-0011
11000030}
serial_number: Plug-up
Manufacturer: Plug-up
Product: Plug-up
Release: 1
Interface: -1
unable to open device
5. copied hidapi.dll and hidapi.lib to c:\Windows\System32
6. Intalled python-2.7.9.amd64.msi
7. Added to PATH C:\Python27\;C:\Python27\Scripts\
8. Installed Microsoft Visual C++ VCForPython27.msi
9. pip install cython
10. downloaded
https://github.com/trezor/cython-hidapi/archive/cython-hidapi-master.zip11. cd cython-hidapi-master
12. python setup.py install
>python setup.py install
running install
running build
running build_ext
cythoning hid.pyx to hid.c
building 'hid' extension
error: Unable to find vcvarsall.bat
13. pip install hidapi
\build\cython-hidapi-master>pip install hidapi --upgrade
Requirement already up-to-date: hidapi in c:\python27\lib\site-packages\hidapi-0
.7.99_5-py2.7-win-amd64.egg
Cleaning up...
14. download
https://github.com/walac/pyusb/archive/pyusb-master.zip 15. cd pyusb-master
16. python setup.py install
17.
https://github.com/LedgerHQ/btchip-python/archive/btchip-python-master.zip18. cd btchip-python-master
19. python setup.py install
20. cd samples
21. python getFirmwareVersion.py
\build\btchip-python-master\samples>python getFirmwareVersion.py
Traceback (most recent call last):
File "getFirmwareVersion.py", line 23, in
dongle = getDongle(True)
File "C:\Python27\lib\site-packages\btchip_python-0.1.14-py2.7.egg\btchip\btch
ipComm.py", line 279, in getDongle
dev = usb.core.find(idVendor=0x2581, idProduct=0x1b7c) # core application, W
inUSB
File "C:\Python27\lib\site-packages\usb\core.py", line 1221, in find
raise ValueError('No backend available')
ValueError: No backend available
22. c:\Windows\System32
delete hidapi.dll, lidapi.lib
23. python getFirmwareVersion.py
same result
-----
OK, doing it again:
pip uninstall cython
pip install cython
pip uninstall hidapi
pip install hidpai
cd pyusb-master
python setup.py install
cd tests
python testall.py
.E.....
======================================================================
ERROR: runTest (test_util.FindDescriptorTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "e:\Users\Lipi\build\pyusb-master\tests\test_util.py", line 68, in runTes
t
d = usb.core.find(idVendor=ID_VENDOR)
File "e:\Users\Lipi\build\pyusb-master\usb\core.py", line 1221, in find
raise ValueError('No backend available')
ValueError: No backend available
----------------------------------------------------------------------
Ran 7 tests in 0.017s
FAILED (errors=1)
cd btchip-python-master
python setup.py install
cd samples
python getFirmwareVersion.py
e:\build\btchip-python-master\samples>python getFirmwareVersion.py
Traceback (most recent call last):
File "getFirmwareVersion.py", line 23, in
dongle = getDongle(True)
File "C:\Python27\lib\site-packages\btchip_python-0.1.14-py2.7.egg\btchip\btch
ipComm.py", line 279, in getDongle
dev = usb.core.find(idVendor=0x2581, idProduct=0x1b7c) # core application, W
inUSB
File "C:\Python27\lib\site-packages\usb\core.py", line 1221, in find
raise ValueError('No backend available')
ValueError: No backend available
If the dongle is inserted:
e:\Users\Lipi\build\btchip-python-master\samples>python getFirmwareVersion.py
=> e0c4000000
(Hang up)
----------------------------------
Please help!!!