Giter Club home page Giter Club logo

Comments (7)

Thmas47051 avatar Thmas47051 commented on August 15, 2024

Solved.
The trick was:
rdr2 = RFID.RFID("/dev/spidev0.0",pin_ce=24)
rdr1 = RFID.RFID("/dev/spidev0.1",pin_ce=26)

Bye,
Thomas
`
import RFID
import signal
import time

run = True

rdr2 = RFID.RFID("/dev/spidev0.0",pin_ce=24)
rdr1 = RFID.RFID("/dev/spidev0.1",pin_ce=26)

def end_read(signal,frame):
global run
print ("\nCtrl+C captured, ending read.")
run = False
rdr1.cleanup()
rdr2.cleanup()

signal.signal(signal.SIGINT, end_read)

print ("\nStarting")
while run:
print("\n******")
(error, data) = rdr1.request()
if not error:
print ("\nDetected: " + format(data, "02x"))

    (error, uid) = rdr1.anticoll()
    if not error:
      print ("Card read UID IN : "+str(uid[0])+","+str(uid[1])+","+str(uid[2])+","+str(uid[3]))
(error, data) = rdr2.request()
if not error:
    print ("\nDetected: " + format(data, "02x"))
    (error, uid) = rdr2.anticoll()
    if not error:
      print ("Card read UID OUT : "+str(uid[0])+","+str(uid[1])+","+str(uid[2])+","+str(uid[3]))

`

from pi-rc522.

EVENFATE avatar EVENFATE commented on August 15, 2024

still not working ,for help,readers cant read the tag data

from pi-rc522.

EVENFATE avatar EVENFATE commented on August 15, 2024

i use gpio expansion board to set up two readers in one raspberry ,but the program not work

from pi-rc522.

EVENFATE avatar EVENFATE commented on August 15, 2024

please help ....

from pi-rc522.

 avatar commented on August 15, 2024

@EVENFATE
I present a solution here: https://github.com/erivandoramos/TwoRC522RPi

from pi-rc522.

LudwigKnuepfer avatar LudwigKnuepfer commented on August 15, 2024

@ondryaso I guess this issue can be closed.

from pi-rc522.

PsuFan avatar PsuFan commented on August 15, 2024

You forgot the rst pin.

rdr1 = RFID.RFID(device=0, pin_ce=24, pin_rst=22)
rdr2 = RFID.RFID(device=1, pin_ce=26, pin_rst=18)

edit: is the rst pin required? Can you chain them? I've seen some wiring rst together...
https://stackoverflow.com/questions/39561220/two-rfid-rc522-raspberry-pi-2-windows-iot?rq=1

from pi-rc522.

Related Issues (20)

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.