Use Arduino and RS232 Shield to Interface Integrated UHF RFID Reader LSID-0702

39,795

17

15

Introduction: Use Arduino and RS232 Shield to Interface Integrated UHF RFID Reader LSID-0702

Long Range UHF RFID reader (1-6M) (ISO18000-6C EPC G2) integrates the reader with the antenna. After first powered on, the reader will buzz once to indicate that it starts to work.  When there is tag approaching the reader, it will buzz to indicate that it’s sending the data. For the same tag, the read interval can be configured. After read, if the same tag is still in the read area, there will be no further indication, and no data will be sent.  If the time lapse exceeds  interval or different tags enter the reading zone, the reader will read the card and send out data.

In this tutorial, we show how to use the integrated UHF RFID reader with Arduino and RS232 Shield.

Step 1: Parts List

1.1 x Arduino UNO
2.1 x Integrated UHF reader LSID-0702
3.1 x serial DB9 cable
4.1 x Rs232 shield
5.1 x UHF RFID  tag

Step 2: Wire Diagram

Install RS232 Shield v2 on Arduino, and connect the DB9 of RS232 shield to the DB9 connector of the RFID reader, and supply power to the integrated RFID reader.

Step 3: Arduino Sample Code

#include "Arduino.h"

//#define DEBUG
SoftwareSerial mySerial (5,6);
unsigned char incomingByte;

void sendIdentifyCmd ()
{
  mySerial.write (0x7c);    
  mySerial.write (0xff);
  mySerial.write (0xff);  
  mySerial.write (0x01);                  
  mySerial.write (0x08);                  
  mySerial.write (0x7d);              
#ifdef DEBUG
  Serial.print (0x7c);
  Serial.print (0xff);
  Serial.print (0xff);
  Serial.print (0x01);
  Serial.print (0x08);
  Serial.print (0x7d);
  Serial.println ();
#endif
}

void setup ()
{
  Serial.begin (9600);
  mySerial.begin (9600);
  Serial.println ("begin initial Serial!\n");
}

void loop ()
{
  sendIdentifyCmd ();
  delay (2);
  while(mySerial.available () > 0)
  {
      incomingByte=mySerial.read ();
      Serial.print (incomingByte,HEX);
      Serial.print (' ');
  }
  Serial.println ();
  delay (1000);
}

Step 4: Results

After we download the above code into Arduino, we we place the RFID tag to the reader’s antenna, the reader will buzz, and Arduino will print the ID on the serial port.

If we don’t know the command, we can refer to: http://linksprite.com/wiki/index.php5?title=Long_Range_UHF_RFID_reader_%281-6_meters%29_%28ISO18000-6C_EPC_G2%29_RS232

