<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[UHF RFID on a M5Core2]]></title><description><![CDATA[<p dir="auto">Hi!<br />
I’ve been trying to compile the demo sketch for multiple reads.</p>
<p dir="auto">With some tweaking I was able to compile the demo single read sketch... But i have not been able to compile the multiple read.</p>
<p dir="auto">I've switched the library: #include &lt;M5Core2.h&gt; and also the ports for the serial comm:<br />
Serial2.begin(115200, SERIAL_8N1, 33, 32);</p>
<p dir="auto">But i could not make the multiple read sketch to compile.</p>
<p dir="auto">Actually, not sure if I'm having problems with this part of the code:<br />
RFID.Set_transmission_Power(2600);<br />
RFID.Set_the_Select_mode();<br />
RFID.Delay(100);<br />
RFID.Readcallback();<br />
RFID.clean_data();</p>
<p dir="auto">or this one:<br />
cards = RFID.Multiple_polling_instructions(6);<br />
for (size_t i = 0; i &lt; cards.len; i++)<br />
{<br />
if(cards.card[i]._EPC.length() == 24)<br />
{<br />
Serial.println("RSSI :" + cards.card[i]._RSSI);<br />
Serial.println("PC :" + cards.card[i]._PC);<br />
Serial.println("EPC :" + cards.card[i]._EPC);<br />
Serial.println("CRC :" + cards.card[i]._CRC);<br />
}<br />
}<br />
Serial.println(" ");<br />
RFID.clean_data();</p>
<p dir="auto">Does anyone have aby thoughts on where to problem could be?</p>
]]></description><link>https://community.m5stack.com/topic/4639/uhf-rfid-on-a-m5core2</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Mar 2026 15:32:21 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4639.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 22 Sep 2022 20:29:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to UHF RFID on a M5Core2 on Fri, 13 Oct 2023 22:33:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/58685">@clabbersja</a></p>
<p dir="auto">Sure, this is running on a M5Paper, though I have had something very similar running on a M5Core, This is the small segment of an app written for long rang tag reading at a workshop to track keys and other equipment. I have kept in the tag reading portion. I hope this helps. Some of it is not needed for the reading, just too lazy to remove from the snippet.</p>
<pre><code>from m5stack import *
from m5ui import *
from uiflow import *
import wifiCfg
import time
import unit
import _thread
import os
import random
import urequests
from m5stack import touch


setScreenColor(15)
buzzer_1 = unit.get(unit.BUZZER, unit.PORTB)
uhf_rfid_0 = unit.get(unit.UHF_RFID, unit.PORTC)

version = 0.89
EPC = None
epc_bool = None
temp = None
tagList = []
TouchCordx = None
TouchCordy = None
rsense = 2
readerKey = None
businessKey = None

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)

print("Beapnow Reader : " + str(version))
print("---")

def genKey(length):
    letters = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
    result_str = ''.join(random.choice(letters) for i in range(length))
    return result_str

def SetTouchCordenate():
    global TouchCordx, TouchCordy
    print("Setting Touch")
    TouchCordx, TouchCordy, s, status = touch.read()
    print(TouchCordx)
    print(TouchCordy)


def uhf_rfid_cb(epc_no, dBm):
    global EPC, epc_bool, temp
    EPC = epc_no
    _ = dBm
    # label5.setText(str(EPC))
    print("2")
    print("---")
    pass

# while not epc_bool:
#  epc_bool = uhf_rfid_0.multiple_polling_read(uhf_rfid_cb, 100)
# while not (uhf_rfid_0.select_tag_param(EPC)):
#  pass

ssid = None
pc = None
keyboard = None
sett = True
sim = True
bz = False
readerBool = True
touchBool = False
bzfreq = 500
la = []
ba = []
alphabet = [
    "0",
    "1",
    "2",
    "3",
    "4",
    "5",
    "6",
    "7",
    "8",
    "9",
    "a",
    "b",
    "c",
    "d",
    "e",
    "f",
    "g",
    "h",
    "i",
    "j",
    "k",
    "l",
    "m",
    "n",
    "o",
    "p",
    "q",
    "r",
    "s",
    "t",
    "u",
    "v",
    "w",
    "x",
    "y",
    "z",
]
tu = False
ltime = 0
dsc = 0
rr0 = None
rr1 = None
rr2 = None
rr3 = None
rr4 = None
rr5 = None
rr6 = None
rr7 = None

