Online Store

قم بتكوين Raspbian ل Raspberry Pi 3 لاستخدام درع المنطق الرقمي مع uFReader RS232

قم بتكوين Raspbian ل Raspberry Pi 3 لاستخدام درع المنطق الرقمي مع uFReader RS232 #

مقدمة #

درع المنطق الرقمي مع قارئ uFR RS232 Shield هو سلام الأجهزة للتوصيل البيني المبسط بين أجهزة uFReader RS232 ، مثل uFR RS232 وحجم البطاقة RS232 ، وجميع إصدارات RaspberryPi. يستخدم درع DL الدبابيس 8 (GPIO14) و 10 (GPIO15) من رأس GPIO لاتصالات UART والدبابيس 16 (GPIO23) لإعادة تعيين قارئ uFR. يتم تعطيل المنفذ التسلسلي GPIO (mini-UART) افتراضيا. تحتاج إلى تمكينها من التشغيل الصحيح للجهاز. يدعم الإصدار 4.2.7 من مكتبة uFCoder والإصدارات الأحدث دروع DL على Raspbian.

تنبيه

المنفذ التسلسلي ل Pi (andallotherGPIO's) workat3.3Vonly.Connectingthemtoa5Vsource سيدمر Pi الخاص بك.

تمكين المنفذ التسلسلي GPIO

$sudo rspi-config

  • تغيير كلمة المرور
  • تمكين SSH (خيار الواجهة > SSH)
  • تمكين المنفذ التسلسلي (خيار الواجهة > التسلسلي)
  • تعطيل وحدة التحكم التسلسلية (خيار الواجهة > المسلسل)
  • اعاده تمهيد 

اختبر

اختبار تكوين لينكس

$ ls -l / dev / المسلسل * lrwxrwxrwx 1 جذر الجذر 5 21 نوفمبر 07:54 /dev/serial0 -> ttyS0 lrwxrwxrwx 1 جذر الجذر 7 21 نوفمبر 07:54 /dev/serial1 -> ttyAMA0 $ ls - l /dev/ttyS0 crw-rw----1rootdialout4,64Nov2107:54/dev/ttyS0$groupspiadmdialoutcdromsudoaudiovideoplugdevgamesusersinputnetdevgpioi2cspi$sudo grep uart /boot/cmdline.txt enable_uart=1$ sudo cat / boot/cmdline.txt dwc_otg.lpm_enable=0console=tty1root=PARTUUID (nomoreexistsconsole=ttyS0,115200)

اختبار قارئ μFR مفتوح #

يوجد مثال بسيط على رمز للقارئ مفتوح على DL-GIT Clone من GIT

$ git clone - العودية
https://www.d-logic.com/code/nfc-rfid-reader-sdk/ufr-examples-reader_open-c

اجعلها قابلة للتنفيذ
$make أرمهف

ركض
$ ./ufr-القارئ-مفتوحالمراجع:https://spellfoundry.com/2016/05/29/configuring-gpio-serial-port-raspbian-jessie-including-pi-3/ https://www.raspberrypi.org/forums/viewtopic.php?t=151454 https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=144858&p=955297#p955236 https://raspberrypi.stackexchange.com/a/54766

نظام التشغيل راسبيان – تنزيل

https://www.raspberrypi.org/downloads/raspbian/

كود مصدر الاختبار:

https://www.d-logic.com/code/nfc-rfid-reader-sdk/ufr-examples-reader_open-c