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  123 4>
Author
Message Reverse Sort Order
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 Topic: RFID Proxmity Circuit
    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
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: 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: 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: 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: 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
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: 27 April 2011 at 4:18pm
i have it running on one pc in hyper terminal and i have the basic stamp running on another pc. It runs in hyper terminal no matter what. I am trying to get the ttl data out as its running in hyperterminal. The only reason i keep it running running in  hyper terminal is to make sure the reader is still working. I dont know how to get the data out via rs232 other than hyperterminal.   This is what i got running it 3 times.
3C
3C
38
38
3C
3C
3C
38
00

1C
63
1C
1C
1C
63
1C
1C
00

1C
63
1C
63
1C
63
1C
63
00
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: 27 April 2011 at 3:10pm
Can you also post some sample output?

There may also be a chance that the signal level is dipping due to the shunt. The TTL data signal coming from the microproc on the reader may not have enough current to communicate with your basic STAMP and it's own internal RS232 conversion circuitry. This may cause a dip in TTL voltage that results in gibberish.

Can you connect the RS232 port on the reader up to a PC and see if data is still making it out of the reader via RS232? If you could post output from the RS232 port along side the data you receive from the STAMP for the same event, that may help shed some light.
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: 27 April 2011 at 2:52pm
This is all i am u sing a very simple program.  But my result are not consistent. I was told the data is  8-N-1  8 data bits 1 stop bit. 

' {$STAMP BS2}
' {$PBASIC 2.5}

TagID  VAR  Byte(8)

SERIN 1,84,[STR TagID\8]

DEBUG CR
DEBUG HEX2 TagID(0), CR
DEBUG HEX2 TagID(1), CR
DEBUG HEX2 TagID(2), CR
DEBUG HEX2 TagID(3), CR
DEBUG HEX2 TagID(4), CR
DEBUG HEX2 TagID(5), CR
DEBUG HEX2 TagID(6), CR
DEBUG HEX2 TagID(7), CR
DEBUG HEX2 TagID(8), CR


END

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: 27 April 2011 at 1:39pm
The tag ID is more than 8 bits long, EM4102 tag IDs are 40 bits in length. Can you post your code or BS2 file?
Amal ;)
www.amal.net
Back to Top
 Post Reply Post Reply Page  123 4>
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.965 seconds.