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
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
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