simonmonk / clever_card_kit Goto Github PK
View Code? Open in Web Editor NEWSource code for the Python programs used in the MonkMakes Smartcard Kit for Raspberry Pi.
License: MIT License
Source code for the Python programs used in the MonkMakes Smartcard Kit for Raspberry Pi.
License: MIT License
Hi,
first of all thank you for you SimpleReader. It works fine :)
Do you have any idea to read faster? We have the RFID reader under remote-controlled cars and the Tags lie on the ground. The problem is, that the cars drive too fast over the tags, so that the reader can't read.
We have no idea to improve that. Maybe you have an idea? :)
Thank you :)
Hi, I am trying to use this reader to read an RFID device in someones hand. https://dangerousthings.com/shop/xm1-plus/
We are not having a lot of luck, it requires a lot of moving the hand around the reader to get it working.
I've read that it's possible to increase the gain of the reader. I tried looking for a method in your code, but couldn't see anything that would let me increase the gain of the reader.
Can you help?
I see that 1 CPU core is at 100% usage when I run 01_read.py script.
There is this while 1 loop, but it blocks somewhere inside.
Is there a work around - What could be done to fix this ?
Hi,
I'm experiencing an issue where the python script hangs and the rfid reader crashes. The script is based off the SimpleMFRC522 library. Have you experience this before?
My current code is this:
`reader = SimpleMFRC522()
try:
# Welcome message
print("Welcome to the MFRC522 data read example")
print("Press Ctrl-C to stop.")
id = None
while True:
dbConnection = pymysql.connect(
host=config.host, user=config.user, passwd=config.passd, db=config.dbname, charset='utf8mb4', cursorclass=pymysql.cursors.DictCursor)
cur = dbConnection.cursor()
# Get the UID of the card
id = reader.read_id()
print(id)
cur.execute("SELECT * FROM access_list_2 WHERE rfid_code = %s;", (id,))
if cur.rowcount != 1:
print ("Access Denied")
# Log access attempt
cur.execute("INSERT INTO access_log SET rfid_presented = %s, rfid_presented_datetime = NOW(), rfid_granted = 0", (id,))
dbConnection.commit()
id = None
dbConnection.close()
else:
GPIO.output(12, GPIO.HIGH)
# Log access attempt
cur.execute("INSERT INTO access_log SET rfid_presented = %s, rfid_presented_datetime = NOW(), rfid_granted = 1", (id,))
dbConnection.commit()
time.sleep(5)
GPIO.output(12, GPIO.LOW)
id = None
dbConnection.close()
time.sleep(1)
except:
logging.exception("message")
finally:
GPIO.cleanup()
raise
`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.