Re: [linux-usb-devel] hiddev

2007-08-10 Thread Folkert van Heusden
> > > HIDIOCGSTRING - struct hiddev_string_descriptor (read/write) Gets a > > > string descriptor from the device. The caller must fill in the "index" > > > field to indicate which descriptor should be returned. > > Can you please tell me in what range this index is? > > Please refer to USB spec

Re: [linux-usb-devel] hiddev

2007-08-10 Thread Jiri Kosina
On Fri, 10 Aug 2007, Folkert van Heusden wrote: > > HIDIOCGSTRING - struct hiddev_string_descriptor (read/write) Gets a > > string descriptor from the device. The caller must fill in the "index" > > field to indicate which descriptor should be returned. > Can you please tell me in what range thi

[linux-usb-devel] hiddev

2007-08-10 Thread Folkert van Heusden
Hi, In linux/Documentation/usb/hiddev.txt I read the following: > HIDIOCGSTRING - struct hiddev_string_descriptor (read/write) > Gets a string descriptor from the device. The caller must fill in the > "index" field to indicate which descriptor should be returned. Can you please tell me in what r

[linux-usb-devel] HIDDEV larger request buffer

2006-04-10 Thread Michael Downey
I am currently looking at using a MegTek USB insertion reader and I have run into a problem with the current hiddev. The card reader returns a 338 byte Input report on the interrupt in channel everytime a card is inserted. The data contains basically all the information needed from the card. The

[linux-usb-devel] HIDDEV documentation and info

2006-04-05 Thread Michael Downey
I'm currently looking at developing a way to interface with a couple of HID devices. Specifically a bill acceptor and a swipe card reader. Both devices are detected and picked up by the hiddev kernel module, but as far as I can see the hiddev doesn't provide everything I need to get full support

Re: [linux-usb-devel] hiddev - __s32 value to small?

2005-11-03 Thread Laurent Pinchart
> Hey,,thank you for the help. But what you told me I already knew. My > question now is, how can I give a byte like 0xb1 to the device? Have I to > split it up,or have I to adapt the hiddev.h? You can't modify hiddev.h. uref.value = (unsigned char)*report++; should do the job. Laurent Pinchart

Re: [linux-usb-devel] hiddev - __s32 value to small?

2005-11-03 Thread Guenther . Obrist
Am Donnerstag, 3. November 2005 15:27 schrieben Sie: > > The second value is on ffb1 and not on b1, that must be because value > > is defined as __s32, or not? How can I modify this in linux, because I > > think it is not enough to adapt the hiddev.h and set "_u32 value" in the > > hiddev_usage

Re: [linux-usb-devel] hiddev - __s32 value to small?

2005-11-03 Thread Laurent Pinchart
> The second value is on ffb1 and not on b1, that must be because value > is defined as __s32, or not? How can I modify this in linux, because I > think it is not enough to adapt the hiddev.h and set "_u32 value" in the > hiddev_usage_ref > int knx_send( const char report[5], int fd  ) > {

[linux-usb-devel] hiddev - __s32 value to small?

2005-11-03 Thread Guenther . Obrist
Hi! I am working on a hid under Linux Suse and i want to communicate with it. it is working under Windows, I have to adapt it also for Linux. I was able to read out some device infos, but I have some problem with sending and recieving data from the device. I wrote a little c-program to handle a

[linux-usb-devel] hiddev - __s32 value to small?

2005-11-03 Thread Guenther . Obrist
Hi! I am working on a hid under Linux Suse and i want to communicate with it. it is working under Windows, I have to adapt it also for Linux. I was able to read out some device infos, but I have some problem with sending and recieving data from the device. I wrote a little c-program to handle a

Re: [linux-usb-devel] hiddev question

2005-06-09 Thread Johannes Berg
Jeff Lange wrote: Johannes, the device is fully HID compliant, it is just a vendor defined usage. The reason for this was to make Windows driver a lot easier to write. I think I'm just going to have to write my own kernel driver for this thing and create a char dev that my app can read the dat

Re: [linux-usb-devel] hiddev question

2005-06-08 Thread Jeff Lange
Ken, I too am writing a USB MSR =). Johannes, the device is fully HID compliant, it is just a vendor defined usage. The reason for this was to make Windows driver a lot easier to write. I think I'm just going to have to write my own kernel driver for this thing and create a char dev that my a

Re: [linux-usb-devel] hiddev question

2005-06-08 Thread Ken Cobler
Jeff Lange wrote: Hi all, I'm developing a simple USB device that reports itself as a HID device, and uses interrupt transfers to send about 250 bytes of data whenever an event occurs on the device. I've managed to communicate with it and get the data using libusb, but I've found that if the

