Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. kylebuttress
    3. Best
    K
    • Continue chat with kylebuttress
    • Start new chat with kylebuttress
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by kylebuttress

    • RE: Threading

      @kylebuttress

      Just a FYI for anyone interested. After some experimenting I found the _thread works with micro python, which I wasn't aware of.

      So threading works just how you think.

      cheers

      posted in Micropython
      K
      kylebuttress
    • RE: M5 Core2 and unit UHF-RFID are bugged in UIFlow (bytes index out of range)

      @tinkerer

      I'm using the same Unit with M5Paper and its working very well. I did get a similar error when I was first starting my project.

      I did eventually get it working with the following set up.

      uhf_rfid_0.set_region(uhf_rfid_0.REGIN_US)
      uhf_rfid_0.automatic_freq_hopping(0xFF)
      uhf_rfid_0.set_channel_freq(924.25)
      epc_bool = 0
      uhf_rfid_0.set_select_mode(0x01)

      and then start waiting for tags with
      def reader():
      temp = None
      count = None
      clean = None
      while True:
      count += 1

          # while not temp:
          temp = uhf_rfid_0.single_polling()
      
          if temp:
              # label10.setText(str(temp))
              print("-----")
              print(temp[0])
              print(temp[1])
              print("-----")
      

      this is on a separate thread and works quite well for my requirements.

      The other issue I had and not sure if it was because I did not read correctly however. it works with the following tags (UHF RFID Tag ISO18000-6C)

      Not sure if it helps, but I hope it offers some info thats of use.

      reagrds

      Kyle

      posted in Bug Report
      K
      kylebuttress