vigneshkum / rfid-attendance-system

Automatically exported from code.google.com/p/rfid-attendance-system
0 stars 1 forks source link

Implement a function displayUser() to Map CardID to its Corresponding UserName #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Description of Feature Required:
1. Implement a File Searching Algorithm to search usersdb.txt
2. Implement a function displayUser(cardID) to display user on RFID LCD Screen
3. If debugMode = true; then also log username on the console.

Test-Cases:
1. Check if UserName is mapped properly on the RFID LCD Screen
2. If debugMode = true; then username should be logged in console.

Expected OUTPUT:
Case 1. UserName is displayed after the CardID ( on RFID LCD Screen )

Case 2. If debugMode = true; then userName should be logged in console

checkRFID() :: CardID = 04008654FB2D : userName = Ashu

Sample of userdb.txt:
================================
04008500DF5E,Shashikant;
04008654FB2D,Sapna;
04009D9D6266,Shraddha;
840085761E69,KAVITA KAMBLE;
840085762255,UJWALA UNAWANE;
840085760572,RAJANI GAUR;
840085761F68,MAMTA SHARMA;
84008575FF8B,MANJUSHA KAMBLE;
84008575E89C,PANDURANG KAMBLE;
840085764037,PARMINDER;
840085762354,AMOL VARTHI;
840085763D4A,RAMLAL;
840085760473,GEETA DIVEDI;
840085760077,POONAM;
840085760176,NOORJAHAN;
84008575E793,NEETU;
84008575E296,SANDEEP;
84008575C9BD,SANGEETA BHATT;
84008575E692,RAJANI RAWAT;
84008575E397,RENUKA GAUR;
84008575C4B0,DIMPLE;
84008575C5B1,NEHA SHARMA;
84008575C8BC,ASHU;
84008576582F,PUMMY;
840085764334,REKHA;
840085763A4D,SOMANI;
840085765621,RANI VARMA;

Original issue reported on code.google.com by vaibhav.shetyeG on 25 May 2013 at 11:23

GoogleCodeExporter commented 9 years ago
Working on Revision 5

Original comment by vaibhav.shetyeG on 25 May 2013 at 11:26

GoogleCodeExporter commented 9 years ago
Fixed in Revision 5

Original comment by vaibhav.shetyeG on 26 May 2013 at 1:37

GoogleCodeExporter commented 9 years ago
Sample Output:
===========================

<==========Device Booted!==========>
setup() :: Now Initializing Dependent Modules and Hardware.
initMemory() :: Initializing SD card... => Memory Card is Ready.
initRFID() :: Connected to RFID Scanner.
initDisplay() :: LCD Display is ready!
setup() :: All Hardware is OK and Ready to Use.
<==========End of SETUP()==========>
checkRFID() :: CardID = 840085760077 : userName = POONAM;
checkRFID() :: CardID = 840085761E69 : userName = KAVITA KAMBLE;
checkRFID() :: CardID = 04008500DF5E : userName = Shashikant;
checkRFID() :: CardID = 840085762354 : userName = AMOL VARTHI;
checkRFID() :: CardID = 84008575C5B1 : userName = NEHA SHARMA;
checkRFID() :: CardID = 84008575E793 : userName = NEETU;
checkRFID() :: CardID = 840085760176 : userName = NOORJAHAN;
checkRFID() :: CardID = 84008575C8BC : userName = ASHU;
checkRFID() :: CardID = 04008654FB2D : userName = Sapna;
checkRFID() :: CardID = 84008575FF8B : userName = MANJUSHA KAMBLE;
checkRFID() :: CardID = 840085764334 : userName = REKHA;
checkRFID() :: CardID = 840085760473 : userName = GEETA DIVEDI;
checkRFID() :: CardID = 840085764037 : userName = PARMINDER;
checkRFID() :: CardID = 840085762255 : userName = UJWALA UNAWANE;
checkRFID() :: CardID = 84008575E296 : userName = SANDEEP;
checkRFID() :: CardID = 84008576582F : userName = PUMMY;
checkRFID() :: CardID = 840085763D4A : userName = RAMLAL;
checkRFID() :: CardID = 84008575C4B0 : userName = DIMPLE;
checkRFID() :: CardID = 840085765621 : userName = RANI VARMA;
checkRFID() :: CardID = 840085763A4D : userName = SOMANI;
checkRFID() :: CardID = 84008575E89C : userName = PANDURANG KAMBLE;
checkRFID() :: CardID = 84008575E692 : userName = RAJANI RAWAT;
checkRFID() :: CardID = 840085761F68 : userName = MAMTA SHARMA;
checkRFID() :: CardID = 840085760572 : userName = RAJANI GAUR;
checkRFID() :: CardID = 84008575C9BD : userName = SANGEETA BHATT;
checkRFID() :: CardID = 84008575E397 : userName = RENUKA GAUR;
checkRFID() :: CardID = 04009D9D6266 : userName = Shraddha;
checkRFID() :: CardID = 840085803ABB : userName = Unknown?
checkRFID() :: CardID = 840085764532 : userName = Unknown?
checkRFID() :: CardID = 840085800786 : userName = Unknown?
checkRFID() :: CardID = 8400858046C7 : userName = Unknown?
checkRFID() :: CardID = 8400858056D7 : userName = Unknown?
checkRFID() :: CardID = 8400858057D6 : userName = Unknown?

Original comment by vaibhav.shetyeG on 26 May 2013 at 1:37