Cipulot / xlat

XLAT USB-HID Latency Measurement Tool

Home Page:https://www.finalmouse.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Finalmouse XLAT Mouse Latency Measurement Tool

XLAT logo

Build Status License

Table of Contents

πŸ™‹β€β™‚οΈ Introduction

The XLAT Mouse Latency Measurement Tool by Finalmouse is engineered to accurately measure the latency of wired and wireless mice. This manual provides a step-by-step guide on how to set up and use this tool.

XLAT overview video:
XLAT overview video

πŸ€” Reason for creating XLAT

The inception of the XLAT Mouse Latency Measurement Tool stemmed from a need to address the shortcomings of existing latency measurement methodologies, particularly concerning mouse latency. Here are the key motivators behind the creation of XLAT:

  1. Specific Focus on Mouse Latency:
  • Previous methods were either rudimentary or did not focus specifically on mouse latency, making it difficult to obtain precise measurements for this critical aspect of system performance.
  1. System-wide Latency Measurement:
  • Other techniques measured complete system latency, encompassing OS, GPU, and screen delay, which could obfuscate the true latency of the mouse itself.
  1. Limitations of Audio-Based Methods:
  • Some methods relied on audio, which is too slow to measure the minuscule latency numbers associated with mouse clicks accurately.
  1. Lack of Accessible, High-Quality Alternatives:
  • While accurate measurements could be obtained using high-end equipment like expensive logic analyzers, USB analyzers, or oscilloscopes, these tools are not only costly but also complex to use. There was a distinct lack of easy-to-use, high-quality, and affordable alternatives in the market.
  1. Single Source of Truth:
  • XLAT is intended as a "single source of truth" for mouse latency measurement. It's repeatable, affordable, easy to use, and can be independently verified for accuracy since it's open source. This level of reliability and transparency positions XLAT as an invaluable tool for those seeking precise and trustworthy mouse latency measurements. Additionally, check out our latency database

XLAT was developed to fill these gaps, providing a specialized, accessible, and cost-effective solution for accurately measuring mouse latency, making it an invaluable tool for both enthusiasts and professionals alike.

πŸ’» Required hardware

Ensure you have at least the following hardware available:

  1. Finalmouse XLAT or STM32F746G-DISCO devkit
  2. Micro-USB to USB-A Adapter
  3. Mini-USB Cable
  4. The USB mouse you want to test

πŸ“— Setup Procedure

1. Power Supply:

  • Connect the mini-USB cable to the XLAT device and a power source to supply power to the XLAT device.

2. USB Connection:

  • For wired mice: Connect the USB plug of the mouse directly to the USB OTG port of the XLAT tool using the supplied Micro-USB to USB-A adapter.
  • For wireless mice: Connect the USB plug of the wireless receiver dongle to the USB OTG port of the XLAT tool using the supplied Micro-USB to USB-A adapter.

3. Special Cable Connection:

  • Create a custom cable with two connectors: one for GROUND (black cable) and one for the left button click (red cable).
  • Modify the mouse to have connectors for the GROUND and left button click.
  • Connect the GROUND (black cable) and left button click (red cable) of the mouse to the respective ports on the XLAT tool.

4. Device Recognition:

  • Upon successful connection of the mouse via USB, the XLAT tool should display the device name along with the VID:PID (Vendor ID: Product ID) in the top right corner of the screen.

🎯 Accuracy of XLAT

XLAT boasts a high degree of accuracy in its measurements, due to the firmware running on an onboard microcontroller. This low-level, lightweight design ensures highly accurate and reliable measurements. The firmware is open source, and it's contained in the git repository you're looking at right now.

🀫 How XLAT Measures Click Latency

XLAT measures click latency by accurately measuring the time between the mouse button click (measured electrically) and the corresponding USB packet coming in, sent by the mouse, which contains the button click data. This measurement is reported in microseconds (Β΅s).

User Interface

  • CLEAR Button: Clears the measurement results and allows you to start over.
  • REBOOT Button: Reboots the device and re-initializes the connected USB device.
  • SETTINGS Button: Takes you to the settings page where you can configure the tool.
  • TRIGGER Button: Activates the "auto-trigger" functionality where XLAT will attempt to automatically click the mouse for you, eliminating the need for manual clicks.

Measurement Procedure

1. Initiate Measurement:

  • Press the "TRIGGER" button if your mouse supports the auto-trigger functionality, or manually click the mouse to begin measuring click latency.
  • (Provide any additional steps on how to initiate the measurement, e.g., software to launch, etc.)

2. Analyze Results:

  • For every click registered, results will be displayed on screen immediately. You'll find the latest latency measurements, as well as both the average and standard deviation, along with the number of registered clicks. In addition, the data may be exported over a virtual COM port.

3. Resetting and Re-testing:

  • Use the "CLEAR" button to clear previous measurements and start over, or the "REBOOT" button if a re-initialization of the connected USB device is needed.

Troubleshooting

  • LCD Issues:
    • If the LCD doesn't properly initialize or contains artifacts, reboot the device by pressing the "REBOOT" button or power cycling the XLAT device.

πŸ’ Support

For further assistance or inquiries, contact Finalmouse support via email at support@finalmouse.com or on Discord.

License

The software is licensed under the GPLv3 license. See COPYING for more information. The libraries used are licensed under their respective licenses. See LICENSES / LICENSE.txt or similar for more information.

Conclusion

The XLAT Mouse Latency Measurement Tool provides an accurate method for measuring mouse latency, aiding in achieving optimal performance for a competitive edge.

About

XLAT USB-HID Latency Measurement Tool

https://www.finalmouse.com/

License:GNU General Public License v3.0


Languages

Language:C 98.3%Language:Assembly 1.0%Language:Python 0.4%Language:C++ 0.1%Language:HTML 0.1%Language:CMake 0.0%Language:Ruby 0.0%Language:Shell 0.0%Language:Makefile 0.0%Language:Handlebars 0.0%