Guten Abend,
Heute kam endlich mein lang ersehnter RFID Reader (RC522).
als ich ihn angeschlossen und MFRC522 installiert habe funktionierte auch alles.
Nun zu meinem Problem:
Ich würde gerne, wie es die Überschrift schon sagt, ein Relais Board schalten.
(dieses lässt sich auch einzeln ansteuern funktioniert)
Leider verstehe ich nach stunden langem googeln nicht, wie ich das fertig bringe, dass bei einem bestimmten Tag ein bestimmtes Relais geschaltet wird.
python Read.py gibt folgendes aus:
pi@raspberrypi ~/MFRC522-python $ sudo python Read.py
Welcome to the MFRC522 data read example
Press Ctrl-C to stop.
Card detected
Card read UID: 213,145,204,229
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
^CCtrl+C captured, ending read.
wie kann ich nun auf diese UID reagieren?
außerdem lässt sich mit der Read.py nichts auf die Karte schreiben.
hier erhalte ich immer folgendes :
pi@raspberrypi ~/MFRC522-python $ sudo python Write.py
Card detected
Card read UID: 213,145,204,229
Size: 8
Sector 8 looked like this:
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Sector 8 will now be filled with 0xFF:
4 backdata &0x0F == 0x0A 10
Data written
It now looks like this:
Sector 8 [116, 97, 110, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]
Now we fill it with 0x00:
4 backdata &0x0F == 0x0A 10
Data written
It is now empty:
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
pi@raspberrypi ~/MFRC522-python $
Alles anzeigen
er schreibt es kurz, und überschreibt es dann wieder?
so sieht meine Write.py aus:
Last login: Sun Feb 12 21:13:44 on ttys000
jans-mbp:~ Jan$ ssh pi@192.168.178.101
ssh: connect to host 192.168.178.101 port 22: Operation timed out
jans-mbp:~ Jan$ ssh pi@192.168.178.101
ssh: connect to host 192.168.178.101 port 22: Operation timed out
jans-mbp:~ Jan$
jans-mbp:~ Jan$ ssh pi@192.168.178.101
^[[A^[[Assh: connect to host 192.168.178.101 port 22: Connection refused
jans-mbp:~ Jan$ ssh pi@192.168.178.101
ssh: connect to host 192.168.178.101 port 22: Connection refused
jans-mbp:~ Jan$ ssh pi@192.168.178.101
ssh: connect to host 192.168.178.101 port 22: Connection refused
jans-mbp:~ Jan$ ssh pi@192.168.178.101
pi@192.168.178.101's password:
Linux raspberrypi 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Feb 7 22:26:23 2017 from 192.168.178.232
pi@raspberrypi ~ $ sudo nano /boot/config.txt
pi@raspberrypi ~ $ sudo raspi-config
ERROR: could not insert 'spi_bcm2708': No such device
pi@raspberrypi ~ $ dmesg | grep spi
pi@raspberrypi ~ $ sudo reboot now
usage: reboot [-n] [-w] [-d] [-f] [-h] [-i]
-n: don't sync before halting the system
-w: only write a wtmp reboot record and exit.
-d: don't write a wtmp record.
-f: force halt/reboot, don't call shutdown.
-h: put harddisks in standby mode.
-i: shut down all network interfaces.
pi@raspberrypi ~ $ sudo reboot now
usage: reboot [-n] [-w] [-d] [-f] [-h] [-i]
-n: don't sync before halting the system
-w: only write a wtmp reboot record and exit.
-d: don't write a wtmp record.
-f: force halt/reboot, don't call shutdown.
-h: put harddisks in standby mode.
-i: shut down all network interfaces.
pi@raspberrypi ~ $ shutdown -h
shutdown: you must be root to do that!
Usage: shutdown [-akrhPHfFnc] [-t sec] time [warning message]
-a: use /etc/shutdown.allow
-k: don't really shutdown, only warn.
-r: reboot after shutdown.
-h: halt after shutdown.
-P: halt action is to turn off power.
-H: halt action is to just halt.
-f: do a 'fast' reboot (skip fsck).
-F: Force fsck on reboot.
-n: do not go through "init" but go down real fast.
-c: cancel a running shutdown.
-t secs: delay between warning and kill signal.
** the "time" argument is mandatory! (try "now") **
pi@raspberrypi ~ $ sudo shutdown -r
Usage: shutdown [-akrhPHfFnc] [-t sec] time [warning message]
-a: use /etc/shutdown.allow
-k: don't really shutdown, only warn.
-r: reboot after shutdown.
-h: halt after shutdown.
-P: halt action is to turn off power.
-H: halt action is to just halt.
-f: do a 'fast' reboot (skip fsck).
-F: Force fsck on reboot.
-n: do not go through "init" but go down real fast.
-c: cancel a running shutdown.
-t secs: delay between warning and kill signal.
** the "time" argument is mandatory! (try "now") **
pi@raspberrypi ~ $ sudo shutdown -r now
Broadcast message from root@raspberrypi (pts/0) (Tue Feb 14 14:57:54 2017):
The system is going down for reboot NOW!
pi@raspberrypi ~ $ Connection to 192.168.178.101 closed by remote host.
Connection to 192.168.178.101 closed.
jans-mbp:~ Jan$ ssh pi@192.168.178.101
ssh: connect to host 192.168.178.101 port 22: Connection refused
jans-mbp:~ Jan$ ssh pi@192.168.178.101
ssh: connect to host 192.168.178.101 port 22: Connection refused
jans-mbp:~ Jan$ ssh pi@192.168.178.101
ssh: connect to host 192.168.178.101 port 22: Connection refused
jans-mbp:~ Jan$ ssh pi@192.168.178.101
ssh: connect to host 192.168.178.101 port 22: Connection refused
jans-mbp:~ Jan$ ssh pi@192.168.178.101
ssh: connect to host 192.168.178.101 port 22: Connection refused
jans-mbp:~ Jan$
jans-mbp:~ Jan$
jans-mbp:~ Jan$ ssh pi@192.168.178.101
pi@192.168.178.101's password:
Linux raspberrypi 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Feb 14 14:53:09 2017 from 192.168.178.227
pi@raspberrypi ~ $ dmesg | grep spi
[ 8.213551] bcm2708_spi 20204000.spi: master is unqueued, this is deprecated
[ 8.218901] bcm2708_spi 20204000.spi: SPI Controller at 0x20204000 (irq 80)
pi@raspberrypi ~ $ sudo apt-get install git python-dev --yes
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version.
python-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 48 not upgraded.
pi@raspberrypi ~ $ git clone https://github.com/lthiery/SPI-Py.git
Cloning into 'SPI-Py'...
remote: Counting objects: 81, done.
remote: Total 81 (delta 0), reused 0 (delta 0), pack-reused 81
Unpacking objects: 100% (81/81), done.
pi@raspberrypi ~ $ cd SPI-py
-bash: cd: SPI-py: No such file or directory
pi@raspberrypi ~ $ cd SPI-Py
pi@raspberrypi ~/SPI-Py $ sudo python setup.py install
running install
running build
running build_ext
building 'spi' extension
creating build
creating build/temp.linux-armv6l-2.7
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c spi.c -o build/temp.linux-armv6l-2.7/spi.o
creating build/lib.linux-armv6l-2.7
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-armv6l-2.7/spi.o -o build/lib.linux-armv6l-2.7/spi.so
running install_lib
copying build/lib.linux-armv6l-2.7/spi.so -> /usr/local/lib/python2.7/dist-packages
running install_egg_info
Writing /usr/local/lib/python2.7/dist-packages/SPI_Py-1.0.egg-info
pi@raspberrypi ~/SPI-Py $ cd ..
pi@raspberrypi ~ $ git clone https://github.com/mxgxw/MFRC522-python.git && cd MFRC522-python
Cloning into 'MFRC522-python'...
remote: Counting objects: 60, done.
remote: Total 60 (delta 0), reused 0 (delta 0), pack-reused 60
Unpacking objects: 100% (60/60), done.
pi@raspberrypi ~/MFRC522-python $ sudo python read.py
python: can't open file 'read.py': [Errno 2] No such file or directory
pi@raspberrypi ~/MFRC522-python $ sudo python Read.py
Welcome to the MFRC522 data read example
Press Ctrl-C to stop.
Card detected
Card read UID: 213,145,204,229
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Card detected
Card read UID: 213,145,204,229
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Card detected
Card read UID: 133,228,14,136
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
^CCtrl+C captured, ending read.
pi@raspberrypi ~/MFRC522-python $ ls
Dump.py MFRC522.py MFRC522.pyc README.md Read.py Write.py
pi@raspberrypi ~/MFRC522-python $ sudo nano Write.py
pi@raspberrypi ~/MFRC522-python $ sudo python Write.py
Card detected
Card read UID: 133,228,14,136
Size: 8
Sector 8 looked like this:
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Sector 8 will now be filled with 0xFF:
4 backdata &0x0F == 0x0A 10
Data written
It now looks like this:
Sector 8 [74, 97, 110, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]
Now we fill it with 0x00:
4 backdata &0x0F == 0x0A 10
Data written
It is now empty:
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
pi@raspberrypi ~/MFRC522-python $ sudo python Read.py
/home/pi/MFRC522-python/MFRC522.py:113: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(22, GPIO.OUT)
Welcome to the MFRC522 data read example
Press Ctrl-C to stop.
Card detected
Card read UID: 133,228,14,136
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Card detected
Card read UID: 213,145,204,229
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
^CCtrl+C captured, ending read.
pi@raspberrypi ~/MFRC522-python $ sudo python Write.py
Card detected
Card read UID: 133,228,14,136
Size: 8
Sector 8 looked like this:
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Sector 8 will now be filled with 0xFF:
4 backdata &0x0F == 0x0A 10
Data written
It now looks like this:
Sector 8 [74, 97, 110, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]
Now we fill it with 0x00:
4 backdata &0x0F == 0x0A 10
Data written
It is now empty:
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
pi@raspberrypi ~/MFRC522-python $ sudo python Read.py
/home/pi/MFRC522-python/MFRC522.py:113: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(22, GPIO.OUT)
Welcome to the MFRC522 data read example
Press Ctrl-C to stop.
Card detected
Card read UID: 133,228,14,136
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Card detected
Card read UID: 133,228,14,136
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
^[[A^CCtrl+C captured, ending read.
pi@raspberrypi ~/MFRC522-python $ sudo nano Write.py
pi@raspberrypi ~/MFRC522-python $ sudo python Write.py
Card detected
Card read UID: 213,145,204,229
Size: 8
Sector 8 looked like this:
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Sector 8 will now be filled with 0xFF:
4 backdata &0x0F == 0x0A 10
Data written
It now looks like this:
Sector 8 [74, 97, 110, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]
Now we fill it with 0x00:
4 backdata &0x0F == 0x0A 10
Data written
It is now empty:
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
pi@raspberrypi ~/MFRC522-python $ sudo python Read.py
/home/pi/MFRC522-python/MFRC522.py:113: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(22, GPIO.OUT)
Welcome to the MFRC522 data read example
Press Ctrl-C to stop.
Card detected
Card read UID: 133,228,14,136
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Card detected
Card read UID: 133,228,14,136
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Card detected
Card read UID: 213,145,204,229
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
packet_write_poll: Connection to 192.168.178.101: Host is down
jans-mbp:~ Jan$
jans-mbp:~ Jan$ ssh pi@192.168.178.101
ssh: connect to host 192.168.178.101 port 22: Host is down
jans-mbp:~ Jan$ ssh pi@192.168.178.101
ssh: connect to host 192.168.178.101 port 22: Host is down
jans-mbp:~ Jan$ ssh pi@192.168.178.101
ssh: connect to host 192.168.178.101 port 22: Host is down
jans-mbp:~ Jan$ ssh pi@192.168.178.101
pi@192.168.178.101's password:
Linux raspberrypi 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Feb 14 14:59:37 2017 from 192.168.178.227
pi@raspberrypi ~ $ ls
Desktop MFRC522-python python upload.sh
ftp-upload.sh node_0.10.36_armhf.deb schalter.sh vnc.sh
HAP-NodeJS node_latest_armhf.deb setuplight WebIOPi-0.6.0
install node_latest_armhf.deb.1 shairport wiringPi
Light_accessory.js node_latest_armhf.deb.2 SPI-Py
log.txt ocr_pi.png testpi.txt
pi@raspberrypi ~ $ cd MFRC522-python/
pi@raspberrypi ~/MFRC522-python $ ls
Dump.py MFRC522.py MFRC522.pyc README.md Read.py Write.py
pi@raspberrypi ~/MFRC522-python $ sudo python Read.py
Welcome to the MFRC522 data read example
Press Ctrl-C to stop.
Card detected
Card read UID: 133,228,14,136
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
^CCtrl+C captured, ending read.
pi@raspberrypi ~/MFRC522-python $ cd ..
pi@raspberrypi ~ $ cd ..
pi@raspberrypi /home $ cd ..
pi@raspberrypi / $ cd ..
pi@raspberrypi / $ cd ..
pi@raspberrypi / $ cd var/www/html
-bash: cd: var/www/html: No such file or directory
pi@raspberrypi / $ ls
bin dev home lost+found mnt proc run selinux sys usr vncboot
boot etc lib media opt root sbin srv tmp var vnc.sh
pi@raspberrypi / $ cd xvar
-bash: cd: xvar: No such file or directory
pi@raspberrypi / $ ls
bin dev home lost+found mnt proc run selinux sys usr vncboot
boot etc lib media opt root sbin srv tmp var vnc.sh
pi@raspberrypi / $ cd var
pi@raspberrypi /var $ ls
backups lib lock mail run sudowebscript.sh tmp www
cache local log opt spool swap webif
pi@raspberrypi /var $ cd www
pi@raspberrypi /var/www $ ls
GPIO index.html scripte Webinterface2 Wohnungssteuerung
pi@raspberrypi /var/www $ cd Webinterface2
pi@raspberrypi /var/www/Webinterface2 $ ls
frame Livebild.php
pi@raspberrypi /var/www/Webinterface2 $ cd frame
pi@raspberrypi /var/www/Webinterface2/frame $ ls
an.png frame.php livebild.php menue_o.html temperatur.php
aus.png GPIO_3.php menue_l.html menue_r.html
banner.png GPIO_4.php menue_m.php name.php
pi@raspberrypi /var/www/Webinterface2/frame $ sudo nano GPIO_3.php
pi@raspberrypi /var/www/Webinterface2/frame $ sudo nano GPIO_3.php
pi@raspberrypi /var/www/Webinterface2/frame $ sudo nano GPIO_4.php
pi@raspberrypi /var/www/Webinterface2/frame $ cd ..
pi@raspberrypi /var/www/Webinterface2 $ cd ..
pi@raspberrypi /var/www $ cd ..
pi@raspberrypi /var $ cd ..
pi@raspberrypi / $ cd ..
pi@raspberrypi / $ cd home
pi@raspberrypi /home $ cd pi
pi@raspberrypi ~ $ ls
Desktop MFRC522-python python upload.sh
ftp-upload.sh node_0.10.36_armhf.deb schalter.sh vnc.sh
HAP-NodeJS node_latest_armhf.deb setuplight WebIOPi-0.6.0
install node_latest_armhf.deb.1 shairport wiringPi
Light_accessory.js node_latest_armhf.deb.2 SPI-Py
log.txt ocr_pi.png testpi.txt
pi@raspberrypi ~ $ cd MFRC522-python/
pi@raspberrypi ~/MFRC522-python $ sudo python Read.py
Welcome to the MFRC522 data read example
Press Ctrl-C to stop.
Card read UID: 133,228,14,136
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Card read UID: 213,145,204,229
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Card detected
Card read UID: 133,228,14,136
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Card detected
Card detected
Card read UID: 133,228,14,136
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Card detected
Card read UID: 213,145,204,229
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
^CCtrl+C captured, ending read.
pi@raspberrypi ~/MFRC522-python $ ls
Dump.py MFRC522.py MFRC522.pyc README.md Read.py Write.py
pi@raspberrypi ~/MFRC522-python $ sudo python Dump.py
^CCtrl+C captured, ending read.
pi@raspberrypi ~/MFRC522-python $ sudo nano Dump.py
pi@raspberrypi ~/MFRC522-python $ sudo python Read.py
Welcome to the MFRC522 data read example
Press Ctrl-C to stop.
Card detected
Card read UID: 133,228,14,136
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Card detected
Card read UID: 213,145,204,229
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
^CCtrl+C captured, ending read.
pi@raspberrypi ~/MFRC522-python $ sudo nano Write.py
pi@raspberrypi ~/MFRC522-python $ sudo python Write.py
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
Card detected
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
^CCtrl+C captured, ending read.
pi@raspberrypi ~/MFRC522-python $ sudo nano Write.py
pi@raspberrypi ~/MFRC522-python $ sudo python Write.py
Card detected
Card read UID: 213,145,204,229
Size: 8
Sector 8 looked like this:
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Sector 8 will now be filled with 0xFF:
4 backdata &0x0F == 0x0A 10
Data written
It now looks like this:
Sector 8 [74, 97, 110, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]
Now we fill it with 0x00:
4 backdata &0x0F == 0x0A 10
Data written
It is now empty:
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
pi@raspberrypi ~/MFRC522-python $ sudo python Read.py
/home/pi/MFRC522-python/MFRC522.py:113: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(22, GPIO.OUT)
Welcome to the MFRC522 data read example
Press Ctrl-C to stop.
Card detected
Card read UID: 213,145,204,229
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
^CCtrl+C captured, ending read.
pi@raspberrypi ~/MFRC522-python $ sudo nano Write2.py
pi@raspberrypi ~/MFRC522-python $ sudo python Write2.py
File "Write2.py", line 2
[/b]
^
SyntaxError: invalid syntax
pi@raspberrypi ~/MFRC522-python $ sudo nano Write2.py
pi@raspberrypi ~/MFRC522-python $ sudo python Write2.py
Card read UID: 213,145,204,229
Size: 8
Sector 8 will now be filled with data[]:
4 backdata &0x0F == 0x0A 10
Error while writing
Data written
It now looks like this:
Error while reading!
pi@raspberrypi ~/MFRC522-python $ sudo python Write2.py
/home/pi/MFRC522-python/MFRC522.py:113: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(22, GPIO.OUT)
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
^[[A^CCtrl+C captured, ending read.
pi@raspberrypi ~/MFRC522-python $ sudo nano Write2.py
pi@raspberrypi ~/MFRC522-python $ sudo nano Write.py
pi@raspberrypi ~/MFRC522-python $ sudo python Write.py
Card detected
Card read UID: 213,145,204,229
Size: 8
Sector 8 looked like this:
Sector 8 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
Sector 8 will now be filled with 0xFF:
4 backdata &0x0F == 0x0A 10
Data written
It now looks like this:
Sector 8 [116, 97, 110, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]
Now we fill it with 0x00:
4 backdata &0x0F == 0x0A 10
Data written
It is now empty:
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
pi@raspberrypi ~/MFRC522-python $ sudo python Read.py
/home/pi/MFRC522-python/MFRC522.py:113: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(22, GPIO.OUT)
Welcome to the MFRC522 data read example
Press Ctrl-C to stop.
Card detected
Card read UID: 213,145,204,229
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
^CCtrl+C captured, ending read.
^[[Api@raspberrypi ~/MFRC522-python $ sudo nano Write2.py
pi@raspberrypi ~/MFRC522-python $ sudo nano Write.py
pi@raspberrypi ~/MFRC522-python $ sudo python Write.py
Card detected
Card read UID: 213,145,204,229
Size: 8
Sector 8 looked like this:
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Sector 8 will now be filled with 0xFF:
4 backdata &0x0F == 0x0A 10
Data written
It now looks like this:
Sector 8 [116, 97, 110, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]
Now we fill it with 0x00:
4 backdata &0x0F == 0x0A 10
Data written
It is now empty:
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
pi@raspberrypi ~/MFRC522-python $ sudo python Read.p
python: can't open file 'Read.p': [Errno 2] No such file or directory
pi@raspberrypi ~/MFRC522-python $ sudo python Read.py
/home/pi/MFRC522-python/MFRC522.py:113: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(22, GPIO.OUT)
Welcome to the MFRC522 data read example
Press Ctrl-C to stop.
Card detected
Card read UID: 213,145,204,229
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
^CCtrl+C captured, ending read.
pi@raspberrypi ~/MFRC522-python $ sudo python Dump.py
Card detected
Card read UID: 213,145,204,229
Size: 8
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
^CCtrl+C captured, ending read.
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
sudAUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
o nanAUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
^CCtrl+C captured, ending read.
Dump.py:15: RuntimeWarning: No channels have been set up yet - nothing to clean up! Try cleaning up at the end of your program instead!
GPIO.cleanup()
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
^CCtrl+C captured, ending read.
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
Authentication error
pi@raspberrypi ~/MFRC522-python $ sudo nano dump.py
pi@raspberrypi ~/MFRC522-python $ sudo nano Dump.py
pi@raspberrypi ~/MFRC522-python $ sudo python Read.py
Welcome to the MFRC522 data read example
Press Ctrl-C to stop.
Card detected
Card read UID: 133,228,14,136
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Card detected
Card read UID: 213,145,204,229
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
^CCtrl+C captured, ending read.
pi@raspberrypi ~/MFRC522-python $ ls
Dump.py MFRC522.py MFRC522.pyc README.md Read.py Write2.py Write.py
pi@raspberrypi ~/MFRC522-python $ sudo nano Read.py
pi@raspberrypi ~/MFRC522-python $ cd ..
pi@raspberrypi ~ $ cd ..
pi@raspberrypi /home $ cd ..
pi@raspberrypi / $ cd ..
pi@raspberrypi / $ ls
bin dev home lost+found mnt proc run selinux sys usr vncboot
boot etc lib media opt root sbin srv tmp var vnc.sh
pi@raspberrypi / $ cd etc
pi@raspberrypi /etc $ ls
adduser.conf inputrc preload.conf
alternatives insserv profile
apache2 insserv.conf profile.d
apm insserv.conf.d proftpd
apparmor.d iproute2 protocols
apt ipsec.conf pulse
asterisk ipsec.conf.orig python
avahi ipsec.d python2.7
bash.bashrc ipsec.secrets python3
bash_completion issue python3.2
bash_completion.d issue.net radiusclient-ng
bindresvport.blacklist issue.net.orig rc0.d
ca-certificates issue.orig rc1.d
ca-certificates.conf kbd rc2.d
ca-certificates.conf.dpkg-old kernel rc3.d
calendar ldap rc4.d
chatscripts ld.so.cache rc5.d
ConsoleKit ld.so.conf rc6.d
console-setup ld.so.conf.d rc.local
cron.d ld.so.preload rcS.d
cron.daily libao.conf request-key.d
cron.hourly libaudit.conf resolvconf
cron.monthly libnl-3 resolv.conf
crontab libpaper.d rmt
cron.weekly lightdm rpc
dbus-1 locale.alias rpi-issue
ddclient.conf locale.gen rsyslog.conf
debconf.conf localtime rsyslog.d
debian_version logcheck samba
default login.defs securetty
deluser.conf logrotate.conf security
dhcp logrotate.d selinux
dhcp3 magic sensors3.conf
dictionaries-common magic.mime sensors.d
dillo mailcap services
dphys-swapfile mailcap.order sgml
dpkg manpath.config shadow
emacs menu shadow-
environment menu-methods shells
fake-hwclock.data mime.types skel
fb.modes minicom snmp
fonts mke2fs.conf ssh
freetds modprobe.d ssl
fstab modules staff-group-for-usr-local
fstab.d mongoose sudoers
ftpusers motd sudoers.d
fuse.conf motd.tail sysctl.conf
gai.conf mpd.conf sysctl.d
gconf mpd.conf.dpkg-old systemd
gdb mtab terminfo
ghostscript nanorc timezone
groff netconfig triggerhappy
group network ts.conf
group- networks ucf.conf
gshadow nsswitch.conf udev
gshadow- ntp.conf ufw
gssapi_mech.conf opt vim
gtk-2.0 os-release webif.conf
gtk-3.0 os-release.orig webiopi
host.conf pam.conf weston
hostname pam.d wgetrc
hosts papersize wpa_supplicant
hosts.allow passwd X11
hosts.deny passwd- xdg
idmapd.conf perl xl2tpd
ifplugd php5 xml
init plymouth xpdf
init.d pm zbw
initramfs-tools polkit-1 z-way
inittab ppp
pi@raspberrypi /etc $ sudo nano RC522.conf
pi@raspberrypi /etc $ cd ..
pi@raspberrypi / $ cd ..
pi@raspberrypi / $ cd ..
pi@raspberrypi / $ cd ..
pi@raspberrypi / $ cd home
pi@raspberrypi /home $ cd pi
pi@raspberrypi ~ $ cd MFRC522-python/
pi@raspberrypi ~/MFRC522-python $ sudo python Read.py
Welcome to the MFRC522 data read example
Press Ctrl-C to stop.
Card detected
Card read UID: 133,228,14,136
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
^CCtrl+C captured, ending read.
pi@raspberrypi ~/MFRC522-python $ cd ..
pi@raspberrypi ~ $ cd ..
pi@raspberrypi /home $ cd ..
pi@raspberrypi / $ cd var/etc
-bash: cd: var/etc: No such file or directory
pi@raspberrypi / $ cd etc
pi@raspberrypi /etc $ sudo nano RC522.conf
pi@raspberrypi /etc $ cd ..
pi@raspberrypi / $ cd ..
pi@raspberrypi / $ cd ..
pi@raspberrypi / $ cd home/pi/MFRC522-python/
pi@raspberrypi ~/MFRC522-python $ sudo python Read.py
Welcome to the MFRC522 data read example
Press Ctrl-C to stop.
Card detected
Card read UID: 213,145,204,229
Size: 8
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
^CCtrl+C captured, ending read.
pi@raspberrypi ~/MFRC522-python $ sudo python Write.py
Card detected
Card read UID: 213,145,204,229
Size: 8
Sector 8 looked like this:
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Sector 8 will now be filled with 0xFF:
4 backdata &0x0F == 0x0A 10
Data written
It now looks like this:
Sector 8 [116, 97, 110, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]
Now we fill it with 0x00:
4 backdata &0x0F == 0x0A 10
Data written
It is now empty:
Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
pi@raspberrypi ~/MFRC522-python $ sudo nano Write.py
GNU nano 2.2.6 File: Write.py
data = []
# Fill the data with 0x00
for x in range(0,16):
data.append(0x00)
print "Now we fill it with 0x00:"
MIFAREReader.MFRC522_Write(8, data)
print "\n"
print "It is now empty:"
# Check to see if it was written
MIFAREReader.MFRC522_Read(8)
print "\n"
# Stop
MIFAREReader.MFRC522_StopCrypto1()
# Make sure to stop reading for cards
continue_reading = False
else:
print "Authentication error"
Alles anzeigen
ich habe auch schon nach diesem Thema hier die conf dabei bearbeitet und meine UID eingetragen, leider ohne Erfolg.
kann mir jemand sagen, was ich falsch mache?
Danke im Voraus,
Gruß C4