How to compare strings/array? RFID Project


Results 1 to 40 of 101

Threaded View

  1. #34
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

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

    Hi Joe,

    i would also like to specify that the tags i have there are manchester encoding. Do i have to decode it through the program in order to work?

    I dont know how to decode it. As from the page here http://www.sparkfun.com/products/10169 these are the features
    Features:

    EM4001 ISO based RFID IC
    125kHz Carrier
    2kbps ASK
    Manchester encoding
    32-bit unique ID
    64-bit data stream [Header+ID+Data+Parity]


    From what you are saying now:

    i have already change the buf/10 to 12 but nothing happens.

    If you see the site in here http://melabs.com/resources/ser2modes.htm , there is a 4Mhz which i use at them moment.

    There are several numbers in there included the 84. The number 84 seems to read the data at 9600.

    Here is an other example of the code http://melabs.com/samples/PBP-mixed/ser2mod.htm

    Code:
    Serin2 pinin,396,[WAIT("F"), STR test8\8]
    
       Serout2 pinout,396,["14: ",STR test8\8,13,10]   ' 15: 7ZZ-0001
    
    ' Waits for the string "F", then collects the next 8 characters.  These are
    
    ' stored as ascii in 8 locations of the array variable test8.  The SerOut2
    
    ' statement uses the same modifier to send all 8 locations of the array
    
    ' variable as an ascii string.
    
       Serin2 pinin,396,[WAIT("Z",45), STR test8\8\"0"]
    
       Serout2 pinout,396,["15: ",STR test8\8,13,10]   ' 16: F7ZZ-
    
    ' This example demonstrates how you can put multiple characters in the
    
    ' WAIT.  It waits for the string "Z-", since the ascii code for "-" is
    
    ' 45.  The STR item is the same as above except we have added the stop
    
    ' character "0".  When it encounters "0" at the sixth character, it
    
    ' replaces it and fills the rest of the test8 array with null characters.
     
       Pause 2000
    
       Goto mainloop
     
       End
    Last edited by astanapane; - 12th April 2011 at 07:22.

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