<?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[RFID-Unit Reading and Writing do not work in UIFlow]]></title><description><![CDATA[<p dir="auto">Hello<br />
I am using a M5StickC with the RFID-Unit from M5Stack and I am not able to find a solution for my Problem on the internet. Everyone using RFID-Units is only using the UID of their Tags but I also want to Read and Write into Storage Blocks. So I am using UIFlow to programm and there is a libary from M5 but "write "" to address X" and "read String from address X" seem not to be working. I tried it out a few times now and all i can get is if a card is near and the UID but thats not what I want.<br />
Please Help Me</p>
]]></description><link>https://community.m5stack.com/topic/2535/rfid-unit-reading-and-writing-do-not-work-in-uiflow</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 17:54:50 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2535.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 01 Dec 2020 08:39:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to RFID-Unit Reading and Writing do not work in UIFlow on Tue, 15 Dec 2020 16:52:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/endurojunky" aria-label="Profile: endurojunky">@<bdi>endurojunky</bdi></a> I am glad you got it to work. :)</p>
<p dir="auto">I couldn't get my RFID unit working in the beginning too, so I used an Android app for testing. That app tells you what keys it used to access the individual sectors. I then google for rfid default keys and found the link I mentioned. The UIFlow block doesn't allow to change the keys, so I looked at the source code of UIFlow. That source unfortunately wasn't update for two years, but the RFID unit is in there. There I found the default key being used: <a href="https://github.com/m5stack/UIFlow-Code/blob/master/units/_rfid.py#L284" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/UIFlow-Code/blob/master/units/_rfid.py#L284</a>. This also helped me to find out how to set the keys.</p>
]]></description><link>https://community.m5stack.com/post/11220</link><guid isPermaLink="true">https://community.m5stack.com/post/11220</guid><dc:creator><![CDATA[sodoku]]></dc:creator><pubDate>Tue, 15 Dec 2020 16:52:43 GMT</pubDate></item><item><title><![CDATA[Reply to RFID-Unit Reading and Writing do not work in UIFlow on Tue, 15 Dec 2020 07:22:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sodoku" aria-label="Profile: sodoku">@<bdi>sodoku</bdi></a> Thank you for your quick answer! It worked really well. How did you know this? As I researched I did not found anything about this. But im really glad that you helped me.</p>
<p dir="auto">My running code for reading and writing looks as followed:<br />
if rfid0.isCardOn():<br />
label0.setText(str(rfid0.readUid()))<br />
rfid0.writeBlock(4,'Test', keyB=[0xFF,0xFF,0xFF,0xFF,0xFF,0xFF])<br />
label1.setText(str(rfid0.readBlockStr(4, keyB=[0xFF,0xFF,0xFF,0xFF,0xFF,0xFF])))<br />
else:<br />
label0.setText('UID')<br />
label1.setText('Text')</p>
]]></description><link>https://community.m5stack.com/post/11208</link><guid isPermaLink="true">https://community.m5stack.com/post/11208</guid><dc:creator><![CDATA[endurojunky]]></dc:creator><pubDate>Tue, 15 Dec 2020 07:22:59 GMT</pubDate></item><item><title><![CDATA[Reply to RFID-Unit Reading and Writing do not work in UIFlow on Tue, 01 Dec 2020 17:30:35 GMT]]></title><description><![CDATA[<p dir="auto">You might be using the wrong key to authenticate to the RFID sectors. See <a href="https://stackoverflow.com/questions/56225136/mifare-classic-standard-keys" target="_blank" rel="noopener noreferrer nofollow ugc">https://stackoverflow.com/questions/56225136/mifare-classic-standard-keys</a></p>
<p dir="auto">For my Mifare Classic tag, I go lucky with using FFFFFFFFFFFF as key B to access sector 4. Unfortunately they key cannot be changed in the UIFlow block, you have to manually change it in the Python code. For example:</p>
<pre><code class="language-python">label0.setText(str(rfid0.readBlockStr(4, keyB=[0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF])))
</code></pre>
]]></description><link>https://community.m5stack.com/post/10973</link><guid isPermaLink="true">https://community.m5stack.com/post/10973</guid><dc:creator><![CDATA[sodoku]]></dc:creator><pubDate>Tue, 01 Dec 2020 17:30:35 GMT</pubDate></item></channel></rss>