Hi guys!
I’m just an Electrical Engineering student and I’m newbie in RFID area.
I’m doing my last project in university and I need your help immediately.
I’m working with xbee pro 802.15.4, 2.4 GHz OEM module and mbed - LPC1768 microcontroller to create an RFID reader.
the reader has to capture data packets from an active RFID tag. The tag is also working in 802.15.4, 2.4 GHz standard. But even though I’ve tried to read the data, I just can’t get the data from the tag.
this is my program in the mbed
#include "mbed.h"
Serial xbee1(p9, p10); //Creates a variable for serial communication through pin 9 and 10
DigitalOut rst1(p11); //Digital reset for the XBee, 200ns for reset
DigitalOut myled(LED3);//Create variable for Led 3 on the mbed
DigitalOut myled2(LED4);//Create variable for Led 4 on the mbed
Serial pc(USBTX, USBRX);//Opens up serial communication through the USB port via the computer
int main() {
rst1 = 0; //Set reset pin to 0
myled = 0;//Set LED3 to 0
myled2= 0;//Set LED4 to 0
wait_ms(1);//Wait at least one millisecond
rst1 = 1;//Set reset pin to 1
wait_ms(1);//Wait another millisecond
while (1) {//Never ending Loop
if (pc.readable()) {//Checking for serial communication
myled = 0; //Turn Led 3 Off
pc.putc(xbee1.getc()); //PC write whatever the xbee is receiving
myled = 1; //Turn Led 3 on for successful communication
}
}
}
I have succeeded to connect two xbees using API mode by sending a hello packet. but, I can’t find how to grab the packet from the active RFID tag.
**Can I work in the second layer of xbee and capture the data sent by the RFID tag? Which one I have to set to work in second layer? the xbee or the tag or both? and how? thank you.**](http://imageshack.us/photo/my-images/689/tesk.jpg/)