Comments (7)
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.
still not working ,for help,readers cant read the tag data
from pi-rc522.
i use gpio expansion board to set up two readers in one raspberry ,but the program not work
from pi-rc522.
please help ....
from pi-rc522.
@EVENFATE
I present a solution here: https://github.com/erivandoramos/TwoRC522RPi
from pi-rc522.
@ondryaso I guess this issue can be closed.
from pi-rc522.
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)
- how to write the UID? HOT 2
- get_access_bits function not callable HOT 1
- continous reading fails after 16-20 reads HOT 1
- stuck at wait_for_tag() HOT 11
- what pin can I remove? HOT 1
- getting E1 or E2 error HOT 5
- Cannot import on Beaglebone
- Errno 2 directory does not exist HOT 8
- KeyChange
- How can use the SPI1 ? HOT 1
- How to reduce electromagnetic emissions? HOT 1
- Reader not reading certain Card HOT 3
- New release on pypi possible? HOT 2
- pi-rc522 not working with spidev 3.5 HOT 1
- SPI1 instead of SPI0
- Reader not reading HOT 2
- rdr.auth_a Write not work
- About RSSI
- URL points to wrong repo HOT 3
- Wait for card removal method
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pi-rc522.