RFID–Radio Frequency Identification

RFID–Radio Frequency Identification

RFID overview

1.The composition of RFID

RFID is mainly composed of a reader or writer and a transponder. The reader or writer is to read and write the transponder. For example, the most common, vehicle card reader. A transponder is an information storage medium in which data can usually be stored for a long period of time. This data can be manipulated by the reader. Transponders come in many different categories depending on the attributes.

2.The working principle of RFID

RFID uses electromagnetic waves for communication. More common in our daily life is the passive transponder. This transponder has no built-in power supply, it is passive and needs to be close to the reader or writer to get enough power supply by the emitted electromagnetic waves for communication. Correspondingly, there’s active transponder which has its own power supply and has no requirement for external power. It can actively send out communication requests.

In addition to the hardware support, RFID requires normal protocol support, such as the common ISO/EC 14443A protocol. Under the constraints of the software protocol, the transponder and the reader or writer can communicate directly.

3.The advantages and disadvantages of RFID

Advantages of RFID are as follows:

  1. RFID equipment has strong anti-interference ability and is hard to damage;
  2. RFID response has a long service life;
  3. Large reading distance;
  4. The data in the transponder can be encrypted;
  5. Large data storage capacity;
  6. The storage information can be modified.

Disadvantages of RFID are as follows:

  1. Data flooding: the data read from the RFID transponder is not all useful, which will inevitably have an impact on the control system;
  2. There is no global standard: countries that use different standards may be unable to operate RFID data, the corresponding QR code does not have this problem, however;
  3. Security issues: Private data in RFID transponders may be read without knowledge;
  4. May be used with malicious purpose: for example, in 2006, there were reports of RFID buffer overflow vulnerability, which may cause the airport terminal information leakage;
  5. High temperature damage: most of the current transponders glue the integrated circuit in the base material, which may causes loose connection at high temperatures.

RFID hardware

1.The hardware of the RFID consists of a reader or writer and a transponder (usually an electronic tag). There are many ways to communicate between the reader or writer and the transponder. Often, which are mutually incompatible, mainly because of the different working frequency bands. The commonly used radio frequency identification bands and their characteristics are shown in the table:

The transponder we use is the MIFARE 1KB passive tag. It operates at 13.56 MHz and follows the ISO/IEC 14443A standard. The reader or writer is MFRC522, which also supports the ISO/IEC14443A/MIFARE standard.

2.RFID reader or writer.

3.RFID transponder.

4.MIFARE 1KB smart card data organization form.

a.Sector Trailer

Sector Trailer is composed of Key A, Key B of 6 Bytes , and Access Bits of 4 Bytes.

Their specific functions are as follows:

Key A: Any time when reading Key A, it will return data 0; Key B is for security verification, it can be used as user data and can be read under some access conditions

Key B: Key B is for security verification, it can be used as user data and can be read under some access conditions.

Access bit: access bit is used to specify the access right of each block of the sector;bit 9 can be used as user data.

b. Manufacturer data

The 0th block of the sector 0 is a special block that stores the manufacturer data. This block is a read-only block and is write protected. Changes to the access bits will not affect the properties of the block.

c. The data block

The 16 bits of 3 blocks (0 sectors only have 2 blocks) in all sectors can be used to store data. These data can be configured as read or write or value block. Value block can be used to implement electronic payment functions (allowing reading, writing, adding, reducing, restoring, and transmitting commands). Value blocks are organized in a fixed format, as shown in the table:

 

The definitions of value and address in the table are as follows.

  1. Value: indicates a 4Byte has a symbolic value, and negative numbers are represented by a complement. For data integrity and security, a value is stored three times in the form of the original code and the complement;
  2. Address: indicates a 1Byte address, which can be used to store the storage address of a block. Also, for data integrity and security, the address is stored four times in the form of the original code and the complement. The value increase, decrease, recovery, and transfer operations will not affect the value of the address, only by writing command can it be modified.

The circuit diagram connection

The MFRC522 supports three types of interfaces. The third-party RFID uses the SPI interface, and the four control lines are described as below:

  1. SCK: serial clock;
  2. MOSI: host (Arduino) output, slave (MFRC522) input;
  3. MISO: host input, slave output;
  4. NSS: slave selection (active low).