label0 = M5TextBox(502, 25, "Beapnow Tag Reader", lcd.FONT_DejaVu40, 0, rotate=90)
labelVersion = M5TextBox(
    460, 30, "version: " + str(version), lcd.FONT_Default, 0, rotate=90
)

circle0 = M5Circle(492, 904, 30, 12, 0)
rectangle0 = M5Rect(290, 875, 60, 60, 12, 0)
rectangle1 = M5Rect(380, 875, 60, 60, 12, 0)
label1 = M5TextBox(334, 815, "Wifi", lcd.FONT_DejaVu24, 0, rotate=90)
label2 = M5TextBox(420, 663, "Read Sensitivity", lcd.FONT_DejaVu24, 0, rotate=90)
rs2 = M5TextBox(420, 882, "High", lcd.FONT_DejaVu18, 0, rotate=90)
label3 = M5TextBox(501, 770, "Wifi off", lcd.FONT_DejaVu24, 0, rotate=90)
label9 = M5TextBox(501, 620, "Waiting...", lcd.FONT_DejaVu24, 0, rotate=90)
label7 = M5TextBox(512, 892, "", lcd.FONT_DejaVu40, 0, rotate=90)

rectangle7 = M5Rect(170, 307, 200, 410, 14, 0)
label12 = M5TextBox(334, 322, "Tag #", lcd.FONT_DejaVu40, 0, rotate=90)
label13 = M5TextBox(331, 446, "1234567890", lcd.FONT_DejaVu40, 0, rotate=90)
label14 = M5TextBox(276, 431, "READ Success", lcd.FONT_DejaVu24, 0, rotate=90)
label15 = M5TextBox(227, 461, "Date Time", lcd.FONT_DejaVu24, 0, rotate=90)

def touchScreen():
    global touchBool, ssid, pc, tu
    print("Waiting for touch")
    btty = 6
    while True:
        if touch.status():
            print(str(touch.read()))
            
        wait_ms(5)


def reader():
    global bz, dsc, ltime, readerBool,rsense

    temp = 0
    count = 0
    clean = 0
    print("Waiting for RFID")
    print("sensitivity = "+str(rsense))
    while True:
        ltime += 1

        # while not temp:
        temp = uhf_rfid_0.single_polling()

        if temp:
            label13.setText(str(temp[0]))
            print("-----")
            print(temp[0])
            print(temp[1])
            print("-----")
            count += 1
            lcd.show()
        wait_ms(2)
    
def file_exists(filename):
    try:
        return (os.stat(filename)[0] &amp; 0x4000) == 0
    except OSError:
        return False
    
def readSense():
    global rsense
    print("changing rsense")
    if rsense == 2:
      rsense = 5
      rs2.setText("Low")
    else:
      rsense = 2
      rs2.setText("High")
    lcd.partial_show(370, 875, 60, 60)  
    
    
def checkConfig():
	# some check here
	
	return True

def startTime():
    print("START TIME")


#    time = 0
#    loop = True
#    while loop:
#        if time &gt; 29:
#            logTags()
#            loop = False
#        time += 1
#        print(time)
#        wait(.95)


label13.setText("")
ssid = ""
pc = ""
lcd.show()

_thread.start_new_thread(touchScreen, ())

if checkConfig():
    _thread.start_new_thread(reader, ())
    print("Ready for tags")
else:
    print("waiting for register")







