RFID READ AND DISPLAY PROJECT NUMBER 8

RFID reader, Reader/Writer, Tag.....

RFID READ AND DISPLAY PROJECT NUMBER 8

Postby MAKULA » Wed Jun 22, 2011 7:06 pm

I WANT TO MODIFY THE SOURCE CODE OF PROJECT NUMBER 8 OF RFID READ AND DISPLAY SO THAT IT CAN OUTPUT THE DATABASE CONTAINING A STRING OF WORDS AND NOT JUST CHARACTERS AS IT IS ALREADY PROGRAMMED.
I HAVE CHANGED ALL THE COMMANDS OF send_char to send_string AND I HAVE CHANGED THE DATABASE TO:
const unsigned char id_1[]={"0002393929"}; //define the Tag ID here
const unsigned char id_2[]={"0000797447"}; //change this ID to the tag ID that user want to read

const unsigned char user_1[]={"Joseph "}; //define the Tag user here
const unsigned char user_2[]={"Left turn "}; //change this user name to the tag ID owner name


THE MPLAB HAS FAILED TO BUILD THE CODE AND IT HAS GIVEN THE FOLLOWING ERRORS
Warning [357] E:\mradi\PRESENTATION\Source Code PR8-B_2\Source Code PR8-B\PR8.c; 158.38 illegal conversion of integer to pointer
Warning [357] E:\mradi\PRESENTATION\Source Code PR8-B_2\Source Code PR8-B\PR8.c; 161.40 illegal conversion of integer to pointer
Warning [357] E:\mradi\PRESENTATION\Source Code PR8-B_2\Source Code PR8-B\PR8.c; 168.38 illegal conversion of integer to pointer
Warning [357] E:\mradi\PRESENTATION\Source Code PR8-B_2\Source Code PR8-B\PR8.c; 171.40 illegal conversion of integer to pointer
Warning [357] E:\mradi\PRESENTATION\Source Code PR8-B_2\Source Code PR8-B\PR8.c; 177.38 illegal conversion of integer to pointer
Error [984] E:\mradi\PRESENTATION\Source Code PR8-B_2\Source Code PR8-B\PR8.c; 212.1 type redeclared
Error [1098] E:\mradi\PRESENTATION\Source Code PR8-B_2\Source Code PR8-B\PR8.c; 212.1 conflicting declarations for variable "send_char" (E:\mradi\PRESENTATION\Source Code PR8-B_2\Source Code PR8-B\PR8.c:43)
Error [252] E:\mradi\PRESENTATION\Source Code PR8-B_2\Source Code PR8-B\PR8.c; 212.1 argument 0 conflicts with prototype

WHAT ARE THE NECESSARY STEPS THAT I AM MISSING IF I WANT TO MAKE THE USERNAME BE IN FORM OF A STRING?
MAKULA
Freshie
 
Posts: 4
Joined: Wed Jun 22, 2011 1:17 am

Re: RFID READ AND DISPLAY PROJECT NUMBER 8

Postby yonghui » Thu Jun 23, 2011 12:15 am

Error [984] E:\mradi\PRESENTATION\Source Code PR8-B_2\Source Code PR8-B\PR8.c; 212.1 type redeclared
Error [1098] E:\mradi\PRESENTATION\Source Code PR8-B_2\Source Code PR8-B\PR8.c; 212.1 conflicting declarations for variable "send_char" (E:\mradi\PRESENTATION\Source Code PR8-B_2\Source Code PR8-B\PR8.c:43)
Error [252] E:\mradi\PRESENTATION\Source Code PR8-B_2\Source Code PR8-B\PR8.c; 212.1 argument 0 conflicts with prototype

WHAT ARE THE NECESSARY STEPS THAT I AM MISSING IF I WANT TO MAKE THE USERNAME BE IN FORM OF A STRING?


looking at the errors,
double clicks to see where the errors,
try to solve according the the descriptions.
line 984, type redeclared,
line 1098, conflict of declarations of send_char, check the prototype and the function
line 252, different argument in prototype and function.

make the corrections,
and recompile.


yh
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm


Return to RFID

Who is online

Users browsing this forum: No registered users and 4 guests

cron