Re: [linux-usb-devel] hiddev question

2005-06-08 Thread Johannes Berg
On Wed, 2005-06-08 at 12:37 -0400, Jeff Lange wrote: > I'm developing a simple USB device that reports itself as a HID > device, and uses interrupt transfers to send about 250 bytes of data > whenever an event occurs on the device. Why do you do this as opposed to *not* identifying as a HID dev

[linux-usb-devel] hiddev question

2005-06-08 Thread Jeff Lange
Hi all, I'm developing a simple USB device that reports itself as a HID device, and uses interrupt transfers to send about 250 bytes of data whenever an event occurs on the device. I've managed to communicate with it and get the data using libusb, but I've found that if the hid module is insert

Re: [linux-usb-devel] hiddev: input report duplicate elimination causes trouble

2005-03-31 Thread Boris Shingarov
Hi Ken, If you look at the bug filed in the Linux Kernel Bugzilla (http://bugzilla.kernel.org/show_bug.cgi?id=1048), there is an explanation of the problem and a proposed patch. In hid-core.c, in function hid_input_field(), there is the following code: if (field->flags & HID_MAIN_ITEM_RELATIVE) {

[linux-usb-devel] hiddev: input report duplicate elimination causes trouble

2005-03-29 Thread Boris Shingarov
Hi, Does anybody know the reason why hid input report "caching" / "duplicate elimination" is really needed? That is, if a HID device sends a report with the same absolute value twice, the second report gets swallowed in hid_input_field(). Similarly, relative values of zero never make it through t

[linux-usb-devel] Hiddev vs Evdev PLEASE HELP

2004-08-18 Thread bastgiraud
hello, I have a problem with my device who works under linux with usb. I have read 'the USB HID for Linux USB' of Brad Hards which had really help above all the part entitled "the hid device interface'. Nevertheless I can't write on dev/usv/hiddev0, I don't know why. So, I am interested in the

[linux-usb-devel] [HIDDEV] Fix boundary checks for GUSAGE/SUSAGE

2004-06-04 Thread Herbert Xu
On Thu, May 06, 2004 at 08:15:15PM +1000, herbert wrote: > > The current code is applying the maxusage limit to GUSAGE/SUSAGE. This > is incorrect as the number of values is stored in field->report_count, > not field->maxusage. The USB phone from www.virbiage.com is one device > where report_cou

[linux-usb-devel] [HIDDEV] Fix boundary checks for GUSAGE/SUSAGE

2004-05-06 Thread Herbert Xu
Hi: The current code is applying the maxusage limit to GUSAGE/SUSAGE. This is incorrect as the number of values is stored in field->report_count, not field->maxusage. The USB phone from www.virbiage.com is one device where report_count exceeds maxusage. The following patch corrects the check fo

[linux-usb-devel] [HIDDEV] Fix boundary checks for GUSAGE/SUSAGE

2004-04-14 Thread Herbert Xu
Hi: The current code is applying the maxusage limit to GUSAGE/SUSAGE. This is incorrect as the number of values is stored in field->report_count, not field->maxusage. The USB phone from www.virbiage.com is one device where report_count exceeds maxusage. The following patch corrects the check fo

[linux-usb-devel] hiddev - read

2004-03-10 Thread Martin Kneppe
I have a problem reading from my hid-device using the hid module. I managed to send commands to the device using the CSREPORT and CSUSAGE, but i cant seem to get the information back from the device. As i have writen the firmware myself, i know that the device responds to command through endpoin

[linux-usb-devel] hiddev HIDIOCGREPORT not blocking in 2.6?

2004-01-17 Thread Adam Kropelin
I've noticed in 2.6 kernels that HIDIOCGREPORT does not wait for io completion before returning to the caller. This creates a few unpleasant issues for userspace: First, code sequences such as... ioctl(fd, HIDIOCGREPORT, &rinfo); ioctl(fd, HIDIOCGUSAGE, &uinfo); ioctl(fd,

[linux-usb-devel] hiddev patch : disable hiddev support for MGE UPSs

2003-12-16 Thread arnaud . quette
Hi folks, following my recent posts on libusb-devel and hidups, here's a patch to disable hiddev support for MGE UPSs. It only declares VID/PID as QUIRK_IGNORE in hid-core's blacklist. This simply prevent hiddev to be loaded when plugging an MGE UPS. As always, due to my brain damaged Notes mai

[linux-usb-devel] HIDDEV questions

2003-10-28 Thread Jiang Zhang
Hi, all Greetings. I am trying to program a USB GPS device through HIDDEV interface on Linux. I believe the device is built upon Cypress CY7C64013 full speed USB-to-Serial chip and it shows as a generic HID device when plugged in. It require a feature report with char[5] data to change sett

[linux-usb-devel] hiddev changes between 2.4.18 and 2.4.20 ?

2003-08-09 Thread Julien Boibessot
Hi ! I haven written a small prog to handle a HID keyboard (standard mouse + keyboard + special keys/sliders) we are developping. Mouse and keyboard are managed by X, special keys are handled through hiddev by my small prog. This prog reads report from hiddev ( we have 3 In-Endpoints on our keyboa

Re: [linux-usb-devel] HIDDEV + UPS

2003-07-01 Thread Wes Janzen
David Brownell wrote: Wes Janzen wrote: I can't seem to open the hiddev device... The driver appears to install and the APC UPS is listed in lsusb with the driver HID, but I can't open it. I suspect it is caused by this: <7>drivers/usb/host/ehci-q.c: clear tt 00:0a.2-3 p3 buffer, a4 ep0 <3>

Re: [linux-usb-devel] HIDDEV + UPS

2003-07-01 Thread David Brownell
Wes Janzen wrote: I can't seem to open the hiddev device... The driver appears to install and the APC UPS is listed in lsusb with the driver HID, but I can't open it. I suspect it is caused by this: <7>drivers/usb/host/ehci-q.c: clear tt 00:0a.2-3 p3 buffer, a4 ep0 <3>drivers/usb/core/hub.c: us

[linux-usb-devel] HIDDEV + UPS

2003-06-30 Thread Wes Janzen
I can't seem to open the hiddev device... The driver appears to install and the APC UPS is listed in lsusb with the driver HID, but I can't open it. I suspect it is caused by this: <7>drivers/usb/host/ehci-q.c: clear tt 00:0a.2-3 p3 buffer, a4 ep0 <3>drivers/usb/core/hub.c: usb-00:0a.2-3 clear t

Re: [linux-usb-devel] hiddev not claiming my usb device - please help me

2003-06-09 Thread Pete Zaitcev
> From: Jackson Chan <[EMAIL PROTECTED]> > Date: Mon, 9 Jun 2003 11:57:36 -0600 > > I have been trying to solve this problem for a long time and any help > > would be greatly appreciated. In such case you would be well advised to stop being a jerk and cross-post the same stupid question everywher

[linux-usb-devel] hiddev not claiming my usb device - please help me

2003-06-09 Thread Jackson Chan
> Hi, > > I have been trying to solve this problem for a long time and any help > would be greatly appreciated. > > Problem: I am having difficulty trying to connect a USB > SMARTBoard(digital whiteboard) to my Linux machine. > Specifically: HID/HIDDEV is not claiming the device. > > I am u

Re: [linux-usb-devel] Hiddev, the continuing story.

2001-06-18 Thread David Brownell
> Thanx to the help of gregkh I've figured out that the feature reports > I tried to generate are generating an EPIPE, which is a babble, which > means that I'm babbeling. Which is true. It'd be really nice if babbling were consistently EOVERFLOW, with EPIPE reserved exclusively for stall. OHCI

[linux-usb-devel] Hiddev, the continuing story.

2001-06-18 Thread EJ
Hello, Thanx to the help of gregkh I've figured out that the feature reports I tried to generate are generating an EPIPE, which is a babble, which means that I'm babbeling. Which is true. The feature description says that I should send two bytes in a feature report. According to the specificatio

[linux-usb-devel] hiddev question

2001-06-17 Thread EJ
Hello, If I'm understanding everything correct you should do this to get a feature report to a usb device: /* set report_type and report_id in rinfo */ IOCGREPORTINFO(struct hiddev_report_info* rinfo) IOCGREPORT(struct hiddev_report_info* rinfo) /* set uref's report_id, report_type field_index

Re: [linux-usb-devel] hiddev oops

2001-06-08 Thread Vojtech Pavlik
On Fri, Jun 08, 2001 at 07:43:31AM +1000, root wrote: > While running a descriptor dump (code attached) on my USB speakers with > the hiddev ioctl()s in 2.4.5-ac7, I hit the following oops using JE's > UHCI. Repeatable on this HCD, not tried on OHCI or GA's UHCI. > > >>EIP; Before first

[linux-usb-devel] hiddev oops

2001-06-07 Thread root
While running a descriptor dump (code attached) on my USB speakers with the hiddev ioctl()s in 2.4.5-ac7, I hit the following oops using JE's UHCI. Repeatable on this HCD, not tried on OHCI or GA's UHCI. >>EIP; Before first symbol Trace; c885d423 <[hid]hiddev_ioctl+293/920> Trace; c019a7