Post a new topicPost a reply Page 1 of 1   [ 8 posts ]
Author Message
 Post subject: RFID not detecting the card
PostPosted: Fri Apr 13, 2012 10:11 pm 

Joined: Fri Apr 13, 2012 9:42 pm
Posts: 4
Hi,

I used arduino v 0.22 to upload the arduino code for RFID from your page, but it never reads the card. The jumpers are at the XBEE side and the 125khz gets permanent in green light. The message I get is Waiting card, Waiting card, Waiting card...

What can I do?

Cheers!
Dani


Top
 Profile  
 
 Post subject: Re: RFID not detecting the card
PostPosted: Mon Apr 16, 2012 7:31 am 

Joined: Mon Sep 28, 2009 11:06 am
Posts: 2027
Hello Dani

Thanks for your question.


What kind of cards are you using? Are you sure that the cards that you are using are compatible?

I don't know if you have seen the tutorial that we are prepare for this module

(http://www.cooking-hacks.com/index.php/ ... duino-rfid) ?

On the last part of the article you have a video tutorial that could clarify you the process to use this device.

Regards and best wishes.


Top
 Profile  
 
 Post subject: Re: RFID not detecting the card
PostPosted: Tue Apr 17, 2012 4:01 pm 

Joined: Fri Apr 13, 2012 9:42 pm
Posts: 4
Hi!

Yes, I followed that tutorial without result. I bought the RFID Tag Combo. I tried all of them in all positions and nothing...


Top
 Profile  
 
 Post subject: Re: RFID not detecting the card
PostPosted: Wed Apr 18, 2012 7:10 am 

Joined: Mon Sep 28, 2009 11:06 am
Posts: 2027
Hello dandonsol

Could you send me the code that you are using to test the RFID module?

Send me a photo of how you are connecting the RFID module please.


Thanks for your time.


Top
 Profile  
 
 Post subject: Re: RFID not detecting the card
PostPosted: Sun Apr 22, 2012 12:32 pm 

Joined: Fri Apr 13, 2012 9:42 pm
Posts: 4
Hi!

I followed the video step by step. Here are the images of it.
http://www.soortir.com/img/1.jpg
http://www.soortir.com/img/2.jpg

I used this code:
/*
* RFID module from Libelium for Arduino
* Basic program, just Read EM1000 cards
*
* Copyright (C) 2008 Libelium Comunicaciones Distribuidas S.L.
* http://www.libelium.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Version 0.1
* Author: Marcos Yarza
*/

// var
int led = 13;
byte data_1 = 0x00;
byte data_2 = 0x00;
byte data_3 = 0x00;
byte data_4 = 0x00;
byte data_5 = 0x00;
int val = 0;

void setup(){
// Start serial port 19200 bps
Serial.begin(19200);

pinMode(led, OUTPUT);
delay(500);

// Setting Auto Read Mode - EM4102 Decoded Mode - No password
// command: FF 01 09 87 01 03 02 00 10 20 30 40 37
Serial.print(0xFF,BYTE);
Serial.print(0x01,BYTE);
Serial.print(0x09,BYTE);
Serial.print(0x87,BYTE);
Serial.print(0x01,BYTE);
Serial.print(0x03,BYTE);
Serial.print(0x02,BYTE);
Serial.print(0x00,BYTE);
Serial.print(0x10,BYTE);
Serial.print(0x20,BYTE);
Serial.print(0x30,BYTE);
Serial.print(0x40,BYTE);
Serial.print(0x37,BYTE);

delay(500);
Serial.flush();
Serial.println();
Serial.println("RFID module started in Auto Read Mode");
}

void loop(){

val = Serial.read();
while (val != 0xff){
Serial.println("Waiting card");
val = Serial.read();
delay(1000);
}

// Serial.read(); // we read ff
Serial.read(); // we read 01
Serial.read(); // we read 06
Serial.read(); // we read 10
data_1 = Serial.read(); // we read data 1
data_2 = Serial.read(); // we read data 2
data_3 = Serial.read(); // we read data 3
data_4 = Serial.read(); // we read data 4
data_5 = Serial.read(); // we read data 5
Serial.read(); // we read checksum

// Led blink
for(int i = 0;i<4;i++){
digitalWrite(led,HIGH);
delay(500);
digitalWrite(led,LOW);
delay(500);
}

// Printing the code of the card
Serial.println();
Serial.print("EM4100 card found - Code: ");
writeByte(data_1);
writeByte(data_2);
writeByte(data_3);
writeByte(data_4);
writeByte(data_5);
Serial.println();
Serial.println();

}

//Write a byte (hex) in ASCII
void writeByte(byte data){
int aux_1 = 0;
int aux_2 = 0;

aux_1=data/16;
aux_2=data%16;
if (aux_1<10){
Serial.print(aux_1 + 48,BYTE);
}
else{
Serial.print(aux_1+55,BYTE);
}
if (aux_2<10){
Serial.print(aux_2 + 48,BYTE);
}
else{
Serial.print(aux_2 + 55,BYTE);
}
Serial.print(" ");
}


Top
 Profile  
 
 Post subject: Re: RFID not detecting the card
PostPosted: Tue Apr 24, 2012 7:47 am 

Joined: Mon Sep 28, 2009 11:06 am
Posts: 2027
Hello dandonsol

Thanks for your answer. We have been reviewing the combo kit with the module and the code and it works properly.


Could you send us a photo of the antenna? It has some small wires that could be broken.

Could you check if the connector of the antenna fits properly with the module, please?


Regards and best wishes


Top
 Profile  
 
 Post subject: Re: RFID not detecting the card
PostPosted: Tue Apr 24, 2012 6:24 pm 

Joined: Fri Apr 13, 2012 9:42 pm
Posts: 4
Hi,

The connector fits well and I tried upside down too.

Here some photos of the antena. I couldn't see anything broken.
http://www.soortir.com/img/DSC02119.jpg
http://www.soortir.com/img/DSC02118.jpg
http://www.soortir.com/img/DSC02114.jpg

Any idea?


Top
 Profile  
 
 Post subject: Re: RFID not detecting the card
PostPosted: Wed Apr 25, 2012 6:43 am 

Joined: Mon Sep 28, 2009 11:06 am
Posts: 2027
Hello dandonsol

Could you check if the green wire connects to the antenna, and no one of these wires are cut?


If you don't see any problem with this, please go to this page :

http://www.libelium.com/support/technicalservice

And fill the invoice. With this we will proceed to repair-replace the broken hardware.
Please refer to the link of this threat.


Regards and best wishes


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 8 posts ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Libelium theme based on 610nm Style by Daniel St. Jules of http://www.gamexe.net


© Libelium Comunicaciones Distribuidas S.L. | Terms of use