RFID Toys Homepage
Holy crap, check out the Dangerous Things store!
Forum Home Forum Home > Projects and such > Reader Projects
  New Posts New Posts RSS Feed - RFID Proxmity Circuit
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

RFID Proxmity Circuit

 Post Reply Post Reply Page  <1 234
Author
Message
Jeff_5_7 View Drop Down
Newbie
Newbie


Joined: 12 July 2010
Location: texas
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jeff_5_7 Quote  Post ReplyReply Direct Link To This Post Posted: 28 April 2011 at 7:18pm
Anymore input on this Amal?  Im stuck i  never dreamed it would be this hard to get my tag id and rssi value out and into my micro controller. 
Back to Top
amal View Drop Down
Admin Group
Admin Group
Avatar

Joined: 22 November 2005
Location: United States
Status: Offline
Points: 2061
Post Options Post Options   Thanks (0) Thanks(0)   Quote amal Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2011 at 11:24am
Projects are always harder than you first think they will be. That's the only constant in life :)

It looks to me like the code you're using is not ideal because it's looking for a fixed 8 byte output from the reader. Unless the firmware has changed since I first reviewed it, the length of event packets output by the RF9315R is not fixed, it changes with RSSI value.

First, download the Parallax STAMP programming manual. Page 397 of the PDF (page 393 in print) is the start of the SERIN command details section. Since the RF9315R outputs each data tag ID and RSSI value packet followed by a space, I think you'll want to modify your SERIN command to include a "end character";

    SERIN 1,84,[STR TagID\7\" "]

You'll notice I also decreased the size of the byte array input from 8 to 7. This leaves room for the STR formatter's use of the end-of-string char (ASCII 0 or NULL). Because RSSI values max out at 3 bytes in length, 7 is enough to store tag ID and the longest possible RSSI value.

The nice thing is that it will automatically terminate the SERIN command upon receipt of a space character. This allows you to easily handle variable length input without looping and shifting your data frames in a fixed length SERIN command when RSSI values are less than 3 characters.

Give that change a try and post the new output values. Also, try outputting the captured data using STR instead of HEX (DEBUG STR TagID(0), CR). Post the output you're getting and we'll see if it looks anything like normal data. Don't quote me on this, but you might be able to just use DEBUG STR TagID, CR (with no index on the array) and DEBUG should output the entire array on one line.

Give it a try and post your outputs.
Amal ;)
www.amal.net
Back to Top
Jeff_5_7 View Drop Down
Newbie
Newbie


Joined: 12 July 2010
Location: texas
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jeff_5_7 Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2011 at 2:42pm
no luck.  At baud rate 84 the only thing i get is a little y every-time. At baud rate 9600 it just prints random letters and numbers nothing consistent and if i have the serial cable hooked up to the rs232 all it will print is little c. 
Back to Top
amal View Drop Down
Admin Group
Admin Group
Avatar

Joined: 22 November 2005
Location: United States
Status: Offline
Points: 2061
Post Options Post Options   Thanks (0) Thanks(0)   Quote amal Quote  Post ReplyReply Direct Link To This Post Posted: 02 May 2011 at 11:45am
Hmm, what does the o-scope say about the TTL voltage levels you're shunting?
Amal ;)
www.amal.net
Back to Top
Jeff_5_7 View Drop Down
Newbie
Newbie


Joined: 12 July 2010
Location: texas
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jeff_5_7 Quote  Post ReplyReply Direct Link To This Post Posted: 04 May 2011 at 8:17pm
Dont think my o scope is going to help much. Its older and says 50mhz the reader runs at 350mhz so i dont think it will work. 
Back to Top
amal View Drop Down
Admin Group
Admin Group
Avatar

Joined: 22 November 2005
Location: United States
Status: Offline
Points: 2061
Post Options Post Options   Thanks (0) Thanks(0)   Quote amal Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2011 at 10:15am
The reader's RF range is 350mhz but you're only concerned with reading the voltage levels of the data coming from the shunts you've inserted between microprocessor and RS232 conversion circuitry. Your 50mhz scope should have plenty of horsepower to sample the serial communication signals between STAMP and reader.
Amal ;)
www.amal.net
Back to Top
 Post Reply Post Reply Page  <1 234
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.189 seconds.