I have gotten replies from Microchip and another fellow who saw my post on this list, but have not had time to experiment with the board further. The tech support person from Microchip said that they are working on a Mac OS X driver that will be posted to Microchip's web site when it is ready, which should be RSN.

Accoring to Microchip's tech. support, the PICkit claims to be hid because, as you surmised, the Windows driver is easier to make work. The MacOS X driver uses "configuration 2" of the PICkit which uses the bulk transfer mode. I do not know enough about USB and the Linux USB drivers to know if the PICkit can be used in configuration 2 once it has been claimed by hiddev.

The other fellow who replied has also written a tool that can program the PICkit. His program must be run as root. In addition to source code, his web site <http://charm.cs.uiuc.edu/users/olawlor/projects/2003/microchip/> describes how to add the PICkit to the HID blacklist, so that the hid driver does not claim it. For running things with root permission, sudo works pretty well, assuming you can trust the users who will be programming the PIC not to be too abusive.

John Mock wrote:

I did succeed in hacking up some example 'hiddev' code to access the
PICkit, and return its credentials, etc. (available upon request),
but not do the expected I/O. When i looked at the kernel, i could see that write() was not implemented (always returns EINVAL) and i'm not sure at all from looking at 'hiddev.c' what read() is supposed to do. And without write(), it's meaningless for a PICkit. I'm not sure
what other driver(s) to try.


I got the examples in the documentation on the Linux USB site to work, too. Based on the documentation, I think read is supposed to return input events (i.e., keypresses or mouse movements on keyboards and mice). Like you, I found that the PICkit will not produce any output until gets written to (which the documentation also says). It has been a while, but I think I got write to succeed, but I might be confused. I never got anything back from subsequent reads. I recompiled my kernel with the PICkit blacklisted from hiddev, so I would have to recompile and reboot to try again and see what results my program got.

Bill.



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to