Can someone help with these two (2) functions in PR29 sample code.
receive_reply_nodisplay();
receive_reply();
It seems there is a problem between the UART and the Fingerprint Reader communication. I am unable to access the reader DSP to store/verify fingerprint.
If i try to add new data, the reader blue light will be ON but no operation will occur.
Kindly highlight any possible error and solution. The function codes are as follows:
- CODE: SELECT_ALL_CODE
/function to get reply from UART
void receive_reply(void)
{
unsigned char i;
for(i=0;i<8;i++) //store the reply in the array
array_resp[i]=uart_receive(); //assign values to array
display_status(array_resp[1],array_resp[3],array_resp[4]); //retrieve the informations
delay(1000);
}
//function to get reply from UART but not display the status
void receive_reply_nodisplay(void)
{
unsigned char i;
for(i=0;i<8;i++) //store the reply in the array
array_resp[i]=uart_receive(); //assign values to array
}