The charging system

The implementation of the charging system is very simple, the idea is as follows

  1. Use the key for verification;
  2. Execute the deduction operation;
  3. Output balance;

The code implements the charging system is as follow:

/***********************************************************
File name:  Adeept_RFID.ino
Description:  
RFID is a wireless communication technology that is commonly used in 
automatic identification and target tracking. 
It can operate on target data without contact, 
such as the common public transportation payment 
system and access control system.

Website: www.adeept.com
E-mail: support@adeept.com
Author: Felix
Date: 2019/07/01 
***********************************************************/

#include <SPI.h>
#include <MFRC522.h>

#define SS_PIN 10
#define RST_PIN 9

MFRC522 mfrc522(SS_PIN, RST_PIN);        // creat MFRC522 object

void setup() {
  Serial.begin(9600);        //initialize the serial port
  SPI.begin();                //initialize SPI bus
  mfrc522.PCD_Init();        //initialize reader-writer
  Serial.println("Public transport charge system."); //output the payment system message
}

void loop() {
//  int amount=0;
//  char yon;

  //detect if the chip is detected
  if ( ! mfrc522.PICC_IsNewCardPresent()) {
    return;
  }

  //select a card to operate on
  if ( ! mfrc522.PICC_ReadCardSerial()) {
    return;
  }

    byte piccType = mfrc522.PICC_GetType(mfrc522.uid.sak);
    if(piccType != MFRC522::PICC_TYPE_MIFARE_MINI
    && piccType != MFRC522::PICC_TYPE_MIFARE_1K
    && piccType != MFRC522::PICC_TYPE_MIFARE_4K){
      Serial.println("Don not works with this cards.");
      return;
    }

  //set the key variable to FFFFFFFFFFFFh
  MFRC522::MIFARE_Key key;
  for (byte i = 0; i < 6; i++) {
    key.keyByte[i] = 0xFF;
  }

  //use the fifth data block of the card
  byte valueBlockA = 5;
  byte status;

  //use Key B to verify
  status = mfrc522.PCD_Authenticate(MFRC522::PICC_CMD_MF_AUTH_KEY_B, valueBlockA, &key, &(mfrc522.uid));
  if (status != MFRC522::STATUS_OK) {
    Serial.print("Failed,please try again.");
    return;
  }
//perform fee deduction poeration(the amount here is 1)
  status = mfrc522.MIFARE_Decrement(valueBlockA,1);
  if(status != MFRC522::STATUS_OK){
    Serial.print("Failed,please try again.");
    return;
  }
  status = mfrc522.MIFARE_Transfer(valueBlockA);
  if(status != MFRC522::STATUS_OK){
    Serial.print("Failed,please try again.");
    return;
  }

  byte buffer[18];
  byte size = sizeof(buffer);

  //read and output the balance
  status = mfrc522.MIFARE_Read(valueBlockA, buffer, &size);
  long value = (long(buffer[3])<<24) | (long(buffer[2])<<16) | (long(buffer[1])<<8) | long(buffer[0]);
  Serial.println("Success!");
  Serial.print("Balance:"); 
  Serial.println(value, DEC);
  //change card activation status
  mfrc522.PICC_HaltA();
  //stop encrypted transmission
  mfrc522.PCD_StopCrypto1();
}

Usually, the deduction information is displayed on the LED of the vehicle reader. The above example code outputs it to the serial monitor. After downloading the above code to the Arduino development board, open the serial monitor and wait for the output of the public transportation. charging system.

After it prompts the message, the card is ready to be used. As shown in the figure, the result after 5 times of swiping.

It can be seen that the balance is 95 yuan. And system works very well.

