Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Listen to RFID input device
Forum Updated to NodeBB v4.3 + New Features

Listen to RFID input device

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 4.0k Views 1 Watching
  • 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
    Schneidi
    wrote on last edited by
    #1

    Hello guys on my current project I have to implement a user authentication via RFID reader.

    The user gets an RFID key. The system provides the RFID scanner. When the user want to access the application he/she has to login with his/her RFID key.

    How can I listen to such input device and emit signals on input detection ?
    The RFID reader acts like a keyboard device. You scan the RFID chip and get an ID.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Is it seen like a keyboard or is it a serial device that sends char ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Schneidi
        wrote on last edited by
        #3

        Hi,

        currently it acts like a keyboard.
        What I need is to read the scanner input like a Stream or something like that
        and prevent it from acting like a keyboard.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mbertschi
          wrote on last edited by
          #4

          Schneidi,

          As far as I know it isn't possible to reconfigure RFID readers which act like a keyboard to behave in a way that they submit a stream. This problem is well-known, the same problem exists with Barcode scanners which emulate a keyboard. This stuff is just not reliable, and leads to confusion with the "real" keyboard input. You might use keyboard emulated devices when there is no physical keyboard available, but I guess that is rarely the case.

          If you want to read the device input like a stream, you need to use a RFID scanner which is connected as a serial device and is accessible over a system COM port. If you are using COM ports, I highly recommend you to use the QSerialPort class which was introduced with Qt 5.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Schneidi
            wrote on last edited by
            #5

            Ok thank you. I guess I have to set up the system in a different way.
            I will do a little research and try to find a solution.

            If I find one I will let you know.

            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