CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Code to detect RFID tag num

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
sagavalsalan



Joined: 08 Jan 2014
Posts: 5

View user's profile Send private message

Code to detect RFID tag num
PostPosted: Wed Jan 08, 2014 8:39 am     Reply with quote

Can anybody post a simple code to read RFID tag num and turn on an LED at pin17 of PIC 16F877A
_________________
Saga
temtronic



Joined: 01 Jul 2010
Posts: 9246
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Jan 08, 2014 8:45 am     Reply with quote

comment: Not without knowing which RFID device you're using! Some are bigbanged,some I2C,some serial(aka RS-232),some parallel interface,some are 3 volt some are 5V,some 12V. Some need a command to read, others send an interrupt when ID located.We NEED to KNOW which RFID device you're using.

Code , if serial ,is super easy.
send command to interrogate the RFID reader
read incoming data
parse for ID
turn on LED

Also the 16F877a is on the 'endangered PIC' list.There are newer,better drop-in replacements that are actually cheaper!

hth
jay
sagavalsalan



Joined: 08 Jan 2014
Posts: 5

View user's profile Send private message

Code to detect RFID tag num
PostPosted: Wed Jan 08, 2014 7:56 pm     Reply with quote

Sir,
this is the RFID i bought.
http://www.rhydolabz.com/wiki/?p=794
No option to change the chip
_________________
Saga


Last edited by sagavalsalan on Wed Jan 08, 2014 8:01 pm; edited 1 time in total
temtronic



Joined: 01 Jul 2010
Posts: 9246
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Jan 08, 2014 8:00 pm     Reply with quote

Saga...no 'link' or RFID number is in your post....so I can't help.

jay
sagavalsalan



Joined: 08 Jan 2014
Posts: 5

View user's profile Send private message

Code to detect RFID tag num
PostPosted: Wed Jan 08, 2014 8:02 pm     Reply with quote

sorry sir, I edited the comment.
I will post the Tag num later. Bcoz I need to confirm that.
_________________
Saga
sagavalsalan



Joined: 08 Jan 2014
Posts: 5

View user's profile Send private message

Code to detect RFID tag num
PostPosted: Wed Jan 08, 2014 8:15 pm     Reply with quote

sir my Tag ID is 650033B29C
_________________
Saga
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Thu Jan 09, 2014 4:28 pm     Reply with quote

This project is a typical school exercise.
We do want to help you when you have problems but we are not going to do your work for you.

There are example programs posted on the website you reference, one for Arduino and one for PIC processor. Note that the Arduino program is easier to convert to the CCS compiler.

What is your problem? Don't you know how to start?
temtronic



Joined: 01 Jul 2010
Posts: 9246
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Jan 09, 2014 4:35 pm     Reply with quote

Sage , you misunderstood. We need to know what device (the RFID reader or scanner) you're using to obtain the RFID TAG Number.
There are hundreds of RFID 'readers', most output the RFID tag information as serial ASCII, but without a make or model number, we do not know the protcol or command sequences needed to obtain the tag number.

hth
jay
temtronic



Joined: 01 Jul 2010
Posts: 9246
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Jan 09, 2014 6:41 pm     Reply with quote

Hmm...I got a PM saying there was a link...and behold it NOW appears when I access the 'thread'. I'll have a look at it later...

I'd like to know why the link didn't show up earlier..

jay
gpsmikey



Joined: 16 Nov 2010
Posts: 588
Location: Kirkland, WA

View user's profile Send private message

PostPosted: Thu Jan 09, 2014 7:12 pm     Reply with quote

Perhaps "Last edited by sagavalsalan on Wed Jan 08, 2014 6:01 pm; edited 1 time in total" would explain why the link has appeared ? Very Happy

mikey
_________________
mikey
-- you can't have too many gadgets or too much disk space !
old engineering saying: 1+1 = 3 for sufficiently large values of 1 or small values of 3
sagavalsalan



Joined: 08 Jan 2014
Posts: 5

View user's profile Send private message

Code to detect RFID tag num
PostPosted: Thu Jan 09, 2014 8:20 pm     Reply with quote

I am a beginner, and I pasted a code and edited it. I think there is some mistakes in circuit too [virtual terminal]. So I will look into that also and will post the code and problem soon. tTanks to all for the replies.
_________________
Saga
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group