[quote=“piele”]Hi.
Great work on the driver. Now I’m able to use the board in Linux!
I used the latest source from Github. The firmware for the PIC compiled just fine. But I had some trouble with the client driver.[/quote]
Thank you.
Please note that I am no longer working on that branch and have started over from scratch as explained here: viewtopic.php?f=3&t=8429
The new stuff does work on the K8055N/VM110N with it’s original PIC18F24J50 too. I have not published any of that yet. I will do that as soon as I have all the base functionality back. Right now I only have digital inputs and outputs.
[quote=“piele”]First of all:
k8055m.c:2444:5: error: unknown type name ‘libusb_device_descriptor’
and:
k8055legacy.c:827:5: error: unknown type name ‘libusb_device_descriptor’
both needed “struct” ahead[/quote]
That is interesting. I never compiled it under Linux. The libusb included in my FreeBSD base system is version 0.1.12, which is still the latest in the ports collection. In that version the definition is
typedef struct libusb_device_descriptor {
...
} libusb_device_descriptor;
Which means that it should work with or without the “struct” keyword. What version of libusb is your Linux distribution using?
[quote=“piele”]After that I got it to compile the driver. But when I implement the library in my program, I get the error: “ERROR k8055m_open(): libusb_set_configuration(): Device or resource busy”
From the dmesg output I learned that the problem is that the kernel’s usbhid driver claims the board.
Investigating in the k8055m.c file in the DeviceOpen() function (from line 2496 and further) I noticed the libusb_set_configuration() is being called before the libusb_detach_kernel_driver().
After I swapped it I was able to connect to the board without errors.[/quote]
Apparently my FreeBSD installation (8.1) doesn’t attach a kernel driver then. I probably should create some Linux VM for testing. I think I have some CentOS 64 Bit install ISOs on my laptop … somewhere …
[quote=“piele”]Currently I’m working on a GTK demo in C, just like the demos provided with the SDK.
Kind regards,
Piele[/quote]
Something like that would be nice to include.
Likewise I installed Visual C++ 2008 in my PIC development VM and am coding the new demo in that. I normally don’t do development on Windows. This PIC related stuff is the exception.
I do not plan to make the new client library backwards compatible with legacy boards. It will only work with the Open Source Firmware. Instead I want to create a service/deamon process that will manage the boards and then add network connectivity to the client library, so that programs can access remote cards.
Regards,
Jan