Menu
JAQForum Ver 19.10.27

Forum Index : Microcontroller and PC projects : USB Keyboard - slow response/dropped keypresses

   Page 2 of 4    
Posted: 10:55am
05 Jul 2025
Copy link to clipboard
matherp
Guru

Please try the attached and report


PicoMite.zip


  Quote  the converter firmware is polling all the time and this makes the problem I am seeing at least way less likely.
With the MMBASIC firmware, on the other hand, it isn't possible to poll all the time, because MMBASIC wouldn't run anymore.
Do I understand it correct? I am really curious about your ideas for solving this.

Correct.

The new firmware allows for more than one new key-press in each USB report. This should mean that a key-press can't be missed.
 
Posted: 11:53am
05 Jul 2025
Copy link to clipboard
Amnesie
Guru

Peter! Please see the attached video! I think we have a success. There are still problems but FOR ME they are not relevant in real life (at least for now, maybe I discover situation where it still might be problematic but see the video & definitely the new attached keyboard text file)


   

I think this gives you a good overview. Good work! If you want to try to fix the problems further I will test more. But this is a HUGE improvement.

Video


keyboardNew.zip



Greetings
Daniel
 
Posted: 12:14pm
05 Jul 2025
Copy link to clipboard
matherp
Guru

Just to be clear, the double key only occurs in the editor?
 
Posted: 12:21pm
05 Jul 2025
Copy link to clipboard
Amnesie
Guru

  matherp said  Just to be clear, the double key only occurs in the editor?


No, as you can see in the video (timestamp: 00:00:26), the double key are also in the console.
So for now you've definitly fixed the missig keys. Only on some "lines" (the 4 row test) I see some double keys.

Here:

  Quote  WERT wer    werrt werrt werrt werrt werrt werrt


or

  Quote  SDFG sdff   sdffg sdffg sdffg sdffg sdffg sdffg sdffg


and so on...

And I think this information may help to: It is impossible for me in some "4 key rows"
(no matter how fast I type) to produce double keys. some key-arrangements seem to be "rock solid" no matter how fast I type.

This is also in the console. And it is on all tested keyboards the same.

But as I said, this new fix is a HUGE improvement. No missing keys anymore.
Edited 2025-07-05 22:26 by Amnesie
 
Posted: 01:53pm
05 Jul 2025
Copy link to clipboard
matherp
Guru

Please try this one


PicoMite.zip
 
Posted: 03:09pm
05 Jul 2025
Copy link to clipboard
dddns
Guru

  matherp said  Here is a RP2040 VGA USB version. In this I have reduced the scan rate from 20mSec to 10 mSec - please report

Pretty sure you are aware but:

I setup a HDMI USB system on a RP2350B and exactly the reported behavior @Amnesie also applies to this for me. I tried different keyboards.
> option list
PicoMiteHDMI MMBasic USB RP2350B Edition V6.00.02
OPTION SERIAL CONSOLE COM2,GP8,GP9
OPTION FLASH SIZE 16777216
OPTION COLOURCODE ON
OPTION KEYBOARD GR, 0, 0, 180, 80
OPTION PICO OFF
OPTION RESOLUTION 1024x768 @ 375000KHz
OPTION DISPLAY 96, 170
OPTION KEYBOARD REPEAT 180,80
OPTION DEFAULT FONT 7, 1
 
Posted: 03:59pm
05 Jul 2025
Copy link to clipboard
matherp
Guru

dddns

Try this


PicoMite.zip
 
Posted: 04:10pm
05 Jul 2025
Copy link to clipboard
Amnesie
Guru

Peter, I just came home - I will try it in an hour and will report!

Greetings
Daniel
 
Posted: 04:35pm
05 Jul 2025
Copy link to clipboard
dddns
Guru

  matherp said  dddns

Try this


PicoMite.zip

Cleared the flash and let everything be default.
Of cause subjective impressions:
Much better. Seems that "qwer" is more easy to replicate over and over than "wert"
 
Posted: 05:03pm
05 Jul 2025
Copy link to clipboard
Amnesie
Guru

  matherp said  Please try this one


PicoMite.zip


No missing keys, but still dublicate keys on the same spots.
 
Posted: 05:05pm
05 Jul 2025
Copy link to clipboard
Amnesie
Guru

  dddns said   Seems that "qwer" is more easy to replicate over and over than "wert"


Exactly, same here! There are certain groups which are rock solid, no matter how fast you type. This is one of them.

@ dddns could you please mention what keyboard you used? Model?

@ Peter

Even if you can't improve things much more, now it is at least usable! :) Seems that this problem is really hard to deal with because there are so many variables involved.
Edited 2025-07-06 03:11 by Amnesie
 
Posted: 05:30pm
05 Jul 2025
Copy link to clipboard
matherp
Guru

Have the duplicates gone?
 
Posted: 05:37pm
05 Jul 2025
Copy link to clipboard
Amnesie
Guru

  matherp said  Have the duplicates gone?


  Amnesie said  
  matherp said  Please try this one


PicoMite.zip


No missing keys, but still dublicate keys on the same spots.
 
Posted: 06:29pm
05 Jul 2025
Copy link to clipboard
dddns
Guru

Used a very old Dell SK-8135 with integrated hub and a noname US layout keyboard. Dell works better(subjective)
 
Posted: 06:35pm
05 Jul 2025
Copy link to clipboard
matherp
Guru

I don't understand how you have still got duplicates unless I posted the wrong binary as I've put a hard block into the code that stops the same character being registered with 50mSec.
Please try again with the attached. The version number will be V6.00.02p1 (patch 1)
If this doesn't work I think I'll shoot myself as it makes no sense.

PicoMite.zip
 
Posted: 06:37pm
05 Jul 2025
Copy link to clipboard
Amnesie
Guru

  dddns said  Used a very old Dell SK-8135 with integrated hub and a noname US layout keyboard. Dell works better(subjective)


Thank you, this is good to know. Because I didn't found a single keyboard (tried today another one from a good friend) that works. But with this fix, there is no dropped key anymore, which is a good sign - even if the dublicate problem can't be fixed.

Greetings
Daniel
 
Posted: 06:39pm
05 Jul 2025
Copy link to clipboard
Amnesie
Guru

  matherp said  
If this doesn't work I think I'll shoot myself as it makes no sense.

PicoMite.zip


 please not! I'll try it right now, give me a second... or two...
 
Posted: 06:46pm
05 Jul 2025
Copy link to clipboard
Amnesie
Guru

Aaaaaaand the answer is:

Video


   
 
Posted: 06:51pm
05 Jul 2025
Copy link to clipboard
Amnesie
Guru

Uhm.. I was too euphoric / optimistic and didn't noticed until I saw the video I just recorded and tried it again..... you can see it in the video, too.


ZUIO "zuuio"


SDFG "sdffg" < still dublicates

I am so sorry :( hmpf....

But the WERT "werrt" problem is gone!


Edited 2025-07-06 04:53 by Amnesie
 
Posted: 07:51pm
05 Jul 2025
Copy link to clipboard
stanleyella
Guru


I not got problems with usb key board, I tried this dell with usb ports and plugged usb mouse in and it showed mouse and kb is fine. using usb a to mini from kb
the keyboard got 2 usb sockets, usb mouse plugged into one

Edited 2025-07-06 06:11 by stanleyella
 
   Page 2 of 4    
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025