Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Troubleshooting / Re: Interfacing with Parallax RFID Reader/Writer on: October 09, 2010, 03:51:06 pm
If the read times out or your serial port connections to the RFID module is not correct, it returns a 0. The first read waits for a status byte.

I am thinking maybe it is a serial port issue - need to find a logic analyzer to see the signals. If anybody makes some progress, please post here.

Thanks!
2  Forum 2005-2010 (read only) / Troubleshooting / Re: Interfacing with Parallax RFID Reader/Writer on: September 24, 2010, 08:07:10 pm
Interesting that nobody has managed to solve this issue despite the popularity of the Parallax RFID modules.  smiley-sad
3  Forum 2005-2010 (read only) / Troubleshooting / Re: Interfacing with Parallax RFID Reader/Writer on: September 21, 2010, 09:48:12 pm
I checked the connections - they are correct. SOUT goes to my Rx pin on the Arduino (PIN8) but LED doesn't turn RED at any time before or after I send a read command.

Hope somebody was successful in using this particular module with the Arduino :-[
4  Forum 2005-2010 (read only) / Troubleshooting / Interfacing with Parallax RFID Reader/Writer on: September 21, 2010, 04:33:12 pm
Hi,

I have a Parallax RFID Reader/Writer hooked up to an Arduino Duemilanove but I am not able to get any response whatsoever from the RFID module. The RFID module gets power coz its green LEDs light up but no response over the serial port.

The connections are as follows:
VCC (RFID) --> 5V (Arduino)
GND (RFID) --> GND (Arduino)
SIN (RFID) --> PIN6 (Arduino)
SOUT (RFID) --> PIN8 (Arduino)

I am using the following code developed as per specs given here:
REMOVE_THIS_FIRST_AND_ADD_3_Ws:parallax.com/Portals/0/Downloads/docs/prod/rf/28440-RFIDReadWrite-v1.0.pdf


Code:
//Interface Arduino USB with Parallax 125 Khz UART RFID Reader/Writer
#include <NewSoftSerial.h>

#define rxPin 8
#define txPin 6

//Reader/Writer Commands
#define RFID_READ  0x01
#define RFID_WRITE 0x02

//Memory Locations for Data
#define DATA_ADDR_0  3
#define DATA_ADDR_1  4

//Error Codes
#define ERR_OK  0x01

NewSoftSerial mySerial(rxPin, txPin);

char statusCode;

void setup()
{
  Serial.begin(9600);
  pinMode(rxPin, INPUT);
  pinMode(txPin, OUTPUT);
  mySerial.begin(9600);
  Serial.println("RFID Read/Write Test");
}

void loop()
{
    //Read RFID Tag data
    Serial.println("Reading Tag Data...");
    //1st 4 bytes
    mySerial.print("!RW");
    mySerial.print(RFID_READ, HEX);
    mySerial.print(32, DEC);
    while(!mySerial.available()) {}
    
      Serial.print("Read Status:");
      statusCode = mySerial.read();
      if(statusCode == ERR_OK)
      {
        Serial.println("OK");
        Serial.print("RFID Data:");
        Serial.print(mySerial.read(), BYTE);
        Serial.print(mySerial.read(), BYTE);
        Serial.print(mySerial.read(), BYTE);
        Serial.println(mySerial.read(), BYTE);
      }
      else
      {
        Serial.print("NOT OK. Error Code:");
        Serial.println(statusCode, HEX);
      }
}

Any clues/pointers would be really appreciated.
Thanks!
Pages: [1]