How to compare strings/array? RFID Project


Closed Thread
Results 1 to 40 of 101

Hybrid View

  1. #1
    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.

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    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

  3. #3
    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

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    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

  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

    Yes that's true,

    i will focus at the moment to the basics and then i will try to your suggestions. In first place it is needed to understand the code itself. Then to get the datasheet from the RFID module and check everything in there step by step.

    For your info the module ID-12 can be run at 9600 as from the datasheet. The boundrate code for that it seems to work on SERIN2 portb.1, 84. I tried to use the 16468 but didnt do anything.

    Regards,

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


    Did you find this post helpful? Yes | No

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

    For the Serin2 the 84 is for True RS232 signal. The 16468 is for inverted signal as is the case with the ID-12.

    I could not find in the manual where is the speed of the serial port.

    Does it clearly state 9600? I found the part that says the signal is inverted and no driver is required.

    Ioannis

  7. #7
    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

    ok,

    I use the OEM 125Khz reader See http://www.picshop.nl/rfid.html

    This Reader has a CP signal, Before the 10-byte is serial out, the CP signal will be High. Then I have 210ms time to readout the reader. The PIC in the application is a 16F887.

    buf var byte (10) ' RFID bytes from tag

    Main:

    If PORTA.7 = 0 then Read_Tag ' CP signal of the OEM reader, read within 210 mS

    ' Here other program lines

    Goto Main


    ' ----- [ GOSUB ] -----------------------------------------------------------

    Read_Tag:
    ' Wait for Hex 02 . . .
    serin2 PORTB.0, 84, [WAIT($02), str buf\10] ' Read 10 byte from ECO-125

    return

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