</code></pre>
]]></description><link>https://community.m5stack.com/post/22467</link><guid isPermaLink="true">https://community.m5stack.com/post/22467</guid><dc:creator><![CDATA[kylebuttress]]></dc:creator><pubDate>Fri, 13 Oct 2023 22:33:59 GMT</pubDate></item><item><title><![CDATA[Reply to UHF RFID on a M5Core2 on Fri, 13 Oct 2023 18:00:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/2661">@kylebuttress</a> Do you happen to still have the code for this project? Is it possible you could send it?</p>
]]></description><link>https://community.m5stack.com/post/22460</link><guid isPermaLink="true">https://community.m5stack.com/post/22460</guid><dc:creator><![CDATA[clabbersja]]></dc:creator><pubDate>Fri, 13 Oct 2023 18:00:33 GMT</pubDate></item><item><title><![CDATA[Reply to UHF RFID on a M5Core2 on Wed, 09 Nov 2022 14:34:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/25584">@gleon</a> said in <a href="/post/18695">UHF RFID on a M5Core2</a>:</p>
<blockquote>
<p dir="auto">Hi!<br />
I’ve been trying to compile the demo sketch for multiple reads.</p>
<p dir="auto">With some tweaking I was able to compile the demo single read sketch... But i have not been able to compile the multiple read.</p>
<p dir="auto">I've switched the library: #include &lt;M5Core2.h&gt; and also the ports for the serial comm:<br />
Serial2.begin(115200, SERIAL_8N1, 33, 32);</p>
<p dir="auto">But i could not make the multiple read sketch to compile.</p>
<p dir="auto">Actually, not sure if I'm having problems with this part of the code:<br />
RFID.Set_transmission_Power(2600);<br />
RFID.Set_the_Select_mode();<br />
RFID.Delay(100);<br />
RFID.Readcallback();<br />
RFID.clean_data();</p>
<p dir="auto">or this one:<br />
cards = RFID.Multiple_polling_instructions(6);<br />
for (size_t i = 0; i &lt; cards.len; i++)<br />
{<br />
if(cards.card[i]._EPC.length() == 24)<br />
{<br />
Serial.println("RSSI :" + cards.card[i]._RSSI);<br />
Serial.println("PC :" + cards.card[i]._PC);<br />
Serial.println("EPC :" + cards.card[i]._EPC);<br />
Serial.println("CRC :" + cards.card[i]._CRC);<br />
}<br />
}<br />
Serial.println(" ");<br />
RFID.clean_data();</p>
<p dir="auto">Does anyone have aby thoughts on where to problem could be?</p>
</blockquote>
<p dir="auto">Gleon,<br />
What Sketch do you use?<br />
You can't see EPC or Aton Lite or Core2<br />
Thank s</p>
]]></description><link>https://community.m5stack.com/post/19239</link><guid isPermaLink="true">https://community.m5stack.com/post/19239</guid><dc:creator><![CDATA[Bat21]]></dc:creator><pubDate>Wed, 09 Nov 2022 14:34:08 GMT</pubDate></item><item><title><![CDATA[Reply to UHF RFID on a M5Core2 on Mon, 07 Nov 2022 13:41:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/2661">@kylebuttress</a><br />
Hello,<br />
Yes, they are the ones I have EPC Global UHF Class 1 Gen 2 / ISO 18000-6C uses them Decathlon. I have Core 2 and Atom Lite, it does not work in any of the cases.<br />
IIFOW does not work for examples and Arduino Libreria either.</p>
<p dir="auto">Thank you</p>
]]></description><link>https://community.m5stack.com/post/19229</link><guid isPermaLink="true">https://community.m5stack.com/post/19229</guid><dc:creator><![CDATA[Bat21]]></dc:creator><pubDate>Mon, 07 Nov 2022 13:41:35 GMT</pubDate></item><item><title><![CDATA[Reply to UHF RFID on a M5Core2 on Mon, 07 Nov 2022 13:00:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/2661">@kylebuttress</a><br />
Hello<br />
I'm going to try, to see what kind of labels I have.<br />
Thank you</p>
]]></description><link>https://community.m5stack.com/post/19228</link><guid isPermaLink="true">https://community.m5stack.com/post/19228</guid><dc:creator><![CDATA[Bat21]]></dc:creator><pubDate>Mon, 07 Nov 2022 13:00:58 GMT</pubDate></item><item><title><![CDATA[Reply to UHF RFID on a M5Core2 on Mon, 07 Nov 2022 00:41:52 GMT]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">Not sure if this will help. I was in a similar situation. However I found I was using the incorrect Tag type. I needed the following tag type  ISO 18000-6C, EPC Class1 Gen2 standard protocol.</p>
<p dir="auto">Once I had these tags the example code worked as expected, I now have a functional unit that reads multiple tags using M5Paper and M5 Core with Micropython, and is working well for my project.</p>
]]></description><link>https://community.m5stack.com/post/19224</link><guid isPermaLink="true">https://community.m5stack.com/post/19224</guid><dc:creator><![CDATA[kylebuttress]]></dc:creator><pubDate>Mon, 07 Nov 2022 00:41:52 GMT</pubDate></item><item><title><![CDATA[Reply to UHF RFID on a M5Core2 on Wed, 09 Nov 2022 13:35:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/25584">@gleon</a><br />
Hello<br />
I am in your same situation, but I can´t even with simple reading.<br />
If you want we can work together since we have the same devices.<br />
IIFLOW examples do not work, the EPC only shows 6 characters.</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://community.m5stack.com/post/19223</link><guid isPermaLink="true">https://community.m5stack.com/post/19223</guid><dc:creator><![CDATA[Bat21]]></dc:creator><pubDate>Wed, 09 Nov 2022 13:35:59 GMT</pubDate></item></channel></rss>