Shop OBEX P1 Docs P2 Docs Learn Events
RFID Reader Module..... HELP... — Parallax Forums

RFID Reader Module..... HELP...

fiveslofiveslo Posts: 40
edited 2005-07-29 18:03 in BASIC Stamp
Just received my new RFID Reader Module, and I'm having problems already... the module itself works with the demo programs, or at least sort of... I also purchased five of the rectangular RFID cards... that's where my problem exists.... I can read and display the cards unique IDs with the example code provided:

Main:
· LOW Enable
· SERIN RX, T2400, [noparse][[/noparse]WAIT($0A), STR buf\10]
· HIGH Enable
· DEBUG "Tag Identification number is: "
··· FOR idx = 0 TO 9
······· DEBUG DEC buf(idx)," "
··· NEXT
· DEBUG CR
· PAUSE 500
· GOTO main

Using the above program I get these values reported to the DEBUG screen....

Tag Identification number is: 48 70 48 50 54 48 55 65 54 68
Tag Identification number is: 48 70 48 50 54 48 55 65 54 68
Tag Identification number is: 48 70 48 50 54 48 55 68 65 65
Tag Identification number is: 48 70 48 50 54 48 55 57 53 57
Tag Identification number is: 48 70 48 50 54 48 55 69 67 48
Tag Identification number is: 48 70 48 50 54 48 55 53 50 55

I tried putting these values (in both Hex and Dec formats) into the lock/unlock program for the RFID that is the documents, however, I still cannot get the RFID to respond....How do I use these values to run the lock/unlock program.· Also in the N/V article, I noticed Jon used, a MAX232 to convert the output so that it could be viewed on Hyperterminal?? I think??? But when I looked closer I swore I saw that it was actually the DEBUG screen.... Am I seeing things???· The values I see in the N/V article actually compare more closely than the values I'm getting... HELP... what am I doing wrong.... Rob

Comments

  • NewzedNewzed Posts: 2,503
    edited 2005-07-29 11:50
    Go to this link and look at the sample code I posted for the BS2E:

    http://forums.parallax.com/forums/default.aspx?f=21&m=74727

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Do you have a Stamp Tester yet?
    http://hometown.aol.com/newzed/index.html

    ·
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-07-29 12:08
    You can convert that snippet of code like this to make the output compatible with the other demos:

    Main:
    · LOW Enable
    · SERIN RX, T2400, [noparse][[/noparse]WAIT($0A), STR buf\10]
    · HIGH Enable
    · DEBUG "Tag Identification number is: "
    ··FOR idx = 0 TO 9····························
    ··· DEBUG buf(idx)
    ··NEXT
    · DEBUG CR
    · PAUSE 500
    · GOTO Main

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • fiveslofiveslo Posts: 40
    edited 2005-07-29 16:13
    Thanks both Jon and Sid... it works.... I adopted the simple code conversion that Jon provided and then simply put in the codes that my RFID cards generated... Jon: the interesting thing is that how the removal of the " " in the line: DEBUG DEC buf(idx)," "· changed the output... what really happened here???? Now for some improvising and changing of names in the code... since no one from the White House will be given these cards [noparse]:)[/noparse].... Thanks again... Rob
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-07-29 18:03
    What really happened? Well, the RFID sends out its ID string as text, and that is the default method for DEBUG. Do by removing the DEC operator and the space between characters you can see the actually 10-character string that is sent by the RFID.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.