You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is it possible to show microseconds in results #21
Those mice with optical switch has really fast response, and with 4k and 8k polling rates it reaches under 1ms.
As far as I have tested, OSLTT is capable of counting milliseconds but I haven't seen microseconds.
Is it possible to get MICE/KEYBOARD test results to show numbers under 1ms?
Thanks!
Hi there - go the same issue.
With testing out displays it shows perfectly divided times (input, render etc.) but for mices and keyboards it's accuracy seems to be with 1ms being the smallest value you can get.
Therefore - RN I'm testing few of the top gaming mouses and results are - copy/paste 1ms across all the board (where i know 4 sure that's not possible - 1000Hz with mechanical switch vs 8000Hz with optical should have at least a little difference)
Are there any possible solutions to this issue?
I've tried to walkaround this problem trying to measure far longer signal distance - with Audio trigger (mouse clikc) -> whole system to the screen color change (light sensor). Since it's so accurate and shows individual results while testing screen adding one more link to the chain would give me slightly bigger times overall, but also a possibility to separate mouse reaction (or to compare different results)
But the software is not allowing me to set it up this way - Can we expect any fixes to this? Or is it the hardware limitation and the precision in this tests isn't gonna be any higher?
Hi guys - I believe I replied to @Vanri115 via email on this but I should note things here too.
Regarding microsecond counts, currently it's not possible as the desktop app uses serial with a 1ms timeout to tell the latency tool it has registered the keypress. That adds between 1 and 2ms per run, and sets that as the effective noise floor, at least for the time being. I'd like to improve that, but it's not something I have the knowledge to improve on right now.
To clarify the way it works: User clicks mouse -> latency tool detects audio spike -> latency tools steps into loop waiting for the desktop app to report the mouse click has been captured -> board times that difference.
Perhaps if there's a way to syncronise clocks between desktop and microcontroller, the microcontroller could report a timecode to the desktop app, then the desktop app just subtracts the timecode from the time when it detects the mouse click down event? Not sure - like I said it's outside my knowledge at the moment. Would love to improve it though!
Allright, thanks for quick response.
But you didn't cover the last thing - is this possible to combine audio
(keypress) trigger with screen measurements?
I have no problems with testing at all, but i found just the 1ms interval
not satisfying enough (especially with high-end peripherals).
So ill just add it to my testing tools 4now alongside with goose lag meter
and manually counting frames on 1000fps camera
śr., 4 paź 2023 o 13:28 andymanic ***@***.***> napisał(a):
Hi guys - I believe I replied to @Vanri115 <https://github.com/Vanri115>
via email on this but I should note things here too.
Regarding microsecond counts, currently it's not possible as the desktop
app uses serial with a 1ms timeout to tell the latency tool it has
registered the keypress. That adds between 1 and 2ms per run, and sets that
as the effective noise floor, at least for the time being. I'd like to
improve that, but it's not something I have the knowledge to improve on
right now.
To clarify the way it works: User clicks mouse -> latency tool detects
audio spike -> latency tools steps into loop waiting for the desktop app to
report the mouse click has been captured -> board times that difference.
Perhaps if there's a way to syncronise clocks between desktop and
microcontroller, the microcontroller could report a timecode to the desktop
app, then the desktop app just subtracts the timecode from the time when it
detects the mouse click down event? Not sure - like I said it's outside my
knowledge at the moment. Would love to improve it though!
—
Reply to this email directly, view it on GitHub
<#21 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO5UK7RLKFA6KUHARL5JST3X5VB45AVCNFSM6AAAAAA4LEUJRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBWGY4DEMZXGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
That one is on the FAQs - yes I intend to support basically any combination of modes you'd want. It's a bit of work to make sure they all work. It's worth noting that the screen measurements are limited by the display's refresh rate, so you won't get much use out of mouse/keyboard measurements on a display.
As a follow up to this, I did some testing on the idea of syncing clocks between desktop and microcontroller. Unfortunately that doesn't seem possible with any degree of accuracy. The microcontroller's clock drifts from the system clock by about 6ms per 10s, but it's also somewhat unpredictable too so it can't just be corrected for. Even with syncing clocks between each click, you'd still have an unknown drift between the system and arduino clocks which would cause erroneous data. Perhaps with a hardware timer onboard that might be more reliable, but that'd need a hardware revision. Maybe something I can look at in the future. For now the click test has a hard limit at 1ms/1000Hz.
Thank you for the newest update! It does seem to show microseconds now, but somehow every mice I try I get results of 0.02ms all the way. am I missing something?
I've tried several high end keyboards today and 2 of the Best optical ones
are getting ~0,02 which i find plausible (like 0,1-0,4 mm travel distance
to activate, and 8kHz polling rate). Did minimum 2 tests of 50 clicks for
each keyboard and Got simolar results
Mwchanical keyboard Got more (bout 3ms)
An when I adjusted the travel distance to whole 4mm Times Jumped up to 16ms
which i also find possible.
Im testing IT with clicking Keys with a pen to get the first sound of pen
striking the keys to trigger test rather than bottom-out which is after the
activation
TBH Got some weird 0.02 ms results with 1 keyboard aswell, but i've did
test several more Times and considered it a bug, because i was unable To
replicate IT on this specific keyboard.
All test contained 50 clicks. When I was not sure about the results i did
them again what resulted in few tests for each keyboard. Every with
re-plugging each keyboard.
I can shareware the results if they can be helpful
So if the question is asked let me follow along.
wt., 31 paź 2023, 15:49 użytkownik Vanri115 ***@***.***>
napisał:
Here you are.
Those are my results from this morning. Quickly renamed folders so you know
what keyboard/settings we are talking about
Let me know what you think - which are valid or false?
Or if there are some bugged ones
wt., 31 paź 2023 o 16:03 Radyjko ***@***.***> napisał(a):
I've tried several high end keyboards today and 2 of the Best optical ones
are getting ~0,02 which i find plausible (like 0,1-0,4 mm travel distance
to activate, and 8kHz polling rate). Did minimum 2 tests of 50 clicks for
each keyboard and Got simolar results
Mwchanical keyboard Got more (bout 3ms)
An when I adjusted the travel distance to whole 4mm Times Jumped up to
16ms which i also find possible.
Im testing IT with clicking Keys with a pen to get the first sound of pen
striking the keys to trigger test rather than bottom-out which is after the
activation
TBH Got some weird 0.02 ms results with 1 keyboard aswell, but i've did
test several more Times and considered it a bug, because i was unable To
replicate IT on this specific keyboard.
All test contained 50 clicks. When I was not sure about the results i did
them again what resulted in few tests for each keyboard. Every with
re-plugging each keyboard.
I can shareware the results if they can be helpful
So if the question is asked let me follow along.
wt., 31 paź 2023, 15:49 użytkownik Vanri115 ***@***.***>
napisał:
> Thank you for the newest update! It does seem to show microseconds now,
> but somehow every mice I try I get results of 0.02ms all the way. am I
> missing something?
>
> —
> Reply to this email directly, view it on GitHub
> <#21 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AO5UK7RPJOUTM5P2EETMLALYCEFZFAVCNFSM6AAAAAA4LEUJRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBXGM3TGNJZGQ>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
EDITTED---
I've tested the mouse again and it reads latency correctly. But as I tried with other mice it still gets 0.02ms. I first thought it might be because of multiple mice were connected to PC, so I tried to use one at time but it sometimes work but most of the time it still gives me 0.02ms. I can't track down what really causing this issue.
Back to you guys with some other shower-thoughts.
Actually the lowest i should get with 8kHz should be 0,125ms, but's not the
case here (with repeatable patterns on different keyboards) when im
getting f.ex. 0,019ms. The only explanation is that the clock starts later
on since keyboard hasn't even been polled yet.
Since clock trigger is activated by sound it's possible that the
Bottoming-out is launching it, not the initial touch i hoped for. That
actually can give us smaller times since the activation signal has already
been sent when clock started.
Es. with keyboards Like Corsair K70MAX (0,4mm actuation with 8kHz) or
SSApex PRO (0,1mm actuation with 1kHz). Both are similar with the whole
travel distance - ~4mm.
So taking all of that into consideration the signal being sent right away
when i touch the key is already "traveling" but still there's delay before
clock starts tracking time, because i still have more than 3mm to travel
before bottoming out the key and making loud enough sound to trigger OSLTT
What do you think?
wt., 31 paź 2023 o 16:21 Vanri115 ***@***.***> napisał(a):
@Radyjko I think you're right. I assume there's some disconnect between when the sound is captured and when the signal is polled from the mouse. I have enabled support for soldering to the mouse, but obviously that isn't ideal. I'm not sure if there's anything I could do to improve this accuracy though as I believe it's an external/process issue, rather than something I can address in code. If you have any ideas though, I'm all ears!
Tell me more about this soldering, because if it's gonna give me some more
repeatable accuracy i'm all ears
What would be the clock trigger here?
Actually i've used Goose LagMeter for some time, but it has it's own
limitations and with wireless mouses and higher polling rates it was
useless, but it had quite good idea on how to trigger clock - striking key
with a rod that closes small circuit. Maybe we can adapt it somehow here?
https://gooseenterprises.wordpress.com/lagmeter/
If you think i can help anyhow - let me know
czw., 2 lis 2023 o 12:10 andymanic ***@***.***> napisał(a):
Further update: I've realized that most mice seem to have constant power to one side and ground that power when you click. That will still work fine with OSLTT, but it needs the firmware change I've made to work. I'm going to solder to a mouse today and test out the mode. Hopefully with it being a change-state interrupt that'll be much more consistent.
Wow!
Andy u sure are hard worker!
I took weekend off and today i;m gonna be back with some tests of my own.
I've bought multimeter as well :P (might be helpful)
I'm gonna keep on trying to develop a possibility to test the total mouse
lag/keyboard - from the very touch of key. Because the thing i;m most
interested in is behavior if the whole electronics, not just switch itself.
Afterall it;s that what matters - from when u want to press the key, to
keypress registered
So i'll try to make small 5v circuit that will close when the button is
touched.
Could you please DM me with the interrupt update? Seems rly helpful
niedz., 5 lis 2023 o 14:19 andymanic ***@***.***> napisał(a):
thanks to my constant cooperation with a local retailer i have access to
plenty of peripherals, so ill do some testing
pon., 6 lis 2023 o 10:13 Vanri115 ***@***.***> napisał(a):
I thought XLAT is doing same thing that OSLTT is doing I suppose… so this is exactly why made me start to solder 2pin wire to mice. XLAT also demand to solder.
Yeah,
Now ive read some more about IT and im worried IT world Suffer the same
things goose does - since Mouse isnt plugged directly to the pc you cant
get some software magic and higher polling rates.
Yeah, you can get switch latency, but every Mouse is bit different so the
Total input May vary 🥲
Gonna build myself xlat and check IT out
pon., 6 lis 2023, 11:18 użytkownik Vanri115 ***@***.***>
napisał:
@Radyjko XLAT looks pretty cool, I'll have to look up more about how that works.
Further update on the 2 pin mode: I realised I made a mistake with the amount of resistance on the input side. It's way too low. If you solder a resistor in-line with the input lead, something like 1M ohm, the stability increases significantly. Alternatively you can replace R7 on the PCB - it's an 0805 SMD resistor.
Hi there
I'm just gonna 3d print my own case :D
The parts 4 it arrived today - ll let u know how it goes.
On the other hand - i've managed to build a decent circuit that ll help me
measure time from key touch to key register and i think it can work
efficiently
I need firmware update to osltt with 2 changes (ofc if it's possible) to
look for voltage drop as a trigger and interrupt instead of poll
Andy, can you send me such an update?
pon., 6 lis 2023 o 15:51 Vanri115 ***@***.***> napisał(a):
@Radyjko I'm still working on making the interrupt mode work - with my current build the test doesn't work at all. Once I have it functioning again I'll send it over.
I've just built XLAT and it works damn good. U can customize it to check for power rise of fall as trigger.
Unfortunately idk why it works only with mouses, keyboards are correctly recognized by USB, but keypresses don't work.
BUT
I was able to modify mine to do what i was looking for - measure time from the exact touch of the key to keypress registered
I did it by connecting a 5V power adapter to the whole thing. Left key is covered with tin foil and connected to negative pole of adapter, and i'm striking key with metal rod connected to the positive end. When the ends meet voltage drops and that's the trigger.
Roughly it looks like this:
(work in progress ofc)
Hi guys!
I've just built XLAT and it works damn good. U can customize it to check for power rise of fall as trigger.
Unfortunately idk why it works only with mouses, keyboards are correctly recognized by USB, but keypresses don't work.
BUT
I was able to modify mine to do what i was looking for - measure time from the exact touch of the key to keypress registered
I did it by connecting a 5V power adapter to the whole thing. Left key is covered with tin foil and connected to negative pole of adapter, and i'm striking key with metal rod connected to the positive end. When the ends meet voltage drops and that's the trigger.
Roughly it looks like this:
(work in progress ofc)
Right now i have to check it for the consistency and compare few mouses.
I'll let you know how it goes!
Right now i have to check it for the consistency and compare few mouses.
I'll let you know how it goes!
To be clear, this isn't a final release firmware as this has the interrupt style hard-coded as RISING, when at some point I'll be adding a UI option to choose between RISING and FALLING and adding some code to de-register then re-register the interrupt with the given mode. Still, if you want to test this, go for it. You should be able to use the OSLTTFlashTool.exe in the repo (I've changed it to use a file picker) to flash the custom file.
Hi,
finally i've got some time to work on this, but i can't launch the FlashTool - it seems to not be opening.
I've tried Admin, antivir disabled, win defender off etc - nothing seems to be working.
Even on my 2nd pc I can't get this to launch.
The only message i get is the admin prompt, and with the first launch defender smartscreen, where I click to run it anyway.
When i try to open it it briefly shows in Task Manager thant disappears and nothing more happens
I've asked friend of mine to try this and he managed to open it without any problem.
Do you have any idea what may be the cause?
Can you please help me?
Hi, I think I figured out why I'm getting 0.2ms for the mouse click latency test.
When I click the button it registers correctly, but when the sound is too small for mic to pick up, it hangs.
I tried click really hard and let OSLTT count every single click it gives me correct result,
but when I miss click one out of n, it hangs up and gives me 0.2ms.
Activity
[-]Possible to go beyond 1ms?[/-][+]Is it possible to show microseconds in results[/+]Radyjko commentedon Oct 4, 2023
Hi there - go the same issue.
With testing out displays it shows perfectly divided times (input, render etc.) but for mices and keyboards it's accuracy seems to be with 1ms being the smallest value you can get.
Therefore - RN I'm testing few of the top gaming mouses and results are - copy/paste 1ms across all the board (where i know 4 sure that's not possible - 1000Hz with mechanical switch vs 8000Hz with optical should have at least a little difference)
Are there any possible solutions to this issue?
I've tried to walkaround this problem trying to measure far longer signal distance - with Audio trigger (mouse clikc) -> whole system to the screen color change (light sensor). Since it's so accurate and shows individual results while testing screen adding one more link to the chain would give me slightly bigger times overall, but also a possibility to separate mouse reaction (or to compare different results)
But the software is not allowing me to set it up this way - Can we expect any fixes to this? Or is it the hardware limitation and the precision in this tests isn't gonna be any higher?
andymanic commentedon Oct 4, 2023
Hi guys - I believe I replied to @Vanri115 via email on this but I should note things here too.
Regarding microsecond counts, currently it's not possible as the desktop app uses serial with a 1ms timeout to tell the latency tool it has registered the keypress. That adds between 1 and 2ms per run, and sets that as the effective noise floor, at least for the time being. I'd like to improve that, but it's not something I have the knowledge to improve on right now.
To clarify the way it works: User clicks mouse -> latency tool detects audio spike -> latency tools steps into loop waiting for the desktop app to report the mouse click has been captured -> board times that difference.
Perhaps if there's a way to syncronise clocks between desktop and microcontroller, the microcontroller could report a timecode to the desktop app, then the desktop app just subtracts the timecode from the time when it detects the mouse click down event? Not sure - like I said it's outside my knowledge at the moment. Would love to improve it though!
Radyjko commentedon Oct 4, 2023
andymanic commentedon Oct 4, 2023
That one is on the FAQs - yes I intend to support basically any combination of modes you'd want. It's a bit of work to make sure they all work. It's worth noting that the screen measurements are limited by the display's refresh rate, so you won't get much use out of mouse/keyboard measurements on a display.
andymanic commentedon Oct 5, 2023
As a follow up to this, I did some testing on the idea of syncing clocks between desktop and microcontroller. Unfortunately that doesn't seem possible with any degree of accuracy. The microcontroller's clock drifts from the system clock by about 6ms per 10s, but it's also somewhat unpredictable too so it can't just be corrected for. Even with syncing clocks between each click, you'd still have an unknown drift between the system and arduino clocks which would cause erroneous data. Perhaps with a hardware timer onboard that might be more reliable, but that'd need a hardware revision. Maybe something I can look at in the future. For now the click test has a hard limit at 1ms/1000Hz.
Vanri115 commentedon Oct 31, 2023
Thank you for the newest update! It does seem to show microseconds now, but somehow every mice I try I get results of 0.02ms all the way. am I missing something?
andymanic commentedon Oct 31, 2023
Can you include some screenshots and/or results files so I can see what you mean?
Radyjko commentedon Oct 31, 2023
Radyjko commentedon Oct 31, 2023
Vanri115 commentedon Oct 31, 2023
DAREU A950Pro-CLICK-1ms-RAWRESULTS-OSLTT.csv
DAREU A950Pro-CLICK-20ms-RAWRESULTS-OSLTT.csv
This is the rawresults file I just cooked. The mouse is on 4K mode, and I sat response time to 1ms and 20ms, but both results are nearly identical. I also tried other couple of mice and they are also getting 0.02ms.
EDITTED---
I've tested the mouse again and it reads latency correctly. But as I tried with other mice it still gets 0.02ms. I first thought it might be because of multiple mice were connected to PC, so I tried to use one at time but it sometimes work but most of the time it still gives me 0.02ms. I can't track down what really causing this issue.
Radyjko commentedon Nov 2, 2023
andymanic commentedon Nov 2, 2023
@Radyjko I think you're right. I assume there's some disconnect between when the sound is captured and when the signal is polled from the mouse. I have enabled support for soldering to the mouse, but obviously that isn't ideal. I'm not sure if there's anything I could do to improve this accuracy though as I believe it's an external/process issue, rather than something I can address in code. If you have any ideas though, I'm all ears!
Radyjko commentedon Nov 2, 2023
Radyjko commentedon Nov 2, 2023
17 remaining items
andymanic commentedon Nov 5, 2023
Further update: I've realized that most mice seem to have constant power to one side and ground that power when you click. That will still work fine with OSLTT, but it needs the firmware change I've made to work. I'm going to solder to a mouse today and test out the mode. Hopefully with it being a change-state interrupt that'll be much more consistent.
Radyjko commentedon Nov 6, 2023
Vanri115 commentedon Nov 6, 2023
I just remembered that I heard optical switch have different pin assign. And I’m also curious that how you solder to the keyboard efficiently
Radyjko commentedon Nov 6, 2023
Radyjko commentedon Nov 6, 2023
Vanri115 commentedon Nov 6, 2023
I thought XLAT is doing same thing that OSLTT is doing I suppose… so this is exactly why made me start to solder 2pin wire to mice. XLAT also demand to solder.
Radyjko commentedon Nov 6, 2023
andymanic commentedon Nov 6, 2023
@Radyjko XLAT looks pretty cool, I'll have to look up more about how that works.
Further update on the 2 pin mode: I realised I made a mistake with the amount of resistance on the input side. It's way too low. If you solder a resistor in-line with the input lead, something like 1M ohm, the stability increases significantly. Alternatively you can replace R7 on the PCB - it's an 0805 SMD resistor.
Vanri115 commentedon Nov 6, 2023
well yes XLAT does look promising. but I might wait for finalmouse to start selling them, because I could not find any case for STM32F746G…
I soldered 1Mohm to input line but still getting big latency like 10-30ms. shoud I just wait for the newest update?
Radyjko commentedon Nov 8, 2023
andymanic commentedon Nov 8, 2023
@Radyjko I'm still working on making the interrupt mode work - with my current build the test doesn't work at all. Once I have it functioning again I'll send it over.
Radyjko commentedon Nov 9, 2023
Hi guys!
I've just built XLAT and it works damn good. U can customize it to check for power rise of fall as trigger.
Unfortunately idk why it works only with mouses, keyboards are correctly recognized by USB, but keypresses don't work.
BUT
I was able to modify mine to do what i was looking for - measure time from the exact touch of the key to keypress registered
I did it by connecting a 5V power adapter to the whole thing. Left key is covered with tin foil and connected to negative pole of adapter, and i'm striking key with metal rod connected to the positive end. When the ends meet voltage drops and that's the trigger.
Roughly it looks like this:
(work in progress ofc)
Hi guys!
I've just built XLAT and it works damn good. U can customize it to check for power rise of fall as trigger.

Unfortunately idk why it works only with mouses, keyboards are correctly recognized by USB, but keypresses don't work.
BUT
I was able to modify mine to do what i was looking for - measure time from the exact touch of the key to keypress registered
I did it by connecting a 5V power adapter to the whole thing. Left key is covered with tin foil and connected to negative pole of adapter, and i'm striking key with metal rod connected to the positive end. When the ends meet voltage drops and that's the trigger.
Roughly it looks like this:
(work in progress ofc)
Right now i have to check it for the consistency and compare few mouses.
I'll let you know how it goes!
Right now i have to check it for the consistency and compare few mouses.
I'll let you know how it goes!
andymanic commentedon Nov 10, 2023
@Radyjko - I've confirmed that this mode actually works now so here you go. OSLTT.ino.bin.zip
To be clear, this isn't a final release firmware as this has the interrupt style hard-coded as RISING, when at some point I'll be adding a UI option to choose between RISING and FALLING and adding some code to de-register then re-register the interrupt with the given mode. Still, if you want to test this, go for it. You should be able to use the OSLTTFlashTool.exe in the repo (I've changed it to use a file picker) to flash the custom file.
Radyjko commentedon Nov 23, 2023
Hi,
finally i've got some time to work on this, but i can't launch the FlashTool - it seems to not be opening.
I've tried Admin, antivir disabled, win defender off etc - nothing seems to be working.
Even on my 2nd pc I can't get this to launch.
The only message i get is the admin prompt, and with the first launch defender smartscreen, where I click to run it anyway.
When i try to open it it briefly shows in Task Manager thant disappears and nothing more happens
I've asked friend of mine to try this and he managed to open it without any problem.
Do you have any idea what may be the cause?
Can you please help me?
Vanri115 commentedon Nov 28, 2023
Hi, I think I figured out why I'm getting 0.2ms for the mouse click latency test.
When I click the button it registers correctly, but when the sound is too small for mic to pick up, it hangs.
I tried click really hard and let OSLTT count every single click it gives me correct result,
but when I miss click one out of n, it hangs up and gives me 0.2ms.