PICkit 2 (pk2cmd) is used as a testing tool for porting the libusb 1.0 API
(now working under Linux and Mac OS X, a FreeBSD port is on the way)
to Windows. Pete Batard posts this quick Windows only port of
pk2cmd to Windows libusb 1.0 (HID backend, the other backend is WinUSB).
http://libusb-winusb-wip.googlecode.com/files/pk2cmd.zip
I did some further modification and now it can build under Linux.
I will make more modifications so that it can be build under both
Linux and Windows with libusb 1.0.
The only issues are that "-s" and "-D" are not working.
Supposedly libusb 1.0 will be faster than libusb 0.1 since
it supports asynchronous API. But then there may need
more modifications. The above is just a quick modification
which uses the synchronous API.
--
Xiaofan http://mcuee.blogspot.com
It is fixed now.
http://old.nabble.com/Re%3A-Windows-backend-HID---now-with-less-drama-p27645861.html