RFID Issues.... HELP !!!!!


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Location
    Sc*nthorpe, UK
    Posts
    333


    Did you find this post helpful? Yes | No

    Default Re: RFID Issues.... HELP !!!!!

    Quote Originally Posted by andybarrett1 View Post
    Need to get a simulator working really or a debug out !
    This is exactly what you need to do.

    Yes when the DATA places the Tag in the EEPROM the largest number is in 0 and smallest in 9

    DATA "1400434B9C"
    locatn 0123456789

    and when the Tag is read into buf

    buf 1400434B9C
    idx 9876543210

    which obviously is the opposite order, well obvious when explained.

    Code:
    FOR idx = 0 TO 9 ' scan bytes in tag
     READ (((tagNum-1) * 10) + idx), char ' get tag data from table
     IF (char != buf(idx)) THEN goto nextTag
     Next
    To repeat myself in the above code when idx is 0 char will be 1 and buf(0) will be C.

    You could reverse the order in the DATA statement but this could become a burden if you have thousands of Tags. A neater solution is to change the code.

    Code:
     FOR idx = 0 TO 9 ' scan bytes in tag
     READ (((tagNum-1) * 10) +9- idx), char ' get tag data from table
     IF (char != buf(idx)) THEN goto nextTag
     Next
    Let me know if I am wrong because I hate misleading posts.

  2. #2
    Join Date
    May 2012
    Location
    Merseyside, UK
    Posts
    237


    Did you find this post helpful? Yes | No

    Default Re: RFID Issues.... HELP !!!!!

    Thank you all for help.

    I "think" I now see what was going on...Not been able to prove it though ... yet !

    Amoque is right about his comment re:- other peoples code..... Point taken :-)

    Arrays and counts are not my area at all in software..... Well non of it is really!

    I struggle.... But I give it a go..... And sometimes things work... Mainly thanks to this forum

    Thank you all for help... As Always.

    Back to sunny Scunny on Wednesday Steve... BOS is calling!

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: RFID Issues.... HELP !!!!!

    When I hit a wall, I copy just the specific logic on a 16F628, or whatever else you can run the debugger (I'm still on PBP 2.60c).

    I read in values as they are read (doesn't have to be an actual RFID reader, as long as sequence of characters is the same).

    Then I go line by line, check each variable, making sure they contain what I expect, that the logic flows as expected. This is the hard part in using other people's code.

    If I can't figure it out using the debugger, I ditch the code and try another approach.

    Robert

  4. #4
    Join Date
    May 2012
    Location
    Merseyside, UK
    Posts
    237


    Did you find this post helpful? Yes | No

    Default Re: RFID Issues.... HELP !!!!!

    Ditch the code and try another approach
    Is What I did..... Not as pretty as using counts and for/next but it works..... Does what I want :-)

    I am picking up lots of help and advice here though.... Which will come out along the way !!

    I have just upgraded to 2.60C.... !!! Really not sure if I need 3.00

    Seems most folks are 2.50x or 2.60x

  5. #5
    Join Date
    Jun 2009
    Location
    Sc*nthorpe, UK
    Posts
    333


    Did you find this post helpful? Yes | No

    Default Re: RFID Issues.... HELP !!!!!

    Quote Originally Posted by andybarrett1 View Post
    Is What I did..... Not as pretty as using counts and for/next but it works..... Does what I want :-)

    I am picking up lots of help and advice here though.... Which will come out along the way !!

    I have just upgraded to 2.60C.... !!! Really not sure if I need 3.00

    Seems most folks are 2.50x or 2.60x
    I am sad to hear this and I feel that I have failed in some way. Never give up in the search for perfection and ignore the defeatists is my advice. So now it works you should have time to try again to perfect the counts and loops method.

  6. #6
    Join Date
    Apr 2011
    Location
    Welches, Oregon
    Posts
    198


    Did you find this post helpful? Yes | No

    Default Re: RFID Issues.... HELP !!!!!

    Once again EarlyBird provides sagely advice... I have build an aquarium controller recently (turns on/ off lights, monitors temperature, warns of "low flow"... that sort of thing). My first version works, but is very inefficient and not complete as I'd like, so version two was started. Most every weekend I wrestle with it, but Sunday nights I reload version one. I'm surprised at both the software and the hardware I made work as my skills have improved. I hope you find this as well, Andy.

  7. #7
    Join Date
    May 2012
    Location
    Merseyside, UK
    Posts
    237


    Did you find this post helpful? Yes | No

    Default Re: RFID Issues.... HELP !!!!!

    Quote Originally Posted by EarlyBird2 View Post
    I am sad to hear this and I feel that I have failed in some way. Never give up in the search for perfection and ignore the defeatists is my advice. So now it works you should have time to try again to perfect the counts and loops method.
    Not at all the case Steve... Work commitments and lack of time due to other ventures dictates when I can play with Pics.

    The RFID issues and the Morse are ongoing projects.... and are being worked on as a rolling living thing...The updated Morse code is almost complete if you can remember your useful suggestions re :- labels.

    RFID is taking a little longer... but it is a steep learning curve for me.

    Also I need to look up new words "sagely".... Means Wise Advice. He is right.

    Thank you again... Sagely one !

Similar Threads

  1. RFID example.
    By StevenLim in forum General
    Replies: 2
    Last Post: - 8th February 2011, 09:08
  2. RFID with PIC
    By sswcharlie in forum General
    Replies: 0
    Last Post: - 30th August 2008, 08:41
  3. RFID Implant
    By sayzer in forum Off Topic
    Replies: 0
    Last Post: - 8th May 2007, 11:23
  4. Rfid Reader
    By thaivu in forum Serial
    Replies: 5
    Last Post: - 9th November 2006, 06:52
  5. Rfid?
    By toalan in forum Off Topic
    Replies: 0
    Last Post: - 11th February 2005, 23:37

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts