Author Topic: USB to USB keyboard converter  (Read 209608 times)

0 Members and 1 Guest are viewing this topic.

Offline hasu

  • Thread Starter
  • Posts: 3088
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: USB to USB keyboard converter
« Reply #550 on: Mon, 16 December 2019, 00:50:06 »
Hmm, the device sends keys in report protocol, not boot protocol.
It declares that it supports boot protocol in the descriptors but the converter seems to fail to request it for some reason. To look into or debug USB communication like this requires real device on site, it is difficult to know what happens between the keyboard and the converter only with the debug prints unfortunately.

The '01' first byte of the report indicates Report ID(1) but the converter recognizes it as modifier status(Left Control) incorrectly. If you connect the device only to the converter you can remap Left Control key as 'NO' to ignore the first byte, perhaps.

Also, when you have time could you try attached firmware and post debug prints? This will display a bit more detailed infos.
* usb_usb_debug.hex

EDIT: Updated firmware. Use this one below.
* usb_usb_debug.hex


Hi hasu,

For this https://smile.amazon.com/iKKEGOL-Control-Customized-Keyboard-Multimedia/dp/B07553KW32/ref=cm_cr_arp_d_product_top?ie=UTF8 footpedal, when I connect it to the converter and check hid listen it always has ctrl pressed


Although there are options to bind a key with a modifier, without a modifier it will always have left ctrl depressed on startup and I cannot press left ctrl.

« Last Edit: Mon, 16 December 2019, 08:04:14 by hasu »
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline Harima

  • Posts: 44
Re: USB to USB keyboard converter
« Reply #551 on: Tue, 17 December 2019, 21:05:58 »
Sorry I'm late, I tried that firmware but I get

Code: [Select]
Waiting for device:.........
so I tried making one myself but I think I'm doing something wrong.

"NO" to left control is a temporary solution but then I lose left control haha
« Last Edit: Tue, 17 December 2019, 21:09:36 by Harima »

Offline D.L.

  • Posts: 2
Re: USB to USB keyboard converter
« Reply #552 on: Thu, 19 December 2019, 15:50:31 »
Just got one of these converters from 1-Up; it does not appear to work with the Logitech G810 Orion Spectrum keyboard. I've tried it on three separate computers (two Win 10 PCs and one Mac) and in no case does the keyboard go through it's boot sequence where the backlights flash on. The converter definitely works, I'm using it right now with another keyboard.

Offline hasu

  • Thread Starter
  • Posts: 3088
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: USB to USB keyboard converter
« Reply #553 on: Thu, 19 December 2019, 17:04:19 »
Thanks for you report. I updated the incompatibility list in first post.
Btw, what's your 'another keyboard'?

Just got one of these converters from 1-Up; it does not appear to work with the Logitech G810 Orion Spectrum keyboard. I've tried it on three separate computers (two Win 10 PCs and one Mac) and in no case does the keyboard go through it's boot sequence where the backlights flash on. The converter definitely works, I'm using it right now with another keyboard.


TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline D.L.

  • Posts: 2
Re: USB to USB keyboard converter
« Reply #554 on: Thu, 19 December 2019, 18:29:54 »
Thanks for you report. I updated the incompatibility list in first post.
Btw, what's your 'another keyboard'?


Matias Quiet Pro for Mac:
https://matias.ca/quietpro/mac/

I'm not sure I've configured it correctly, it has a native Mac layout and my brain was going through contortions to figure out which keys should be remapped to do what I want it to do, but I have the bare minimum function I wanted up and running (Caps Lock to CTRL; no admin access on my work computer).

Offline hasu

  • Thread Starter
  • Posts: 3088
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: USB to USB keyboard converter
« Reply #555 on: Sun, 02 February 2020, 19:56:27 »
Updated keyboard lists in the first post.

