Hi,
I work on linux 2.4.20-8
My project consist in sending and receiving data from device via USB.
Reading from device: NO problem
Writing to device: never successful on linux but works properly on windows
So, I have already used 2 ways:
1) Hiddev
The write fonction always returns me -1 with errno 22. And the hiddev_write fonction
is like:
/*
* "write" file op
*/
static ssize_t hiddev_write(struct file * file, const char __user * buffer, size_t
count, loff_t *ppos)
{
return -EINVAL;
}
2) Evdev
The write fonction always returns me 16 but my device receices nothing. It seems that
the data was written is "/dev/input/event0" because when I do in this order an open, a
write, a close, an open, a read, a close.
All in the same file event0.
I read the same value I have written, even if this value receive zero before reading.
So what is the solution... Maybe patch the kernel but what kernel
Thanks for answering me.
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel