Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Missing characters when 2D datamatrix barcode is scanned
Qt 6.11 is out! See what's new in the release blog

Missing characters when 2D datamatrix barcode is scanned

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 642 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SMario
    wrote on last edited by
    #1

    Hi All,

    I am facing an issue with scanned 2D datamatrix barcode where I see different characters missing on scans. This issue is happening only on Linux. GD4500 Datamatrix Scanner works as keyboard wedge here and I use event filter installed on qApp (QGuiApplicaiton) to read the scanned data. I see that data is missing when I put qDebug inside event filter.

    bool USBPortReader::eventFilter(QObject *obj, QEvent *event)
    {
        Q_UNUSED(obj);
    
        if (event->type() == QEvent::KeyPress)
        {
            QKeyEvent *keyEvent = static_cast<QKeyEvent *>(event);
    
            qDebug() << "Recieved data : " << keyEvent->text();
    

    I tested, using evtest applicaiton to see if we recieve all data from the driver and it prints all data in barcode everytime I scan.

    I tried changed the USB Keyboard speed of the barcode scanner from 1 ms to 10 ms and it improves the scans (fewer characters are missing afterwards). Cannot increase more than 10 ms as it is the max supported by scanner.

    I wanted to try setting keyboardInputInterval property but it is only available for QApplication and not for QGuiApplication. Can someone help me on how I can adjust the setting on QGuiApplicaiton ? I cannot set this directly on X11 as our embedded applicaiton uses eglfs/framebuffer.

    Any leads or support is highly appreciated. Thank you in advance.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      robert1997b
      wrote on last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved