Salut,

bastgiraud <[EMAIL PROTECTED]> writes:
>
> I would like to read and write informations (just some bytes) with USB.
> (For information my device is a pic which works in low
> speed in interruptb transfer but it's not important
> because the above program send me information from device
> properly.)  That works properly under windows...  And now
> reading from device is succeful under linus-2.4.20.
>
> I use the file /dev/usb/hiddev0.
>
>   FILEDES=open("/dev/usb/hiddev0",O_RDONLY);
>
> When I try to write in fd errno return me the value
> 22(EINVAL) although I open fd in O_WRONLY or O_RDWR...

I guess writing is not supported by hiddev,
from linux-2.6.8-rc3/drivers/usb/input/hiddev.c :

/*
 * "write" file op
 */
static ssize_t hiddev_write(struct file * file, const char __user * buffer, size_t 
count, loff_t *ppos)
{
        return -EINVAL;
}


Jürgen

-- 
Jürgen Stuber <[EMAIL PROTECTED]>
http://www.jstuber.net/
gnupg key fingerprint = 2767 CA3C 5680 58BA 9A91  23D9 BED6 9A7A AF9E 68B4



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to