313 Replies to “RFID–Radio Frequency Identification”

  1. Pingback: powerbanks
  2. Pingback: Gerüstbau
  3. Pingback: pv battery system
  4. Pingback: Damiana
  5. Pingback: buy hemp online
  6. Pingback: muppets mana mana
  7. Pingback: witgoed reparatie
  8. Pingback: iPhone
  9. Pingback: greengo
  10. Pingback: blogcaodep.com
  11. Pingback: tapchiphunuvn
  12. Pingback: hat macca uc
  13. Pingback: tiec tu chon
  14. Pingback: ucuz uçak bileti
  15. Pingback: kaş meis feribot
  16. Pingback: dinh cu canada
  17. Pingback: vibrating bullet
  18. Pingback: find builders
  19. Pingback: alex more
  20. Pingback: Credit Sweep scam
  21. Pingback: VAPE PEN
  22. Pingback: Puppies near me
  23. Pingback: crypto exchange
  24. Pingback: masturbator sleeve
  25. Pingback: coinswap
  26. Pingback: Visa
  27. Pingback: business
  28. Pingback: Working Capital
  29. My mission in life is not merely to survive, but to thrive; and to do so with some passion, some compassion, some humor, and some style. Once you say you’re going to settle for second, that’s what happens to you in life. PKVGames

  30. Pingback: Tenders
  31. Pingback: stake
  32. Pingback: wolfbet
  33. Pingback: bitsler
  34. Pingback: gamdom
  35. Pingback: hectic radio
  36. Pingback: wooden plates
  37. Pingback: cannabis4homes.com
  38. Pingback: More Turn Thailand
  39. Pingback: Employee benefits
  40. Pingback: 491 VISA AUSTRALIA
  41. Pingback: Venice photography
  42. Pingback: اغاني
  43. Where to buy counterfeit Money Online

    Are you looking for where to buy 100% undetectable counterfeit money online to use to buy in super markets/malls,
    restaurants, gas filling stations, transport stations, parks and for other personal purpose/use. Feel free to
    contact us. Quality is what you seek for, and quality is what you will get. If you are looking for where to buy
    counterfeit banknotes/money online then contact us and we will get back to you with our quote.

    Category Link; https://www.qualitycounterfeitvendor.com/category/order-counterfeit-online/

  44. Pingback: Buy Meth Online
  45. Pingback: سکس مقعدی
  46. Pingback: TOURS
  47. Pingback: Anthony Galie
  48. Pingback: travel
  49. Pingback: Pc reparatur rüti
  50. Pingback: Escort amsterdam
  51. Pingback: thc vape cartridge
  52. Pingback: Shiba Inu
  53. Pingback: affiliate link
  54. Pingback: Pc hilfe
  55. Pingback: options trading
  56. Pingback: Online Impacts
  57. Pingback: anvelope chisinau
  58. Pingback: Health Coaches
  59. Pingback: Escort amsterdam
  60. Pingback: London escorts
  61. Pingback: Fakaza mp3
  62. Pingback: Electrician SEO
  63. Pingback: Pass CISM
  64. Pingback: rust custom maps
  65. Pingback: partnersuche
  66. Pingback: MILF
  67. Pingback: lesbian porn world
  68. Pingback: اغاني
  69. Pingback: Juul Pods
  70. Pingback: RoyalCBD.com
  71. Pingback: CBD gummies
  72. Pingback: Royal CBD
  73. Pingback: cbd legal status
  74. Pingback: RoyalCBD.com
  75. Pingback: Royal CBD
  76. Pingback: Royal CBD
  77. Pingback: RoyalCBD
  78. Pingback: RoyalCBD.com
  79. Pingback: cbd oil recipes
  80. Pingback: cbd oil timeline
  81. Pingback: RoyalCBD.com
  82. Pingback: Royal CBD
  83. Pingback: Royal CBD
  84. Pingback: RoyalCBD
  85. Pingback: arizona cbd
  86. Pingback: RoyalCBD
  87. Pingback: Royal CBD
  88. Pingback: connecticut cbd
  89. Pingback: Royal CBD
  90. Pingback: Royal CBD
  91. Pingback: RoyalCBD.com
  92. Pingback: RoyalCBD.com
  93. Pingback: Royal CBD
  94. Pingback: Royal CBD
  95. Pingback: cbd oil nevada
  96. Pingback: cbd new hampshire
  97. Pingback: new mexico cbd
  98. Pingback: cbd new york
  99. Pingback: pennsylvania cbd
  100. Pingback: cbd oil ohio
  101. Pingback: oregon cbd
  102. Pingback: cbd oil texas
  103. Pingback: RoyalCBD.com
  104. Pingback: RoyalCBD
  105. Pingback: vermont
  106. Pingback: RoyalCBD
  107. Pingback: RoyalCBD.com
  108. Pingback: cbd west virginia
  109. Pingback: Royal CBD
  110. Pingback: Royal CBD
  111. Pingback: RoyalCBD.com
  112. Pingback: RoyalCBD
  113. Pingback: RoyalCBD
  114. Pingback: local guides
  115. Pingback: cbd vs thc
  116. Pingback: RoyalCBD.com
  117. Pingback: Kratom near me
  118. Pingback: Escort amsterdam
  119. Pingback: حلوه خيال
  120. Pingback: عزة وثقة
  121. Pingback: buy CBD
  122. Pingback: gnc testosterone
  123. Pingback: consultant seo
  124. Pingback: Buy spice online
  125. Pingback: Sonia Randhawa
  126. Pingback: Sonia Randhawa
  127. Pingback: Sonia Randhawa
  128. Pingback: cbd oil for cats
  129. Pingback: kratom near me
  130. Pingback: Sonia Randhawa
  131. Indonesia merupakan suatu negara yang berada dalam kawasan asia tenggara. Tak hanya di kenal dengan negara yang memiliki pulau terbanyak di dunia,
    namun juga Indonesia kaya akan budaya dan juga suku bangsa.
    Dengan kebudayaan, bahasa, agama dan juga suku bangsa membuat Indonesia di kenal juga dengan toleransi yang tinggi satu sama lain http://216.194.162.183/register.php.

  132. Pingback: IT jobs
  133. Pingback: seguidores tiktok
  134. Pingback: AC Repair Dubai
  135. Pingback: Jed Fernandez
  136. Pingback: Earn Money Online
  137. Pingback: wartaekonomi
  138. Pingback: online brands
  139. Pingback: CBD products
  140. Pingback: CBD oils UK
  141. Pingback: CBD oils UK
  142. Pingback: CBD oils
  143. Pingback: CBD oils UK
  144. Pingback: CBD oil for pain
  145. Pingback: Google
  146. Games petualangan, dari dulu hingga saat ini games berbau petualangan tetap banyak di minati terutama bafi anak-anak. Dengan sketsa yang tak berat, akan meninggalkan kesan ketagihan bagi anak-anak untuk bisa terus bermain poker online bandung.

  147. Games petualangan, dari dulu hingga saat ini games berbau petualangan tetap banyak di minati terutama bafi anak-anak. Dengan sketsa yang tak berat, akan meninggalkan kesan ketagihan bagi anak-anak untuk bisa terus bermainhttp://216.194.162.183/Qilinpoker.

  148. Bagaimana cara kerja aplikasi afiliasi hosting internet?
    Mereka hanya bekerja dalam metode yang identik dengan program rekanan umum dengan pengecualian bahwa barang yang mereka jual adalah paket hosting internet 99Bandar. Seorang afiliasi mendapat ketika rujukannya membeli paket dari sistem ini.

  149. Saking banyak peminatnya, banyak para youtuber beralih membuat konten games agar banyak mendapat penonton dan menghasilan uang dalam jumlah yang banyak Daftar Qilinpoker.
    Gemar bermain games ini tak hanya berpusat dalam 1 negara saja namun juga berpusat di seluruh negara di dunia.

  150. Rumah kaca harus menyajikan semua poin penting dalam berkebun. Banyak orang menganggap penting kebutuhan untuk memelihara dan mengembangkan Link 99Bandar tanaman yang sehat dalam semua jenis keadaan cuaca setempat. Rumah kaca sangat penting dalam menawarkan metode metodis yang vital untuk mengembangkan dan mengembangkan tanaman dalam pendekatan standar dan langsung. Tanaman dapat berkembang lebih besar dan lebih cepat daripada perkembangan rutinnya dalam strategi pertanian berkebun reguler.

  151. Paus merupakan salah satu hewan mamalia yang hidup di laut. Sering juga orang awan menyebutnya dengan ikan karena bentuk dan habitatnya di laut. Namun pada kenyataanya paus ini tak memiliki insang melainkan paru-paru untuk bernafas Qilinpoker Online.

  152. JIka orang-orang memutuskan untuk liburan dan berwisata, pastinya akan mengunjungi tempat yang indah dan bisa membuat suasana hati tenang dan pikiran menjadi lebih relax http://216.194.162.183/qilinpoker.
    Namun bagi sebagian orang, mencari kesenangan dengan mengunjungi tempat yang seram adalah tantangan tersendiri yang ingin di capai.

  153. Salah satu cara agar menjaga berat badan tetap stabil yakni dengan memiliki kualitas tidur yang baik.
    Bagi kamu yang saat ini sedang menjalankan program diet demi bisa menurunkan berat badan, bisa juga mengkonsumsi minuman di bawah ini yang mana bisa menurunkan berat bandar kamu ketika tidur Agen QilinPoker.

  154. That’s why there may be a necessity for exterior assist. Apart from the various diets and workout routines plus the wholesome life-style we might topic ourselves into to remove or a minimum 66ceme of lower the quantity of toxins in our physique, we might resort to a physique detox product to assist eradicate all of these toxins.

  155. 99Bandar merupakan salah satu situs online yang terpercaya dan sensasi bermain menjadi bandar dalam permainan bandar ceme online dan nikmati permainan terbaik dengan server berkecepatan tinggi sehingga permainan Anda menjadi lebih menarik dan nyaman

  156. Hari valentine sebentar lagi datang dan pastinya menjadi hari bahagia bagi yang memiliki pasangan. Pasalnya hari valentine ini di mana di nobatkan menjadi hari kasih sayang sedunia. Namun pada dasarnya mengungkapkan kasih sayang itu tak hanya pada hari valentine saja namun bisa di ungkapkan setiap harinya baik itu terhadap pasangan, orang tua, teman dan sesama http://216.194.162.183/qilinpoker.

  157. Speaking of native, you should utilize the web to look at on-line telephones and on-line enterprise directories. These sources can be utilized to search out data on native natural meals shops. Many on-line cellphone books and on-line enterprise directories let you seek for a selected kind of enterprise, comparable to a pure or an natural meals retailer. Your outcomes ought to embrace a phone quantity and tackle. In conserving with utilizing the web Jadi Bandar Ceme to seek out natural meals shops regionally, a typical web search needs to be carried out. As natural foods and meals shops proceed to extend in recognition, many are dealing with extra competitors than that they had earlier than. That’s the reason many find yourself creating web sites, as a means to focus on new clients. These on-line web sites might offer you a phone quantity, tackle, record of foods offered, common costs, and rather more. Should you don’t already know the title of an area natural meals retailer, you could find these shops with a search, like “organic meals shops in Boise Idaho.”

  158. Tak bisa di pungkiri pasti semua orang pernah merasakan stres. Stres bisa di artinya sebagai gangguan pikiran atau mental yang jika terus berkepanjangan akan berakibat tak baik bagi tubuh.
    Agen Poker Terpercaya 2020
    Ada stres ringan dan juga ada stres akut. Kedua jenis dari gangguan pikiran ini tentulah harus di tanggulangi dengan cara yang berbeda pula pastinya.

  159. Hal pertama yang perlu Anda lakukan setiap kali Anda berusaha untuk meningkatkan peringkat skor kredit Anda adalah dengan mengurangi sumber pengalaman skor kredit destruktif tentang Judi Ceme Terpercaya Anda. Untuk melakukan itu, Anda harus membayar kenakalan Anda sebelumnya atau membayar kembali pinjaman Anda yang telah jatuh tempo. Ini tidak akan sangat meningkatkan nilai skor kredit Anda, namun itu adalah langkah yang efektif dalam mengurangi ulasan yang merusak yang dapat membuat peringkat skor kredit Anda jauh lebih buruk daripada yang sudah ada.

  160. For the majority folks, Christmas time means searching for gifts, playing cards and presents for his or her buddies, household, co-employees and lots of others. Unfortunately, purchasing for Bandar Domino Ceme Christmas typically instances creates quite a lot of stress and burden for individuals as a consequence of the truth that they need to exit, combat the crowds and pay retail costs for the Christmas gifts they purchase.

  161. 66ceme situs bandar ceme online judi ceme agen ceme poker ceme qq ceme online terpercaya. Permainan yang disediakan di 66ceme berbasis server Idnplay, dengan minimal deposit sepuluh ribu rupiah dan bisa menggunakan pulsa sebagai deposit pulsa, selain itu nikmati banyak kemudahan dan keuntungan dengan bergabung di 66Ceme. http://bit.ly/registerceme

  162. Teaching our kids on-line security is each bit as vital today as instructing them the fundamentals of “actual world” bodily safety. The previous adages of “do not discuss to strangers” and different related sayings now have their very own digital counterparts, and it’s best to bear in mind of the entire prospects to make sure the security of your children once they go on the web 99 Bandar. Listed here are the foremost hazards of kids going surfing, together with a couple of bits of recommendation on the right way to deal with them.

  163. Teaching our kids on-line security is each bit as vital today as instructing them the fundamentals of “actual world” bodily safety. The previous adages of “do not discuss to strangers” and different related sayings now have their very own digital counterparts, and it’s best to bear in mind of the entire prospects to make sure the security of your children once they go on the web http://216.194.162.181. Listed here are the foremost hazards of kids going surfing, together with a couple of bits of recommendation on the right way to deal with them.

  164. Apa itu ceme online ? Mengapa bahasan mengenai ceme sering sekali di perbincangkan di Indonesia? Ceme sendiri adalah sebuah gim kartu yang menggunakan kartu domino. Pada game ceme ini terdiri dari 2 hingga 8 orang pemain. Setiap pemainnya akan mendapatkan 2 buah kartu. Tugas pemain di dalam game ini adalah menjumlahkan nilai kartu yang mereka miliki untuk diadu dengan pemain lainnya. http://209.182.194.11/apa-itu-ceme.php

  165. As most individuals know, Linux is among the finest applications ever developed to handle web Bandar Ceme Terpercaya connection and act as a server. With this type of functionality, you possibly can see that Linux is the only option on the subject of controlling your own home automation techniques.

  166. Ini pada dasarnya akan menjadi sebanyak Anda dan apa yang Anda anggap dapat Anda tangani. Bagi mereka yang memutuskan untuk mendapatkan perencana acara yang akan membantu Anda, Anda juga bisa berkeliaran di tempat yang Anda temukan. Anda akan terkejut dengan jumlah individu yang ada yang dapat membantu dengan kesempatan seperti itu. Ada banyak orang yang melakukan itu untuk tinggal https://bit.ly/2UzA8ix.

  167. Agen Poker Deposit Pulsa – Situs bandar ceme online dan poker online di Indonesia melakukan banyak inovasi dan perkembangan agar pemain tetap merasa nyaman dan setia bermain game poker online Indonesia.Untuk itu bukan hanya melakukan inovasi dalam jenis game yang disediakan, teknologi yang digunakan, sistem transaksi pun selalu berkembang sesuai dengan perkembangan jaman. http://bit.ly/cemedepositpulsa

  168. Everyone, in some unspecified time in the future of his or her life, has dreamed of being any individual particular, any individual large. Who hasn’t fantasized about being the one who hits the sport-profitable homer? Who hasn’t dreamed of being the homecoming queen? And what number of instances have we dreamed of being wealthy, or profitable, or pleased with our relationships? Daftar Bandar Ceme

  169. sehingga Anda perlu untuk mempertimbangkan dengan hati-hati apa yang Anda butuhkan dari hidup Anda, dan apakah itu bisa lebih baik dilayani dengan mentransfer ke seluruh bagian dunia yang baru. Pindah ke negara atau benua yang berbeda dapat meninggalkan Anda dengan bahasa untuk dipikirkan – apakah Anda mengomunikasikan bahasa yang dominan di sana – dan jika tidak, apakah Anda dapat mempelajarinya? Jika Anda tidak dapat berbicara, Anda mungkin merasa lebih sulit untuk melakukan banyak masalah yang kami ambil sebagai hak http://216.194.162.183/jackpot.php.

  170. Tidak sulit untuk mencari situs mana yang memberikan kemudahan poker deposit pulsa, anda hanya perlu mencari pada mesin pencari online seperti google, yahoo, bing atau yang lainnya kemudian masukan kata pencarian poker deposit pulsa, maka akan muncul banyak situs pilihan yang menyediakan deposit pulsa sebagai sistem depositnya. Dengan begitu anda tinggal memilih saja situs mana yang menarik perhatian anda. https://tinyurl.com/cemedepositpulsa

Leave a Reply