MK Fission is added to 'Incompatible Keyboards',
Logitech K120 and HHKB Professional Classic(PD-KB401W) are added to 'Compatible Keyboards'.
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline thr0wy

  • Posts: 1
Re: USB to USB keyboard converter
« Reply #556 on: Sun, 09 February 2020, 20:18:16 »
I made the pro micro + usb host shield version and flashed with qmk. Works perfectly on GK64, GH60, Kbpardise v60 and Vortex pok3r.
Thank you for this handy little tool.  :thumb:

Offline riangle

  • Posts: 3
  • Location: Canada
Re: USB to USB keyboard converter
« Reply #557 on: Thu, 27 February 2020, 08:17:46 »
Hey Hasu,

I followed your direction and am now using your USB-USB converter with my Realforce PFU. It works great when it works, but there is an issue I'm not able to figure out on my own.

Sometimes (I've only noticed this when I plug in other peripheral devices) the converter stops working. I've noticed this specifically after plugging in a new mouse. Model o -. It flat out stops working and needs something in the area of 5ish minutes of unplugging/plugging in and hitting the button on the converter for everything to work again. If I'm in the middle of something I just lay it aside. Any idea what a solution to this could be? It's happened a handful of times, though I can't say it's consistently when I plug in a new peripheral device as I rarely do so.


Offline hasu

  • Thread Starter
  • Posts: 3088
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: USB to USB keyboard converter
« Reply #558 on: Fri, 28 February 2020, 14:18:54 »
Hey Hasu,

I followed your direction and am now using your USB-USB converter with my Realforce PFU. It works great when it works, but there is an issue I'm not able to figure out on my own.

Sometimes (I've only noticed this when I plug in other peripheral devices) the converter stops working. I've noticed this specifically after plugging in a new mouse. Model o -. It flat out stops working and needs something in the area of 5ish minutes of unplugging/plugging in and hitting the button on the converter for everything to work again. If I'm in the middle of something I just lay it aside. Any idea what a solution to this could be? It's happened a handful of times, though I can't say it's consistently when I plug in a new peripheral device as I rarely do so.



No idea.
You may see useful debug info with hid_listen tool. Leave the tool running all the time and check its console when the problem happens.
https://github.com/tmk/tmk_keyboard/wiki#debug-console

BTW, the button is used to program the converter firmware, the converter stops working and turns itself into flash mode when you press the button. To make the converter working again you have to replug it or program it with proper firmware using flashing tool.
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline etops

  • Posts: 9
Re: USB to USB keyboard converter
« Reply #559 on: Sat, 25 April 2020, 07:31:12 »
Hi Hasu,

I've been using usb-to-usb converter with my CM STORM (Coolermaster Novatouch TKL) for almost two years with no issues.

But I recently bought NuType F1 from kickstarter and I does not work. I flashed latest firmware today, again no luck. Keyboards powers up, all leds work, keyboard's own functions like led brightness via its fn shortcus works. But keypresses don't register.

hid_listen does report no keypress.

here is usb device tree view of the directly connected keyboard:

https://pastebin.com/fTWMypTS

If you could please take a look at this i'd be happy.

Thanks in advance..

Offline hasu

  • Thread Starter
  • Posts: 3088
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: USB to USB keyboard converter
« Reply #560 on: Sat, 25 April 2020, 08:31:23 »
etoops,
Thank you for the report. I updated incompatibility list in first post.

I didn't find clue in its USB descriptors unfortunately.
Can you post hid_listen output? It is still useful to know how the converter initialize perhaps.

Do you see whether the keyboard work with UEFI/BIOS interface of PC?
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline etops

  • Posts: 9
Re: USB to USB keyboard converter
« Reply #561 on: Sat, 25 April 2020, 09:18:18 »
Thank you for the fast reply!

I didn't find clue in its USB descriptors unfortunately.
Can you post hid_listen output? It is still useful to know how the converter initialize perhaps.

Here is after I connect the keyboard to adapter:

Code: [Select]
Waiting for new device:.........
Listening:
usb_state: 20
usb_state: 40
usb_state: 50
usb_state: 51
host.Task: 2156
usb_state: 90
speed: full

on previous run, host.Task was 2157. now 2156, then 2157 again. These are the only thing that is printed. After that no key press registers.

Do you see whether the keyboard work with UEFI/BIOS interface of PC?

it works both on my 10+ year old legacy bios and 2 year old UEFI..

Offline hasu

  • Thread Starter
  • Posts: 3088
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: USB to USB keyboard converter
« Reply #562 on: Sat, 25 April 2020, 09:54:55 »
Thanks for the info
It seems the converter works accoriding to the log but it fails somewhere.

Didn't you see "TMK:b813d62a+/LUFA" line like below with hid_listen? In that case you are using old version firmware perhaps. Try the latest one downloaded from Keymap Editor.

Quote
Listening:


TMK:b813d62a+/LUFA

usb_state: 12

USB configured.

Keyboard start.
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline etops

  • Posts: 9
Re: USB to USB keyboard converter
« Reply #563 on: Sat, 25 April 2020, 11:43:55 »
There are no additional lines, just the ones I pasted here..

Actually I uploaded my config to the editor changed a config and back then re-downloaded and flashed just to update firmware before my initial post. Now
to double check I did it again. Output is still the same. Tried running as admin, and tried on other PC as well, same results.

I am open to suggestions, I could send my firmware, or flash one if you send?

P.S: I have two usb-to-usb adapters. Both are up-to-date and results are the same.

Offline hasu

  • Thread Starter
  • Posts: 3088
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: USB to USB keyboard converter
« Reply #564 on: Sat, 25 April 2020, 11:55:56 »
Are you sure it is my tmk keymap editor, not qmk? Check  first post for it's url.
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline etops

  • Posts: 9
Re: USB to USB keyboard converter
« Reply #565 on: Sat, 25 April 2020, 12:24:02 »
Yes definitely,

I am using this link, and I had no problems for two years with my main keyboards:

http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?usb_usb

Offline hasu

  • Thread Starter
  • Posts: 3088
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: USB to USB keyboard converter
« Reply #566 on: Sat, 25 April 2020, 20:18:38 »
Thanks for the confirmation.

Then can you try attached firmware and post hid_listen output?
It may show helpful info.

* usb_usb_debug.hex (74.25 kB - downloaded 5 times.)
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline etops

  • Posts: 9
Re: USB to USB keyboard converter
« Reply #567 on: Sat, 25 April 2020, 21:00:57 »
Here my attempts;

First, third and fourth try:

Code: [Select]
Waiting for new device:......
Listening:


TMK:94c5fefa+/LUFA

[C]usb[S]_state: 12
[W][R][W][R][W][c]
USB configured.

Keyboard start.
[I0]0[I1]0[R][W][R][W][c][L0]usb_state: 20
usb_state: 40
usb_state: 50
usb_state: 51
BM Init
Addr:01
NC:01
HID_PROTOCOL_KEYBOARD
bNumEP:01
D1
BM Init
Addr:01
NC:01
HID_PROTOCOL_KEYBOARD
bNumEP:01
D1
BM Init
Addr:01
NC:01
HID_PROTOCOL_KEYBOARD
bNumEP:01
D1
BM Init
Addr:01
NC:01
HID_PROTOCOL_KEYBOARD
bNumEP:01
D1
host.Task: 2134
usb_state: 90
speed: full

And the second try: (there was a different line before attaching the keyboard)
Code: [Select]
Waiting for device:.....
Listening:


TMK:94c5fefa+/LUFA

[C]usb[S]_state: 12
[W][R][W][R][W][c]
USB configured.

Keyboard start.
[I0]0[I1]0[L0]usb_state: 20
usb_state: 40
usb_state: 50
usb_state: 51
BM Init
Addr:01
NC:01
HID_PROTOCOL_KEYBOARD
bNumEP:01
D1
BM Init
Addr:01
NC:01
HID_PROTOCOL_KEYBOARD
bNumEP:01
D1
BM Init
Addr:01
NC:01
HID_PROTOCOL_KEYBOARD
bNumEP:01
D1
BM Init
Addr:01
NC:01
HID_PROTOCOL_KEYBOARD
bNumEP:01
D1
host.Task: 2134
usb_state: 90
speed: full


Offline hasu

  • Thread Starter
  • Posts: 3088
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: USB to USB keyboard converter
« Reply #568 on: Sat, 25 April 2020, 23:22:49 »
Thanks.
It seems to fail to handle USB Descriptors somehow.

Attached new debug firmware  it will show more detail info on parsing Descriptors.

That diffrence doesn't matter and it is trivial timing thing. One log will be enough.

* usb_usb_debug.hex (74.52 kB - downloaded 8 times.)
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline etops

  • Posts: 9
Re: USB to USB keyboard converter
« Reply #569 on: Sun, 26 April 2020, 01:27:40 »
Allright, here it is:

Code: [Select]
Waiting for device:....
Listening:


TMK:94c5fefa+/LUFA

[C]usb[S]_state: 12
[W][R][W][R][W][c]
USB configured.

Keyboard start.
[I0]0[I1]0[L0]usb_state: 20
usb_state: 40
usb_state: 50
usb_state: 51
BM Init
Addr:01
NC:01
HID_PROTOCOL_KEYBOARD
bNumEP:01
Cnf:00
bIfaceNum:00
bNumIface:00

Interface:00
PROTOCOL SET HID_BOOT rcode:00
SET_IDLE rcode:00
RPIPE rcode:00
BM configured
host.Task: 2317
usb_state: 90
speed: full

Offline hasu

  • Thread Starter
  • Posts: 3088
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: USB to USB keyboard converter
« Reply #570 on: Mon, 27 April 2020, 10:36:22 »
etops,

I couldn't find any clear clue so far.

Can you try this when you have time?

* usb_usb_debug.hex (74.88 kB - downloaded 9 times.)
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline etops

  • Posts: 9
Re: USB to USB keyboard converter
« Reply #571 on: Mon, 27 April 2020, 13:29:36 »
Of course! here is the new output:

Code: [Select]
Waiting for device:.......
Listening:


TMK:e0236e64+/LUFA

[C]usb[S]_state: 12
[W][R][W][R][W][c]
USB configured.

Keyboard start.
[I0]0[R][W][R][W][c][I1]0[R][W][R][W][c][L0]usb_state: 20
usb_state: 40
usb_state: 50
usb_state: 51
BM Init
Addr:01
NC:01
HID_PROTOCOL_KEYBOARD
[gC]Cl:003B
bNumEP:01
Cnf:00
bIfaceNum:00
bNumIface:00

Interface:00
PROTOCOL SET HID_BOOT rcode:00
SET_IDLE rcode:00
RPIPE rcode:00
BM configured
host.Task: 2317
usb_state: 90
speed: full

Offline hasu

  • Thread Starter
  • Posts: 3088
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: USB to USB keyboard converter
« Reply #572 on: Tue, 28 April 2020, 10:39:59 »
etops,
Thanks for your patience.

It seems to get some error on transfer of USB Descriptor from the keyboard.
Hope this shows something useful.

* usb_usb_debug.hex (74.77 kB - downloaded 6 times.)
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline etops

  • Posts: 9
Re: USB to USB keyboard converter
« Reply #573 on: Tue, 28 April 2020, 11:59:00 »
No worries I am happy to help!

By the way, the previous flash might be unsuccessful, i am sorry if that's the case.

Just to be sure I flashed previous firmware again. Here is the previous firmware's output:

Code: [Select]
Waiting for device:......
Listening:


TMK:e0236e64+/LUFA

[C]usb[S]_state: 12
[W][R][W][R][W][c]
USB configured.

Keyboard start.
[I0]0[R][W][R][W][c][I1]0[R][W][R][W][c][L0][S][W][R][W][R][W][c][I0]0[R][W][R][W][c][I1]0[R][W][R][W][c][L0]usb_state: 20
usb_state: 40
usb_state: 50
usb_state: 51
BM Init
Addr:01
NC:01
HID_PROTOCOL_KEYBOARD
[gC]Cl:003B
bNumEP:01
Cnf:00
bIfaceNum:00
bNumIface:00

Interface:00
PROTOCOL SET HID_BOOT rcode:00
SET_IDLE rcode:00
RPIPE rcode:00
BM configured
host.Task: 2317
usb_state: 90
speed: full

And now this is the latest firmware's output:
Code: [Select]
Waiting for device:...
Listening:


TMK:2e5e6a69+/LUFA

usb_state: 12

USB configured.

Keyboard start.
usb_state: 20
usb_state: 40
usb_state: 50
usb_state: 51
BM Init
Addr:01
NC:01
HID_PROTOCOL_KEYBOARD
[gC]Cl:003B
crIN:05
bNumEP:01
Cnf:00
bIfaceNum:00
bNumIface:00

Interface:00
PROTOCOL SET HID_BOOT rcode:00
SET_IDLE rcode:00
RPIPE rcode:00
BM configured
host.Task: 2318
usb_state: 90
speed: full
« Last Edit: Tue, 28 April 2020, 12:32:43 by etops »

Offline hasu

  • Thread Starter
  • Posts: 3088
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: USB to USB keyboard converter
« Reply #574 on: Wed, 29 April 2020, 22:36:47 »
It fails with STALL error when getting USB Descriptor. I think the STALL is exceptional there and the converter doesn't expect it at all but it occurs in fact.

Quote
crIN:05

 I changed code to retry five times when it fails with the error.

* usb_usb_debug.hex (74.89 kB - downloaded 8 times.)
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline etops

  • Posts: 9
Re: USB to USB keyboard converter
« Reply #575 on: Thu, 30 April 2020, 04:56:39 »
Hi hasu,

here is the output:


Code: [Select]
Waiting for device:.....
Listening:


TMK:2e5e6a69+/LUFA

usb_state: 12

USB configured.

Keyboard start.
usb_state: 20
usb_state: 40
usb_state: 50
usb_state: 51
BM Init
Addr:01
NC:01
HID_PROTOCOL_KEYBOARD
[gC]Cl:003B
crIN:05
crIN:05
crIN:05
crIN:05
crIN:05
bNumEP:01
Cnf:00
bIfaceNum:00
bNumIface:00

Interface:00
PROTOCOL SET HID_BOOT rcode:00
SET_IDLE rcode:00
RPIPE rcode:00
BM configured
host.Task: 2320
usb_state: 90
speed: full

Offline JimDetroit

  • Posts: 4
  • Location: Detroit, MI USA
Re: USB to USB keyboard converter
« Reply #576 on: Fri, 01 May 2020, 18:59:49 »
Hi Hasu,

I would like to report a non-working keyboard with the USB-to-USB converter, purchased from 1up. I've been using the converter with many different keyboards, and this particular one doesn't work with it: the Rosewill RK-9200BR. I tested the converter with a programming of the latest firmware from the website, to make sure the latest updates don't now allow it to work with the keyboard.

Here is what "sudo lsusb -v -d 1130:7979" reports:

Bus 002 Device 065: ID 1130:7979 Tenx Technology, Inc.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x1130 Tenx Technology, Inc.
  idProduct          0x7979
  bcdDevice            1.07
  iManufacturer           1 CYKB16
  iProduct                2 USB Keyboard
  iSerial                 0
  bNumConfigurations      1

What happens when I connect this keyboard through the converter is that the three indicator lights (NUMLOCK, CAPS, SCROLL) all stay on for several seconds, then go out. After that, I can use the FN key to turn on the LED's on the board, but no keys register with the Linux system. I'm typing on this keyboard now, but without the converter in line, just plugging it directly into a USB socket.

I also have a miscellaneous question: I noticed one of these adapters I bought from 1up (I have 3 of them) originally had a red LED on the circuit board light up when plugged into USB (a power light). After programming new firmware, the LED no longer lights. Is there an easy way to get that light to turn on again for a power indication? Maybe in the TMK C code somewhere?

Thanks for a great product!

Offline hasu

  • Thread Starter
  • Posts: 3088
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: USB to USB keyboard converter
« Reply #577 on: Sat, 02 May 2020, 01:31:00 »
Thanks for the report.

Can you post full list of 'lsusb -v' output for future reference?

As for the LED I use it for debug and didn't decide how to use it for release firmware.
But I'll fix that somewhat some later.

Hi Hasu,

I would like to report a non-working keyboard with the USB-to-USB converter, purchased from 1up. I've been using the converter with many different keyboards, and this particular one doesn't work with it: the Rosewill RK-9200BR. I tested the converter with a programming of the latest firmware from the website, to make sure the latest updates don't now allow it to work with the keyboard.

Here is what "sudo lsusb -v -d 1130:7979" reports:

Bus 002 Device 065: ID 1130:7979 Tenx Technology, Inc.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x1130 Tenx Technology, Inc.
  idProduct          0x7979
  bcdDevice            1.07
  iManufacturer           1 CYKB16
  iProduct                2 USB Keyboard
  iSerial                 0
  bNumConfigurations      1

What happens when I connect this keyboard through the converter is that the three indicator lights (NUMLOCK, CAPS, SCROLL) all stay on for several seconds, then go out. After that, I can use the FN key to turn on the LED's on the board, but no keys register with the Linux system. I'm typing on this keyboard now, but without the converter in line, just plugging it directly into a USB socket.

I also have a miscellaneous question: I noticed one of these adapters I bought from 1up (I have 3 of them) originally had a red LED on the circuit board light up when plugged into USB (a power light). After programming new firmware, the LED no longer lights. Is there an easy way to get that light to turn on again for a power indication? Maybe in the TMK C code somewhere?

Thanks for a great product!


TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline JimDetroit

  • Posts: 4
  • Location: Detroit, MI USA
Re: USB to USB keyboard converter
« Reply #578 on: Sat, 02 May 2020, 08:08:43 »
Thanks for your reply, Hasu. Here is the full output of "lsusb -v" for the Rosewill RK-9200BR keyboard:

Code: [Select]
Bus 002 Device 065: ID 1130:7979 Tenx Technology, Inc.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x1130 Tenx Technology, Inc.
  idProduct          0x7979
  bcdDevice            1.07
  iManufacturer           1 CYKB16
  iProduct                2 USB Keyboard
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           59
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      1 Keyboard
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode           33 US
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      65
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode           33 US
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     115
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               1
Device Status:     0x0000
  (Bus Powered)

Thanks for the report.

Can you post full list of 'lsusb -v' output for future reference?

As for the LED I use it for debug and didn't decide how to use it for release firmware.
But I'll fix that somewhat some later.

« Last Edit: Sat, 02 May 2020, 08:12:11 by JimDetroit »

Offline hasu

  • Thread Starter
  • Posts: 3088
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: USB to USB keyboard converter
« Reply #579 on: Sat, 02 May 2020, 08:59:31 »
JimDetroit,
Thanks for the descriptors.

Can you try this firmware for debug and post 'hid_listen' output when you have time?

https://geekhack.org/index.php?topic=69169.msg2896191#msg2896191

You can download 'hid_listen' tool here.
https://www.pjrc.com/teensy/hid_listen.html
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline JimDetroit

  • Posts: 4
  • Location: Detroit, MI USA
Re: USB to USB keyboard converter
« Reply #580 on: Sat, 02 May 2020, 11:09:05 »
Hasu,

Here is the output of hid_listen, with the debug firmware installed on the USB-USB controller, for the Rosewill RK-9200BR keyboard:. At the end, where there is a line of "T"s, I was typing "QWERTY".

Code: [Select]
Waiting for device:...
Listening:
 20
usb_state: 40
usb_state: 50
usb_state: 51
BM Init
Addr:01
NC:01
HID_PROTOCOL_KEYBOARD
[gC]Cl:003B
[pC][pI3][pI2][pI1][pI0][pI][pH][pE1][pE0][xE1][xE0][xE++][xE][pE][pI3][pI2][pI1][pH][pE1][pE0][pE]bNumEP:02
Cnf:01
bIfaceNum:00
bNumIface:00

Interface:00
PROTOCOL SET HID_BOOT rcode:00
SET_IDLE rcode:00
RPIPE rcode:00
BM configured
host.Task: 2330
usb_state: 90
speed: full

USB configured.

Keyboard start.
TTTTTTTTTTTTTTT^C

Offline online

  • Posts: 166
Re: USB to USB keyboard converter
« Reply #581 on: Sat, 02 May 2020, 20:03:03 »
32u4 don't have enough memory for layers and functions that I need. would it work if I replace the ic with AT90USB1286? (of cause I'll have to redesign the PCB with the same pins config)

Offline hasu

  • Thread Starter
  • Posts: 3088
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: USB to USB keyboard converter
« Reply #582 on: Sat, 02 May 2020, 22:29:33 »
JimDetroit,
Thanks for the log. It seems to work as expected and I couldn't find any clue there unfrotunately.


32u4 don't have enough memory for layers and functions that I need. would it work if I replace the ic with AT90USB1286? (of cause I'll have to redesign the PCB with the same pins config)

