Git Product home page Git Product logo

clever_card_kit's People

Contributors

simonmonk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

clever_card_kit's Issues

Read faster

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

Change gain of reader via Python lib

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?

100 % CPU while reading card

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 ?

Python script hanging

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
`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.