hello,
I'm doing my final year project...
I'm interfacing r303a fingerprint sensor to arduino atmega 2560 ,
but the finger print sensor doesn't responding correctly means if i sent command packet eg, {0xEF,0x01,0xFF,0xFF,0xFF,0xFF,0x01,0X00,0x04,0X00,0X00,0x1C} then if i serial read means then the ACK is same as that of command packet and each time it receives signal character eg.{ E F 1 F F F F F F F F 1 0 4 0 0 1 C}..
Please help me whats the problem ..
why the response is like E F 1 F F F F F F F F 1 0 4 0 0 1 C
If you have code please send me ..
i used library available in link http://forums.adafruit.com/posting.php?mode=post&f=25
but getting not responding error i.e Sensor is not detected
Please help me ....
r303a fingerprint sensor doesnot responding properly
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 8
- Joined: Mon Apr 29, 2013 10:46 am
r303a fingerprint sensor doesnot responding properly
Last edited by adafruit_support_rick on Tue Apr 30, 2013 8:33 am, edited 1 time in total.
Reason: use [url] tags for posting links.
Reason: use [url] tags for posting links.
- Franklin97355
- Posts: 23910
- Joined: Mon Apr 21, 2008 2:33 pm
Re: r303a fingerprint sensor doesnot responding properly
It would help if you included your code and how you have the sensor connected. It looks like the return is the ascii representation of what you send but without your code I wouldn't know for sure.
-
- Posts: 8
- Joined: Mon Apr 29, 2013 10:46 am
Re: r303a fingerprint sensor doesnot responding properly
i written code as follows
Code: Select all
#define FNG_OK 0x00
#define FNG_PCKTRXERR 0x01
#define FNG_COMPORTFAIL 0x1D
#define FNG_HANDSHAKE 0x17
#define FNG_HEADER 0xEF01
#define FNG_COMDPCKT 0x1
#define FNG_DATPCKT 0x2
#define FNG_ACKPCKT 0x7
#define FNG_ENDDATPCKT 0x8
#define FNG_VFYPASSWORD 0x13
#define FNG_TIMEOUT 0xFF
#define FNG_BADPCKT 0xFE
#define D_TIMEOUT 10000
byte rsppckt[20];
boolean flag;
boolean port_ok(void)
{
flag=false;
byte portcmdpckt[]={0xEF,0x01,0xFF,0xFF,0xFF,0xFF,0x01,0x00,0x04,FNG_HANDSHAKE,0x00,0x00,0x1C};
int PortCPL=0x000D;
int PortRPL=0x000C;
sendpacket(portcmdpckt,PortCPL);
uint8_t k=getreply(PortRPL);
if(k==FNG_TIMEOUT){
Serial.println("timout");flag=false;}
else if((k==1)&&(rsppckt[0]!=FNG_HEADER>>8)&&(rsppckt[1]!=(FNG_HEADER&0xFF)))
{Serial.println("bad packet");flag=false;}
else if((k==1)&&(rsppckt[6]==FNG_ACKPCKT)&&(rsppckt[9]==FNG_OK))
{Serial.println("confirmed"); flag=true;}
flag=false;
return flag;
}
void sendpacket(byte *cmdpckt, int CPL)
{uint8_t i;
for(i=0;i<CPL;i++){
Serial1.print(cmdpckt[i],HEX);
Serial.print(cmdpckt[i],HEX);
Serial.print(" ");
}
uint8_t getreply(int RPL) {
char idx;
int timer=0;
idx = 0;
delay(100);
while (!Serial1.available()) {
delay(1);
timer++;
if ( D_TIMEOUT<= timer) return FNG_TIMEOUT;
}
// something to read!
while (Serial1.available()){
//if(RPL!=idx)
rsppckt[idx] = Serial1.read();
Serial.print(rsppckt[idx], BYTE);
Serial.print(" ");
idx++;
}
return 1;
}
///////////////
////////////////////
void setup()
{
Serial.begin(9600);
Serial.println("fingerprint test");
Serial1.begin(57600);
if(port_ok())
{
Serial.println("COM PORT is OK");
}
else
{
Serial.println("COM PORT is ERROR");
while(1);
}
}
void loop()
{
}
Last edited by adafruit_support_rick on Tue Apr 30, 2013 8:29 am, edited 1 time in total.
Reason: please use [code] tags when posting code.
Reason: please use [code] tags when posting code.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: r303a fingerprint sensor doesnot responding properly
That's not a valid link to a thread. Where did you find this library?parashuram wrote:i used library available in link http://forums.adafruit.com/posting.php?mode=post&f=25
but getting not responding error i.e Sensor is not detected
-
- Posts: 8
- Joined: Mon Apr 29, 2013 10:46 am
Re: r303a fingerprint sensor doesnot responding properly
i downloaded from the link
http://www.adafruit.com/products/751
https://github.com/adafruit/Adafruit-Fi ... or-Library
please help.....send original link
http://www.adafruit.com/products/751
https://github.com/adafruit/Adafruit-Fi ... or-Library
please help.....send original link
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: r303a fingerprint sensor doesnot responding properly
We don't sell the r303a fingerprint module. Our library is written for a different device.
-
- Posts: 8
- Joined: Mon Apr 29, 2013 10:46 am
Re: r303a fingerprint sensor doesnot responding properly
for which device you written and if i want to purchase single dives it is possible to send and how-many days require to sheep it . and whats the total price ..
please help me
please help me
- adafruit_support_bill
- Posts: 88087
- Joined: Sat Feb 07, 2009 10:11 am
Re: r303a fingerprint sensor doesnot responding properly
Our library was written for this sensor: http://www.adafruit.com/products/751
Most orders ship in 1-2 business days. Shipping options and costs can be seen at checkout.
http://www.adafruit.com/shippinginfo/
Most orders ship in 1-2 business days. Shipping options and costs can be seen at checkout.
http://www.adafruit.com/shippinginfo/
-
- Posts: 8
- Joined: Mon Apr 29, 2013 10:46 am
Re: r303a fingerprint sensor doesnot responding properly
ok thank you..
you have any branch in BANNED ,,
if yes , give me contact details so i can contact and purchase module..
because i have to submit project within 20 days ...
please help me..
you have any branch in BANNED ,,
if yes , give me contact details so i can contact and purchase module..
because i have to submit project within 20 days ...
please help me..
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: r303a fingerprint sensor doesnot responding properly
Our list of distributors for the Fingerprint Sensor is on the Product Page.
-
- Posts: 8
- Joined: Mon Apr 29, 2013 10:46 am
Re: r303a fingerprint sensor doesnot responding properly
thank you sir ..
we can interface it to arduino mega2560/other arduino or only to arduino uno..
please help...
we can interface it to arduino mega2560/other arduino or only to arduino uno..
please help...
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: r303a fingerprint sensor doesnot responding properly
The fingerprint communicates via TTL Serial. You can talk to it with anything, even a computer.
Please review our tutorial for more details.
Please review our tutorial for more details.
-
- Posts: 8
- Joined: Mon Apr 29, 2013 10:46 am
how to read fingerprint template stored in fingerprint module
hi,
i want to read fingerprint template stored into fingerprint.
how download and upload the fingerprint template from & to fingerprint and to & from arduino
please help me...
and please send function code ...
to my mail [email protected]
i want to read fingerprint template stored into fingerprint.
how download and upload the fingerprint template from & to fingerprint and to & from arduino
please help me...
and please send function code ...
to my mail [email protected]
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: r303a fingerprint sensor doesnot responding properly
Our library does not implement those functions. However, it appears that the fingerprint module does support those operations.
You will have to refer to the datasheet for information on these operations. Unfortunately, the datasheet is written in Chinese. If you can read Chinese, or know someone who can translate for you, then you can download the datasheet here:
http://www.adafruit.com/datasheets/DY001fingerprint.pdf
Also, we have run the datasheet through Google Translate. As you might expect, it's not a great translation, but it's better than nothing. You can download that version here:
https://github.com/adafruit/Adafruit-Fi ... Module.pdf
I had a look at the translation. I think you are probably interested in commands 11 through 16, starting on the page numbered "19 of 28".
You will have to refer to the datasheet for information on these operations. Unfortunately, the datasheet is written in Chinese. If you can read Chinese, or know someone who can translate for you, then you can download the datasheet here:
http://www.adafruit.com/datasheets/DY001fingerprint.pdf
Also, we have run the datasheet through Google Translate. As you might expect, it's not a great translation, but it's better than nothing. You can download that version here:
https://github.com/adafruit/Adafruit-Fi ... Module.pdf
I had a look at the translation. I think you are probably interested in commands 11 through 16, starting on the page numbered "19 of 28".
-
- Posts: 8
- Joined: Mon Apr 29, 2013 10:46 am
e: adafruit fingerprint sensor doesnot responding
hi
i trying to interface fingerprint sensor to arduino mega2560 using library example,
the fingerprint not responding...
please help me
i trying to interface fingerprint sensor to arduino mega2560 using library example,
the fingerprint not responding...
please help me
Please be positive and constructive with your questions and comments.