I think so. You just need some code tweak for your pin configurations.

TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline JimDetroit

  • Posts: 4
  • Location: Detroit, MI USA
Re: USB to USB keyboard converter
« Reply #583 on: Sat, 02 May 2020, 22:38:28 »
Thanks, Hasu. Please let me know if you think of any other tests to run and I can do them for you and report the results.

JimDetroit,
Thanks for the log. It seems to work as expected and I couldn't find any clue there unfrotunately.
« Last Edit: Sat, 02 May 2020, 22:42:18 by JimDetroit »

Offline online

  • Posts: 166
Re: USB to USB keyboard converter
« Reply #584 on: Mon, 04 May 2020, 07:53:18 »
32u4 don't have enough memory for layers and functions that I need. would it work if I replace the ic with AT90USB1286? (of cause I'll have to redesign the PCB with the same pins config)

I think so. You just need some code tweak for your pin configurations.
Thanks. That's good to know, will report back once I've tried it.

Other question. I want to reduce the firmware size by reducing the virtual matrix row/col count, I know which exact keys I need / I don't need.
any hint of how should I do this? is there an example of it?
« Last Edit: Mon, 04 May 2020, 09:26:38 by online »

Offline hasu

  • Thread Starter
  • Posts: 3088
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: USB to USB keyboard converter
« Reply #585 on: Wed, 06 May 2020, 02:31:31 »
32u4 don't have enough memory for layers and functions that I need. would it work if I replace the ic with AT90USB1286? (of cause I'll have to redesign the PCB with the same pins config)

I think so. You just need some code tweak for your pin configurations.
Thanks. That's good to know, will report back once I've tried it.

Other question. I want to reduce the firmware size by reducing the virtual matrix row/col count, I know which exact keys I need / I don't need.
any hint of how should I do this? is there an example of it?

I can't explain it  in minutes and don't have any example at this point.

Anyway, I think  you don't need to hassle on code tweaking once you have vast flash on AT90USB1286.
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt