Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

usb SUN keyboard driver?

1,540 views
Skip to first unread message

Karel Elferink

unread,
Sep 3, 2003, 9:44:45 AM9/3/03
to
I do not know if i'm in the correct newsgroup (if not: sorry).

I've the following question:

I'm trying to enable the SUN specific keys (front, copy,
paste, etc.) of a SUN type-6 usb keyboard which is
connected to a windows XP machine. I've already played with
mapping of the scan codes in the registry, but i don't know
how to reach the SUN specific keys.

Is it possible to enable these buttons via scan code
mapping in the registry or do i have to write a driver?

In the 'USB HID to PS/2 Scan Code Translation Table' the
PS/2 make and break scan codes for the SUN specific keys
are unassigned, is this relevant?

Doron Holan [MS]

unread,
Sep 3, 2003, 11:17:51 AM9/3/03
to
if these sun usages show up in the keyboard top level collections and they
are unmapped, kbdhid will not know how to translate them and they will be
thrown away. If you are a device lower filter between kbdhid and its PDO,
you could intercept the data being read and do what you want with it.

d

--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Karel Elferink" <k.elf...@freemail.nl> wrote in message
news:058601c37221$88f32830$a001...@phx.gbl...

Karel Elferink

unread,
Sep 4, 2003, 11:40:21 AM9/4/03
to
I'm not familiar with all the terms you use (top
level collections, device lower filter, POD), since I never
worked this
low in an (windows) operating system. Is it possible that
you give me
some (understandable) help? I will try to explain what we
are doing:

We want to remotely use an application that runs on a SUN
workstion
using a pc with Windows XP. To assure that the user has the
same 'look
and feel' we want to connect an usb type-6 SUN keyboard to
the pc. I
already found that it is possible to remap keys using the
Windows
registry (Scancode Mapping), but this only works for the
standard keys
(the keys for which a PS/2 Scan code exists). The specific
SUN keys are
not recognized by the operating system (no PS/2 scancodes
exist in the
translation table) and are neglected. How can we find the
scancodes of
these keys that are sent to the OS and if we know these
scancodes how
can we let the OS use these codes?


>if these sun usages show up in the keyboard top level
collections and they
>are unmapped, kbdhid will not know how to translate them
and they will be
>thrown away. If you are a device lower filter between
kbdhid and its PDO,
>you could intercept the data being read and do what you
want with it.
>
>d
>

>> I do not know if i'm in the correct newsgroup (if not:
sorry).
>>
>> I've the following question:
>>
>> I'm trying to enable the SUN specific keys (front, copy,
>> paste, etc.) of a SUN type-6 usb keyboard which is
>> connected to a windows XP machine. I've already played with
>> mapping of the scan codes in the registry, but i don't know
>> how to reach the SUN specific keys.
>>
>> Is it possible to enable these buttons via scan code
>> mapping in the registry or do i have to write a driver?
>>
>> In the 'USB HID to PS/2 Scan Code Translation Table' the
>> PS/2 make and break scan codes for the SUN specific keys
>> are unassigned, is this relevant?
>>
>
>

>.
>

Doron Holan [MS]

unread,
Sep 4, 2003, 2:08:22 PM9/4/03
to
for understanding how HID works, goto the usb website and download the HID
spec (HID is human interface device). also, i would highly recommend walter
oney's book (2nd edition), it talks about HID pretty extensively.

for understanding what a PDO is, device lower filter, etc, get the latest
DDK from the microsoft website, you will need to pay for shipping and
handling, but otherwise it is free. again, walter's book will be very very
helpful for you here in explaining these terms and PNP in general.

for a HID usage to ps/2 scan code mapping, see
http://www.microsoft.com/whdc/hwdev/tech/input/Scancode.mspx for the
mapping.

I am not sure what you mean by remotely use an application that is running
on a SUN workstation. What application / technology is doing the remoting?
In all likelihood, no matter what driver you write, this remoting technology
will have to understand they keys you are trying to send it. for instance,
there is no concept of a "front" key in windows.

d
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Karel Elferink" <k.elf...@freemail.nl> wrote in message

news:174801c372fa$d9b0f7f0$a001...@phx.gbl...

karel Elferink

unread,
Sep 5, 2003, 3:48:31 AM9/5/03
to
We use a RealVNC like program (RFB protocol) to connect the
pc to the SUN. When I start a 'VNC server' on the SUN and
use a 'VNC viewer' on the PC to connect to this server, it
is possible to view (on the SUN) which events are sent
using the Unix command 'xev'. Currently, I can see that the
SUN specific keys do not produce any event. I want to
create a driver to make sure that an event is passed to my
SUN when one of the specific Sun keys are used. Once this
event is sent to my SUN, I can handle the event by mapping
it to the correct functionality (using 'xmodmap'). I'm not
sure if this works, but it's worth trying...

>.
>

Maxim S. Shatskih

unread,
Sep 4, 2003, 1:36:54 PM9/4/03
to
Are these SUN keys - a separate HID collection? Or are they - some non-standard
usages in the usual keyboard collection?

In other words - what is shown in the Device Manager in "devices by connection"
mode? Must be the USB hub, then the "HID device" (keyboard), and then the usual
keyboard.

Is there any unknown device which is a child of "HID device" and a sibling of
the usual keyboard?

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
ma...@storagecraft.com
http://www.storagecraft.com


Karel Elferink

unread,
Sep 5, 2003, 7:34:20 AM9/5/03
to
As I can see the keys are a non-standard usage in the usual
keyboard selection:
Device Manager
- Keyboard
- HID Keyboard Device

This seems logical if you take a look at the PS/2 Scan Code
Translation Table. In this table the Scan Codes for the Sun
keys are 'UNASSIGNED', which means (as I think) that they
just are not handled.

>.
>

Doron Holan [MS]

unread,
Sep 5, 2003, 11:42:04 AM9/5/03
to
you are confusing two issues here. just because the keys are unassigned in
the translation table for ps2 has no bearing as to which HID collection they
are in. if the sun keyboard has a separate collection along with the
keyboard collection they you might be able to get away with writing no
driver whatsoever. the 2nd collection is accessible from user mode and you
can use the HID APIs (or if you support only XP and later, WM_INPUT).

The question then becomes how you can package the data into something that
RealVNC can transport to the SUN side.

d

--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Karel Elferink" <karel.e...@asml.com> wrote in message
news:238b01c373a1$a594ff00$a001...@phx.gbl...

0 new messages