- This topic has 3 replies, 3 voices, and was last updated 12 years, 6 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › uid comparison
Hii i am working on a project where i have to compare the serially received UID bits from the rfid reader and compare them to 2 previously stored UIDs. Based on this i hav to display a message on an LCD and play a voice clip too. Can u help me develop a code for this?
Alright. You should go step by step like, First you do code for displaying some characters on the LCD, later a string. Then try code for transmitting and receiving serial data. If you do all these yourself, you’ll find it very easy to code your project.
All you have to do is to keep the default or predefined UID in a string, store the serially received UID in another string and compare both of them using strcmp or strncmp. Display your message based on whether the strings match or not.
I hope you try out yourself, and if you stuck somewhere simply update on this forum. You will defenitely get help.
Alright. You should go step by step like, First you do code for displaying some characters on the LCD, later a string. Then try code for transmitting and receiving serial data. If you do all these yourself, you’ll find it very easy to code your project.
All you have to do is to keep the default or predefined UID in a string, store the serially received UID in another string and compare both of them using strcmp or strncmp. Display your message based on whether the strings match or not.
I hope you try out yourself, and if you stuck somewhere simply update on this forum. You will defenitely get help.
I’m a little short on time right now. I’m using 89c51 microcontroller. How do i store the two uids in this mc? And how do i compare??