How to compare strings/array? RFID Project


Closed Thread
Results 1 to 40 of 101

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default Re: How to compare strings/array? RFID Project

    I do not know what the 0A is there for.

    It for sure NOT for the ID-12.

    In ASCII Hex mode,the ID-12 sends a STX (Start Sentinel) of 02 as the data sheet state.

    So no WAIT(0Ah). It will give Bad Tag message.

    On the e-mail I sent to you there was an error as I did not read correctly the Data Sheet.

    Correct one is the

    Code:
    serin2 port_pin1,baud_rate1,[wait($02),str buf\10]
     
    serout2 port_pin2,baud_rate2,[str buf\10,13,10]
    just to test if the reading data are correct.

    Ioannis

  2. #2
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: How to compare strings/array? RFID Project

    for all our knowledge,

    i would also like to know if the 12 digits i get from the usb reader, as sparkfun's video on their page...http://www.sparkfun.com/products/8419 is ASCII code.

    It is needed first to understand what is this 12 digit number?

    Thank you very much for your help. I need also to help you by understanding the basics. then might be easier for you to give me the right instructions.

  3. #3
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: How to compare strings/array? RFID Project

    Quote Originally Posted by Ioannis View Post
    I do not know what the 0A is there for.

    It for sure NOT for the ID-12.

    In ASCII Hex mode,the ID-12 sends a STX (Start Sentinel) of 02 as the data sheet state.

    So no WAIT(0Ah). It will give Bad Tag message.

    On the e-mail I sent to you there was an error as I did not read correctly the Data Sheet.

    Correct one is the

    Code:
    serin2 port_pin1,baud_rate1,[wait($02),str buf\10]
     
    serout2 port_pin2,baud_rate2,[str buf\10,13,10]
    just to test if the reading data are correct.

    Ioannis

    I will make the change to $02 this might solve the problem.

    If not then i will try to figure out how to connect it to the computer thought the serial port to see what i get.

    Can i do anything with the existing one i have (i mean the usb reader)?

    Can i find out from there what the Module is generating?

    Because i got consfused. With this reader i get a number throught the Secure CRT program with 12 digits.

  4. #4
    Join Date
    Jul 2005
    Location
    The Netherlands
    Posts
    40


    Did you find this post helpful? Yes | No

    Default Re: How to compare strings/array? RFID Project

    Hi,

    I have a lot of applications done with RFID. See my web http://www.picshop.nl/rfid.html
    Here connected to a AmiPIC18 board with the PIC18F25K20. The firmware is in PICBASIC Pro.

    After reading a Tag, the reader give a Hex02. So, you have to wait for that character and store the next 10-byte in a string. Thats the Tag ID. If the first byte = 0, than you have a read only tag. (1 means read/write)
    The OEM reader what I use, has a CP signal, this will be high after reading a Tag, then 210ms later, the reader wil send out (9600 baud) the TAG ID. I use in the firmware the CP signal to poll of a Tag is reading or not. The micro is run on 8 Mhz or faster to read 9600baud.

    I will post tomorrow some firmware to show hows iets work if you want.

    Regards,

  5. #5
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: How to compare strings/array? RFID Project

    Dear Mr. Gevo,

    thanks a lot for that. Mr. Ioannis gave me some information in order to start from, read and learn. So i need to read all these info and then i will come back with all my questions.

    I think i'm close to fix the problem and make the circuit to work.

    At the moment i have use 4Mhz resonator for 9600. Do you think that this might be a problem? I will change it to 8Mhz crystal then.

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default Re: How to compare strings/array? RFID Project

    If the PIC send without any poblem to a PC then its OK for the 4MHz.

    I have many times used 9600 on 628 with 4MHz resonator (not crystal) and went smooth.

    Ioannis

  7. #7
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default Re: How to compare strings/array? RFID Project

    Why not just use DEBUG for transmit & DEBUGIN for receive?

    These commands work 100% with a 4MHz oscillator up to 19200 bps, offer the same modifiers as SERIN2/SEROUT2, and produce much smaller code!
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  8. #8
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default Re: How to compare strings/array? RFID Project

    Bruce just cought me. These two commands would be the next step to suggest.

    astanapane is struggling with the basics so I did not put him to code changes. Debug need DEFINES declared on top of the code.

    Ioannis

Similar Threads

  1. Parallax RFID Reader code example
    By dan-tron in forum Code Examples
    Replies: 4
    Last Post: - 19th April 2013, 22:16
  2. A Temperature & Humidity Data Recorder Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 9th July 2008, 18:47
  3. Replies: 3
    Last Post: - 12th March 2008, 05:33
  4. Free Web based RFID Online Courses
    By Thirumoorthy in forum General
    Replies: 0
    Last Post: - 19th November 2007, 13:38
  5. Free web based RFID online Course
    By Lesikar in forum GPS
    Replies: 0
    Last Post: - 19th October 2007, 22:28

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