Re: Getting Philips Speechmike to work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Greg KH wrote:
>> I now have two questions: are there chances that the device is just a
>> regular "keyboard" that is not recognized by the kernel as such? If yes,
>> could I force the kernel to treat the device as "keyboard"?
> 
> I already should be, through the evdev interface, right?
> 
> Shouldn't it already be working properly?

I'm a bit confused by that device, so let me explain what I see:

/proc/bus/input/devices lists two devices for the SpeechMike:

I: Bus=0003 Vendor=0911 Product=149a Version=0100
N: Name="HID 0911:149a"
P: Phys=usb-0000:00:1d.0-1/input3
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb5/5-1/5-1:1.3/input/input8
U: Uniq=
H: Handlers=mouse1 event8
B: EV=17
B: KEY=70000 0 0 0 0
B: REL=103
B: MSC=10

I: Bus=0003 Vendor=0911 Product=149a Version=0100
N: Name="HID 0911:149a"
P: Phys=usb-0000:00:1d.0-1/input5
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb5/5-1/5-1:1.5/input/input9
U: Uniq=
H: Handlers=kbd event9
B: EV=13
B: KEY=c000000000000 0
B: MSC=10

The first one is the mouse, which works as it should. The second one
seems to be the keys. There is a device file
/dev/input/by-path/pci-0000\:00\:1a.1-usb-0\:1\:1.5-event-
But neither cat nor the read example from
http://www.frogmouth.net/hid-doco/c537.html (example 10) do show any
activity when pressing a button.

The only activity I get is on /dev/hiddev0, the read example shows the
following output there (it puts the data into an input_event struct):

Event: time -545467072509.4288741380, type 4, code 65441, value 0
Event: time 4288741380.4288741380, type 4, code 65441, value 0
Event: time 4288741380.4288741380, type 4, code 65441, value -124

Event: time -545467072509.4288741380, type 4, code 65441, value 0
Event: time 4288741380.4288741380, type 4, code 65441, value 0
Event: time 4288741380.4288741380, type 4, code 65441, value 4

It's the same for all buttons except for a different value onPress (the
first three lines).

So to answer your question, I'm not sure, but it does not look like it
would be working as-is.

I tried this with kernel 2.6.27.19 (openSUSE 11.1 default kernel), and
SUSE KOTD 2.6.29-master_20090410180944_41da72a7-default with the same
results.

What do you suggest to get it working? Look further at Kernel-based
solutions (unfortunately I'm completely new in this area, so I don't
think I'll be able to do anything here without a lot of help) or write a
userspace library using /dev/hiddev0 (from what I've read I assume
that's how the Linux SDK by Philips solves this, but I haven't been able
to obtain it yet, so I don't know for sure).

Philipp
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux