Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 15:34 06 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

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

     Page 2 of 3    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10209
Posted: 10:55am 05 Jul 2025
Copy link to clipboard 
Print this post

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.
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 602
Posted: 11:53am 05 Jul 2025
Copy link to clipboard 
Print this post

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
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10209
Posted: 12:14pm 05 Jul 2025
Copy link to clipboard 
Print this post

Just to be clear, the double key only occurs in the editor?
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 602
Posted: 12:21pm 05 Jul 2025
Copy link to clipboard 
Print this post

  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
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10209
Posted: 01:53pm 05 Jul 2025
Copy link to clipboard 
Print this post

Please try this one


PicoMite.zip
 
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 480
Posted: 03:09pm 05 Jul 2025
Copy link to clipboard 
Print this post

  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
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10209
Posted: 03:59pm 05 Jul 2025
Copy link to clipboard 
Print this post

dddns

Try this


PicoMite.zip
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 602
Posted: 04:10pm 05 Jul 2025
Copy link to clipboard 
Print this post

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

Greetings
Daniel
 
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 480
Posted: 04:35pm 05 Jul 2025
Copy link to clipboard 
Print this post

  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"
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 602
Posted: 05:03pm 05 Jul 2025
Copy link to clipboard 
Print this post

  matherp said  Please try this one


PicoMite.zip


No missing keys, but still dublicate keys on the same spots.
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 602
Posted: 05:05pm 05 Jul 2025
Copy link to clipboard 
Print this post

  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
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10209
Posted: 05:30pm 05 Jul 2025
Copy link to clipboard 
Print this post

Have the duplicates gone?
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 602
Posted: 05:37pm 05 Jul 2025
Copy link to clipboard 
Print this post

  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.
 
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 480
Posted: 06:29pm 05 Jul 2025
Copy link to clipboard 
Print this post

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

Joined: 11/12/2012
Location: United Kingdom
Posts: 10209
Posted: 06:35pm 05 Jul 2025
Copy link to clipboard 
Print this post

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
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 602
Posted: 06:37pm 05 Jul 2025
Copy link to clipboard 
Print this post

  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
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 602
Posted: 06:39pm 05 Jul 2025
Copy link to clipboard 
Print this post

  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...
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 602
Posted: 06:46pm 05 Jul 2025
Copy link to clipboard 
Print this post

Aaaaaaand the answer is:

Video


   
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 602
Posted: 06:51pm 05 Jul 2025
Copy link to clipboard 
Print this post

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
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2529
Posted: 07:51pm 05 Jul 2025
Copy link to clipboard 
Print this post

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 3    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025