Be the First to Share

    Recommendations

    • Make it Glow Contest

      Make it Glow Contest
    • First Time Author Contest

      First Time Author Contest
    • PCB Challenge

      PCB Challenge

    15 Discussions

    0
    cpuwiz22
    cpuwiz22

    9 months ago on Step 4

    While I have not used this, there is a typo in the link above for the RFID reader, that has the pertinent info for accessing it:
    http://linksprite.com/wiki/index.php?title=Long_Ra...
    you must also make sure your tags are ISO18000-6B, ISO18000-6C compliant to work.
    The example appears to be for a Identify EPC(GEN 2) Tag
    The code for a Identify 18000-6B tag would be: 7C FF FF 01 07 7E
    I should also add that the CONFIGURATION COMMAND was left out and I assume you would have to do that BEFORE this code is uploaded... however it may default to what you need...
    look at pages 6/9-7/9 on the Communication Protocol pdf to set it up the way need it.
    Hope this helps someone...
    Would love to hear if it works, then I might buy one!

    0
    Angie Mancipe
    Angie Mancipe

    Question 10 months ago

    Buenas Tardes, también estoy implementando este proyecto, y en la parte de programación no me lee los Tags, y no entiendo porque o que me falta, me podrían ayudar.
    Gracias

    ceros.png
    0
    JasonR327
    JasonR327

    Question 11 months ago on Step 2

    Hi, where can I find the rs232 v2 that needs to install in arduino?

    0
    faizdzzc
    faizdzzc

    Question 1 year ago

    hello sir, how code with using wg26?
    can you help me
    i use RFID reader UHF up to 6-8 m

    1
    geraldineharu24
    geraldineharu24

    Question 1 year ago on Step 4

    Hola buenas mi nombre es geraldine y estoy trabajando en un proyecto de control de inventario con RFID uhf y arduino. conecte el lector a un shiel rs232 para poder trabajar con arduino. Les comento que utilize su código para la lectura de las tarjetas pero solo me aparecen 00000 hacia abajo. quisiera saber como puedo programar el codigo para poder realizar la lectura de las tarjetas. Adjunto imagenes.

    2
    RamprasadP
    RamprasadP

    Question 2 years ago

    Hi
    Iam using similar UHF RFID reader RM9001. It detects the tag when we used software provided by them through RS232.
    With arduino using RS232 to TTL converter which uses MAX3232 ic it does not detect the tag.
    Iam using softwareserial library and tried using different pins.
    Kindly help
    Ramaprasad Poojary

    0
    DR272727
    DR272727

    2 years ago

    Windows 10

    IDE V. 1.8.5

    Arduino Uno R3

    Compiles okay.

    I don't have all the materials yet, but I'll try to circle back when I do to update if it works or not.

    #include <SoftwareSerial.h>

    #define DEBUG

    SoftwareSerial mySerial (0, 1);

    unsigned char incomingByte;

    void setup ()

    {

    Serial.begin (9600);

    mySerial.begin (9600);

    Serial.println ("begin initial Serial!\n");

    }

    void loop ()

    {

    sendIdentifyCmd ();

    delay (2);

    while (mySerial.available () > 0)

    {

    incomingByte = mySerial.read ();

    Serial.print (incomingByte, HEX);

    Serial.print (' ');

    }

    Serial.println ();

    delay (1000);

    }

    void sendIdentifyCmd ()

    {

    mySerial.write (0x7c);

    mySerial.write (0xff);

    mySerial.write (0xff);

    mySerial.write (0x01);

    mySerial.write (0x08);

    mySerial.write (0x7d);

    #ifdef DEBUG

    Serial.print (0x7c);

    Serial.print (0xff);

    Serial.print (0xff);

    Serial.print (0x01);

    Serial.print (0x08);

    Serial.print (0x7d);

    Serial.println ();

    #endif

    }

    0
    spaceman2000
    spaceman2000

    3 years ago

    Maybe something else has to be done? I tried sending the same data and get no activity on the tx from this device.

    1
    redent2
    redent2

    3 years ago

    did anyone made it work? i am working with the same device and codes, but the output is just 0 0 0 0 0 0, there's no data recieved from the reader to arduino .

    0
    grifterdrifter
    grifterdrifter

    3 years ago

    Is it possible to read “µ-Chip” (or mu-chip) with this setup?

    Thanks,

    0
    EmmanuelC25
    EmmanuelC25

    4 years ago

    The same project with two different accounts and anybody was capable to make it work, looks very suspicious.

    0
    EmmanuelC25
    EmmanuelC25

    4 years ago

    The project looks nice and possible, but the comments...

    0
    angel9110
    angel9110

    5 years ago

    Hi, i buy this elements and i try do this example, and doesn't work. please help me!

    0
    ccolon7
    ccolon7

    5 years ago on Introduction

    This code doesn't work at all. The wiring diagram, the worst one I have ever seen. Don't waste your money on this, believe me I tried to do this!

    0
    aselishchev
    aselishchev

    5 years ago on Introduction

    hi, what is the max distance for reading?

    will it work with stiky rfid tags?