🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5Dial UiFlow 2.0.1 RFID scanning issue

    UiFlow 2.0
    2
    3
    1.4k
    Loading More Posts
    • 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.
    • K
      kumsat
      last edited by kumsat

      I'm testing out rfid scan feature on M5Dial. I have the blockly code as in the screenshot attached. When I run the code, the very first rfid card scan works fine in reading the content of the card. Recurring rfid card scan takes either 20-50 seconds or just don't get scanned.
      And every now and then I get ETIMEDOUT error. I tried a while loop to look for a RFID card presence before reading from address 4. Seems to have helped with timeout error but still seeing significant delays beyond the first scan. Appreciate any help.

      Note: The factory default program for M5Dial RFID works very well in scanning UID and displaying without any delays.
      I have almost identical code for M5Stick Plus with RFID module attached. I didn't have this issue.

      0_1708722370850_rfid_read.png

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by felmue

        Hello @kumsat

        try adding a rfid close block when you are done reading from addr. E.g. before the 200 ms delay.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        K 1 Reply Last reply Reply Quote 0
        • K
          kumsat @felmue
          last edited by

          @felmue That seems to have fixed the issue. Thanks for your help.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post